forked from hashicorp/go-kms-wrapping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
github.com.hashicorp.go.kms.wrapping.v2.types.pb.go
1211 lines (1086 loc) · 49.7 KB
/
github.com.hashicorp.go.kms.wrapping.v2.types.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 (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc (unknown)
// source: github.com.hashicorp.go.kms.wrapping.v2.types.proto
package wrapping
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
reflect "reflect"
sync "sync"
)
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)
)
// HmacType defines the hmac algorithm type
type HmacType int32
const (
HmacType_Unknown_HmacType HmacType = 0
HmacType_Sha224 HmacType = 1
HmacType_Sha256 HmacType = 2
HmacType_Sha384 HmacType = 3
HmacType_Sha512 HmacType = 4
)
// Enum value maps for HmacType.
var (
HmacType_name = map[int32]string{
0: "Unknown_HmacType",
1: "Sha224",
2: "Sha256",
3: "Sha384",
4: "Sha512",
}
HmacType_value = map[string]int32{
"Unknown_HmacType": 0,
"Sha224": 1,
"Sha256": 2,
"Sha384": 3,
"Sha512": 4,
}
)
func (x HmacType) Enum() *HmacType {
p := new(HmacType)
*p = x
return p
}
func (x HmacType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HmacType) Descriptor() protoreflect.EnumDescriptor {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[0].Descriptor()
}
func (HmacType) Type() protoreflect.EnumType {
return &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[0]
}
func (x HmacType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HmacType.Descriptor instead.
func (HmacType) EnumDescriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{0}
}
// KeyType defines the key's type
type KeyType int32
const (
KeyType_Unknown_KeyType KeyType = 0
KeyType_Rsa2048 KeyType = 1
KeyType_Rsa3072 KeyType = 2
KeyType_Rsa4096 KeyType = 3
KeyType_Aes256 KeyType = 4
KeyType_EdsaP256 KeyType = 5
KeyType_EdsaP384 KeyType = 6
KeyType_EdsaP521 KeyType = 7
KeyType_HMAC KeyType = 8
KeyType_Ed25519 KeyType = 9
)
// Enum value maps for KeyType.
var (
KeyType_name = map[int32]string{
0: "Unknown_KeyType",
1: "Rsa2048",
2: "Rsa3072",
3: "Rsa4096",
4: "Aes256",
5: "EdsaP256",
6: "EdsaP384",
7: "EdsaP521",
8: "HMAC",
9: "Ed25519",
}
KeyType_value = map[string]int32{
"Unknown_KeyType": 0,
"Rsa2048": 1,
"Rsa3072": 2,
"Rsa4096": 3,
"Aes256": 4,
"EdsaP256": 5,
"EdsaP384": 6,
"EdsaP521": 7,
"HMAC": 8,
"Ed25519": 9,
}
)
func (x KeyType) Enum() *KeyType {
p := new(KeyType)
*p = x
return p
}
func (x KeyType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KeyType) Descriptor() protoreflect.EnumDescriptor {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[1].Descriptor()
}
func (KeyType) Type() protoreflect.EnumType {
return &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[1]
}
func (x KeyType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KeyType.Descriptor instead.
func (KeyType) EnumDescriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{1}
}
type KeyEncoding int32
const (
KeyEncoding_Unknown_KeyEncoding KeyEncoding = 0
KeyEncoding_Pkix KeyEncoding = 1
KeyEncoding_Pkcs8 KeyEncoding = 2
KeyEncoding_Bytes KeyEncoding = 3
)
// Enum value maps for KeyEncoding.
var (
KeyEncoding_name = map[int32]string{
0: "Unknown_KeyEncoding",
1: "Pkix",
2: "Pkcs8",
3: "Bytes",
}
KeyEncoding_value = map[string]int32{
"Unknown_KeyEncoding": 0,
"Pkix": 1,
"Pkcs8": 2,
"Bytes": 3,
}
)
func (x KeyEncoding) Enum() *KeyEncoding {
p := new(KeyEncoding)
*p = x
return p
}
func (x KeyEncoding) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KeyEncoding) Descriptor() protoreflect.EnumDescriptor {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[2].Descriptor()
}
func (KeyEncoding) Type() protoreflect.EnumType {
return &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[2]
}
func (x KeyEncoding) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KeyEncoding.Descriptor instead.
func (KeyEncoding) EnumDescriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{2}
}
// KeyPurpose defines the cryptographic capabilities of a key.
type KeyPurpose int32
const (
KeyPurpose_KeyPurpose_Unknown KeyPurpose = 0
KeyPurpose_Encrypt KeyPurpose = 1
KeyPurpose_Decrypt KeyPurpose = 2
KeyPurpose_Sign KeyPurpose = 3
KeyPurpose_Verify KeyPurpose = 4
KeyPurpose_Wrap KeyPurpose = 5
KeyPurpose_Unwrap KeyPurpose = 6
KeyPurpose_MAC KeyPurpose = 7
)
// Enum value maps for KeyPurpose.
var (
KeyPurpose_name = map[int32]string{
0: "KeyPurpose_Unknown",
1: "Encrypt",
2: "Decrypt",
3: "Sign",
4: "Verify",
5: "Wrap",
6: "Unwrap",
7: "MAC",
}
KeyPurpose_value = map[string]int32{
"KeyPurpose_Unknown": 0,
"Encrypt": 1,
"Decrypt": 2,
"Sign": 3,
"Verify": 4,
"Wrap": 5,
"Unwrap": 6,
"MAC": 7,
}
)
func (x KeyPurpose) Enum() *KeyPurpose {
p := new(KeyPurpose)
*p = x
return p
}
func (x KeyPurpose) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KeyPurpose) Descriptor() protoreflect.EnumDescriptor {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[3].Descriptor()
}
func (KeyPurpose) Type() protoreflect.EnumType {
return &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_enumTypes[3]
}
func (x KeyPurpose) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KeyPurpose.Descriptor instead.
func (KeyPurpose) EnumDescriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{3}
}
// WrapperConfig is the result of a call to SetConfig on a wrapper, returning
// relevant information about the wrapper and its updated configuration
type WrapperConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Metadata map[string]string `protobuf:"bytes,10,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *WrapperConfig) Reset() {
*x = WrapperConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WrapperConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WrapperConfig) ProtoMessage() {}
func (x *WrapperConfig) ProtoReflect() protoreflect.Message {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_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 WrapperConfig.ProtoReflect.Descriptor instead.
func (*WrapperConfig) Descriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{0}
}
func (x *WrapperConfig) GetMetadata() map[string]string {
if x != nil {
return x.Metadata
}
return nil
}
// EnvelopeInfo contains the information necessary to perfom encryption or
// decryption in an envelope fashion
type EnvelopeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Ciphertext is the ciphertext from the envelope
// @gotags: class:"public"
Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty" class:"public"`
// Key is the key used in the envelope
// @gotags: class:"secret"
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty" class:"secret"`
// IV is the initialization value used during encryption in the envelope
// @gotags: class:"secret"
Iv []byte `protobuf:"bytes,3,opt,name=iv,proto3" json:"iv,omitempty" class:"secret"`
}
func (x *EnvelopeInfo) Reset() {
*x = EnvelopeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EnvelopeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvelopeInfo) ProtoMessage() {}
func (x *EnvelopeInfo) ProtoReflect() protoreflect.Message {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_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 EnvelopeInfo.ProtoReflect.Descriptor instead.
func (*EnvelopeInfo) Descriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{1}
}
func (x *EnvelopeInfo) GetCiphertext() []byte {
if x != nil {
return x.Ciphertext
}
return nil
}
func (x *EnvelopeInfo) GetKey() []byte {
if x != nil {
return x.Key
}
return nil
}
func (x *EnvelopeInfo) GetIv() []byte {
if x != nil {
return x.Iv
}
return nil
}
// BlobInfo contains information about the encrypted value along with
// information about the key used to encrypt it
type BlobInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Ciphertext is the encrypted bytes
// @gotags: class:"public"
Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty" class:"public"`
// IV is the initialization value used during encryption
// @gotags: class:"secret"
Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty" class:"secret"`
// HMAC is the bytes of the HMAC, if any
// @gotags: class:"public"
Hmac []byte `protobuf:"bytes,3,opt,name=hmac,proto3" json:"hmac,omitempty" class:"public"`
// Wrapped can be used by the client to indicate whether Ciphertext actually
// contains wrapped data or not. This can be useful if you want to reuse the
// same struct to pass data along before and after wrapping. Deprecated in
// favor of plaintext.
//
// Deprecated: Marked as deprecated in github.com.hashicorp.go.kms.wrapping.v2.types.proto.
Wrapped bool `protobuf:"varint,4,opt,name=wrapped,proto3" json:"wrapped,omitempty"`
// Plaintext can be used to allow the same struct to be used to pass data
// along before and after (un)wrapping.
// @gotags: class:"secret"
Plaintext []byte `protobuf:"bytes,7,opt,name=plaintext,proto3" json:"plaintext,omitempty" class:"secret"`
// KeyInfo contains information about the key that was used to create this value
KeyInfo *KeyInfo `protobuf:"bytes,5,opt,name=key_info,json=keyInfo,proto3" json:"key_info,omitempty"`
// ValuePath can be used by the client to store information about where the
// value came from. Deprecated in favor of client_data.
// @gotags: class:"public"
//
// Deprecated: Marked as deprecated in github.com.hashicorp.go.kms.wrapping.v2.types.proto.
ValuePath string `protobuf:"bytes,6,opt,name=value_path,json=valuePath,proto3" json:"value_path,omitempty" class:"public"`
// ClientData can be used by the client to store extra information, for
// instance, the location/provenance of where an encrypted value came from
// (useful for associating AAD to the encrypted value).
ClientData *structpb.Struct `protobuf:"bytes,8,opt,name=client_data,json=clientData,proto3" json:"client_data,omitempty"`
}
func (x *BlobInfo) Reset() {
*x = BlobInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BlobInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlobInfo) ProtoMessage() {}
func (x *BlobInfo) ProtoReflect() protoreflect.Message {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_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 BlobInfo.ProtoReflect.Descriptor instead.
func (*BlobInfo) Descriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{2}
}
func (x *BlobInfo) GetCiphertext() []byte {
if x != nil {
return x.Ciphertext
}
return nil
}
func (x *BlobInfo) GetIv() []byte {
if x != nil {
return x.Iv
}
return nil
}
func (x *BlobInfo) GetHmac() []byte {
if x != nil {
return x.Hmac
}
return nil
}
// Deprecated: Marked as deprecated in github.com.hashicorp.go.kms.wrapping.v2.types.proto.
func (x *BlobInfo) GetWrapped() bool {
if x != nil {
return x.Wrapped
}
return false
}
func (x *BlobInfo) GetPlaintext() []byte {
if x != nil {
return x.Plaintext
}
return nil
}
func (x *BlobInfo) GetKeyInfo() *KeyInfo {
if x != nil {
return x.KeyInfo
}
return nil
}
// Deprecated: Marked as deprecated in github.com.hashicorp.go.kms.wrapping.v2.types.proto.
func (x *BlobInfo) GetValuePath() string {
if x != nil {
return x.ValuePath
}
return ""
}
func (x *BlobInfo) GetClientData() *structpb.Struct {
if x != nil {
return x.ClientData
}
return nil
}
// KeyInfo contains information regarding which Wrapper key was used to
// encrypt the entry
type KeyInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Mechanism is the method used by the wrapper to encrypt and sign the
// data as defined by the wrapper. (optional)
Mechanism uint64 `protobuf:"varint,1,opt,name=mechanism,proto3" json:"mechanism,omitempty"`
HmacMechanism uint64 `protobuf:"varint,2,opt,name=hmac_mechanism,json=hmacMechanism,proto3" json:"hmac_mechanism,omitempty"`
// This is an opaque ID used by the wrapper to identify the specific key to
// use as defined by the wrapper. This could be a version, key label, or
// something else. (optional)
// @gotags: class:"public"
KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" class:"public"`
// @gotags: class:"public"
HmacKeyId string `protobuf:"bytes,4,opt,name=hmac_key_id,json=hmacKeyId,proto3" json:"hmac_key_id,omitempty" class:"public"`
// These value are used when generating our own data encryption keys
// and encrypting them using the wrapper (optional)
// @gotags: class:"secret"
WrappedKey []byte `protobuf:"bytes,5,opt,name=wrapped_key,json=wrappedKey,proto3" json:"wrapped_key,omitempty" class:"secret"`
// Mechanism specific flags (optional)
Flags uint64 `protobuf:"varint,6,opt,name=flags,proto3" json:"flags,omitempty"`
// The key type (optional)
KeyType KeyType `protobuf:"varint,7,opt,name=key_type,json=keyType,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyType" json:"key_type,omitempty"`
// The key purposes (optional)
KeyPurposes []KeyPurpose `protobuf:"varint,8,rep,packed,name=key_purposes,json=keyPurposes,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyPurpose" json:"key_purposes,omitempty"`
// plaintext key used when generating our own data encryption
// keys (optional)
// @gotags: class:"secret"
Key []byte `protobuf:"bytes,9,opt,name=key,proto3" json:"key,omitempty" class:"secret"`
// encoding of the key (optional)
KeyEncoding KeyEncoding `protobuf:"varint,10,opt,name=key_encoding,json=keyEncoding,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyEncoding" json:"key_encoding,omitempty"`
// encoding of the wrapped_key (optional)
WrappedKeyEncoding KeyEncoding `protobuf:"varint,11,opt,name=wrapped_key_encoding,json=wrappedKeyEncoding,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyEncoding" json:"wrapped_key_encoding,omitempty"`
}
func (x *KeyInfo) Reset() {
*x = KeyInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *KeyInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*KeyInfo) ProtoMessage() {}
func (x *KeyInfo) ProtoReflect() protoreflect.Message {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_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 KeyInfo.ProtoReflect.Descriptor instead.
func (*KeyInfo) Descriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{3}
}
func (x *KeyInfo) GetMechanism() uint64 {
if x != nil {
return x.Mechanism
}
return 0
}
func (x *KeyInfo) GetHmacMechanism() uint64 {
if x != nil {
return x.HmacMechanism
}
return 0
}
func (x *KeyInfo) GetKeyId() string {
if x != nil {
return x.KeyId
}
return ""
}
func (x *KeyInfo) GetHmacKeyId() string {
if x != nil {
return x.HmacKeyId
}
return ""
}
func (x *KeyInfo) GetWrappedKey() []byte {
if x != nil {
return x.WrappedKey
}
return nil
}
func (x *KeyInfo) GetFlags() uint64 {
if x != nil {
return x.Flags
}
return 0
}
func (x *KeyInfo) GetKeyType() KeyType {
if x != nil {
return x.KeyType
}
return KeyType_Unknown_KeyType
}
func (x *KeyInfo) GetKeyPurposes() []KeyPurpose {
if x != nil {
return x.KeyPurposes
}
return nil
}
func (x *KeyInfo) GetKey() []byte {
if x != nil {
return x.Key
}
return nil
}
func (x *KeyInfo) GetKeyEncoding() KeyEncoding {
if x != nil {
return x.KeyEncoding
}
return KeyEncoding_Unknown_KeyEncoding
}
func (x *KeyInfo) GetWrappedKeyEncoding() KeyEncoding {
if x != nil {
return x.WrappedKeyEncoding
}
return KeyEncoding_Unknown_KeyEncoding
}
// Options holds options common to all wrappers
type Options struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The key ID being specified
// @gotags: class:"public"
WithKeyId string `protobuf:"bytes,10,opt,name=with_key_id,json=withKeyId,proto3" json:"with_key_id,omitempty" class:"public"`
// The AAD bytes, if any
// @gotags: class:"secret"
WithAad []byte `protobuf:"bytes,20,opt,name=with_aad,json=withAad,proto3" json:"with_aad,omitempty" class:"secret"`
// @gotags: class:"secret"
WithIv []byte `protobuf:"bytes,12,opt,name=with_iv,json=withIv,proto3" json:"with_iv,omitempty" class:"secret"`
// Wrapper-specific configuration to pass along
WithConfigMap map[string]string `protobuf:"bytes,30,rep,name=with_config_map,json=withConfigMap,proto3" json:"with_config_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The purposes of the key being specified
WithKeyPurposes []KeyPurpose `protobuf:"varint,40,rep,packed,name=with_key_purposes,json=withKeyPurposes,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyPurpose" json:"with_key_purposes,omitempty"`
// The type of the key being specified
WithKeyType KeyType `protobuf:"varint,50,opt,name=with_key_type,json=withKeyType,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyType" json:"with_key_type,omitempty"`
// optional bytes of entropy
// @gotags: class:"secret"
WithRandomBytes []byte `protobuf:"bytes,60,opt,name=with_random_bytes,json=withRandomBytes,proto3" json:"with_random_bytes,omitempty" class:"secret"`
// encoding of the key
WithKeyEncoding KeyEncoding `protobuf:"varint,70,opt,name=with_key_encoding,json=withKeyEncoding,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyEncoding" json:"with_key_encoding,omitempty"`
// encoding of the wrapped_key
WithWrappedKeyEncoding KeyEncoding `protobuf:"varint,80,opt,name=with_wrapped_key_encoding,json=withWrappedKeyEncoding,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.KeyEncoding" json:"with_wrapped_key_encoding,omitempty"`
WithDisallowEnvVars bool `protobuf:"varint,90,opt,name=with_disallow_env_vars,json=withDisallowEnvVars,proto3" json:"with_disallow_env_vars,omitempty"`
// WithoutHmac specifies that an HMAC is not necessary for the mechanism, even if marked as "required"
WithoutHmac bool `protobuf:"varint,100,opt,name=without_hmac,json=withoutHmac,proto3" json:"without_hmac,omitempty"`
}
func (x *Options) Reset() {
*x = Options{}
if protoimpl.UnsafeEnabled {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Options) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Options) ProtoMessage() {}
func (x *Options) ProtoReflect() protoreflect.Message {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_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 Options.ProtoReflect.Descriptor instead.
func (*Options) Descriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{4}
}
func (x *Options) GetWithKeyId() string {
if x != nil {
return x.WithKeyId
}
return ""
}
func (x *Options) GetWithAad() []byte {
if x != nil {
return x.WithAad
}
return nil
}
func (x *Options) GetWithIv() []byte {
if x != nil {
return x.WithIv
}
return nil
}
func (x *Options) GetWithConfigMap() map[string]string {
if x != nil {
return x.WithConfigMap
}
return nil
}
func (x *Options) GetWithKeyPurposes() []KeyPurpose {
if x != nil {
return x.WithKeyPurposes
}
return nil
}
func (x *Options) GetWithKeyType() KeyType {
if x != nil {
return x.WithKeyType
}
return KeyType_Unknown_KeyType
}
func (x *Options) GetWithRandomBytes() []byte {
if x != nil {
return x.WithRandomBytes
}
return nil
}
func (x *Options) GetWithKeyEncoding() KeyEncoding {
if x != nil {
return x.WithKeyEncoding
}
return KeyEncoding_Unknown_KeyEncoding
}
func (x *Options) GetWithWrappedKeyEncoding() KeyEncoding {
if x != nil {
return x.WithWrappedKeyEncoding
}
return KeyEncoding_Unknown_KeyEncoding
}
func (x *Options) GetWithDisallowEnvVars() bool {
if x != nil {
return x.WithDisallowEnvVars
}
return false
}
func (x *Options) GetWithoutHmac() bool {
if x != nil {
return x.WithoutHmac
}
return false
}
// SigInfo contains information about a cryptographic signature
type SigInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// KeyInfo contains information about the key that was used to create this value
KeyInfo *KeyInfo `protobuf:"bytes,10,opt,name=key_info,json=keyInfo,proto3" json:"key_info,omitempty"`
// Signature contains the bytes of the signature
// @gotags: class:"public"
Signature []byte `protobuf:"bytes,20,opt,name=signature,proto3" json:"signature,omitempty" class:"public"`
// HmacType (optional) defines the hmac algorithm used
HmacType *HmacType `protobuf:"varint,30,opt,name=hmac_type,json=hmacType,proto3,enum=github.com.hashicorp.go.kms.wrapping.v2.types.HmacType,oneof" json:"hmac_type,omitempty"`
}
func (x *SigInfo) Reset() {
*x = SigInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SigInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SigInfo) ProtoMessage() {}
func (x *SigInfo) ProtoReflect() protoreflect.Message {
mi := &file_github_com_hashicorp_go_kms_wrapping_v2_types_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 SigInfo.ProtoReflect.Descriptor instead.
func (*SigInfo) Descriptor() ([]byte, []int) {
return file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDescGZIP(), []int{5}
}
func (x *SigInfo) GetKeyInfo() *KeyInfo {
if x != nil {
return x.KeyInfo
}
return nil
}
func (x *SigInfo) GetSignature() []byte {
if x != nil {
return x.Signature
}
return nil
}
func (x *SigInfo) GetHmacType() HmacType {
if x != nil && x.HmacType != nil {
return *x.HmacType
}
return HmacType_Unknown_HmacType
}
var File_github_com_hashicorp_go_kms_wrapping_v2_types_proto protoreflect.FileDescriptor
var file_github_com_hashicorp_go_kms_wrapping_v2_types_proto_rawDesc = []byte{
0x0a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x73,
0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77, 0x72,
0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b,
0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x74,
0x79, 0x70, 0x65, 0x73, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x43, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x12, 0x66, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f,
0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32,
0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x43, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x50, 0x0a, 0x0c, 0x45, 0x6e, 0x76,
0x65, 0x6c, 0x6f, 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x69, 0x70,
0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63,
0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x76, 0x22, 0xba, 0x02, 0x0a, 0x08,
0x42, 0x6c, 0x6f, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x69, 0x70, 0x68,
0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x69,
0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x76, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x76, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6d, 0x61, 0x63,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x6d, 0x61, 0x63, 0x12, 0x1c, 0x0a, 0x07,
0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18,
0x01, 0x52, 0x07, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c,
0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70,
0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x51, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f,
0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72,
0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e,
0x67, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e,
0x66, 0x6f, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0a, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42,
0x02, 0x18, 0x01, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x38,
0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, 0x63, 0x6c,
0x69, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x22, 0xcc, 0x04, 0x0a, 0x07, 0x4b, 0x65, 0x79,
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73,
0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69,
0x73, 0x6d, 0x12, 0x25, 0x0a, 0x0e, 0x68, 0x6d, 0x61, 0x63, 0x5f, 0x6d, 0x65, 0x63, 0x68, 0x61,
0x6e, 0x69, 0x73, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x68, 0x6d, 0x61, 0x63,
0x4d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69, 0x73, 0x6d, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79,
0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64,
0x12, 0x1e, 0x0a, 0x0b, 0x68, 0x6d, 0x61, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x6d, 0x61, 0x63, 0x4b, 0x65, 0x79, 0x49, 0x64,
0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18,
0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x4b, 0x65,
0x79, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04,
0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x51, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74,
0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70,
0x2e, 0x67, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67,
0x2e, 0x76, 0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70,
0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, 0x0a, 0x0c, 0x6b, 0x65,
0x79, 0x5f, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0e,
0x32, 0x39, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61,
0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77,
0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x4b, 0x65, 0x79, 0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x52, 0x0b, 0x6b, 0x65, 0x79,
0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x5d, 0x0a, 0x0c, 0x6b, 0x65,
0x79, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61,
0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77,
0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x6b, 0x65,
0x79, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x6c, 0x0a, 0x14, 0x77, 0x72, 0x61,
0x70, 0x70, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67,
0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76,
0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x64,
0x69, 0x6e, 0x67, 0x52, 0x12, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x45,
0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0xb8, 0x06, 0x0a, 0x07, 0x4f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x5f,
0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x69, 0x74, 0x68, 0x4b, 0x65,
0x79, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x61, 0x61, 0x64, 0x18,
0x14, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x77, 0x69, 0x74, 0x68, 0x41, 0x61, 0x64, 0x12, 0x17,
0x0a, 0x07, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x69, 0x76, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52,
0x06, 0x77, 0x69, 0x74, 0x68, 0x49, 0x76, 0x12, 0x71, 0x0a, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x5f,
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x1e, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x49, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61,
0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77,
0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x77, 0x69, 0x74,
0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x61, 0x70, 0x12, 0x65, 0x0a, 0x11, 0x77, 0x69,
0x74, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x73, 0x18,
0x28, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e,
0x6b, 0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65,
0x52, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x4b, 0x65, 0x79, 0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65,
0x73, 0x12, 0x5a, 0x0a, 0x0d, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x18, 0x32, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e,
0x67, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
0x76, 0x32, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65,
0x52, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a,
0x11, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x5f, 0x62, 0x79, 0x74,
0x65, 0x73, 0x18, 0x3c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x52, 0x61,
0x6e, 0x64, 0x6f, 0x6d, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x66, 0x0a, 0x11, 0x77, 0x69, 0x74,
0x68, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x46,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b,
0x6d, 0x73, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x74,
0x79, 0x70, 0x65, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
0x52, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
0x67, 0x12, 0x75, 0x0a, 0x19, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65,
0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x50,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x67, 0x6f, 0x2e, 0x6b,