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