1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package sql
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
35 )
36
37 const (
38
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44
45 type GetConnectSettingsRequest struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50
51 Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
52
53 Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
54
55 ReadTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
56 }
57
58 func (x *GetConnectSettingsRequest) Reset() {
59 *x = GetConnectSettingsRequest{}
60 if protoimpl.UnsafeEnabled {
61 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65 }
66
67 func (x *GetConnectSettingsRequest) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*GetConnectSettingsRequest) ProtoMessage() {}
72
73 func (x *GetConnectSettingsRequest) ProtoReflect() protoreflect.Message {
74 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[0]
75 if protoimpl.UnsafeEnabled && x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85
86 func (*GetConnectSettingsRequest) Descriptor() ([]byte, []int) {
87 return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *GetConnectSettingsRequest) GetInstance() string {
91 if x != nil {
92 return x.Instance
93 }
94 return ""
95 }
96
97 func (x *GetConnectSettingsRequest) GetProject() string {
98 if x != nil {
99 return x.Project
100 }
101 return ""
102 }
103
104 func (x *GetConnectSettingsRequest) GetReadTime() *timestamppb.Timestamp {
105 if x != nil {
106 return x.ReadTime
107 }
108 return nil
109 }
110
111
112 type ConnectSettings struct {
113 state protoimpl.MessageState
114 sizeCache protoimpl.SizeCache
115 unknownFields protoimpl.UnknownFields
116
117
118 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
119
120 ServerCaCert *SslCert `protobuf:"bytes,2,opt,name=server_ca_cert,json=serverCaCert,proto3" json:"server_ca_cert,omitempty"`
121
122 IpAddresses []*IpMapping `protobuf:"bytes,3,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"`
123
124
125 Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
126
127
128
129
130
131
132
133
134
135 DatabaseVersion SqlDatabaseVersion `protobuf:"varint,31,opt,name=database_version,json=databaseVersion,proto3,enum=google.cloud.sql.v1.SqlDatabaseVersion" json:"database_version,omitempty"`
136
137
138
139
140 BackendType SqlBackendType `protobuf:"varint,32,opt,name=backend_type,json=backendType,proto3,enum=google.cloud.sql.v1.SqlBackendType" json:"backend_type,omitempty"`
141 }
142
143 func (x *ConnectSettings) Reset() {
144 *x = ConnectSettings{}
145 if protoimpl.UnsafeEnabled {
146 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[1]
147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
148 ms.StoreMessageInfo(mi)
149 }
150 }
151
152 func (x *ConnectSettings) String() string {
153 return protoimpl.X.MessageStringOf(x)
154 }
155
156 func (*ConnectSettings) ProtoMessage() {}
157
158 func (x *ConnectSettings) ProtoReflect() protoreflect.Message {
159 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[1]
160 if protoimpl.UnsafeEnabled && x != nil {
161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
162 if ms.LoadMessageInfo() == nil {
163 ms.StoreMessageInfo(mi)
164 }
165 return ms
166 }
167 return mi.MessageOf(x)
168 }
169
170
171 func (*ConnectSettings) Descriptor() ([]byte, []int) {
172 return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{1}
173 }
174
175 func (x *ConnectSettings) GetKind() string {
176 if x != nil {
177 return x.Kind
178 }
179 return ""
180 }
181
182 func (x *ConnectSettings) GetServerCaCert() *SslCert {
183 if x != nil {
184 return x.ServerCaCert
185 }
186 return nil
187 }
188
189 func (x *ConnectSettings) GetIpAddresses() []*IpMapping {
190 if x != nil {
191 return x.IpAddresses
192 }
193 return nil
194 }
195
196 func (x *ConnectSettings) GetRegion() string {
197 if x != nil {
198 return x.Region
199 }
200 return ""
201 }
202
203 func (x *ConnectSettings) GetDatabaseVersion() SqlDatabaseVersion {
204 if x != nil {
205 return x.DatabaseVersion
206 }
207 return SqlDatabaseVersion_SQL_DATABASE_VERSION_UNSPECIFIED
208 }
209
210 func (x *ConnectSettings) GetBackendType() SqlBackendType {
211 if x != nil {
212 return x.BackendType
213 }
214 return SqlBackendType_SQL_BACKEND_TYPE_UNSPECIFIED
215 }
216
217
218 type GenerateEphemeralCertRequest struct {
219 state protoimpl.MessageState
220 sizeCache protoimpl.SizeCache
221 unknownFields protoimpl.UnknownFields
222
223
224 Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
225
226 Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
227
228 PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
229
230 AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
231
232 ReadTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
233 }
234
235 func (x *GenerateEphemeralCertRequest) Reset() {
236 *x = GenerateEphemeralCertRequest{}
237 if protoimpl.UnsafeEnabled {
238 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[2]
239 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
240 ms.StoreMessageInfo(mi)
241 }
242 }
243
244 func (x *GenerateEphemeralCertRequest) String() string {
245 return protoimpl.X.MessageStringOf(x)
246 }
247
248 func (*GenerateEphemeralCertRequest) ProtoMessage() {}
249
250 func (x *GenerateEphemeralCertRequest) ProtoReflect() protoreflect.Message {
251 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[2]
252 if protoimpl.UnsafeEnabled && x != nil {
253 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
254 if ms.LoadMessageInfo() == nil {
255 ms.StoreMessageInfo(mi)
256 }
257 return ms
258 }
259 return mi.MessageOf(x)
260 }
261
262
263 func (*GenerateEphemeralCertRequest) Descriptor() ([]byte, []int) {
264 return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{2}
265 }
266
267 func (x *GenerateEphemeralCertRequest) GetInstance() string {
268 if x != nil {
269 return x.Instance
270 }
271 return ""
272 }
273
274 func (x *GenerateEphemeralCertRequest) GetProject() string {
275 if x != nil {
276 return x.Project
277 }
278 return ""
279 }
280
281 func (x *GenerateEphemeralCertRequest) GetPublicKey() string {
282 if x != nil {
283 return x.PublicKey
284 }
285 return ""
286 }
287
288 func (x *GenerateEphemeralCertRequest) GetAccessToken() string {
289 if x != nil {
290 return x.AccessToken
291 }
292 return ""
293 }
294
295 func (x *GenerateEphemeralCertRequest) GetReadTime() *timestamppb.Timestamp {
296 if x != nil {
297 return x.ReadTime
298 }
299 return nil
300 }
301
302
303 type GenerateEphemeralCertResponse struct {
304 state protoimpl.MessageState
305 sizeCache protoimpl.SizeCache
306 unknownFields protoimpl.UnknownFields
307
308
309 EphemeralCert *SslCert `protobuf:"bytes,1,opt,name=ephemeral_cert,json=ephemeralCert,proto3" json:"ephemeral_cert,omitempty"`
310 }
311
312 func (x *GenerateEphemeralCertResponse) Reset() {
313 *x = GenerateEphemeralCertResponse{}
314 if protoimpl.UnsafeEnabled {
315 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[3]
316 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
317 ms.StoreMessageInfo(mi)
318 }
319 }
320
321 func (x *GenerateEphemeralCertResponse) String() string {
322 return protoimpl.X.MessageStringOf(x)
323 }
324
325 func (*GenerateEphemeralCertResponse) ProtoMessage() {}
326
327 func (x *GenerateEphemeralCertResponse) ProtoReflect() protoreflect.Message {
328 mi := &file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[3]
329 if protoimpl.UnsafeEnabled && x != nil {
330 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
331 if ms.LoadMessageInfo() == nil {
332 ms.StoreMessageInfo(mi)
333 }
334 return ms
335 }
336 return mi.MessageOf(x)
337 }
338
339
340 func (*GenerateEphemeralCertResponse) Descriptor() ([]byte, []int) {
341 return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP(), []int{3}
342 }
343
344 func (x *GenerateEphemeralCertResponse) GetEphemeralCert() *SslCert {
345 if x != nil {
346 return x.EphemeralCert
347 }
348 return nil
349 }
350
351 var File_google_cloud_sql_v1_cloud_sql_connect_proto protoreflect.FileDescriptor
352
353 var file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc = []byte{
354 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
355 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c, 0x5f,
356 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67,
357 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e,
358 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
359 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
360 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
361 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
362 0x6f, 0x1a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
363 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c,
364 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
365 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
366 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
367 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c,
368 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x19, 0x47,
369 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
370 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74,
371 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74,
372 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
373 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3c,
374 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
375 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
376 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0,
377 0x41, 0x01, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xe0, 0x02, 0x0a,
378 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
379 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
380 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x42, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63,
381 0x61, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67,
382 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e,
383 0x76, 0x31, 0x2e, 0x53, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76,
384 0x65, 0x72, 0x43, 0x61, 0x43, 0x65, 0x72, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x69, 0x70, 0x5f, 0x61,
385 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,
386 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
387 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x70, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b,
388 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72,
389 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67,
390 0x69, 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,
391 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e,
392 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c,
393 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x56,
394 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
395 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x65,
396 0x6e, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e,
397 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c,
398 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x54, 0x79,
399 0x70, 0x65, 0x52, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x22,
400 0xd9, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65,
401 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
402 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
403 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07,
404 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70,
405 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
406 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c,
407 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f,
408 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
409 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3c, 0x0a,
410 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
411 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
412 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41,
413 0x01, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x64, 0x0a, 0x1d, 0x47,
414 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c,
415 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0e,
416 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x01,
417 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
418 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x73, 0x6c, 0x43, 0x65,
419 0x72, 0x74, 0x52, 0x0d, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65, 0x72,
420 0x74, 0x32, 0x92, 0x04, 0x0a, 0x11, 0x53, 0x71, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
421 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xaf, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43,
422 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2e,
423 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
424 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53,
425 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,
426 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
427 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x65, 0x74, 0x74,
428 0x69, 0x6e, 0x67, 0x73, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76,
429 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,
430 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b,
431 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
432 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0xcc, 0x01, 0x0a, 0x15, 0x47, 0x65,
433 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43,
434 0x65, 0x72, 0x74, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
435 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61,
436 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x52,
437 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
438 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e,
439 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x65,
440 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93,
441 0x02, 0x46, 0x22, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
442 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61,
443 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x3a,
444 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61,
445 0x6c, 0x43, 0x65, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0x1a, 0x7c, 0xca, 0x41, 0x17, 0x73, 0x71, 0x6c,
446 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
447 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77,
448 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
449 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61,
450 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77,
451 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
452 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x71, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
453 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x69, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
454 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76,
455 0x31, 0x42, 0x14, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x53, 0x71, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
456 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
457 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
458 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
459 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x71,
460 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
461 }
462
463 var (
464 file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescOnce sync.Once
465 file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData = file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc
466 )
467
468 func file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescGZIP() []byte {
469 file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescOnce.Do(func() {
470 file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData)
471 })
472 return file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDescData
473 }
474
475 var file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
476 var file_google_cloud_sql_v1_cloud_sql_connect_proto_goTypes = []interface{}{
477 (*GetConnectSettingsRequest)(nil),
478 (*ConnectSettings)(nil),
479 (*GenerateEphemeralCertRequest)(nil),
480 (*GenerateEphemeralCertResponse)(nil),
481 (*timestamppb.Timestamp)(nil),
482 (*SslCert)(nil),
483 (*IpMapping)(nil),
484 (SqlDatabaseVersion)(0),
485 (SqlBackendType)(0),
486 }
487 var file_google_cloud_sql_v1_cloud_sql_connect_proto_depIdxs = []int32{
488 4,
489 5,
490 6,
491 7,
492 8,
493 4,
494 5,
495 0,
496 2,
497 1,
498 3,
499 9,
500 7,
501 7,
502 7,
503 0,
504 }
505
506 func init() { file_google_cloud_sql_v1_cloud_sql_connect_proto_init() }
507 func file_google_cloud_sql_v1_cloud_sql_connect_proto_init() {
508 if File_google_cloud_sql_v1_cloud_sql_connect_proto != nil {
509 return
510 }
511 file_google_cloud_sql_v1_cloud_sql_resources_proto_init()
512 if !protoimpl.UnsafeEnabled {
513 file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
514 switch v := v.(*GetConnectSettingsRequest); i {
515 case 0:
516 return &v.state
517 case 1:
518 return &v.sizeCache
519 case 2:
520 return &v.unknownFields
521 default:
522 return nil
523 }
524 }
525 file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
526 switch v := v.(*ConnectSettings); i {
527 case 0:
528 return &v.state
529 case 1:
530 return &v.sizeCache
531 case 2:
532 return &v.unknownFields
533 default:
534 return nil
535 }
536 }
537 file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
538 switch v := v.(*GenerateEphemeralCertRequest); i {
539 case 0:
540 return &v.state
541 case 1:
542 return &v.sizeCache
543 case 2:
544 return &v.unknownFields
545 default:
546 return nil
547 }
548 }
549 file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
550 switch v := v.(*GenerateEphemeralCertResponse); i {
551 case 0:
552 return &v.state
553 case 1:
554 return &v.sizeCache
555 case 2:
556 return &v.unknownFields
557 default:
558 return nil
559 }
560 }
561 }
562 type x struct{}
563 out := protoimpl.TypeBuilder{
564 File: protoimpl.DescBuilder{
565 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
566 RawDescriptor: file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc,
567 NumEnums: 0,
568 NumMessages: 4,
569 NumExtensions: 0,
570 NumServices: 1,
571 },
572 GoTypes: file_google_cloud_sql_v1_cloud_sql_connect_proto_goTypes,
573 DependencyIndexes: file_google_cloud_sql_v1_cloud_sql_connect_proto_depIdxs,
574 MessageInfos: file_google_cloud_sql_v1_cloud_sql_connect_proto_msgTypes,
575 }.Build()
576 File_google_cloud_sql_v1_cloud_sql_connect_proto = out.File
577 file_google_cloud_sql_v1_cloud_sql_connect_proto_rawDesc = nil
578 file_google_cloud_sql_v1_cloud_sql_connect_proto_goTypes = nil
579 file_google_cloud_sql_v1_cloud_sql_connect_proto_depIdxs = nil
580 }
581
582
583 var _ context.Context
584 var _ grpc.ClientConnInterface
585
586
587
588 const _ = grpc.SupportPackageIsVersion6
589
590
591
592
593 type SqlConnectServiceClient interface {
594
595 GetConnectSettings(ctx context.Context, in *GetConnectSettingsRequest, opts ...grpc.CallOption) (*ConnectSettings, error)
596
597
598
599
600 GenerateEphemeralCert(ctx context.Context, in *GenerateEphemeralCertRequest, opts ...grpc.CallOption) (*GenerateEphemeralCertResponse, error)
601 }
602
603 type sqlConnectServiceClient struct {
604 cc grpc.ClientConnInterface
605 }
606
607 func NewSqlConnectServiceClient(cc grpc.ClientConnInterface) SqlConnectServiceClient {
608 return &sqlConnectServiceClient{cc}
609 }
610
611 func (c *sqlConnectServiceClient) GetConnectSettings(ctx context.Context, in *GetConnectSettingsRequest, opts ...grpc.CallOption) (*ConnectSettings, error) {
612 out := new(ConnectSettings)
613 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlConnectService/GetConnectSettings", in, out, opts...)
614 if err != nil {
615 return nil, err
616 }
617 return out, nil
618 }
619
620 func (c *sqlConnectServiceClient) GenerateEphemeralCert(ctx context.Context, in *GenerateEphemeralCertRequest, opts ...grpc.CallOption) (*GenerateEphemeralCertResponse, error) {
621 out := new(GenerateEphemeralCertResponse)
622 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlConnectService/GenerateEphemeralCert", in, out, opts...)
623 if err != nil {
624 return nil, err
625 }
626 return out, nil
627 }
628
629
630 type SqlConnectServiceServer interface {
631
632 GetConnectSettings(context.Context, *GetConnectSettingsRequest) (*ConnectSettings, error)
633
634
635
636
637 GenerateEphemeralCert(context.Context, *GenerateEphemeralCertRequest) (*GenerateEphemeralCertResponse, error)
638 }
639
640
641 type UnimplementedSqlConnectServiceServer struct {
642 }
643
644 func (*UnimplementedSqlConnectServiceServer) GetConnectSettings(context.Context, *GetConnectSettingsRequest) (*ConnectSettings, error) {
645 return nil, status.Errorf(codes.Unimplemented, "method GetConnectSettings not implemented")
646 }
647 func (*UnimplementedSqlConnectServiceServer) GenerateEphemeralCert(context.Context, *GenerateEphemeralCertRequest) (*GenerateEphemeralCertResponse, error) {
648 return nil, status.Errorf(codes.Unimplemented, "method GenerateEphemeralCert not implemented")
649 }
650
651 func RegisterSqlConnectServiceServer(s *grpc.Server, srv SqlConnectServiceServer) {
652 s.RegisterService(&_SqlConnectService_serviceDesc, srv)
653 }
654
655 func _SqlConnectService_GetConnectSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
656 in := new(GetConnectSettingsRequest)
657 if err := dec(in); err != nil {
658 return nil, err
659 }
660 if interceptor == nil {
661 return srv.(SqlConnectServiceServer).GetConnectSettings(ctx, in)
662 }
663 info := &grpc.UnaryServerInfo{
664 Server: srv,
665 FullMethod: "/google.cloud.sql.v1.SqlConnectService/GetConnectSettings",
666 }
667 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
668 return srv.(SqlConnectServiceServer).GetConnectSettings(ctx, req.(*GetConnectSettingsRequest))
669 }
670 return interceptor(ctx, in, info, handler)
671 }
672
673 func _SqlConnectService_GenerateEphemeralCert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
674 in := new(GenerateEphemeralCertRequest)
675 if err := dec(in); err != nil {
676 return nil, err
677 }
678 if interceptor == nil {
679 return srv.(SqlConnectServiceServer).GenerateEphemeralCert(ctx, in)
680 }
681 info := &grpc.UnaryServerInfo{
682 Server: srv,
683 FullMethod: "/google.cloud.sql.v1.SqlConnectService/GenerateEphemeralCert",
684 }
685 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
686 return srv.(SqlConnectServiceServer).GenerateEphemeralCert(ctx, req.(*GenerateEphemeralCertRequest))
687 }
688 return interceptor(ctx, in, info, handler)
689 }
690
691 var _SqlConnectService_serviceDesc = grpc.ServiceDesc{
692 ServiceName: "google.cloud.sql.v1.SqlConnectService",
693 HandlerType: (*SqlConnectServiceServer)(nil),
694 Methods: []grpc.MethodDesc{
695 {
696 MethodName: "GetConnectSettings",
697 Handler: _SqlConnectService_GetConnectSettings_Handler,
698 },
699 {
700 MethodName: "GenerateEphemeralCert",
701 Handler: _SqlConnectService_GenerateEphemeralCert_Handler,
702 },
703 },
704 Streams: []grpc.StreamDesc{},
705 Metadata: "google/cloud/sql/v1/cloud_sql_connect.proto",
706 }
707
View as plain text