Debian Codegraph @

servicedirectory/apiv1/servicedirectorypb/endpoint.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/endpoint.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 // An individual endpoint that provides a
39 // [service][google.cloud.servicedirectory.v1.Service]. The service must
40 // already exist to create an endpoint.
41 type Endpoint struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // Immutable. The resource name for the endpoint in the format
47 // `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
48 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
49 // Optional. An IPv4 or IPv6 address. Service Directory rejects bad addresses
50 // like:
51 //
52 // * `8.8.8`
53 // * `8.8.8.8:53`
54 // * `test:bad:address`
55 // * `[::1]`
56 // * `[::1]:8080`
57 //
58 // Limited to 45 characters.
59 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
60 // Optional. Service Directory rejects values outside of `[0, 65535]`.
61 Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
62 // Optional. Annotations for the endpoint. This data can be consumed by
63 // service clients.
64 //
65 // Restrictions:
66 //
67 // - The entire annotations dictionary may contain up to 512 characters,
68 // spread accoss all key-value pairs. Annotations that go beyond this
69 // limit are rejected
70 // - Valid annotation keys have two segments: an optional prefix and name,
71 // separated by a slash (/). The name segment is required and must be 63
72 // characters or less, beginning and ending with an alphanumeric character
73 // ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
74 // alphanumerics between. The prefix is optional. If specified, the prefix
75 // must be a DNS subdomain: a series of DNS labels separated by dots (.),
76 // not longer than 253 characters in total, followed by a slash (/)
77 // Annotations that fails to meet these requirements are rejected.
78 //
79 // Note: This field is equivalent to the `metadata` field in the v1beta1 API.
80 // They have the same syntax and read/write to the same location in Service
81 // Directory.
82 Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
83 // Immutable. The Google Compute Engine network (VPC) of the endpoint in the
84 // format `projects/<project number>/locations/global/networks/*`.
85 //
86 // The project must be specified by project number (project id is rejected).
87 // Incorrectly formatted networks are rejected, we also check to make sure
88 // that you have the servicedirectory.networks.attach permission on the
89 // project specified.
90 Network string `protobuf:"bytes,8,opt,name=network,proto3" json:"network,omitempty"`
91 // Output only. The globally unique identifier of the endpoint in the UUID4
92 // format.
93 Uid string `protobuf:"bytes,9,opt,name=uid,proto3" json:"uid,omitempty"`
94 }
95
96 func (x *Endpoint) Reset() {
97 *x = Endpoint{}
98 mi := &file_google_cloud_servicedirectory_v1_endpoint_proto_msgTypes[0]
99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100 ms.StoreMessageInfo(mi)
101 }
102
103 func (x *Endpoint) String() string {
104 return protoimpl.X.MessageStringOf(x)
105 }
106
107 func (*Endpoint) ProtoMessage() {}
108
109 func (x *Endpoint) ProtoReflect() protoreflect.Message {
110 mi := &file_google_cloud_servicedirectory_v1_endpoint_proto_msgTypes[0]
111 if x != nil {
112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
113 if ms.LoadMessageInfo() == nil {
114 ms.StoreMessageInfo(mi)
115 }
116 return ms
117 }
118 return mi.MessageOf(x)
119 }
120
121 // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
122 func (*Endpoint) Descriptor() ([]byte, []int) {
123 return file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescGZIP(), []int{0}
124 }
125
126 func (x *Endpoint) GetName() string {
127 if x != nil {
128 return x.Name
129 }
130 return ""
131 }
132
133 func (x *Endpoint) GetAddress() string {
134 if x != nil {
135 return x.Address
136 }
137 return ""
138 }
139
140 func (x *Endpoint) GetPort() int32 {
141 if x != nil {
142 return x.Port
143 }
144 return 0
145 }
146
147 func (x *Endpoint) GetAnnotations() map[string]string {
148 if x != nil {
149 return x.Annotations
150 }
151 return nil
152 }
153
154 func (x *Endpoint) GetNetwork() string {
155 if x != nil {
156 return x.Network
157 }
158 return ""
159 }
160
161 func (x *Endpoint) GetUid() string {
162 if x != nil {
163 return x.Uid
164 }
165 return ""
166 }
167
168 var File_google_cloud_servicedirectory_v1_endpoint_proto protoreflect.FileDescriptor
169
170 var file_google_cloud_servicedirectory_v1_endpoint_proto_rawDesc = []byte{
171 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
172 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
173 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
174 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
175 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
176 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
177 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70,
178 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
179 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
180 0xfa, 0x03, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x04,
181 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52,
182 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
183 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x61, 0x64, 0x64,
184 0x72, 0x65, 0x73, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01,
185 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x62, 0x0a,
186 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03,
187 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
188 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f,
189 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x41,
190 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42,
191 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
192 0x73, 0x12, 0x49, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x08, 0x20, 0x01,
193 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x05, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x73, 0x65, 0x72, 0x76,
194 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 0x6f,
195 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x65, 0x74, 0x77,
196 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x15, 0x0a, 0x03,
197 0x75, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03,
198 0x75, 0x69, 0x64, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
199 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
200 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
201 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
202 0x02, 0x38, 0x01, 0x3a, 0x96, 0x01, 0xea, 0x41, 0x92, 0x01, 0x0a, 0x28, 0x73, 0x65, 0x72, 0x76,
203 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 0x6f,
204 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x45, 0x6e, 0x64, 0x70,
205 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x66, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,
206 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
207 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x6e, 0x61,
208 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
209 0x61, 0x63, 0x65, 0x7d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73,
210 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x7d, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
211 0x73, 0x2f, 0x7b, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x7d, 0x42, 0xd9, 0x02, 0xea,
212 0x41, 0x61, 0x0a, 0x27, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
213 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
214 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x36, 0x70, 0x72, 0x6f,
215 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f,
216 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c,
217 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f,
218 0x72, 0x6b, 0x7d, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
219 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
220 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x45, 0x6e, 0x64, 0x70, 0x6f,
221 0x69, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x63, 0x6c, 0x6f, 0x75,
222 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
223 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
224 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69,
225 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
226 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0xaa, 0x02, 0x20, 0x47,
227 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76,
228 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca,
229 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53,
230 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c,
231 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
232 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63,
233 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
234 }
235
236 var (
237 file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescOnce sync.Once
238 file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescData = file_google_cloud_servicedirectory_v1_endpoint_proto_rawDesc
239 )
240
241 func file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescGZIP() []byte {
242 file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescOnce.Do(func() {
243 file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescData)
244 })
245 return file_google_cloud_servicedirectory_v1_endpoint_proto_rawDescData
246 }
247
248 var file_google_cloud_servicedirectory_v1_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
249 var file_google_cloud_servicedirectory_v1_endpoint_proto_goTypes = []any{
250 (*Endpoint)(nil), // 0: google.cloud.servicedirectory.v1.Endpoint
251 nil, // 1: google.cloud.servicedirectory.v1.Endpoint.AnnotationsEntry
252 }
253 var file_google_cloud_servicedirectory_v1_endpoint_proto_depIdxs = []int32{
254 1, // 0: google.cloud.servicedirectory.v1.Endpoint.annotations:type_name -> google.cloud.servicedirectory.v1.Endpoint.AnnotationsEntry
255 1, // [1:1] is the sub-list for method output_type
256 1, // [1:1] is the sub-list for method input_type
257 1, // [1:1] is the sub-list for extension type_name
258 1, // [1:1] is the sub-list for extension extendee
259 0, // [0:1] is the sub-list for field type_name
260 }
261
262 func init() { file_google_cloud_servicedirectory_v1_endpoint_proto_init() }
263 func file_google_cloud_servicedirectory_v1_endpoint_proto_init() {
264 if File_google_cloud_servicedirectory_v1_endpoint_proto != nil {
265 return
266 }
267 type x struct{}
268 out := protoimpl.TypeBuilder{
269 File: protoimpl.DescBuilder{
270 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
271 RawDescriptor: file_google_cloud_servicedirectory_v1_endpoint_proto_rawDesc,
272 NumEnums: 0,
273 NumMessages: 2,
274 NumExtensions: 0,
275 NumServices: 0,
276 },
277 GoTypes: file_google_cloud_servicedirectory_v1_endpoint_proto_goTypes,
278 DependencyIndexes: file_google_cloud_servicedirectory_v1_endpoint_proto_depIdxs,
279 MessageInfos: file_google_cloud_servicedirectory_v1_endpoint_proto_msgTypes,
280 }.Build()
281 File_google_cloud_servicedirectory_v1_endpoint_proto = out.File
282 file_google_cloud_servicedirectory_v1_endpoint_proto_rawDesc = nil
283 file_google_cloud_servicedirectory_v1_endpoint_proto_goTypes = nil
284 file_google_cloud_servicedirectory_v1_endpoint_proto_depIdxs = nil
285 }