Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/supervisor-api/go/token.pb.go
2498 views
1
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by protoc-gen-go. DO NOT EDIT.
6
// versions:
7
// protoc-gen-go v1.28.1
8
// protoc v3.20.1
9
// source: token.proto
10
11
package api
12
13
import (
14
_ "google.golang.org/genproto/googleapis/api/annotations"
15
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
16
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
17
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
18
reflect "reflect"
19
sync "sync"
20
)
21
22
const (
23
// Verify that this generated code is sufficiently up-to-date.
24
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
25
// Verify that runtime/protoimpl is sufficiently up-to-date.
26
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
27
)
28
29
type TokenReuse int32
30
31
const (
32
// REUSE_NEVER means the token can never be re-used.
33
// This mode only makes sense when providing a token in response to a request.
34
TokenReuse_REUSE_NEVER TokenReuse = 0
35
// REUSE_EXACTLY means the token can only be reused when the requested scopes
36
// exactly match those of the token.
37
TokenReuse_REUSE_EXACTLY TokenReuse = 1
38
// REUSE_WHEN_POSSIBLE means the token can be reused when the requested scopes
39
// are a subset of the token's scopes.
40
TokenReuse_REUSE_WHEN_POSSIBLE TokenReuse = 2
41
)
42
43
// Enum value maps for TokenReuse.
44
var (
45
TokenReuse_name = map[int32]string{
46
0: "REUSE_NEVER",
47
1: "REUSE_EXACTLY",
48
2: "REUSE_WHEN_POSSIBLE",
49
}
50
TokenReuse_value = map[string]int32{
51
"REUSE_NEVER": 0,
52
"REUSE_EXACTLY": 1,
53
"REUSE_WHEN_POSSIBLE": 2,
54
}
55
)
56
57
func (x TokenReuse) Enum() *TokenReuse {
58
p := new(TokenReuse)
59
*p = x
60
return p
61
}
62
63
func (x TokenReuse) String() string {
64
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
65
}
66
67
func (TokenReuse) Descriptor() protoreflect.EnumDescriptor {
68
return file_token_proto_enumTypes[0].Descriptor()
69
}
70
71
func (TokenReuse) Type() protoreflect.EnumType {
72
return &file_token_proto_enumTypes[0]
73
}
74
75
func (x TokenReuse) Number() protoreflect.EnumNumber {
76
return protoreflect.EnumNumber(x)
77
}
78
79
// Deprecated: Use TokenReuse.Descriptor instead.
80
func (TokenReuse) EnumDescriptor() ([]byte, []int) {
81
return file_token_proto_rawDescGZIP(), []int{0}
82
}
83
84
type GetTokenRequest struct {
85
state protoimpl.MessageState
86
sizeCache protoimpl.SizeCache
87
unknownFields protoimpl.UnknownFields
88
89
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
90
Scope []string `protobuf:"bytes,2,rep,name=scope,proto3" json:"scope,omitempty"`
91
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
92
Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
93
}
94
95
func (x *GetTokenRequest) Reset() {
96
*x = GetTokenRequest{}
97
if protoimpl.UnsafeEnabled {
98
mi := &file_token_proto_msgTypes[0]
99
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100
ms.StoreMessageInfo(mi)
101
}
102
}
103
104
func (x *GetTokenRequest) String() string {
105
return protoimpl.X.MessageStringOf(x)
106
}
107
108
func (*GetTokenRequest) ProtoMessage() {}
109
110
func (x *GetTokenRequest) ProtoReflect() protoreflect.Message {
111
mi := &file_token_proto_msgTypes[0]
112
if protoimpl.UnsafeEnabled && x != nil {
113
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114
if ms.LoadMessageInfo() == nil {
115
ms.StoreMessageInfo(mi)
116
}
117
return ms
118
}
119
return mi.MessageOf(x)
120
}
121
122
// Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.
123
func (*GetTokenRequest) Descriptor() ([]byte, []int) {
124
return file_token_proto_rawDescGZIP(), []int{0}
125
}
126
127
func (x *GetTokenRequest) GetHost() string {
128
if x != nil {
129
return x.Host
130
}
131
return ""
132
}
133
134
func (x *GetTokenRequest) GetScope() []string {
135
if x != nil {
136
return x.Scope
137
}
138
return nil
139
}
140
141
func (x *GetTokenRequest) GetDescription() string {
142
if x != nil {
143
return x.Description
144
}
145
return ""
146
}
147
148
func (x *GetTokenRequest) GetKind() string {
149
if x != nil {
150
return x.Kind
151
}
152
return ""
153
}
154
155
type GetTokenResponse struct {
156
state protoimpl.MessageState
157
sizeCache protoimpl.SizeCache
158
unknownFields protoimpl.UnknownFields
159
160
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
161
// * The username of the account associated with the token.
162
User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
163
Scope []string `protobuf:"bytes,3,rep,name=scope,proto3" json:"scope,omitempty"`
164
}
165
166
func (x *GetTokenResponse) Reset() {
167
*x = GetTokenResponse{}
168
if protoimpl.UnsafeEnabled {
169
mi := &file_token_proto_msgTypes[1]
170
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
171
ms.StoreMessageInfo(mi)
172
}
173
}
174
175
func (x *GetTokenResponse) String() string {
176
return protoimpl.X.MessageStringOf(x)
177
}
178
179
func (*GetTokenResponse) ProtoMessage() {}
180
181
func (x *GetTokenResponse) ProtoReflect() protoreflect.Message {
182
mi := &file_token_proto_msgTypes[1]
183
if protoimpl.UnsafeEnabled && x != nil {
184
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
185
if ms.LoadMessageInfo() == nil {
186
ms.StoreMessageInfo(mi)
187
}
188
return ms
189
}
190
return mi.MessageOf(x)
191
}
192
193
// Deprecated: Use GetTokenResponse.ProtoReflect.Descriptor instead.
194
func (*GetTokenResponse) Descriptor() ([]byte, []int) {
195
return file_token_proto_rawDescGZIP(), []int{1}
196
}
197
198
func (x *GetTokenResponse) GetToken() string {
199
if x != nil {
200
return x.Token
201
}
202
return ""
203
}
204
205
func (x *GetTokenResponse) GetUser() string {
206
if x != nil {
207
return x.User
208
}
209
return ""
210
}
211
212
func (x *GetTokenResponse) GetScope() []string {
213
if x != nil {
214
return x.Scope
215
}
216
return nil
217
}
218
219
type SetTokenRequest struct {
220
state protoimpl.MessageState
221
sizeCache protoimpl.SizeCache
222
unknownFields protoimpl.UnknownFields
223
224
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
225
Scope []string `protobuf:"bytes,2,rep,name=scope,proto3" json:"scope,omitempty"`
226
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
227
ExpiryDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiry_date,json=expiryDate,proto3" json:"expiry_date,omitempty"`
228
Reuse TokenReuse `protobuf:"varint,5,opt,name=reuse,proto3,enum=supervisor.TokenReuse" json:"reuse,omitempty"`
229
Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"`
230
}
231
232
func (x *SetTokenRequest) Reset() {
233
*x = SetTokenRequest{}
234
if protoimpl.UnsafeEnabled {
235
mi := &file_token_proto_msgTypes[2]
236
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
237
ms.StoreMessageInfo(mi)
238
}
239
}
240
241
func (x *SetTokenRequest) String() string {
242
return protoimpl.X.MessageStringOf(x)
243
}
244
245
func (*SetTokenRequest) ProtoMessage() {}
246
247
func (x *SetTokenRequest) ProtoReflect() protoreflect.Message {
248
mi := &file_token_proto_msgTypes[2]
249
if protoimpl.UnsafeEnabled && x != nil {
250
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
251
if ms.LoadMessageInfo() == nil {
252
ms.StoreMessageInfo(mi)
253
}
254
return ms
255
}
256
return mi.MessageOf(x)
257
}
258
259
// Deprecated: Use SetTokenRequest.ProtoReflect.Descriptor instead.
260
func (*SetTokenRequest) Descriptor() ([]byte, []int) {
261
return file_token_proto_rawDescGZIP(), []int{2}
262
}
263
264
func (x *SetTokenRequest) GetHost() string {
265
if x != nil {
266
return x.Host
267
}
268
return ""
269
}
270
271
func (x *SetTokenRequest) GetScope() []string {
272
if x != nil {
273
return x.Scope
274
}
275
return nil
276
}
277
278
func (x *SetTokenRequest) GetToken() string {
279
if x != nil {
280
return x.Token
281
}
282
return ""
283
}
284
285
func (x *SetTokenRequest) GetExpiryDate() *timestamppb.Timestamp {
286
if x != nil {
287
return x.ExpiryDate
288
}
289
return nil
290
}
291
292
func (x *SetTokenRequest) GetReuse() TokenReuse {
293
if x != nil {
294
return x.Reuse
295
}
296
return TokenReuse_REUSE_NEVER
297
}
298
299
func (x *SetTokenRequest) GetKind() string {
300
if x != nil {
301
return x.Kind
302
}
303
return ""
304
}
305
306
type SetTokenResponse struct {
307
state protoimpl.MessageState
308
sizeCache protoimpl.SizeCache
309
unknownFields protoimpl.UnknownFields
310
}
311
312
func (x *SetTokenResponse) Reset() {
313
*x = SetTokenResponse{}
314
if protoimpl.UnsafeEnabled {
315
mi := &file_token_proto_msgTypes[3]
316
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
317
ms.StoreMessageInfo(mi)
318
}
319
}
320
321
func (x *SetTokenResponse) String() string {
322
return protoimpl.X.MessageStringOf(x)
323
}
324
325
func (*SetTokenResponse) ProtoMessage() {}
326
327
func (x *SetTokenResponse) ProtoReflect() protoreflect.Message {
328
mi := &file_token_proto_msgTypes[3]
329
if protoimpl.UnsafeEnabled && x != nil {
330
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
331
if ms.LoadMessageInfo() == nil {
332
ms.StoreMessageInfo(mi)
333
}
334
return ms
335
}
336
return mi.MessageOf(x)
337
}
338
339
// Deprecated: Use SetTokenResponse.ProtoReflect.Descriptor instead.
340
func (*SetTokenResponse) Descriptor() ([]byte, []int) {
341
return file_token_proto_rawDescGZIP(), []int{3}
342
}
343
344
type ClearTokenRequest struct {
345
state protoimpl.MessageState
346
sizeCache protoimpl.SizeCache
347
unknownFields protoimpl.UnknownFields
348
349
// Types that are assignable to Token:
350
//
351
// *ClearTokenRequest_Value
352
// *ClearTokenRequest_All
353
Token isClearTokenRequest_Token `protobuf_oneof:"token"`
354
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
355
}
356
357
func (x *ClearTokenRequest) Reset() {
358
*x = ClearTokenRequest{}
359
if protoimpl.UnsafeEnabled {
360
mi := &file_token_proto_msgTypes[4]
361
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362
ms.StoreMessageInfo(mi)
363
}
364
}
365
366
func (x *ClearTokenRequest) String() string {
367
return protoimpl.X.MessageStringOf(x)
368
}
369
370
func (*ClearTokenRequest) ProtoMessage() {}
371
372
func (x *ClearTokenRequest) ProtoReflect() protoreflect.Message {
373
mi := &file_token_proto_msgTypes[4]
374
if protoimpl.UnsafeEnabled && x != nil {
375
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
376
if ms.LoadMessageInfo() == nil {
377
ms.StoreMessageInfo(mi)
378
}
379
return ms
380
}
381
return mi.MessageOf(x)
382
}
383
384
// Deprecated: Use ClearTokenRequest.ProtoReflect.Descriptor instead.
385
func (*ClearTokenRequest) Descriptor() ([]byte, []int) {
386
return file_token_proto_rawDescGZIP(), []int{4}
387
}
388
389
func (m *ClearTokenRequest) GetToken() isClearTokenRequest_Token {
390
if m != nil {
391
return m.Token
392
}
393
return nil
394
}
395
396
func (x *ClearTokenRequest) GetValue() string {
397
if x, ok := x.GetToken().(*ClearTokenRequest_Value); ok {
398
return x.Value
399
}
400
return ""
401
}
402
403
func (x *ClearTokenRequest) GetAll() bool {
404
if x, ok := x.GetToken().(*ClearTokenRequest_All); ok {
405
return x.All
406
}
407
return false
408
}
409
410
func (x *ClearTokenRequest) GetKind() string {
411
if x != nil {
412
return x.Kind
413
}
414
return ""
415
}
416
417
type isClearTokenRequest_Token interface {
418
isClearTokenRequest_Token()
419
}
420
421
type ClearTokenRequest_Value struct {
422
Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
423
}
424
425
type ClearTokenRequest_All struct {
426
All bool `protobuf:"varint,2,opt,name=all,proto3,oneof"`
427
}
428
429
func (*ClearTokenRequest_Value) isClearTokenRequest_Token() {}
430
431
func (*ClearTokenRequest_All) isClearTokenRequest_Token() {}
432
433
type ClearTokenResponse struct {
434
state protoimpl.MessageState
435
sizeCache protoimpl.SizeCache
436
unknownFields protoimpl.UnknownFields
437
}
438
439
func (x *ClearTokenResponse) Reset() {
440
*x = ClearTokenResponse{}
441
if protoimpl.UnsafeEnabled {
442
mi := &file_token_proto_msgTypes[5]
443
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
444
ms.StoreMessageInfo(mi)
445
}
446
}
447
448
func (x *ClearTokenResponse) String() string {
449
return protoimpl.X.MessageStringOf(x)
450
}
451
452
func (*ClearTokenResponse) ProtoMessage() {}
453
454
func (x *ClearTokenResponse) ProtoReflect() protoreflect.Message {
455
mi := &file_token_proto_msgTypes[5]
456
if protoimpl.UnsafeEnabled && x != nil {
457
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
458
if ms.LoadMessageInfo() == nil {
459
ms.StoreMessageInfo(mi)
460
}
461
return ms
462
}
463
return mi.MessageOf(x)
464
}
465
466
// Deprecated: Use ClearTokenResponse.ProtoReflect.Descriptor instead.
467
func (*ClearTokenResponse) Descriptor() ([]byte, []int) {
468
return file_token_proto_rawDescGZIP(), []int{5}
469
}
470
471
type ProvideTokenRequest struct {
472
state protoimpl.MessageState
473
sizeCache protoimpl.SizeCache
474
unknownFields protoimpl.UnknownFields
475
476
// Types that are assignable to Message:
477
//
478
// *ProvideTokenRequest_Registration
479
// *ProvideTokenRequest_Answer
480
Message isProvideTokenRequest_Message `protobuf_oneof:"message"`
481
}
482
483
func (x *ProvideTokenRequest) Reset() {
484
*x = ProvideTokenRequest{}
485
if protoimpl.UnsafeEnabled {
486
mi := &file_token_proto_msgTypes[6]
487
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
488
ms.StoreMessageInfo(mi)
489
}
490
}
491
492
func (x *ProvideTokenRequest) String() string {
493
return protoimpl.X.MessageStringOf(x)
494
}
495
496
func (*ProvideTokenRequest) ProtoMessage() {}
497
498
func (x *ProvideTokenRequest) ProtoReflect() protoreflect.Message {
499
mi := &file_token_proto_msgTypes[6]
500
if protoimpl.UnsafeEnabled && x != nil {
501
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
502
if ms.LoadMessageInfo() == nil {
503
ms.StoreMessageInfo(mi)
504
}
505
return ms
506
}
507
return mi.MessageOf(x)
508
}
509
510
// Deprecated: Use ProvideTokenRequest.ProtoReflect.Descriptor instead.
511
func (*ProvideTokenRequest) Descriptor() ([]byte, []int) {
512
return file_token_proto_rawDescGZIP(), []int{6}
513
}
514
515
func (m *ProvideTokenRequest) GetMessage() isProvideTokenRequest_Message {
516
if m != nil {
517
return m.Message
518
}
519
return nil
520
}
521
522
func (x *ProvideTokenRequest) GetRegistration() *ProvideTokenRequest_RegisterProvider {
523
if x, ok := x.GetMessage().(*ProvideTokenRequest_Registration); ok {
524
return x.Registration
525
}
526
return nil
527
}
528
529
func (x *ProvideTokenRequest) GetAnswer() *SetTokenRequest {
530
if x, ok := x.GetMessage().(*ProvideTokenRequest_Answer); ok {
531
return x.Answer
532
}
533
return nil
534
}
535
536
type isProvideTokenRequest_Message interface {
537
isProvideTokenRequest_Message()
538
}
539
540
type ProvideTokenRequest_Registration struct {
541
Registration *ProvideTokenRequest_RegisterProvider `protobuf:"bytes,1,opt,name=registration,proto3,oneof"`
542
}
543
544
type ProvideTokenRequest_Answer struct {
545
Answer *SetTokenRequest `protobuf:"bytes,2,opt,name=answer,proto3,oneof"`
546
}
547
548
func (*ProvideTokenRequest_Registration) isProvideTokenRequest_Message() {}
549
550
func (*ProvideTokenRequest_Answer) isProvideTokenRequest_Message() {}
551
552
type ProvideTokenResponse struct {
553
state protoimpl.MessageState
554
sizeCache protoimpl.SizeCache
555
unknownFields protoimpl.UnknownFields
556
557
Request *GetTokenRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
558
}
559
560
func (x *ProvideTokenResponse) Reset() {
561
*x = ProvideTokenResponse{}
562
if protoimpl.UnsafeEnabled {
563
mi := &file_token_proto_msgTypes[7]
564
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
565
ms.StoreMessageInfo(mi)
566
}
567
}
568
569
func (x *ProvideTokenResponse) String() string {
570
return protoimpl.X.MessageStringOf(x)
571
}
572
573
func (*ProvideTokenResponse) ProtoMessage() {}
574
575
func (x *ProvideTokenResponse) ProtoReflect() protoreflect.Message {
576
mi := &file_token_proto_msgTypes[7]
577
if protoimpl.UnsafeEnabled && x != nil {
578
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
579
if ms.LoadMessageInfo() == nil {
580
ms.StoreMessageInfo(mi)
581
}
582
return ms
583
}
584
return mi.MessageOf(x)
585
}
586
587
// Deprecated: Use ProvideTokenResponse.ProtoReflect.Descriptor instead.
588
func (*ProvideTokenResponse) Descriptor() ([]byte, []int) {
589
return file_token_proto_rawDescGZIP(), []int{7}
590
}
591
592
func (x *ProvideTokenResponse) GetRequest() *GetTokenRequest {
593
if x != nil {
594
return x.Request
595
}
596
return nil
597
}
598
599
type ProvideTokenRequest_RegisterProvider struct {
600
state protoimpl.MessageState
601
sizeCache protoimpl.SizeCache
602
unknownFields protoimpl.UnknownFields
603
604
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
605
}
606
607
func (x *ProvideTokenRequest_RegisterProvider) Reset() {
608
*x = ProvideTokenRequest_RegisterProvider{}
609
if protoimpl.UnsafeEnabled {
610
mi := &file_token_proto_msgTypes[8]
611
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
612
ms.StoreMessageInfo(mi)
613
}
614
}
615
616
func (x *ProvideTokenRequest_RegisterProvider) String() string {
617
return protoimpl.X.MessageStringOf(x)
618
}
619
620
func (*ProvideTokenRequest_RegisterProvider) ProtoMessage() {}
621
622
func (x *ProvideTokenRequest_RegisterProvider) ProtoReflect() protoreflect.Message {
623
mi := &file_token_proto_msgTypes[8]
624
if protoimpl.UnsafeEnabled && x != nil {
625
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
626
if ms.LoadMessageInfo() == nil {
627
ms.StoreMessageInfo(mi)
628
}
629
return ms
630
}
631
return mi.MessageOf(x)
632
}
633
634
// Deprecated: Use ProvideTokenRequest_RegisterProvider.ProtoReflect.Descriptor instead.
635
func (*ProvideTokenRequest_RegisterProvider) Descriptor() ([]byte, []int) {
636
return file_token_proto_rawDescGZIP(), []int{6, 0}
637
}
638
639
func (x *ProvideTokenRequest_RegisterProvider) GetKind() string {
640
if x != nil {
641
return x.Kind
642
}
643
return ""
644
}
645
646
var File_token_proto protoreflect.FileDescriptor
647
648
var file_token_proto_rawDesc = []byte{
649
0x0a, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x73,
650
0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
651
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
652
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
653
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
654
0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54,
655
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68,
656
0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12,
657
0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
658
0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
659
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
660
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,
661
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x52, 0x0a, 0x10, 0x47,
662
0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
663
0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
664
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20,
665
0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f,
666
0x70, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x22,
667
0xd0, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
668
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
669
0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65,
670
0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x14, 0x0a,
671
0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
672
0x6b, 0x65, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x64, 0x61,
673
0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
674
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
675
0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x44, 0x61, 0x74, 0x65,
676
0x12, 0x2c, 0x0a, 0x05, 0x72, 0x65, 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,
677
0x16, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x54, 0x6f, 0x6b,
678
0x65, 0x6e, 0x52, 0x65, 0x75, 0x73, 0x65, 0x52, 0x05, 0x72, 0x65, 0x75, 0x73, 0x65, 0x12, 0x12,
679
0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69,
680
0x6e, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
681
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x11, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54,
682
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x76,
683
0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61,
684
0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
685
0x48, 0x00, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,
686
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x74,
687
0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b,
688
0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd7, 0x01, 0x0a, 0x13, 0x50,
689
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
690
0x73, 0x74, 0x12, 0x56, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,
691
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,
692
0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b,
693
0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
694
0x65, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65,
695
0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6e,
696
0x73, 0x77, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x75, 0x70,
697
0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
698
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65,
699
0x72, 0x1a, 0x26, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f,
700
0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20,
701
0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73,
702
0x73, 0x61, 0x67, 0x65, 0x22, 0x4d, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54,
703
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x07,
704
0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e,
705
0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f,
706
0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75,
707
0x65, 0x73, 0x74, 0x2a, 0x49, 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x75, 0x73,
708
0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x55, 0x53, 0x45, 0x5f, 0x4e, 0x45, 0x56, 0x45, 0x52,
709
0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x55, 0x53, 0x45, 0x5f, 0x45, 0x58, 0x41, 0x43,
710
0x54, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x55, 0x53, 0x45, 0x5f, 0x57,
711
0x48, 0x45, 0x4e, 0x5f, 0x50, 0x4f, 0x53, 0x53, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x32, 0xdb,
712
0x03, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
713
0x6e, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x2e, 0x73, 0x75,
714
0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65,
715
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,
716
0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
717
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f,
718
0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e, 0x64, 0x7d,
719
0x2f, 0x7b, 0x68, 0x6f, 0x73, 0x74, 0x7d, 0x2f, 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x7d, 0x12,
720
0x69, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x2e, 0x73, 0x75,
721
0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65,
722
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,
723
0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
724
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17,
725
0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e, 0x64, 0x7d,
726
0x2f, 0x7b, 0x68, 0x6f, 0x73, 0x74, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x96, 0x01, 0x0a, 0x0a, 0x43,
727
0x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x2e, 0x73, 0x75, 0x70, 0x65,
728
0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b, 0x65,
729
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,
730
0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
731
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43,
732
0x2a, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e,
733
0x64, 0x7d, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x5a, 0x27, 0x2a, 0x25, 0x2f, 0x76,
734
0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x7b, 0x6b, 0x69, 0x6e, 0x64, 0x7d, 0x2f, 0x63,
735
0x6c, 0x65, 0x61, 0x72, 0x2f, 0x61, 0x6c, 0x6c, 0x2f, 0x7b, 0x61, 0x6c, 0x6c, 0x3d, 0x74, 0x72,
736
0x75, 0x65, 0x7d, 0x12, 0x57, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f,
737
0x6b, 0x65, 0x6e, 0x12, 0x1f, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72,
738
0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
739
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f,
740
0x72, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
741
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x46, 0x0a, 0x18,
742
0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76,
743
0x69, 0x73, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
744
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67,
745
0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72,
746
0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
747
}
748
749
var (
750
file_token_proto_rawDescOnce sync.Once
751
file_token_proto_rawDescData = file_token_proto_rawDesc
752
)
753
754
func file_token_proto_rawDescGZIP() []byte {
755
file_token_proto_rawDescOnce.Do(func() {
756
file_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_token_proto_rawDescData)
757
})
758
return file_token_proto_rawDescData
759
}
760
761
var file_token_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
762
var file_token_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
763
var file_token_proto_goTypes = []interface{}{
764
(TokenReuse)(0), // 0: supervisor.TokenReuse
765
(*GetTokenRequest)(nil), // 1: supervisor.GetTokenRequest
766
(*GetTokenResponse)(nil), // 2: supervisor.GetTokenResponse
767
(*SetTokenRequest)(nil), // 3: supervisor.SetTokenRequest
768
(*SetTokenResponse)(nil), // 4: supervisor.SetTokenResponse
769
(*ClearTokenRequest)(nil), // 5: supervisor.ClearTokenRequest
770
(*ClearTokenResponse)(nil), // 6: supervisor.ClearTokenResponse
771
(*ProvideTokenRequest)(nil), // 7: supervisor.ProvideTokenRequest
772
(*ProvideTokenResponse)(nil), // 8: supervisor.ProvideTokenResponse
773
(*ProvideTokenRequest_RegisterProvider)(nil), // 9: supervisor.ProvideTokenRequest.RegisterProvider
774
(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
775
}
776
var file_token_proto_depIdxs = []int32{
777
10, // 0: supervisor.SetTokenRequest.expiry_date:type_name -> google.protobuf.Timestamp
778
0, // 1: supervisor.SetTokenRequest.reuse:type_name -> supervisor.TokenReuse
779
9, // 2: supervisor.ProvideTokenRequest.registration:type_name -> supervisor.ProvideTokenRequest.RegisterProvider
780
3, // 3: supervisor.ProvideTokenRequest.answer:type_name -> supervisor.SetTokenRequest
781
1, // 4: supervisor.ProvideTokenResponse.request:type_name -> supervisor.GetTokenRequest
782
1, // 5: supervisor.TokenService.GetToken:input_type -> supervisor.GetTokenRequest
783
3, // 6: supervisor.TokenService.SetToken:input_type -> supervisor.SetTokenRequest
784
5, // 7: supervisor.TokenService.ClearToken:input_type -> supervisor.ClearTokenRequest
785
7, // 8: supervisor.TokenService.ProvideToken:input_type -> supervisor.ProvideTokenRequest
786
2, // 9: supervisor.TokenService.GetToken:output_type -> supervisor.GetTokenResponse
787
4, // 10: supervisor.TokenService.SetToken:output_type -> supervisor.SetTokenResponse
788
6, // 11: supervisor.TokenService.ClearToken:output_type -> supervisor.ClearTokenResponse
789
8, // 12: supervisor.TokenService.ProvideToken:output_type -> supervisor.ProvideTokenResponse
790
9, // [9:13] is the sub-list for method output_type
791
5, // [5:9] is the sub-list for method input_type
792
5, // [5:5] is the sub-list for extension type_name
793
5, // [5:5] is the sub-list for extension extendee
794
0, // [0:5] is the sub-list for field type_name
795
}
796
797
func init() { file_token_proto_init() }
798
func file_token_proto_init() {
799
if File_token_proto != nil {
800
return
801
}
802
if !protoimpl.UnsafeEnabled {
803
file_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
804
switch v := v.(*GetTokenRequest); i {
805
case 0:
806
return &v.state
807
case 1:
808
return &v.sizeCache
809
case 2:
810
return &v.unknownFields
811
default:
812
return nil
813
}
814
}
815
file_token_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
816
switch v := v.(*GetTokenResponse); i {
817
case 0:
818
return &v.state
819
case 1:
820
return &v.sizeCache
821
case 2:
822
return &v.unknownFields
823
default:
824
return nil
825
}
826
}
827
file_token_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
828
switch v := v.(*SetTokenRequest); i {
829
case 0:
830
return &v.state
831
case 1:
832
return &v.sizeCache
833
case 2:
834
return &v.unknownFields
835
default:
836
return nil
837
}
838
}
839
file_token_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
840
switch v := v.(*SetTokenResponse); i {
841
case 0:
842
return &v.state
843
case 1:
844
return &v.sizeCache
845
case 2:
846
return &v.unknownFields
847
default:
848
return nil
849
}
850
}
851
file_token_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
852
switch v := v.(*ClearTokenRequest); i {
853
case 0:
854
return &v.state
855
case 1:
856
return &v.sizeCache
857
case 2:
858
return &v.unknownFields
859
default:
860
return nil
861
}
862
}
863
file_token_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
864
switch v := v.(*ClearTokenResponse); i {
865
case 0:
866
return &v.state
867
case 1:
868
return &v.sizeCache
869
case 2:
870
return &v.unknownFields
871
default:
872
return nil
873
}
874
}
875
file_token_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
876
switch v := v.(*ProvideTokenRequest); i {
877
case 0:
878
return &v.state
879
case 1:
880
return &v.sizeCache
881
case 2:
882
return &v.unknownFields
883
default:
884
return nil
885
}
886
}
887
file_token_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
888
switch v := v.(*ProvideTokenResponse); i {
889
case 0:
890
return &v.state
891
case 1:
892
return &v.sizeCache
893
case 2:
894
return &v.unknownFields
895
default:
896
return nil
897
}
898
}
899
file_token_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
900
switch v := v.(*ProvideTokenRequest_RegisterProvider); i {
901
case 0:
902
return &v.state
903
case 1:
904
return &v.sizeCache
905
case 2:
906
return &v.unknownFields
907
default:
908
return nil
909
}
910
}
911
}
912
file_token_proto_msgTypes[4].OneofWrappers = []interface{}{
913
(*ClearTokenRequest_Value)(nil),
914
(*ClearTokenRequest_All)(nil),
915
}
916
file_token_proto_msgTypes[6].OneofWrappers = []interface{}{
917
(*ProvideTokenRequest_Registration)(nil),
918
(*ProvideTokenRequest_Answer)(nil),
919
}
920
type x struct{}
921
out := protoimpl.TypeBuilder{
922
File: protoimpl.DescBuilder{
923
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
924
RawDescriptor: file_token_proto_rawDesc,
925
NumEnums: 1,
926
NumMessages: 9,
927
NumExtensions: 0,
928
NumServices: 1,
929
},
930
GoTypes: file_token_proto_goTypes,
931
DependencyIndexes: file_token_proto_depIdxs,
932
EnumInfos: file_token_proto_enumTypes,
933
MessageInfos: file_token_proto_msgTypes,
934
}.Build()
935
File_token_proto = out.File
936
file_token_proto_rawDesc = nil
937
file_token_proto_goTypes = nil
938
file_token_proto_depIdxs = nil
939
}
940
941