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 User_SqlUserType int32
47
48 const (
49
50 User_BUILT_IN User_SqlUserType = 0
51
52 User_CLOUD_IAM_USER User_SqlUserType = 1
53
54 User_CLOUD_IAM_SERVICE_ACCOUNT User_SqlUserType = 2
55 )
56
57
58 var (
59 User_SqlUserType_name = map[int32]string{
60 0: "BUILT_IN",
61 1: "CLOUD_IAM_USER",
62 2: "CLOUD_IAM_SERVICE_ACCOUNT",
63 }
64 User_SqlUserType_value = map[string]int32{
65 "BUILT_IN": 0,
66 "CLOUD_IAM_USER": 1,
67 "CLOUD_IAM_SERVICE_ACCOUNT": 2,
68 }
69 )
70
71 func (x User_SqlUserType) Enum() *User_SqlUserType {
72 p := new(User_SqlUserType)
73 *p = x
74 return p
75 }
76
77 func (x User_SqlUserType) String() string {
78 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
79 }
80
81 func (User_SqlUserType) Descriptor() protoreflect.EnumDescriptor {
82 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_enumTypes[0].Descriptor()
83 }
84
85 func (User_SqlUserType) Type() protoreflect.EnumType {
86 return &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_enumTypes[0]
87 }
88
89 func (x User_SqlUserType) Number() protoreflect.EnumNumber {
90 return protoreflect.EnumNumber(x)
91 }
92
93
94 func (User_SqlUserType) EnumDescriptor() ([]byte, []int) {
95 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{6, 0}
96 }
97
98 type SqlUsersDeleteRequest struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103
104 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
105
106 Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
107
108 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
109
110 Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
111 }
112
113 func (x *SqlUsersDeleteRequest) Reset() {
114 *x = SqlUsersDeleteRequest{}
115 if protoimpl.UnsafeEnabled {
116 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[0]
117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118 ms.StoreMessageInfo(mi)
119 }
120 }
121
122 func (x *SqlUsersDeleteRequest) String() string {
123 return protoimpl.X.MessageStringOf(x)
124 }
125
126 func (*SqlUsersDeleteRequest) ProtoMessage() {}
127
128 func (x *SqlUsersDeleteRequest) ProtoReflect() protoreflect.Message {
129 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[0]
130 if protoimpl.UnsafeEnabled && x != nil {
131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
132 if ms.LoadMessageInfo() == nil {
133 ms.StoreMessageInfo(mi)
134 }
135 return ms
136 }
137 return mi.MessageOf(x)
138 }
139
140
141 func (*SqlUsersDeleteRequest) Descriptor() ([]byte, []int) {
142 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{0}
143 }
144
145 func (x *SqlUsersDeleteRequest) GetHost() string {
146 if x != nil {
147 return x.Host
148 }
149 return ""
150 }
151
152 func (x *SqlUsersDeleteRequest) GetInstance() string {
153 if x != nil {
154 return x.Instance
155 }
156 return ""
157 }
158
159 func (x *SqlUsersDeleteRequest) GetName() string {
160 if x != nil {
161 return x.Name
162 }
163 return ""
164 }
165
166 func (x *SqlUsersDeleteRequest) GetProject() string {
167 if x != nil {
168 return x.Project
169 }
170 return ""
171 }
172
173 type SqlUsersInsertRequest struct {
174 state protoimpl.MessageState
175 sizeCache protoimpl.SizeCache
176 unknownFields protoimpl.UnknownFields
177
178
179 Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
180
181 Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
182 Body *User `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"`
183 }
184
185 func (x *SqlUsersInsertRequest) Reset() {
186 *x = SqlUsersInsertRequest{}
187 if protoimpl.UnsafeEnabled {
188 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[1]
189 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190 ms.StoreMessageInfo(mi)
191 }
192 }
193
194 func (x *SqlUsersInsertRequest) String() string {
195 return protoimpl.X.MessageStringOf(x)
196 }
197
198 func (*SqlUsersInsertRequest) ProtoMessage() {}
199
200 func (x *SqlUsersInsertRequest) ProtoReflect() protoreflect.Message {
201 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[1]
202 if protoimpl.UnsafeEnabled && x != nil {
203 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204 if ms.LoadMessageInfo() == nil {
205 ms.StoreMessageInfo(mi)
206 }
207 return ms
208 }
209 return mi.MessageOf(x)
210 }
211
212
213 func (*SqlUsersInsertRequest) Descriptor() ([]byte, []int) {
214 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{1}
215 }
216
217 func (x *SqlUsersInsertRequest) GetInstance() string {
218 if x != nil {
219 return x.Instance
220 }
221 return ""
222 }
223
224 func (x *SqlUsersInsertRequest) GetProject() string {
225 if x != nil {
226 return x.Project
227 }
228 return ""
229 }
230
231 func (x *SqlUsersInsertRequest) GetBody() *User {
232 if x != nil {
233 return x.Body
234 }
235 return nil
236 }
237
238 type SqlUsersListRequest struct {
239 state protoimpl.MessageState
240 sizeCache protoimpl.SizeCache
241 unknownFields protoimpl.UnknownFields
242
243
244 Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
245
246 Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
247 }
248
249 func (x *SqlUsersListRequest) Reset() {
250 *x = SqlUsersListRequest{}
251 if protoimpl.UnsafeEnabled {
252 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[2]
253 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
254 ms.StoreMessageInfo(mi)
255 }
256 }
257
258 func (x *SqlUsersListRequest) String() string {
259 return protoimpl.X.MessageStringOf(x)
260 }
261
262 func (*SqlUsersListRequest) ProtoMessage() {}
263
264 func (x *SqlUsersListRequest) ProtoReflect() protoreflect.Message {
265 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[2]
266 if protoimpl.UnsafeEnabled && x != nil {
267 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
268 if ms.LoadMessageInfo() == nil {
269 ms.StoreMessageInfo(mi)
270 }
271 return ms
272 }
273 return mi.MessageOf(x)
274 }
275
276
277 func (*SqlUsersListRequest) Descriptor() ([]byte, []int) {
278 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{2}
279 }
280
281 func (x *SqlUsersListRequest) GetInstance() string {
282 if x != nil {
283 return x.Instance
284 }
285 return ""
286 }
287
288 func (x *SqlUsersListRequest) GetProject() string {
289 if x != nil {
290 return x.Project
291 }
292 return ""
293 }
294
295 type SqlUsersUpdateRequest struct {
296 state protoimpl.MessageState
297 sizeCache protoimpl.SizeCache
298 unknownFields protoimpl.UnknownFields
299
300
301 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
302
303 Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
304
305 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
306
307 Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
308 Body *User `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"`
309 }
310
311 func (x *SqlUsersUpdateRequest) Reset() {
312 *x = SqlUsersUpdateRequest{}
313 if protoimpl.UnsafeEnabled {
314 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[3]
315 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
316 ms.StoreMessageInfo(mi)
317 }
318 }
319
320 func (x *SqlUsersUpdateRequest) String() string {
321 return protoimpl.X.MessageStringOf(x)
322 }
323
324 func (*SqlUsersUpdateRequest) ProtoMessage() {}
325
326 func (x *SqlUsersUpdateRequest) ProtoReflect() protoreflect.Message {
327 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[3]
328 if protoimpl.UnsafeEnabled && x != nil {
329 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
330 if ms.LoadMessageInfo() == nil {
331 ms.StoreMessageInfo(mi)
332 }
333 return ms
334 }
335 return mi.MessageOf(x)
336 }
337
338
339 func (*SqlUsersUpdateRequest) Descriptor() ([]byte, []int) {
340 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{3}
341 }
342
343 func (x *SqlUsersUpdateRequest) GetHost() string {
344 if x != nil {
345 return x.Host
346 }
347 return ""
348 }
349
350 func (x *SqlUsersUpdateRequest) GetInstance() string {
351 if x != nil {
352 return x.Instance
353 }
354 return ""
355 }
356
357 func (x *SqlUsersUpdateRequest) GetName() string {
358 if x != nil {
359 return x.Name
360 }
361 return ""
362 }
363
364 func (x *SqlUsersUpdateRequest) GetProject() string {
365 if x != nil {
366 return x.Project
367 }
368 return ""
369 }
370
371 func (x *SqlUsersUpdateRequest) GetBody() *User {
372 if x != nil {
373 return x.Body
374 }
375 return nil
376 }
377
378
379 type UserPasswordValidationPolicy struct {
380 state protoimpl.MessageState
381 sizeCache protoimpl.SizeCache
382 unknownFields protoimpl.UnknownFields
383
384
385 AllowedFailedAttempts int32 `protobuf:"varint,1,opt,name=allowed_failed_attempts,json=allowedFailedAttempts,proto3" json:"allowed_failed_attempts,omitempty"`
386
387 PasswordExpirationDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=password_expiration_duration,json=passwordExpirationDuration,proto3" json:"password_expiration_duration,omitempty"`
388
389 EnableFailedAttemptsCheck bool `protobuf:"varint,3,opt,name=enable_failed_attempts_check,json=enableFailedAttemptsCheck,proto3" json:"enable_failed_attempts_check,omitempty"`
390
391 Status *PasswordStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
392 }
393
394 func (x *UserPasswordValidationPolicy) Reset() {
395 *x = UserPasswordValidationPolicy{}
396 if protoimpl.UnsafeEnabled {
397 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[4]
398 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
399 ms.StoreMessageInfo(mi)
400 }
401 }
402
403 func (x *UserPasswordValidationPolicy) String() string {
404 return protoimpl.X.MessageStringOf(x)
405 }
406
407 func (*UserPasswordValidationPolicy) ProtoMessage() {}
408
409 func (x *UserPasswordValidationPolicy) ProtoReflect() protoreflect.Message {
410 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[4]
411 if protoimpl.UnsafeEnabled && x != nil {
412 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
413 if ms.LoadMessageInfo() == nil {
414 ms.StoreMessageInfo(mi)
415 }
416 return ms
417 }
418 return mi.MessageOf(x)
419 }
420
421
422 func (*UserPasswordValidationPolicy) Descriptor() ([]byte, []int) {
423 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{4}
424 }
425
426 func (x *UserPasswordValidationPolicy) GetAllowedFailedAttempts() int32 {
427 if x != nil {
428 return x.AllowedFailedAttempts
429 }
430 return 0
431 }
432
433 func (x *UserPasswordValidationPolicy) GetPasswordExpirationDuration() *durationpb.Duration {
434 if x != nil {
435 return x.PasswordExpirationDuration
436 }
437 return nil
438 }
439
440 func (x *UserPasswordValidationPolicy) GetEnableFailedAttemptsCheck() bool {
441 if x != nil {
442 return x.EnableFailedAttemptsCheck
443 }
444 return false
445 }
446
447 func (x *UserPasswordValidationPolicy) GetStatus() *PasswordStatus {
448 if x != nil {
449 return x.Status
450 }
451 return nil
452 }
453
454
455 type PasswordStatus struct {
456 state protoimpl.MessageState
457 sizeCache protoimpl.SizeCache
458 unknownFields protoimpl.UnknownFields
459
460
461 Locked bool `protobuf:"varint,1,opt,name=locked,proto3" json:"locked,omitempty"`
462
463 PasswordExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=password_expiration_time,json=passwordExpirationTime,proto3" json:"password_expiration_time,omitempty"`
464 }
465
466 func (x *PasswordStatus) Reset() {
467 *x = PasswordStatus{}
468 if protoimpl.UnsafeEnabled {
469 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[5]
470 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
471 ms.StoreMessageInfo(mi)
472 }
473 }
474
475 func (x *PasswordStatus) String() string {
476 return protoimpl.X.MessageStringOf(x)
477 }
478
479 func (*PasswordStatus) ProtoMessage() {}
480
481 func (x *PasswordStatus) ProtoReflect() protoreflect.Message {
482 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[5]
483 if protoimpl.UnsafeEnabled && x != nil {
484 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
485 if ms.LoadMessageInfo() == nil {
486 ms.StoreMessageInfo(mi)
487 }
488 return ms
489 }
490 return mi.MessageOf(x)
491 }
492
493
494 func (*PasswordStatus) Descriptor() ([]byte, []int) {
495 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{5}
496 }
497
498 func (x *PasswordStatus) GetLocked() bool {
499 if x != nil {
500 return x.Locked
501 }
502 return false
503 }
504
505 func (x *PasswordStatus) GetPasswordExpirationTime() *timestamppb.Timestamp {
506 if x != nil {
507 return x.PasswordExpirationTime
508 }
509 return nil
510 }
511
512
513 type User struct {
514 state protoimpl.MessageState
515 sizeCache protoimpl.SizeCache
516 unknownFields protoimpl.UnknownFields
517
518
519 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
520
521 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
522
523
524 Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
525
526
527 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
528
529
530
531
532
533 Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"`
534
535
536
537 Instance string `protobuf:"bytes,6,opt,name=instance,proto3" json:"instance,omitempty"`
538
539
540
541 Project string `protobuf:"bytes,7,opt,name=project,proto3" json:"project,omitempty"`
542
543
544 Type User_SqlUserType `protobuf:"varint,8,opt,name=type,proto3,enum=google.cloud.sql.v1beta4.User_SqlUserType" json:"type,omitempty"`
545
546
547
548
549 UserDetails isUser_UserDetails `protobuf_oneof:"user_details"`
550
551 PasswordPolicy *UserPasswordValidationPolicy `protobuf:"bytes,12,opt,name=password_policy,json=passwordPolicy,proto3" json:"password_policy,omitempty"`
552 }
553
554 func (x *User) Reset() {
555 *x = User{}
556 if protoimpl.UnsafeEnabled {
557 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[6]
558 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
559 ms.StoreMessageInfo(mi)
560 }
561 }
562
563 func (x *User) String() string {
564 return protoimpl.X.MessageStringOf(x)
565 }
566
567 func (*User) ProtoMessage() {}
568
569 func (x *User) ProtoReflect() protoreflect.Message {
570 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[6]
571 if protoimpl.UnsafeEnabled && x != nil {
572 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
573 if ms.LoadMessageInfo() == nil {
574 ms.StoreMessageInfo(mi)
575 }
576 return ms
577 }
578 return mi.MessageOf(x)
579 }
580
581
582 func (*User) Descriptor() ([]byte, []int) {
583 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{6}
584 }
585
586 func (x *User) GetKind() string {
587 if x != nil {
588 return x.Kind
589 }
590 return ""
591 }
592
593 func (x *User) GetPassword() string {
594 if x != nil {
595 return x.Password
596 }
597 return ""
598 }
599
600 func (x *User) GetEtag() string {
601 if x != nil {
602 return x.Etag
603 }
604 return ""
605 }
606
607 func (x *User) GetName() string {
608 if x != nil {
609 return x.Name
610 }
611 return ""
612 }
613
614 func (x *User) GetHost() string {
615 if x != nil {
616 return x.Host
617 }
618 return ""
619 }
620
621 func (x *User) GetInstance() string {
622 if x != nil {
623 return x.Instance
624 }
625 return ""
626 }
627
628 func (x *User) GetProject() string {
629 if x != nil {
630 return x.Project
631 }
632 return ""
633 }
634
635 func (x *User) GetType() User_SqlUserType {
636 if x != nil {
637 return x.Type
638 }
639 return User_BUILT_IN
640 }
641
642 func (m *User) GetUserDetails() isUser_UserDetails {
643 if m != nil {
644 return m.UserDetails
645 }
646 return nil
647 }
648
649 func (x *User) GetSqlserverUserDetails() *SqlServerUserDetails {
650 if x, ok := x.GetUserDetails().(*User_SqlserverUserDetails); ok {
651 return x.SqlserverUserDetails
652 }
653 return nil
654 }
655
656 func (x *User) GetPasswordPolicy() *UserPasswordValidationPolicy {
657 if x != nil {
658 return x.PasswordPolicy
659 }
660 return nil
661 }
662
663 type isUser_UserDetails interface {
664 isUser_UserDetails()
665 }
666
667 type User_SqlserverUserDetails struct {
668 SqlserverUserDetails *SqlServerUserDetails `protobuf:"bytes,9,opt,name=sqlserver_user_details,json=sqlserverUserDetails,proto3,oneof"`
669 }
670
671 func (*User_SqlserverUserDetails) isUser_UserDetails() {}
672
673
674 type SqlServerUserDetails struct {
675 state protoimpl.MessageState
676 sizeCache protoimpl.SizeCache
677 unknownFields protoimpl.UnknownFields
678
679
680 Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
681
682 ServerRoles []string `protobuf:"bytes,2,rep,name=server_roles,json=serverRoles,proto3" json:"server_roles,omitempty"`
683 }
684
685 func (x *SqlServerUserDetails) Reset() {
686 *x = SqlServerUserDetails{}
687 if protoimpl.UnsafeEnabled {
688 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[7]
689 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
690 ms.StoreMessageInfo(mi)
691 }
692 }
693
694 func (x *SqlServerUserDetails) String() string {
695 return protoimpl.X.MessageStringOf(x)
696 }
697
698 func (*SqlServerUserDetails) ProtoMessage() {}
699
700 func (x *SqlServerUserDetails) ProtoReflect() protoreflect.Message {
701 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[7]
702 if protoimpl.UnsafeEnabled && x != nil {
703 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
704 if ms.LoadMessageInfo() == nil {
705 ms.StoreMessageInfo(mi)
706 }
707 return ms
708 }
709 return mi.MessageOf(x)
710 }
711
712
713 func (*SqlServerUserDetails) Descriptor() ([]byte, []int) {
714 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{7}
715 }
716
717 func (x *SqlServerUserDetails) GetDisabled() bool {
718 if x != nil {
719 return x.Disabled
720 }
721 return false
722 }
723
724 func (x *SqlServerUserDetails) GetServerRoles() []string {
725 if x != nil {
726 return x.ServerRoles
727 }
728 return nil
729 }
730
731
732 type UsersListResponse struct {
733 state protoimpl.MessageState
734 sizeCache protoimpl.SizeCache
735 unknownFields protoimpl.UnknownFields
736
737
738 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
739
740 Items []*User `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
741
742
743
744 NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
745 }
746
747 func (x *UsersListResponse) Reset() {
748 *x = UsersListResponse{}
749 if protoimpl.UnsafeEnabled {
750 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[8]
751 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
752 ms.StoreMessageInfo(mi)
753 }
754 }
755
756 func (x *UsersListResponse) String() string {
757 return protoimpl.X.MessageStringOf(x)
758 }
759
760 func (*UsersListResponse) ProtoMessage() {}
761
762 func (x *UsersListResponse) ProtoReflect() protoreflect.Message {
763 mi := &file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[8]
764 if protoimpl.UnsafeEnabled && x != nil {
765 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
766 if ms.LoadMessageInfo() == nil {
767 ms.StoreMessageInfo(mi)
768 }
769 return ms
770 }
771 return mi.MessageOf(x)
772 }
773
774
775 func (*UsersListResponse) Descriptor() ([]byte, []int) {
776 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP(), []int{8}
777 }
778
779 func (x *UsersListResponse) GetKind() string {
780 if x != nil {
781 return x.Kind
782 }
783 return ""
784 }
785
786 func (x *UsersListResponse) GetItems() []*User {
787 if x != nil {
788 return x.Items
789 }
790 return nil
791 }
792
793 func (x *UsersListResponse) GetNextPageToken() string {
794 if x != nil {
795 return x.NextPageToken
796 }
797 return ""
798 }
799
800 var File_google_cloud_sql_v1beta4_cloud_sql_users_proto protoreflect.FileDescriptor
801
802 var file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDesc = []byte{
803 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
804 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
805 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
806 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
807 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
808 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
809 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
810 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
811 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
812 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
813 0x74, 0x6f, 0x1a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
814 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2f, 0x63, 0x6c, 0x6f,
815 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
816 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
817 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
818 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
819 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
820 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x75, 0x0a, 0x15, 0x53, 0x71, 0x6c, 0x55, 0x73,
821 0x65, 0x72, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
822 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
823 0x68, 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
824 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
825 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
826 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
827 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x81,
828 0x01, 0x0a, 0x15, 0x53, 0x71, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x49, 0x6e, 0x73, 0x65, 0x72,
829 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74,
830 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74,
831 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
832 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x32,
833 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
834 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e,
835 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x62, 0x6f,
836 0x64, 0x79, 0x22, 0x4b, 0x0a, 0x13, 0x53, 0x71, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x4c, 0x69,
837 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73,
838 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73,
839 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
840 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22,
841 0xae, 0x01, 0x0a, 0x15, 0x53, 0x71, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x55, 0x70, 0x64, 0x61,
842 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x68, 0x6f, 0x73,
843 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x68, 0x6f,
844 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02,
845 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12,
846 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
847 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20,
848 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x32, 0x0a, 0x04,
849 0x62, 0x6f, 0x64, 0x79, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f,
850 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31,
851 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79,
852 0x22, 0xbb, 0x02, 0x0a, 0x1c, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
853 0x64, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63,
854 0x79, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x66, 0x61, 0x69,
855 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01,
856 0x28, 0x05, 0x52, 0x15, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x65,
857 0x64, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x5b, 0x0a, 0x1c, 0x70, 0x61, 0x73,
858 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
859 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
860 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
861 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x70, 0x61, 0x73, 0x73,
862 0x77, 0x6f, 0x72, 0x64, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75,
863 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x1c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
864 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73,
865 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x65, 0x6e,
866 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70,
867 0x74, 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x45, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
868 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
869 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
870 0x61, 0x34, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75,
871 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x7e,
872 0x0a, 0x0e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
873 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
874 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x54, 0x0a, 0x18, 0x70, 0x61, 0x73, 0x73,
875 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
876 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
877 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
878 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x16, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
879 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x96,
880 0x04, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,
881 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70,
882 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
883 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18,
884 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,
885 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
886 0x17, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
887 0x41, 0x01, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74,
888 0x61, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74,
889 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
890 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3e,
891 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67,
892 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e,
893 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x71, 0x6c,
894 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x66,
895 0x0a, 0x16, 0x73, 0x71, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x75, 0x73, 0x65, 0x72,
896 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e,
897 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
898 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x53, 0x71, 0x6c, 0x53, 0x65, 0x72,
899 0x76, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00,
900 0x52, 0x14, 0x73, 0x71, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x44,
901 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x5f, 0x0a, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
902 0x72, 0x64, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32,
903 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
904 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50,
905 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
906 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
907 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x4e, 0x0a, 0x0b, 0x53, 0x71, 0x6c, 0x55, 0x73,
908 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x55, 0x49, 0x4c, 0x54, 0x5f,
909 0x49, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x49, 0x41,
910 0x4d, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4c, 0x4f, 0x55,
911 0x44, 0x5f, 0x49, 0x41, 0x4d, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x41, 0x43,
912 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x02, 0x42, 0x0e, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f,
913 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x55, 0x0a, 0x14, 0x53, 0x71, 0x6c, 0x53, 0x65,
914 0x72, 0x76, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12,
915 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
916 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73,
917 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
918 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x85,
919 0x01, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
920 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01,
921 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d,
922 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
923 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
924 0x61, 0x34, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x26,
925 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
926 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67,
927 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xb3, 0x06, 0x0a, 0x0f, 0x53, 0x71, 0x6c, 0x55, 0x73,
928 0x65, 0x72, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa2, 0x01, 0x0a, 0x06, 0x44,
929 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
930 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34,
931 0x2e, 0x53, 0x71, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
932 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
933 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
934 0x34, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x42, 0x82, 0xd3, 0xe4,
935 0x93, 0x02, 0x3c, 0x2a, 0x3a, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
936 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,
937 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b,
938 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12,
939 0xa8, 0x01, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f,
940 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31,
941 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x53, 0x71, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x49, 0x6e,
942 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f,
943 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76,
944 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
945 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x22, 0x3a, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76,
946 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
947 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
948 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x75,
949 0x73, 0x65, 0x72, 0x73, 0x3a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0xa6, 0x01, 0x0a, 0x04, 0x4c,
950 0x69, 0x73, 0x74, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
951 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x53,
952 0x71, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
953 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
954 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x55, 0x73,
955 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
956 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31,
957 0x62, 0x65, 0x74, 0x61, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,
958 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
959 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x75, 0x73,
960 0x65, 0x72, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2f,
961 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71,
962 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x53, 0x71, 0x6c, 0x55, 0x73, 0x65,
963 0x72, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
964 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
965 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61,
966 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x1a, 0x3a, 0x2f, 0x73,
967 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65,
968 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x69, 0x6e,
969 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
970 0x65, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x1a, 0x7c,
971 0xca, 0x41, 0x17, 0x73, 0x71, 0x6c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
972 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x5f, 0x68, 0x74, 0x74,
973 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
974 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f,
975 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70,
976 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
977 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x71, 0x6c, 0x73,
978 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x71, 0x0a, 0x1c,
979 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
980 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x42, 0x12, 0x43, 0x6c,
981 0x6f, 0x75, 0x64, 0x53, 0x71, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
982 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
983 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
984 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
985 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x34, 0x3b, 0x73, 0x71, 0x6c, 0x62,
986 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
987 }
988
989 var (
990 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescOnce sync.Once
991 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescData = file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDesc
992 )
993
994 func file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescGZIP() []byte {
995 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescOnce.Do(func() {
996 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescData)
997 })
998 return file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDescData
999 }
1000
1001 var file_google_cloud_sql_v1beta4_cloud_sql_users_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1002 var file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
1003 var file_google_cloud_sql_v1beta4_cloud_sql_users_proto_goTypes = []interface{}{
1004 (User_SqlUserType)(0),
1005 (*SqlUsersDeleteRequest)(nil),
1006 (*SqlUsersInsertRequest)(nil),
1007 (*SqlUsersListRequest)(nil),
1008 (*SqlUsersUpdateRequest)(nil),
1009 (*UserPasswordValidationPolicy)(nil),
1010 (*PasswordStatus)(nil),
1011 (*User)(nil),
1012 (*SqlServerUserDetails)(nil),
1013 (*UsersListResponse)(nil),
1014 (*durationpb.Duration)(nil),
1015 (*timestamppb.Timestamp)(nil),
1016 (*Operation)(nil),
1017 }
1018 var file_google_cloud_sql_v1beta4_cloud_sql_users_proto_depIdxs = []int32{
1019 7,
1020 7,
1021 10,
1022 6,
1023 11,
1024 0,
1025 8,
1026 5,
1027 7,
1028 1,
1029 2,
1030 3,
1031 4,
1032 12,
1033 12,
1034 9,
1035 12,
1036 13,
1037 9,
1038 9,
1039 9,
1040 0,
1041 }
1042
1043 func init() { file_google_cloud_sql_v1beta4_cloud_sql_users_proto_init() }
1044 func file_google_cloud_sql_v1beta4_cloud_sql_users_proto_init() {
1045 if File_google_cloud_sql_v1beta4_cloud_sql_users_proto != nil {
1046 return
1047 }
1048 file_google_cloud_sql_v1beta4_cloud_sql_resources_proto_init()
1049 if !protoimpl.UnsafeEnabled {
1050 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1051 switch v := v.(*SqlUsersDeleteRequest); i {
1052 case 0:
1053 return &v.state
1054 case 1:
1055 return &v.sizeCache
1056 case 2:
1057 return &v.unknownFields
1058 default:
1059 return nil
1060 }
1061 }
1062 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1063 switch v := v.(*SqlUsersInsertRequest); i {
1064 case 0:
1065 return &v.state
1066 case 1:
1067 return &v.sizeCache
1068 case 2:
1069 return &v.unknownFields
1070 default:
1071 return nil
1072 }
1073 }
1074 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1075 switch v := v.(*SqlUsersListRequest); i {
1076 case 0:
1077 return &v.state
1078 case 1:
1079 return &v.sizeCache
1080 case 2:
1081 return &v.unknownFields
1082 default:
1083 return nil
1084 }
1085 }
1086 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1087 switch v := v.(*SqlUsersUpdateRequest); i {
1088 case 0:
1089 return &v.state
1090 case 1:
1091 return &v.sizeCache
1092 case 2:
1093 return &v.unknownFields
1094 default:
1095 return nil
1096 }
1097 }
1098 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1099 switch v := v.(*UserPasswordValidationPolicy); i {
1100 case 0:
1101 return &v.state
1102 case 1:
1103 return &v.sizeCache
1104 case 2:
1105 return &v.unknownFields
1106 default:
1107 return nil
1108 }
1109 }
1110 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1111 switch v := v.(*PasswordStatus); i {
1112 case 0:
1113 return &v.state
1114 case 1:
1115 return &v.sizeCache
1116 case 2:
1117 return &v.unknownFields
1118 default:
1119 return nil
1120 }
1121 }
1122 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1123 switch v := v.(*User); i {
1124 case 0:
1125 return &v.state
1126 case 1:
1127 return &v.sizeCache
1128 case 2:
1129 return &v.unknownFields
1130 default:
1131 return nil
1132 }
1133 }
1134 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1135 switch v := v.(*SqlServerUserDetails); i {
1136 case 0:
1137 return &v.state
1138 case 1:
1139 return &v.sizeCache
1140 case 2:
1141 return &v.unknownFields
1142 default:
1143 return nil
1144 }
1145 }
1146 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1147 switch v := v.(*UsersListResponse); i {
1148 case 0:
1149 return &v.state
1150 case 1:
1151 return &v.sizeCache
1152 case 2:
1153 return &v.unknownFields
1154 default:
1155 return nil
1156 }
1157 }
1158 }
1159 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes[6].OneofWrappers = []interface{}{
1160 (*User_SqlserverUserDetails)(nil),
1161 }
1162 type x struct{}
1163 out := protoimpl.TypeBuilder{
1164 File: protoimpl.DescBuilder{
1165 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1166 RawDescriptor: file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDesc,
1167 NumEnums: 1,
1168 NumMessages: 9,
1169 NumExtensions: 0,
1170 NumServices: 1,
1171 },
1172 GoTypes: file_google_cloud_sql_v1beta4_cloud_sql_users_proto_goTypes,
1173 DependencyIndexes: file_google_cloud_sql_v1beta4_cloud_sql_users_proto_depIdxs,
1174 EnumInfos: file_google_cloud_sql_v1beta4_cloud_sql_users_proto_enumTypes,
1175 MessageInfos: file_google_cloud_sql_v1beta4_cloud_sql_users_proto_msgTypes,
1176 }.Build()
1177 File_google_cloud_sql_v1beta4_cloud_sql_users_proto = out.File
1178 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_rawDesc = nil
1179 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_goTypes = nil
1180 file_google_cloud_sql_v1beta4_cloud_sql_users_proto_depIdxs = nil
1181 }
1182
1183
1184 var _ context.Context
1185 var _ grpc.ClientConnInterface
1186
1187
1188
1189 const _ = grpc.SupportPackageIsVersion6
1190
1191
1192
1193
1194 type SqlUsersServiceClient interface {
1195
1196 Delete(ctx context.Context, in *SqlUsersDeleteRequest, opts ...grpc.CallOption) (*Operation, error)
1197
1198 Insert(ctx context.Context, in *SqlUsersInsertRequest, opts ...grpc.CallOption) (*Operation, error)
1199
1200 List(ctx context.Context, in *SqlUsersListRequest, opts ...grpc.CallOption) (*UsersListResponse, error)
1201
1202 Update(ctx context.Context, in *SqlUsersUpdateRequest, opts ...grpc.CallOption) (*Operation, error)
1203 }
1204
1205 type sqlUsersServiceClient struct {
1206 cc grpc.ClientConnInterface
1207 }
1208
1209 func NewSqlUsersServiceClient(cc grpc.ClientConnInterface) SqlUsersServiceClient {
1210 return &sqlUsersServiceClient{cc}
1211 }
1212
1213 func (c *sqlUsersServiceClient) Delete(ctx context.Context, in *SqlUsersDeleteRequest, opts ...grpc.CallOption) (*Operation, error) {
1214 out := new(Operation)
1215 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1beta4.SqlUsersService/Delete", in, out, opts...)
1216 if err != nil {
1217 return nil, err
1218 }
1219 return out, nil
1220 }
1221
1222 func (c *sqlUsersServiceClient) Insert(ctx context.Context, in *SqlUsersInsertRequest, opts ...grpc.CallOption) (*Operation, error) {
1223 out := new(Operation)
1224 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1beta4.SqlUsersService/Insert", in, out, opts...)
1225 if err != nil {
1226 return nil, err
1227 }
1228 return out, nil
1229 }
1230
1231 func (c *sqlUsersServiceClient) List(ctx context.Context, in *SqlUsersListRequest, opts ...grpc.CallOption) (*UsersListResponse, error) {
1232 out := new(UsersListResponse)
1233 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1beta4.SqlUsersService/List", in, out, opts...)
1234 if err != nil {
1235 return nil, err
1236 }
1237 return out, nil
1238 }
1239
1240 func (c *sqlUsersServiceClient) Update(ctx context.Context, in *SqlUsersUpdateRequest, opts ...grpc.CallOption) (*Operation, error) {
1241 out := new(Operation)
1242 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1beta4.SqlUsersService/Update", in, out, opts...)
1243 if err != nil {
1244 return nil, err
1245 }
1246 return out, nil
1247 }
1248
1249
1250 type SqlUsersServiceServer interface {
1251
1252 Delete(context.Context, *SqlUsersDeleteRequest) (*Operation, error)
1253
1254 Insert(context.Context, *SqlUsersInsertRequest) (*Operation, error)
1255
1256 List(context.Context, *SqlUsersListRequest) (*UsersListResponse, error)
1257
1258 Update(context.Context, *SqlUsersUpdateRequest) (*Operation, error)
1259 }
1260
1261
1262 type UnimplementedSqlUsersServiceServer struct {
1263 }
1264
1265 func (*UnimplementedSqlUsersServiceServer) Delete(context.Context, *SqlUsersDeleteRequest) (*Operation, error) {
1266 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
1267 }
1268 func (*UnimplementedSqlUsersServiceServer) Insert(context.Context, *SqlUsersInsertRequest) (*Operation, error) {
1269 return nil, status.Errorf(codes.Unimplemented, "method Insert not implemented")
1270 }
1271 func (*UnimplementedSqlUsersServiceServer) List(context.Context, *SqlUsersListRequest) (*UsersListResponse, error) {
1272 return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
1273 }
1274 func (*UnimplementedSqlUsersServiceServer) Update(context.Context, *SqlUsersUpdateRequest) (*Operation, error) {
1275 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
1276 }
1277
1278 func RegisterSqlUsersServiceServer(s *grpc.Server, srv SqlUsersServiceServer) {
1279 s.RegisterService(&_SqlUsersService_serviceDesc, srv)
1280 }
1281
1282 func _SqlUsersService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1283 in := new(SqlUsersDeleteRequest)
1284 if err := dec(in); err != nil {
1285 return nil, err
1286 }
1287 if interceptor == nil {
1288 return srv.(SqlUsersServiceServer).Delete(ctx, in)
1289 }
1290 info := &grpc.UnaryServerInfo{
1291 Server: srv,
1292 FullMethod: "/google.cloud.sql.v1beta4.SqlUsersService/Delete",
1293 }
1294 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1295 return srv.(SqlUsersServiceServer).Delete(ctx, req.(*SqlUsersDeleteRequest))
1296 }
1297 return interceptor(ctx, in, info, handler)
1298 }
1299
1300 func _SqlUsersService_Insert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1301 in := new(SqlUsersInsertRequest)
1302 if err := dec(in); err != nil {
1303 return nil, err
1304 }
1305 if interceptor == nil {
1306 return srv.(SqlUsersServiceServer).Insert(ctx, in)
1307 }
1308 info := &grpc.UnaryServerInfo{
1309 Server: srv,
1310 FullMethod: "/google.cloud.sql.v1beta4.SqlUsersService/Insert",
1311 }
1312 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1313 return srv.(SqlUsersServiceServer).Insert(ctx, req.(*SqlUsersInsertRequest))
1314 }
1315 return interceptor(ctx, in, info, handler)
1316 }
1317
1318 func _SqlUsersService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1319 in := new(SqlUsersListRequest)
1320 if err := dec(in); err != nil {
1321 return nil, err
1322 }
1323 if interceptor == nil {
1324 return srv.(SqlUsersServiceServer).List(ctx, in)
1325 }
1326 info := &grpc.UnaryServerInfo{
1327 Server: srv,
1328 FullMethod: "/google.cloud.sql.v1beta4.SqlUsersService/List",
1329 }
1330 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1331 return srv.(SqlUsersServiceServer).List(ctx, req.(*SqlUsersListRequest))
1332 }
1333 return interceptor(ctx, in, info, handler)
1334 }
1335
1336 func _SqlUsersService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1337 in := new(SqlUsersUpdateRequest)
1338 if err := dec(in); err != nil {
1339 return nil, err
1340 }
1341 if interceptor == nil {
1342 return srv.(SqlUsersServiceServer).Update(ctx, in)
1343 }
1344 info := &grpc.UnaryServerInfo{
1345 Server: srv,
1346 FullMethod: "/google.cloud.sql.v1beta4.SqlUsersService/Update",
1347 }
1348 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1349 return srv.(SqlUsersServiceServer).Update(ctx, req.(*SqlUsersUpdateRequest))
1350 }
1351 return interceptor(ctx, in, info, handler)
1352 }
1353
1354 var _SqlUsersService_serviceDesc = grpc.ServiceDesc{
1355 ServiceName: "google.cloud.sql.v1beta4.SqlUsersService",
1356 HandlerType: (*SqlUsersServiceServer)(nil),
1357 Methods: []grpc.MethodDesc{
1358 {
1359 MethodName: "Delete",
1360 Handler: _SqlUsersService_Delete_Handler,
1361 },
1362 {
1363 MethodName: "Insert",
1364 Handler: _SqlUsersService_Insert_Handler,
1365 },
1366 {
1367 MethodName: "List",
1368 Handler: _SqlUsersService_List_Handler,
1369 },
1370 {
1371 MethodName: "Update",
1372 Handler: _SqlUsersService_Update_Handler,
1373 },
1374 },
1375 Streams: []grpc.StreamDesc{},
1376 Metadata: "google/cloud/sql/v1beta4/cloud_sql_users.proto",
1377 }
1378
View as plain text