Debian Codegraph @

googleapis/cloud/connectors/v1/destination_config.pb.go

raw
1 // Copyright 2022 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/connectors/v1/destination_config.proto
20
21 package connectors
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 // Define the Connectors target endpoint.
39 type DestinationConfig struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // The key is the destination identifier that is supported by the Connector.
45 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
46 // The destinations for the key.
47 Destinations []*Destination `protobuf:"bytes,2,rep,name=destinations,proto3" json:"destinations,omitempty"`
48 }
49
50 func (x *DestinationConfig) Reset() {
51 *x = DestinationConfig{}
52 if protoimpl.UnsafeEnabled {
53 mi := &file_google_cloud_connectors_v1_destination_config_proto_msgTypes[0]
54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55 ms.StoreMessageInfo(mi)
56 }
57 }
58
59 func (x *DestinationConfig) String() string {
60 return protoimpl.X.MessageStringOf(x)
61 }
62
63 func (*DestinationConfig) ProtoMessage() {}
64
65 func (x *DestinationConfig) ProtoReflect() protoreflect.Message {
66 mi := &file_google_cloud_connectors_v1_destination_config_proto_msgTypes[0]
67 if protoimpl.UnsafeEnabled && x != nil {
68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69 if ms.LoadMessageInfo() == nil {
70 ms.StoreMessageInfo(mi)
71 }
72 return ms
73 }
74 return mi.MessageOf(x)
75 }
76
77 // Deprecated: Use DestinationConfig.ProtoReflect.Descriptor instead.
78 func (*DestinationConfig) Descriptor() ([]byte, []int) {
79 return file_google_cloud_connectors_v1_destination_config_proto_rawDescGZIP(), []int{0}
80 }
81
82 func (x *DestinationConfig) GetKey() string {
83 if x != nil {
84 return x.Key
85 }
86 return ""
87 }
88
89 func (x *DestinationConfig) GetDestinations() []*Destination {
90 if x != nil {
91 return x.Destinations
92 }
93 return nil
94 }
95
96 type Destination struct {
97 state protoimpl.MessageState
98 sizeCache protoimpl.SizeCache
99 unknownFields protoimpl.UnknownFields
100
101 // Types that are assignable to Destination:
102 //
103 // *Destination_ServiceAttachment
104 // *Destination_Host
105 Destination isDestination_Destination `protobuf_oneof:"destination"`
106 // The port is the target port number that is accepted by the destination.
107 Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
108 }
109
110 func (x *Destination) Reset() {
111 *x = Destination{}
112 if protoimpl.UnsafeEnabled {
113 mi := &file_google_cloud_connectors_v1_destination_config_proto_msgTypes[1]
114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
115 ms.StoreMessageInfo(mi)
116 }
117 }
118
119 func (x *Destination) String() string {
120 return protoimpl.X.MessageStringOf(x)
121 }
122
123 func (*Destination) ProtoMessage() {}
124
125 func (x *Destination) ProtoReflect() protoreflect.Message {
126 mi := &file_google_cloud_connectors_v1_destination_config_proto_msgTypes[1]
127 if protoimpl.UnsafeEnabled && x != nil {
128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
129 if ms.LoadMessageInfo() == nil {
130 ms.StoreMessageInfo(mi)
131 }
132 return ms
133 }
134 return mi.MessageOf(x)
135 }
136
137 // Deprecated: Use Destination.ProtoReflect.Descriptor instead.
138 func (*Destination) Descriptor() ([]byte, []int) {
139 return file_google_cloud_connectors_v1_destination_config_proto_rawDescGZIP(), []int{1}
140 }
141
142 func (m *Destination) GetDestination() isDestination_Destination {
143 if m != nil {
144 return m.Destination
145 }
146 return nil
147 }
148
149 func (x *Destination) GetServiceAttachment() string {
150 if x, ok := x.GetDestination().(*Destination_ServiceAttachment); ok {
151 return x.ServiceAttachment
152 }
153 return ""
154 }
155
156 func (x *Destination) GetHost() string {
157 if x, ok := x.GetDestination().(*Destination_Host); ok {
158 return x.Host
159 }
160 return ""
161 }
162
163 func (x *Destination) GetPort() int32 {
164 if x != nil {
165 return x.Port
166 }
167 return 0
168 }
169
170 type isDestination_Destination interface {
171 isDestination_Destination()
172 }
173
174 type Destination_ServiceAttachment struct {
175 // PSC service attachments.
176 // Format: projects/*/regions/*/serviceAttachments/*
177 ServiceAttachment string `protobuf:"bytes,1,opt,name=service_attachment,json=serviceAttachment,proto3,oneof"`
178 }
179
180 type Destination_Host struct {
181 // For publicly routable host.
182 Host string `protobuf:"bytes,2,opt,name=host,proto3,oneof"`
183 }
184
185 func (*Destination_ServiceAttachment) isDestination_Destination() {}
186
187 func (*Destination_Host) isDestination_Destination() {}
188
189 var File_google_cloud_connectors_v1_destination_config_proto protoreflect.FileDescriptor
190
191 var file_google_cloud_connectors_v1_destination_config_proto_rawDesc = []byte{
192 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
193 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x73,
194 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
195 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
196 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76,
197 0x31, 0x22, 0x72, 0x0a, 0x11, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
198 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
199 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x74,
200 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27,
201 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
202 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x74,
203 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
204 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x77, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
205 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
206 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
207 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x74, 0x74, 0x61, 0x63,
208 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20,
209 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70,
210 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x42,
211 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x48,
212 0x50, 0x01, 0x5a, 0x44, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
213 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
214 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
215 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f,
216 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
217 }
218
219 var (
220 file_google_cloud_connectors_v1_destination_config_proto_rawDescOnce sync.Once
221 file_google_cloud_connectors_v1_destination_config_proto_rawDescData = file_google_cloud_connectors_v1_destination_config_proto_rawDesc
222 )
223
224 func file_google_cloud_connectors_v1_destination_config_proto_rawDescGZIP() []byte {
225 file_google_cloud_connectors_v1_destination_config_proto_rawDescOnce.Do(func() {
226 file_google_cloud_connectors_v1_destination_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_connectors_v1_destination_config_proto_rawDescData)
227 })
228 return file_google_cloud_connectors_v1_destination_config_proto_rawDescData
229 }
230
231 var file_google_cloud_connectors_v1_destination_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
232 var file_google_cloud_connectors_v1_destination_config_proto_goTypes = []interface{}{
233 (*DestinationConfig)(nil), // 0: google.cloud.connectors.v1.DestinationConfig
234 (*Destination)(nil), // 1: google.cloud.connectors.v1.Destination
235 }
236 var file_google_cloud_connectors_v1_destination_config_proto_depIdxs = []int32{
237 1, // 0: google.cloud.connectors.v1.DestinationConfig.destinations:type_name -> google.cloud.connectors.v1.Destination
238 1, // [1:1] is the sub-list for method output_type
239 1, // [1:1] is the sub-list for method input_type
240 1, // [1:1] is the sub-list for extension type_name
241 1, // [1:1] is the sub-list for extension extendee
242 0, // [0:1] is the sub-list for field type_name
243 }
244
245 func init() { file_google_cloud_connectors_v1_destination_config_proto_init() }
246 func file_google_cloud_connectors_v1_destination_config_proto_init() {
247 if File_google_cloud_connectors_v1_destination_config_proto != nil {
248 return
249 }
250 if !protoimpl.UnsafeEnabled {
251 file_google_cloud_connectors_v1_destination_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
252 switch v := v.(*DestinationConfig); i {
253 case 0:
254 return &v.state
255 case 1:
256 return &v.sizeCache
257 case 2:
258 return &v.unknownFields
259 default:
260 return nil
261 }
262 }
263 file_google_cloud_connectors_v1_destination_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
264 switch v := v.(*Destination); i {
265 case 0:
266 return &v.state
267 case 1:
268 return &v.sizeCache
269 case 2:
270 return &v.unknownFields
271 default:
272 return nil
273 }
274 }
275 }
276 file_google_cloud_connectors_v1_destination_config_proto_msgTypes[1].OneofWrappers = []interface{}{
277 (*Destination_ServiceAttachment)(nil),
278 (*Destination_Host)(nil),
279 }
280 type x struct{}
281 out := protoimpl.TypeBuilder{
282 File: protoimpl.DescBuilder{
283 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
284 RawDescriptor: file_google_cloud_connectors_v1_destination_config_proto_rawDesc,
285 NumEnums: 0,
286 NumMessages: 2,
287 NumExtensions: 0,
288 NumServices: 0,
289 },
290 GoTypes: file_google_cloud_connectors_v1_destination_config_proto_goTypes,
291 DependencyIndexes: file_google_cloud_connectors_v1_destination_config_proto_depIdxs,
292 MessageInfos: file_google_cloud_connectors_v1_destination_config_proto_msgTypes,
293 }.Build()
294 File_google_cloud_connectors_v1_destination_config_proto = out.File
295 file_google_cloud_connectors_v1_destination_config_proto_rawDesc = nil
296 file_google_cloud_connectors_v1_destination_config_proto_goTypes = nil
297 file_google_cloud_connectors_v1_destination_config_proto_depIdxs = nil
298 }