/
ekm_service.pb.go
executable file
·1965 lines (1792 loc) · 88.7 KB
/
ekm_service.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/cloud/kms/v1/ekm_service.proto
package kmspb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// [KeyManagementMode][google.cloud.kms.v1.EkmConnection.KeyManagementMode]
// describes who can perform control plane cryptographic operations using this
// [EkmConnection][google.cloud.kms.v1.EkmConnection].
type EkmConnection_KeyManagementMode int32
const (
// Not specified.
EkmConnection_KEY_MANAGEMENT_MODE_UNSPECIFIED EkmConnection_KeyManagementMode = 0
// EKM-side key management operations on
// [CryptoKeys][google.cloud.kms.v1.CryptoKey] created with this
// [EkmConnection][google.cloud.kms.v1.EkmConnection] must be initiated from
// the EKM directly and cannot be performed from Cloud KMS. This means that:
// * When creating a
// [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] associated with
// this
//
// [EkmConnection][google.cloud.kms.v1.EkmConnection], the caller must
// supply the key path of pre-existing external key material that will be
// linked to the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
// - Destruction of external key material cannot be requested via the
// Cloud KMS API and must be performed directly in the EKM.
// - Automatic rotation of key material is not supported.
EkmConnection_MANUAL EkmConnection_KeyManagementMode = 1
// All [CryptoKeys][google.cloud.kms.v1.CryptoKey] created with this
// [EkmConnection][google.cloud.kms.v1.EkmConnection] use EKM-side key
// management operations initiated from Cloud KMS. This means that:
// * When a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
// associated with this [EkmConnection][google.cloud.kms.v1.EkmConnection]
// is
//
// created, the EKM automatically generates new key material and a new
// key path. The caller cannot supply the key path of pre-existing
// external key material.
// - Destruction of external key material associated with this
// [EkmConnection][google.cloud.kms.v1.EkmConnection] can be requested by
// calling [DestroyCryptoKeyVersion][EkmService.DestroyCryptoKeyVersion].
// - Automatic rotation of key material is supported.
EkmConnection_CLOUD_KMS EkmConnection_KeyManagementMode = 2
)
// Enum value maps for EkmConnection_KeyManagementMode.
var (
EkmConnection_KeyManagementMode_name = map[int32]string{
0: "KEY_MANAGEMENT_MODE_UNSPECIFIED",
1: "MANUAL",
2: "CLOUD_KMS",
}
EkmConnection_KeyManagementMode_value = map[string]int32{
"KEY_MANAGEMENT_MODE_UNSPECIFIED": 0,
"MANUAL": 1,
"CLOUD_KMS": 2,
}
)
func (x EkmConnection_KeyManagementMode) Enum() *EkmConnection_KeyManagementMode {
p := new(EkmConnection_KeyManagementMode)
*p = x
return p
}
func (x EkmConnection_KeyManagementMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EkmConnection_KeyManagementMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_kms_v1_ekm_service_proto_enumTypes[0].Descriptor()
}
func (EkmConnection_KeyManagementMode) Type() protoreflect.EnumType {
return &file_google_cloud_kms_v1_ekm_service_proto_enumTypes[0]
}
func (x EkmConnection_KeyManagementMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EkmConnection_KeyManagementMode.Descriptor instead.
func (EkmConnection_KeyManagementMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{8, 0}
}
// Request message for
// [EkmService.ListEkmConnections][google.cloud.kms.v1.EkmService.ListEkmConnections].
type ListEkmConnectionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the location associated with the
// [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
// `projects/*/locations/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Optional limit on the number of
// [EkmConnections][google.cloud.kms.v1.EkmConnection] to include in the
// response. Further [EkmConnections][google.cloud.kms.v1.EkmConnection] can
// subsequently be obtained by including the
// [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token]
// in a subsequent request. If unspecified, the server will pick an
// appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. Optional pagination token, returned earlier via
// [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Only include resources that match the filter in the response. For
// more information, see
// [Sorting and filtering list
// results](https://cloud.google.com/kms/docs/sorting-and-filtering).
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Specify how the results should be sorted. If not specified, the
// results will be sorted in the default order. For more information, see
// [Sorting and filtering list
// results](https://cloud.google.com/kms/docs/sorting-and-filtering).
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
}
func (x *ListEkmConnectionsRequest) Reset() {
*x = ListEkmConnectionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEkmConnectionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEkmConnectionsRequest) ProtoMessage() {}
func (x *ListEkmConnectionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListEkmConnectionsRequest.ProtoReflect.Descriptor instead.
func (*ListEkmConnectionsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{0}
}
func (x *ListEkmConnectionsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListEkmConnectionsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListEkmConnectionsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListEkmConnectionsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListEkmConnectionsRequest) GetOrderBy() string {
if x != nil {
return x.OrderBy
}
return ""
}
// Response message for
// [EkmService.ListEkmConnections][google.cloud.kms.v1.EkmService.ListEkmConnections].
type ListEkmConnectionsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
EkmConnections []*EkmConnection `protobuf:"bytes,1,rep,name=ekm_connections,json=ekmConnections,proto3" json:"ekm_connections,omitempty"`
// A token to retrieve next page of results. Pass this value in
// [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
// to retrieve the next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
// that matched the query.
TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
}
func (x *ListEkmConnectionsResponse) Reset() {
*x = ListEkmConnectionsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEkmConnectionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEkmConnectionsResponse) ProtoMessage() {}
func (x *ListEkmConnectionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListEkmConnectionsResponse.ProtoReflect.Descriptor instead.
func (*ListEkmConnectionsResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{1}
}
func (x *ListEkmConnectionsResponse) GetEkmConnections() []*EkmConnection {
if x != nil {
return x.EkmConnections
}
return nil
}
func (x *ListEkmConnectionsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
func (x *ListEkmConnectionsResponse) GetTotalSize() int32 {
if x != nil {
return x.TotalSize
}
return 0
}
// Request message for
// [EkmService.GetEkmConnection][google.cloud.kms.v1.EkmService.GetEkmConnection].
type GetEkmConnectionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
// [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetEkmConnectionRequest) Reset() {
*x = GetEkmConnectionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetEkmConnectionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetEkmConnectionRequest) ProtoMessage() {}
func (x *GetEkmConnectionRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetEkmConnectionRequest.ProtoReflect.Descriptor instead.
func (*GetEkmConnectionRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{2}
}
func (x *GetEkmConnectionRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Request message for
// [EkmService.CreateEkmConnection][google.cloud.kms.v1.EkmService.CreateEkmConnection].
type CreateEkmConnectionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the location associated with the
// [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
// `projects/*/locations/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. It must be unique within a location and match the regular
// expression `[a-zA-Z0-9_-]{1,63}`.
EkmConnectionId string `protobuf:"bytes,2,opt,name=ekm_connection_id,json=ekmConnectionId,proto3" json:"ekm_connection_id,omitempty"`
// Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
// initial field values.
EkmConnection *EkmConnection `protobuf:"bytes,3,opt,name=ekm_connection,json=ekmConnection,proto3" json:"ekm_connection,omitempty"`
}
func (x *CreateEkmConnectionRequest) Reset() {
*x = CreateEkmConnectionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateEkmConnectionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateEkmConnectionRequest) ProtoMessage() {}
func (x *CreateEkmConnectionRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateEkmConnectionRequest.ProtoReflect.Descriptor instead.
func (*CreateEkmConnectionRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{3}
}
func (x *CreateEkmConnectionRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateEkmConnectionRequest) GetEkmConnectionId() string {
if x != nil {
return x.EkmConnectionId
}
return ""
}
func (x *CreateEkmConnectionRequest) GetEkmConnection() *EkmConnection {
if x != nil {
return x.EkmConnection
}
return nil
}
// Request message for
// [EkmService.UpdateEkmConnection][google.cloud.kms.v1.EkmService.UpdateEkmConnection].
type UpdateEkmConnectionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
// values.
EkmConnection *EkmConnection `protobuf:"bytes,1,opt,name=ekm_connection,json=ekmConnection,proto3" json:"ekm_connection,omitempty"`
// Required. List of fields to be updated in this request.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateEkmConnectionRequest) Reset() {
*x = UpdateEkmConnectionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateEkmConnectionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateEkmConnectionRequest) ProtoMessage() {}
func (x *UpdateEkmConnectionRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateEkmConnectionRequest.ProtoReflect.Descriptor instead.
func (*UpdateEkmConnectionRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{4}
}
func (x *UpdateEkmConnectionRequest) GetEkmConnection() *EkmConnection {
if x != nil {
return x.EkmConnection
}
return nil
}
func (x *UpdateEkmConnectionRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// Request message for
// [EkmService.GetEkmConfig][google.cloud.kms.v1.EkmService.GetEkmConfig].
type GetEkmConfigRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The [name][google.cloud.kms.v1.EkmConfig.name] of the
// [EkmConfig][google.cloud.kms.v1.EkmConfig] to get.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetEkmConfigRequest) Reset() {
*x = GetEkmConfigRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetEkmConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetEkmConfigRequest) ProtoMessage() {}
func (x *GetEkmConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetEkmConfigRequest.ProtoReflect.Descriptor instead.
func (*GetEkmConfigRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{5}
}
func (x *GetEkmConfigRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Request message for
// [EkmService.UpdateEkmConfig][google.cloud.kms.v1.EkmService.UpdateEkmConfig].
type UpdateEkmConfigRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. [EkmConfig][google.cloud.kms.v1.EkmConfig] with updated values.
EkmConfig *EkmConfig `protobuf:"bytes,1,opt,name=ekm_config,json=ekmConfig,proto3" json:"ekm_config,omitempty"`
// Required. List of fields to be updated in this request.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateEkmConfigRequest) Reset() {
*x = UpdateEkmConfigRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateEkmConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateEkmConfigRequest) ProtoMessage() {}
func (x *UpdateEkmConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateEkmConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateEkmConfigRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateEkmConfigRequest) GetEkmConfig() *EkmConfig {
if x != nil {
return x.EkmConfig
}
return nil
}
func (x *UpdateEkmConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// A [Certificate][google.cloud.kms.v1.Certificate] represents an X.509
// certificate used to authenticate HTTPS connections to EKM replicas.
type Certificate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The raw certificate bytes in DER format.
RawDer []byte `protobuf:"bytes,1,opt,name=raw_der,json=rawDer,proto3" json:"raw_der,omitempty"`
// Output only. True if the certificate was parsed successfully.
Parsed bool `protobuf:"varint,2,opt,name=parsed,proto3" json:"parsed,omitempty"`
// Output only. The issuer distinguished name in RFC 2253 format. Only present
// if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
// Output only. The subject distinguished name in RFC 2253 format. Only
// present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
// Output only. The subject Alternative DNS names. Only present if
// [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
SubjectAlternativeDnsNames []string `protobuf:"bytes,5,rep,name=subject_alternative_dns_names,json=subjectAlternativeDnsNames,proto3" json:"subject_alternative_dns_names,omitempty"`
// Output only. The certificate is not valid before this time. Only present if
// [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
NotBeforeTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=not_before_time,json=notBeforeTime,proto3" json:"not_before_time,omitempty"`
// Output only. The certificate is not valid after this time. Only present if
// [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
NotAfterTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=not_after_time,json=notAfterTime,proto3" json:"not_after_time,omitempty"`
// Output only. The certificate serial number as a hex string. Only present if
// [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
SerialNumber string `protobuf:"bytes,8,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
// Output only. The SHA-256 certificate fingerprint as a hex string. Only
// present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
Sha256Fingerprint string `protobuf:"bytes,9,opt,name=sha256_fingerprint,json=sha256Fingerprint,proto3" json:"sha256_fingerprint,omitempty"`
}
func (x *Certificate) Reset() {
*x = Certificate{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Certificate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Certificate) ProtoMessage() {}
func (x *Certificate) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
func (*Certificate) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{7}
}
func (x *Certificate) GetRawDer() []byte {
if x != nil {
return x.RawDer
}
return nil
}
func (x *Certificate) GetParsed() bool {
if x != nil {
return x.Parsed
}
return false
}
func (x *Certificate) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *Certificate) GetSubject() string {
if x != nil {
return x.Subject
}
return ""
}
func (x *Certificate) GetSubjectAlternativeDnsNames() []string {
if x != nil {
return x.SubjectAlternativeDnsNames
}
return nil
}
func (x *Certificate) GetNotBeforeTime() *timestamppb.Timestamp {
if x != nil {
return x.NotBeforeTime
}
return nil
}
func (x *Certificate) GetNotAfterTime() *timestamppb.Timestamp {
if x != nil {
return x.NotAfterTime
}
return nil
}
func (x *Certificate) GetSerialNumber() string {
if x != nil {
return x.SerialNumber
}
return ""
}
func (x *Certificate) GetSha256Fingerprint() string {
if x != nil {
return x.Sha256Fingerprint
}
return ""
}
// An [EkmConnection][google.cloud.kms.v1.EkmConnection] represents an
// individual EKM connection. It can be used for creating
// [CryptoKeys][google.cloud.kms.v1.CryptoKey] and
// [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] with a
// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
// [EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC], as well as
// performing cryptographic operations using keys created within the
// [EkmConnection][google.cloud.kms.v1.EkmConnection].
type EkmConnection struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The resource name for the
// [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
// `projects/*/locations/*/ekmConnections/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time at which the
// [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// A list of
// [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
// the EKM can be reached. There should be one ServiceResolver per EKM
// replica. Currently, only a single
// [ServiceResolver][google.cloud.kms.v1.EkmConnection.ServiceResolver] is
// supported.
ServiceResolvers []*EkmConnection_ServiceResolver `protobuf:"bytes,3,rep,name=service_resolvers,json=serviceResolvers,proto3" json:"service_resolvers,omitempty"`
// Optional. Etag of the currently stored
// [EkmConnection][google.cloud.kms.v1.EkmConnection].
Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. Describes who can perform control plane operations on the EKM. If
// unset, this defaults to
// [MANUAL][google.cloud.kms.v1.EkmConnection.KeyManagementMode.MANUAL].
KeyManagementMode EkmConnection_KeyManagementMode `protobuf:"varint,6,opt,name=key_management_mode,json=keyManagementMode,proto3,enum=google.cloud.kms.v1.EkmConnection_KeyManagementMode" json:"key_management_mode,omitempty"`
// Optional. Identifies the EKM Crypto Space that this
// [EkmConnection][google.cloud.kms.v1.EkmConnection] maps to. Note: This
// field is required if
// [KeyManagementMode][google.cloud.kms.v1.EkmConnection.KeyManagementMode] is
// [CLOUD_KMS][google.cloud.kms.v1.EkmConnection.KeyManagementMode.CLOUD_KMS].
CryptoSpacePath string `protobuf:"bytes,7,opt,name=crypto_space_path,json=cryptoSpacePath,proto3" json:"crypto_space_path,omitempty"`
}
func (x *EkmConnection) Reset() {
*x = EkmConnection{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EkmConnection) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EkmConnection) ProtoMessage() {}
func (x *EkmConnection) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EkmConnection.ProtoReflect.Descriptor instead.
func (*EkmConnection) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{8}
}
func (x *EkmConnection) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *EkmConnection) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *EkmConnection) GetServiceResolvers() []*EkmConnection_ServiceResolver {
if x != nil {
return x.ServiceResolvers
}
return nil
}
func (x *EkmConnection) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
func (x *EkmConnection) GetKeyManagementMode() EkmConnection_KeyManagementMode {
if x != nil {
return x.KeyManagementMode
}
return EkmConnection_KEY_MANAGEMENT_MODE_UNSPECIFIED
}
func (x *EkmConnection) GetCryptoSpacePath() string {
if x != nil {
return x.CryptoSpacePath
}
return ""
}
// An [EkmConfig][google.cloud.kms.v1.EkmConfig] is a singleton resource that
// represents configuration parameters that apply to all
// [CryptoKeys][google.cloud.kms.v1.CryptoKey] and
// [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] with a
// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
// [EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC] in a given
// project and location.
type EkmConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The resource name for the
// [EkmConfig][google.cloud.kms.v1.EkmConfig] in the format
// `projects/*/locations/*/ekmConfig`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Resource name of the default
// [EkmConnection][google.cloud.kms.v1.EkmConnection]. Setting this field to
// the empty string removes the default.
DefaultEkmConnection string `protobuf:"bytes,2,opt,name=default_ekm_connection,json=defaultEkmConnection,proto3" json:"default_ekm_connection,omitempty"`
}
func (x *EkmConfig) Reset() {
*x = EkmConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EkmConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EkmConfig) ProtoMessage() {}
func (x *EkmConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EkmConfig.ProtoReflect.Descriptor instead.
func (*EkmConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{9}
}
func (x *EkmConfig) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *EkmConfig) GetDefaultEkmConnection() string {
if x != nil {
return x.DefaultEkmConnection
}
return ""
}
// Request message for
// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity].
type VerifyConnectivityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
// [EkmConnection][google.cloud.kms.v1.EkmConnection] to verify.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *VerifyConnectivityRequest) Reset() {
*x = VerifyConnectivityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VerifyConnectivityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyConnectivityRequest) ProtoMessage() {}
func (x *VerifyConnectivityRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VerifyConnectivityRequest.ProtoReflect.Descriptor instead.
func (*VerifyConnectivityRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{10}
}
func (x *VerifyConnectivityRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Response message for
// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity].
type VerifyConnectivityResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *VerifyConnectivityResponse) Reset() {
*x = VerifyConnectivityResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VerifyConnectivityResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyConnectivityResponse) ProtoMessage() {}
func (x *VerifyConnectivityResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_kms_v1_ekm_service_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VerifyConnectivityResponse.ProtoReflect.Descriptor instead.
func (*VerifyConnectivityResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_kms_v1_ekm_service_proto_rawDescGZIP(), []int{11}
}
// A [ServiceResolver][google.cloud.kms.v1.EkmConnection.ServiceResolver]
// represents an EKM replica that can be reached within an
// [EkmConnection][google.cloud.kms.v1.EkmConnection].
type EkmConnection_ServiceResolver struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache