/
joinservice.pb.go
3384 lines (3210 loc) · 93.7 KB
/
joinservice.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: teleport/legacy/client/proto/joinservice.proto
package proto
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
types "github.com/gravitational/teleport/api/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// TODO(nklaassen): Document me.
type RegisterUsingIAMMethodRequest struct {
// RegisterUsingTokenRequest holds registration parameters common to all
// join methods.
RegisterUsingTokenRequest *types.RegisterUsingTokenRequest `protobuf:"bytes,1,opt,name=register_using_token_request,json=registerUsingTokenRequest,proto3" json:"register_using_token_request,omitempty"`
// StsIdentityRequest is a signed HTTP request to the AWS
// sts:GetCallerIdentity API endpoint used to prove the AWS identity of a
// joining node. It must include the challenge string as a signed header.
StsIdentityRequest []byte `protobuf:"bytes,2,opt,name=sts_identity_request,json=stsIdentityRequest,proto3" json:"sts_identity_request,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingIAMMethodRequest) Reset() { *m = RegisterUsingIAMMethodRequest{} }
func (m *RegisterUsingIAMMethodRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingIAMMethodRequest) ProtoMessage() {}
func (*RegisterUsingIAMMethodRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{0}
}
func (m *RegisterUsingIAMMethodRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingIAMMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingIAMMethodRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingIAMMethodRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingIAMMethodRequest.Merge(m, src)
}
func (m *RegisterUsingIAMMethodRequest) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingIAMMethodRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingIAMMethodRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingIAMMethodRequest proto.InternalMessageInfo
func (m *RegisterUsingIAMMethodRequest) GetRegisterUsingTokenRequest() *types.RegisterUsingTokenRequest {
if m != nil {
return m.RegisterUsingTokenRequest
}
return nil
}
func (m *RegisterUsingIAMMethodRequest) GetStsIdentityRequest() []byte {
if m != nil {
return m.StsIdentityRequest
}
return nil
}
// RegisterUsingIAMMethodResponse is a stream response and will contain either a
// Challenge or signed Certs to join the cluster.
type RegisterUsingIAMMethodResponse struct {
// Challenge is a crypto-random string that should be included in the signed
// sts:GetCallerIdentity request.
Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
// Certs is the returned signed certs.
Certs *Certs `protobuf:"bytes,2,opt,name=certs,proto3" json:"certs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingIAMMethodResponse) Reset() { *m = RegisterUsingIAMMethodResponse{} }
func (m *RegisterUsingIAMMethodResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingIAMMethodResponse) ProtoMessage() {}
func (*RegisterUsingIAMMethodResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{1}
}
func (m *RegisterUsingIAMMethodResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingIAMMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingIAMMethodResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingIAMMethodResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingIAMMethodResponse.Merge(m, src)
}
func (m *RegisterUsingIAMMethodResponse) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingIAMMethodResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingIAMMethodResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingIAMMethodResponse proto.InternalMessageInfo
func (m *RegisterUsingIAMMethodResponse) GetChallenge() string {
if m != nil {
return m.Challenge
}
return ""
}
func (m *RegisterUsingIAMMethodResponse) GetCerts() *Certs {
if m != nil {
return m.Certs
}
return nil
}
// RegisterUsingAzureMethodRequest is the request for registration via the Azure
// join method.
type RegisterUsingAzureMethodRequest struct {
// RegisterUsingTokenRequest holds registration parameters common to all
// join methods.
RegisterUsingTokenRequest *types.RegisterUsingTokenRequest `protobuf:"bytes,1,opt,name=register_using_token_request,json=registerUsingTokenRequest,proto3" json:"register_using_token_request,omitempty"`
// AttestedData is a signed JSON document from an Azure VM's attested data
// metadata endpoint used to prove the identity of a joining node. It must
// include the challenge string as the nonce.
AttestedData []byte `protobuf:"bytes,2,opt,name=attested_data,json=attestedData,proto3" json:"attested_data,omitempty"`
// AccessToken is a JWT signed by Azure, used to prove the identity of a
// joining node.
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingAzureMethodRequest) Reset() { *m = RegisterUsingAzureMethodRequest{} }
func (m *RegisterUsingAzureMethodRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingAzureMethodRequest) ProtoMessage() {}
func (*RegisterUsingAzureMethodRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{2}
}
func (m *RegisterUsingAzureMethodRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingAzureMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingAzureMethodRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingAzureMethodRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingAzureMethodRequest.Merge(m, src)
}
func (m *RegisterUsingAzureMethodRequest) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingAzureMethodRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingAzureMethodRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingAzureMethodRequest proto.InternalMessageInfo
func (m *RegisterUsingAzureMethodRequest) GetRegisterUsingTokenRequest() *types.RegisterUsingTokenRequest {
if m != nil {
return m.RegisterUsingTokenRequest
}
return nil
}
func (m *RegisterUsingAzureMethodRequest) GetAttestedData() []byte {
if m != nil {
return m.AttestedData
}
return nil
}
func (m *RegisterUsingAzureMethodRequest) GetAccessToken() string {
if m != nil {
return m.AccessToken
}
return ""
}
// RegisterUsingAzureMethodResponse is a stream response and will contain either
// a Challenge or signed Certs to join the cluster.
type RegisterUsingAzureMethodResponse struct {
// Challenge is a crypto-random string that should be included in the signed
// attested data.
Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
// Certs is the returned signed certs.
Certs *Certs `protobuf:"bytes,2,opt,name=certs,proto3" json:"certs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingAzureMethodResponse) Reset() { *m = RegisterUsingAzureMethodResponse{} }
func (m *RegisterUsingAzureMethodResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingAzureMethodResponse) ProtoMessage() {}
func (*RegisterUsingAzureMethodResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{3}
}
func (m *RegisterUsingAzureMethodResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingAzureMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingAzureMethodResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingAzureMethodResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingAzureMethodResponse.Merge(m, src)
}
func (m *RegisterUsingAzureMethodResponse) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingAzureMethodResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingAzureMethodResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingAzureMethodResponse proto.InternalMessageInfo
func (m *RegisterUsingAzureMethodResponse) GetChallenge() string {
if m != nil {
return m.Challenge
}
return ""
}
func (m *RegisterUsingAzureMethodResponse) GetCerts() *Certs {
if m != nil {
return m.Certs
}
return nil
}
// The enrollment challenge response containing the solution returned by
// calling the TPM2.0 `ActivateCredential` command on the client with the
// parameters provided in `TPMEncryptedCredential`.
type RegisterUsingTPMMethodChallengeResponse struct {
// The client's solution to `TPMEncryptedCredential` included in
// `TPMEncryptedCredential` using ActivateCredential.
Solution []byte `protobuf:"bytes,1,opt,name=solution,proto3" json:"solution,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingTPMMethodChallengeResponse) Reset() {
*m = RegisterUsingTPMMethodChallengeResponse{}
}
func (m *RegisterUsingTPMMethodChallengeResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingTPMMethodChallengeResponse) ProtoMessage() {}
func (*RegisterUsingTPMMethodChallengeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{4}
}
func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse.Merge(m, src)
}
func (m *RegisterUsingTPMMethodChallengeResponse) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingTPMMethodChallengeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingTPMMethodChallengeResponse proto.InternalMessageInfo
func (m *RegisterUsingTPMMethodChallengeResponse) GetSolution() []byte {
if m != nil {
return m.Solution
}
return nil
}
// The initial payload sent from the client to the server during a TPM join
// request.
type RegisterUsingTPMMethodInitialRequest struct {
// Holds the registration parameters shared by all join methods.
JoinRequest *types.RegisterUsingTokenRequest `protobuf:"bytes,1,opt,name=join_request,json=joinRequest,proto3" json:"join_request,omitempty"`
// Types that are valid to be assigned to Ek:
// *RegisterUsingTPMMethodInitialRequest_EkCert
// *RegisterUsingTPMMethodInitialRequest_EkKey
Ek isRegisterUsingTPMMethodInitialRequest_Ek `protobuf_oneof:"ek"`
// The attestation key and the parameters necessary to remotely verify it as
// related to the endorsement key.
AttestationParams *TPMAttestationParameters `protobuf:"bytes,4,opt,name=attestation_params,json=attestationParams,proto3" json:"attestation_params,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingTPMMethodInitialRequest) Reset() { *m = RegisterUsingTPMMethodInitialRequest{} }
func (m *RegisterUsingTPMMethodInitialRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingTPMMethodInitialRequest) ProtoMessage() {}
func (*RegisterUsingTPMMethodInitialRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{5}
}
func (m *RegisterUsingTPMMethodInitialRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingTPMMethodInitialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingTPMMethodInitialRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingTPMMethodInitialRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingTPMMethodInitialRequest.Merge(m, src)
}
func (m *RegisterUsingTPMMethodInitialRequest) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingTPMMethodInitialRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingTPMMethodInitialRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingTPMMethodInitialRequest proto.InternalMessageInfo
type isRegisterUsingTPMMethodInitialRequest_Ek interface {
isRegisterUsingTPMMethodInitialRequest_Ek()
MarshalTo([]byte) (int, error)
Size() int
}
type RegisterUsingTPMMethodInitialRequest_EkCert struct {
EkCert []byte `protobuf:"bytes,2,opt,name=ek_cert,json=ekCert,proto3,oneof" json:"ek_cert,omitempty"`
}
type RegisterUsingTPMMethodInitialRequest_EkKey struct {
EkKey []byte `protobuf:"bytes,3,opt,name=ek_key,json=ekKey,proto3,oneof" json:"ek_key,omitempty"`
}
func (*RegisterUsingTPMMethodInitialRequest_EkCert) isRegisterUsingTPMMethodInitialRequest_Ek() {}
func (*RegisterUsingTPMMethodInitialRequest_EkKey) isRegisterUsingTPMMethodInitialRequest_Ek() {}
func (m *RegisterUsingTPMMethodInitialRequest) GetEk() isRegisterUsingTPMMethodInitialRequest_Ek {
if m != nil {
return m.Ek
}
return nil
}
func (m *RegisterUsingTPMMethodInitialRequest) GetJoinRequest() *types.RegisterUsingTokenRequest {
if m != nil {
return m.JoinRequest
}
return nil
}
func (m *RegisterUsingTPMMethodInitialRequest) GetEkCert() []byte {
if x, ok := m.GetEk().(*RegisterUsingTPMMethodInitialRequest_EkCert); ok {
return x.EkCert
}
return nil
}
func (m *RegisterUsingTPMMethodInitialRequest) GetEkKey() []byte {
if x, ok := m.GetEk().(*RegisterUsingTPMMethodInitialRequest_EkKey); ok {
return x.EkKey
}
return nil
}
func (m *RegisterUsingTPMMethodInitialRequest) GetAttestationParams() *TPMAttestationParameters {
if m != nil {
return m.AttestationParams
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*RegisterUsingTPMMethodInitialRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*RegisterUsingTPMMethodInitialRequest_EkCert)(nil),
(*RegisterUsingTPMMethodInitialRequest_EkKey)(nil),
}
}
// RegisterUsingTPMMethodRequest is the streaming request type for the
// RegisterUsingTPMMethod RPC.
type RegisterUsingTPMMethodRequest struct {
// Types that are valid to be assigned to Payload:
// *RegisterUsingTPMMethodRequest_Init
// *RegisterUsingTPMMethodRequest_ChallengeResponse
Payload isRegisterUsingTPMMethodRequest_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingTPMMethodRequest) Reset() { *m = RegisterUsingTPMMethodRequest{} }
func (m *RegisterUsingTPMMethodRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingTPMMethodRequest) ProtoMessage() {}
func (*RegisterUsingTPMMethodRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{6}
}
func (m *RegisterUsingTPMMethodRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingTPMMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingTPMMethodRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingTPMMethodRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingTPMMethodRequest.Merge(m, src)
}
func (m *RegisterUsingTPMMethodRequest) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingTPMMethodRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingTPMMethodRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingTPMMethodRequest proto.InternalMessageInfo
type isRegisterUsingTPMMethodRequest_Payload interface {
isRegisterUsingTPMMethodRequest_Payload()
MarshalTo([]byte) (int, error)
Size() int
}
type RegisterUsingTPMMethodRequest_Init struct {
Init *RegisterUsingTPMMethodInitialRequest `protobuf:"bytes,1,opt,name=init,proto3,oneof" json:"init,omitempty"`
}
type RegisterUsingTPMMethodRequest_ChallengeResponse struct {
ChallengeResponse *RegisterUsingTPMMethodChallengeResponse `protobuf:"bytes,2,opt,name=challenge_response,json=challengeResponse,proto3,oneof" json:"challenge_response,omitempty"`
}
func (*RegisterUsingTPMMethodRequest_Init) isRegisterUsingTPMMethodRequest_Payload() {}
func (*RegisterUsingTPMMethodRequest_ChallengeResponse) isRegisterUsingTPMMethodRequest_Payload() {}
func (m *RegisterUsingTPMMethodRequest) GetPayload() isRegisterUsingTPMMethodRequest_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *RegisterUsingTPMMethodRequest) GetInit() *RegisterUsingTPMMethodInitialRequest {
if x, ok := m.GetPayload().(*RegisterUsingTPMMethodRequest_Init); ok {
return x.Init
}
return nil
}
func (m *RegisterUsingTPMMethodRequest) GetChallengeResponse() *RegisterUsingTPMMethodChallengeResponse {
if x, ok := m.GetPayload().(*RegisterUsingTPMMethodRequest_ChallengeResponse); ok {
return x.ChallengeResponse
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*RegisterUsingTPMMethodRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*RegisterUsingTPMMethodRequest_Init)(nil),
(*RegisterUsingTPMMethodRequest_ChallengeResponse)(nil),
}
}
// RegisterUsingTPMMethodResponse is the streaming response type for the
// RegisterUsingTPMMethod RPC.
type RegisterUsingTPMMethodResponse struct {
// Types that are valid to be assigned to Payload:
// *RegisterUsingTPMMethodResponse_ChallengeRequest
// *RegisterUsingTPMMethodResponse_Certs
Payload isRegisterUsingTPMMethodResponse_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterUsingTPMMethodResponse) Reset() { *m = RegisterUsingTPMMethodResponse{} }
func (m *RegisterUsingTPMMethodResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterUsingTPMMethodResponse) ProtoMessage() {}
func (*RegisterUsingTPMMethodResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{7}
}
func (m *RegisterUsingTPMMethodResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RegisterUsingTPMMethodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RegisterUsingTPMMethodResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RegisterUsingTPMMethodResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterUsingTPMMethodResponse.Merge(m, src)
}
func (m *RegisterUsingTPMMethodResponse) XXX_Size() int {
return m.Size()
}
func (m *RegisterUsingTPMMethodResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterUsingTPMMethodResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterUsingTPMMethodResponse proto.InternalMessageInfo
type isRegisterUsingTPMMethodResponse_Payload interface {
isRegisterUsingTPMMethodResponse_Payload()
MarshalTo([]byte) (int, error)
Size() int
}
type RegisterUsingTPMMethodResponse_ChallengeRequest struct {
ChallengeRequest *TPMEncryptedCredential `protobuf:"bytes,1,opt,name=challenge_request,json=challengeRequest,proto3,oneof" json:"challenge_request,omitempty"`
}
type RegisterUsingTPMMethodResponse_Certs struct {
Certs *Certs `protobuf:"bytes,2,opt,name=certs,proto3,oneof" json:"certs,omitempty"`
}
func (*RegisterUsingTPMMethodResponse_ChallengeRequest) isRegisterUsingTPMMethodResponse_Payload() {}
func (*RegisterUsingTPMMethodResponse_Certs) isRegisterUsingTPMMethodResponse_Payload() {}
func (m *RegisterUsingTPMMethodResponse) GetPayload() isRegisterUsingTPMMethodResponse_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *RegisterUsingTPMMethodResponse) GetChallengeRequest() *TPMEncryptedCredential {
if x, ok := m.GetPayload().(*RegisterUsingTPMMethodResponse_ChallengeRequest); ok {
return x.ChallengeRequest
}
return nil
}
func (m *RegisterUsingTPMMethodResponse) GetCerts() *Certs {
if x, ok := m.GetPayload().(*RegisterUsingTPMMethodResponse_Certs); ok {
return x.Certs
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*RegisterUsingTPMMethodResponse) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*RegisterUsingTPMMethodResponse_ChallengeRequest)(nil),
(*RegisterUsingTPMMethodResponse_Certs)(nil),
}
}
// The attestation key and the parameters necessary to remotely verify it as
// related to the endorsement key.
// See https://pkg.go.dev/github.com/google/go-attestation/attest#AttestationParameters.
// This message excludes the `UseTCSDActivationFormat` field from the link above
// as it is TMP 1.x specific and always false.
type TPMAttestationParameters struct {
// The encoded TPMT_PUBLIC structure containing the attestation public key
// and signing parameters.
Public []byte `protobuf:"bytes,1,opt,name=public,proto3" json:"public,omitempty"`
// The properties of the attestation key, encoded as a TPMS_CREATION_DATA
// structure.
CreateData []byte `protobuf:"bytes,2,opt,name=create_data,json=createData,proto3" json:"create_data,omitempty"`
// An assertion as to the details of the key, encoded as a TPMS_ATTEST
// structure.
CreateAttestation []byte `protobuf:"bytes,3,opt,name=create_attestation,json=createAttestation,proto3" json:"create_attestation,omitempty"`
// A signature of create_attestation, encoded as a TPMT_SIGNATURE structure.
CreateSignature []byte `protobuf:"bytes,4,opt,name=create_signature,json=createSignature,proto3" json:"create_signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TPMAttestationParameters) Reset() { *m = TPMAttestationParameters{} }
func (m *TPMAttestationParameters) String() string { return proto.CompactTextString(m) }
func (*TPMAttestationParameters) ProtoMessage() {}
func (*TPMAttestationParameters) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{8}
}
func (m *TPMAttestationParameters) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TPMAttestationParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TPMAttestationParameters.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TPMAttestationParameters) XXX_Merge(src proto.Message) {
xxx_messageInfo_TPMAttestationParameters.Merge(m, src)
}
func (m *TPMAttestationParameters) XXX_Size() int {
return m.Size()
}
func (m *TPMAttestationParameters) XXX_DiscardUnknown() {
xxx_messageInfo_TPMAttestationParameters.DiscardUnknown(m)
}
var xxx_messageInfo_TPMAttestationParameters proto.InternalMessageInfo
func (m *TPMAttestationParameters) GetPublic() []byte {
if m != nil {
return m.Public
}
return nil
}
func (m *TPMAttestationParameters) GetCreateData() []byte {
if m != nil {
return m.CreateData
}
return nil
}
func (m *TPMAttestationParameters) GetCreateAttestation() []byte {
if m != nil {
return m.CreateAttestation
}
return nil
}
func (m *TPMAttestationParameters) GetCreateSignature() []byte {
if m != nil {
return m.CreateSignature
}
return nil
}
// These values are used by the TPM2.0 `ActivateCredential` command to produce
// the solution which proves possession of the EK and AK.
//
// For a more in-depth description see:
// - https://pkg.go.dev/github.com/google/go-attestation/attest#EncryptedCredential
// - https://trustedcomputinggroup.org/wp-content/uploads/TCG_TPM2_r1p59_Part3_Commands_code_pub.pdf (Heading 12.5.1 "TPM2_ActivateCredential" "General Description")
// - https://github.com/google/go-attestation/blob/v0.4.3/attest/activation.go#L199
// - https://github.com/google/go-tpm/blob/v0.3.3/tpm2/credactivation/credential_activation.go#L61
type TPMEncryptedCredential struct {
// The `credential_blob` parameter to be used with the `ActivateCredential`
// command. This is used with the decrypted value of `secret` in a
// cryptographic process to decrypt the solution.
CredentialBlob []byte `protobuf:"bytes,1,opt,name=credential_blob,json=credentialBlob,proto3" json:"credential_blob,omitempty"`
// The `secret` parameter to be used with `ActivateCredential`. This is a
// seed which can be decrypted with the EK. The decrypted seed is then used
// when decrypting `credential_blob`.
Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TPMEncryptedCredential) Reset() { *m = TPMEncryptedCredential{} }
func (m *TPMEncryptedCredential) String() string { return proto.CompactTextString(m) }
func (*TPMEncryptedCredential) ProtoMessage() {}
func (*TPMEncryptedCredential) Descriptor() ([]byte, []int) {
return fileDescriptor_d7e760ce923b836e, []int{9}
}
func (m *TPMEncryptedCredential) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TPMEncryptedCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TPMEncryptedCredential.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TPMEncryptedCredential) XXX_Merge(src proto.Message) {
xxx_messageInfo_TPMEncryptedCredential.Merge(m, src)
}
func (m *TPMEncryptedCredential) XXX_Size() int {
return m.Size()
}
func (m *TPMEncryptedCredential) XXX_DiscardUnknown() {
xxx_messageInfo_TPMEncryptedCredential.DiscardUnknown(m)
}
var xxx_messageInfo_TPMEncryptedCredential proto.InternalMessageInfo
func (m *TPMEncryptedCredential) GetCredentialBlob() []byte {
if m != nil {
return m.CredentialBlob
}
return nil
}
func (m *TPMEncryptedCredential) GetSecret() []byte {
if m != nil {
return m.Secret
}
return nil
}
func init() {
proto.RegisterType((*RegisterUsingIAMMethodRequest)(nil), "proto.RegisterUsingIAMMethodRequest")
proto.RegisterType((*RegisterUsingIAMMethodResponse)(nil), "proto.RegisterUsingIAMMethodResponse")
proto.RegisterType((*RegisterUsingAzureMethodRequest)(nil), "proto.RegisterUsingAzureMethodRequest")
proto.RegisterType((*RegisterUsingAzureMethodResponse)(nil), "proto.RegisterUsingAzureMethodResponse")
proto.RegisterType((*RegisterUsingTPMMethodChallengeResponse)(nil), "proto.RegisterUsingTPMMethodChallengeResponse")
proto.RegisterType((*RegisterUsingTPMMethodInitialRequest)(nil), "proto.RegisterUsingTPMMethodInitialRequest")
proto.RegisterType((*RegisterUsingTPMMethodRequest)(nil), "proto.RegisterUsingTPMMethodRequest")
proto.RegisterType((*RegisterUsingTPMMethodResponse)(nil), "proto.RegisterUsingTPMMethodResponse")
proto.RegisterType((*TPMAttestationParameters)(nil), "proto.TPMAttestationParameters")
proto.RegisterType((*TPMEncryptedCredential)(nil), "proto.TPMEncryptedCredential")
}
func init() {
proto.RegisterFile("teleport/legacy/client/proto/joinservice.proto", fileDescriptor_d7e760ce923b836e)
}
var fileDescriptor_d7e760ce923b836e = []byte{
// 783 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xc1, 0x6e, 0xdb, 0x46,
0x10, 0x15, 0x5d, 0x5b, 0xae, 0x47, 0x6a, 0x6b, 0x2d, 0x0a, 0x57, 0x16, 0x6c, 0x59, 0x66, 0xdd,
0x5a, 0x45, 0x51, 0xc9, 0x50, 0x7f, 0xa0, 0x92, 0x6a, 0x40, 0x6e, 0xe3, 0xc0, 0xa0, 0x9d, 0x43,
0x72, 0x21, 0x56, 0xd4, 0x40, 0xde, 0x88, 0x26, 0x99, 0xdd, 0x95, 0x01, 0xe5, 0x67, 0xf2, 0x05,
0xb9, 0xe5, 0x23, 0x72, 0x08, 0x82, 0x1c, 0xf2, 0x01, 0x81, 0xff, 0x21, 0xf7, 0x80, 0xbb, 0x4b,
0x89, 0xa2, 0x25, 0x3b, 0x01, 0x82, 0x5c, 0x48, 0xec, 0xcc, 0xdb, 0x99, 0x79, 0x6f, 0x66, 0x77,
0xa1, 0x21, 0xd1, 0xc7, 0x28, 0xe4, 0xb2, 0xe9, 0xe3, 0x90, 0x7a, 0x93, 0xa6, 0xe7, 0x33, 0x0c,
0x64, 0x33, 0xe2, 0xa1, 0x0c, 0x9b, 0x4f, 0x43, 0x16, 0x08, 0xe4, 0xd7, 0xcc, 0xc3, 0x86, 0xb2,
0x90, 0x35, 0xf5, 0xab, 0xd4, 0xef, 0xdc, 0xe6, 0x21, 0x97, 0x42, 0x6f, 0xa8, 0xec, 0x67, 0x91,
0x72, 0x12, 0xa1, 0xd0, 0x5f, 0x0d, 0xb1, 0x5f, 0x59, 0xb0, 0xeb, 0xe0, 0x90, 0x09, 0x89, 0x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, 0xb8, 0x98, 0xdb,
0xad, 0xe1, 0x8e, 0x53, 0x75, 0xfe, 0x79, 0x7d, 0x53, 0xb5, 0xde, 0xdd, 0x54, 0xad, 0x0f, 0x37,
0x55, 0xeb, 0x49, 0x6b, 0xc8, 0xe4, 0xe5, 0xb8, 0xdf, 0xf0, 0xc2, 0xab, 0xe6, 0x90, 0xd3, 0x6b,
0xa6, 0x47, 0x80, 0xfa, 0xcd, 0xe9, 0x6b, 0x4d, 0x23, 0x36, 0xf7, 0xa8, 0xf7, 0xf3, 0xea, 0xf7,
0xf7, 0xa7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x5a, 0x2e, 0x2f, 0x32, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// JoinServiceClient is the client API for JoinService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type JoinServiceClient interface {
// RegisterUsingIAMMethod is used to register a new node to the cluster using
// the IAM join method.
RegisterUsingIAMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingIAMMethodClient, error)
// RegisterUsingAzureMethod is used to register a new node to the cluster
// using the Azure join method.
RegisterUsingAzureMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingAzureMethodClient, error)
// RegisterUsingTPMMethod allows registration of a new agent or Bot to the
// cluster using a known TPM.
RegisterUsingTPMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingTPMMethodClient, error)
}
type joinServiceClient struct {
cc *grpc.ClientConn
}
func NewJoinServiceClient(cc *grpc.ClientConn) JoinServiceClient {
return &joinServiceClient{cc}
}
func (c *joinServiceClient) RegisterUsingIAMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingIAMMethodClient, error) {
stream, err := c.cc.NewStream(ctx, &_JoinService_serviceDesc.Streams[0], "/proto.JoinService/RegisterUsingIAMMethod", opts...)
if err != nil {
return nil, err
}
x := &joinServiceRegisterUsingIAMMethodClient{stream}
return x, nil
}
type JoinService_RegisterUsingIAMMethodClient interface {
Send(*RegisterUsingIAMMethodRequest) error
Recv() (*RegisterUsingIAMMethodResponse, error)
grpc.ClientStream
}
type joinServiceRegisterUsingIAMMethodClient struct {
grpc.ClientStream
}
func (x *joinServiceRegisterUsingIAMMethodClient) Send(m *RegisterUsingIAMMethodRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *joinServiceRegisterUsingIAMMethodClient) Recv() (*RegisterUsingIAMMethodResponse, error) {
m := new(RegisterUsingIAMMethodResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *joinServiceClient) RegisterUsingAzureMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingAzureMethodClient, error) {
stream, err := c.cc.NewStream(ctx, &_JoinService_serviceDesc.Streams[1], "/proto.JoinService/RegisterUsingAzureMethod", opts...)
if err != nil {
return nil, err
}
x := &joinServiceRegisterUsingAzureMethodClient{stream}
return x, nil
}
type JoinService_RegisterUsingAzureMethodClient interface {
Send(*RegisterUsingAzureMethodRequest) error
Recv() (*RegisterUsingAzureMethodResponse, error)
grpc.ClientStream
}
type joinServiceRegisterUsingAzureMethodClient struct {
grpc.ClientStream
}
func (x *joinServiceRegisterUsingAzureMethodClient) Send(m *RegisterUsingAzureMethodRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *joinServiceRegisterUsingAzureMethodClient) Recv() (*RegisterUsingAzureMethodResponse, error) {
m := new(RegisterUsingAzureMethodResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *joinServiceClient) RegisterUsingTPMMethod(ctx context.Context, opts ...grpc.CallOption) (JoinService_RegisterUsingTPMMethodClient, error) {
stream, err := c.cc.NewStream(ctx, &_JoinService_serviceDesc.Streams[2], "/proto.JoinService/RegisterUsingTPMMethod", opts...)
if err != nil {
return nil, err
}
x := &joinServiceRegisterUsingTPMMethodClient{stream}
return x, nil
}
type JoinService_RegisterUsingTPMMethodClient interface {
Send(*RegisterUsingTPMMethodRequest) error
Recv() (*RegisterUsingTPMMethodResponse, error)
grpc.ClientStream
}
type joinServiceRegisterUsingTPMMethodClient struct {
grpc.ClientStream
}
func (x *joinServiceRegisterUsingTPMMethodClient) Send(m *RegisterUsingTPMMethodRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *joinServiceRegisterUsingTPMMethodClient) Recv() (*RegisterUsingTPMMethodResponse, error) {
m := new(RegisterUsingTPMMethodResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// JoinServiceServer is the server API for JoinService service.
type JoinServiceServer interface {
// RegisterUsingIAMMethod is used to register a new node to the cluster using
// the IAM join method.
RegisterUsingIAMMethod(JoinService_RegisterUsingIAMMethodServer) error
// RegisterUsingAzureMethod is used to register a new node to the cluster
// using the Azure join method.
RegisterUsingAzureMethod(JoinService_RegisterUsingAzureMethodServer) error
// RegisterUsingTPMMethod allows registration of a new agent or Bot to the
// cluster using a known TPM.
RegisterUsingTPMMethod(JoinService_RegisterUsingTPMMethodServer) error
}
// UnimplementedJoinServiceServer can be embedded to have forward compatible implementations.
type UnimplementedJoinServiceServer struct {
}
func (*UnimplementedJoinServiceServer) RegisterUsingIAMMethod(srv JoinService_RegisterUsingIAMMethodServer) error {
return status.Errorf(codes.Unimplemented, "method RegisterUsingIAMMethod not implemented")
}
func (*UnimplementedJoinServiceServer) RegisterUsingAzureMethod(srv JoinService_RegisterUsingAzureMethodServer) error {
return status.Errorf(codes.Unimplemented, "method RegisterUsingAzureMethod not implemented")
}
func (*UnimplementedJoinServiceServer) RegisterUsingTPMMethod(srv JoinService_RegisterUsingTPMMethodServer) error {
return status.Errorf(codes.Unimplemented, "method RegisterUsingTPMMethod not implemented")
}
func RegisterJoinServiceServer(s *grpc.Server, srv JoinServiceServer) {
s.RegisterService(&_JoinService_serviceDesc, srv)