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