Debian Codegraph @

go/svc/token/v1/service.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.5
4 // protoc (unknown)
5 // source: svc/token/v1/service.proto
6
7 package tokenv1
8
9 import (
10 v1 "github.com/humanlogio/api/go/types/v1"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
14 reflect "reflect"
15 sync "sync"
16 unsafe "unsafe"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 type GenerateEnvironmentTokenRequest struct {
27 state protoimpl.MessageState `protogen:"open.v1"`
28 EnvironmentId int64 `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
29 ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
30 Roles []v1.EnvironmentRole `protobuf:"varint,3,rep,packed,name=roles,proto3,enum=types.v1.EnvironmentRole" json:"roles,omitempty"`
31 unknownFields protoimpl.UnknownFields
32 sizeCache protoimpl.SizeCache
33 }
34
35 func (x *GenerateEnvironmentTokenRequest) Reset() {
36 *x = GenerateEnvironmentTokenRequest{}
37 mi := &file_svc_token_v1_service_proto_msgTypes[0]
38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39 ms.StoreMessageInfo(mi)
40 }
41
42 func (x *GenerateEnvironmentTokenRequest) String() string {
43 return protoimpl.X.MessageStringOf(x)
44 }
45
46 func (*GenerateEnvironmentTokenRequest) ProtoMessage() {}
47
48 func (x *GenerateEnvironmentTokenRequest) ProtoReflect() protoreflect.Message {
49 mi := &file_svc_token_v1_service_proto_msgTypes[0]
50 if x != nil {
51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52 if ms.LoadMessageInfo() == nil {
53 ms.StoreMessageInfo(mi)
54 }
55 return ms
56 }
57 return mi.MessageOf(x)
58 }
59
60 // Deprecated: Use GenerateEnvironmentTokenRequest.ProtoReflect.Descriptor instead.
61 func (*GenerateEnvironmentTokenRequest) Descriptor() ([]byte, []int) {
62 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{0}
63 }
64
65 func (x *GenerateEnvironmentTokenRequest) GetEnvironmentId() int64 {
66 if x != nil {
67 return x.EnvironmentId
68 }
69 return 0
70 }
71
72 func (x *GenerateEnvironmentTokenRequest) GetExpiresAt() *timestamppb.Timestamp {
73 if x != nil {
74 return x.ExpiresAt
75 }
76 return nil
77 }
78
79 func (x *GenerateEnvironmentTokenRequest) GetRoles() []v1.EnvironmentRole {
80 if x != nil {
81 return x.Roles
82 }
83 return nil
84 }
85
86 type GenerateEnvironmentTokenResponse struct {
87 state protoimpl.MessageState `protogen:"open.v1"`
88 Token *v1.EnvironmentToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
89 unknownFields protoimpl.UnknownFields
90 sizeCache protoimpl.SizeCache
91 }
92
93 func (x *GenerateEnvironmentTokenResponse) Reset() {
94 *x = GenerateEnvironmentTokenResponse{}
95 mi := &file_svc_token_v1_service_proto_msgTypes[1]
96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97 ms.StoreMessageInfo(mi)
98 }
99
100 func (x *GenerateEnvironmentTokenResponse) String() string {
101 return protoimpl.X.MessageStringOf(x)
102 }
103
104 func (*GenerateEnvironmentTokenResponse) ProtoMessage() {}
105
106 func (x *GenerateEnvironmentTokenResponse) ProtoReflect() protoreflect.Message {
107 mi := &file_svc_token_v1_service_proto_msgTypes[1]
108 if x != nil {
109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
110 if ms.LoadMessageInfo() == nil {
111 ms.StoreMessageInfo(mi)
112 }
113 return ms
114 }
115 return mi.MessageOf(x)
116 }
117
118 // Deprecated: Use GenerateEnvironmentTokenResponse.ProtoReflect.Descriptor instead.
119 func (*GenerateEnvironmentTokenResponse) Descriptor() ([]byte, []int) {
120 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{1}
121 }
122
123 func (x *GenerateEnvironmentTokenResponse) GetToken() *v1.EnvironmentToken {
124 if x != nil {
125 return x.Token
126 }
127 return nil
128 }
129
130 type RevokeEnvironmentTokenRequest struct {
131 state protoimpl.MessageState `protogen:"open.v1"`
132 EnvironmentId int64 `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
133 TokenId int64 `protobuf:"varint,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
134 unknownFields protoimpl.UnknownFields
135 sizeCache protoimpl.SizeCache
136 }
137
138 func (x *RevokeEnvironmentTokenRequest) Reset() {
139 *x = RevokeEnvironmentTokenRequest{}
140 mi := &file_svc_token_v1_service_proto_msgTypes[2]
141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142 ms.StoreMessageInfo(mi)
143 }
144
145 func (x *RevokeEnvironmentTokenRequest) String() string {
146 return protoimpl.X.MessageStringOf(x)
147 }
148
149 func (*RevokeEnvironmentTokenRequest) ProtoMessage() {}
150
151 func (x *RevokeEnvironmentTokenRequest) ProtoReflect() protoreflect.Message {
152 mi := &file_svc_token_v1_service_proto_msgTypes[2]
153 if x != nil {
154 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
155 if ms.LoadMessageInfo() == nil {
156 ms.StoreMessageInfo(mi)
157 }
158 return ms
159 }
160 return mi.MessageOf(x)
161 }
162
163 // Deprecated: Use RevokeEnvironmentTokenRequest.ProtoReflect.Descriptor instead.
164 func (*RevokeEnvironmentTokenRequest) Descriptor() ([]byte, []int) {
165 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{2}
166 }
167
168 func (x *RevokeEnvironmentTokenRequest) GetEnvironmentId() int64 {
169 if x != nil {
170 return x.EnvironmentId
171 }
172 return 0
173 }
174
175 func (x *RevokeEnvironmentTokenRequest) GetTokenId() int64 {
176 if x != nil {
177 return x.TokenId
178 }
179 return 0
180 }
181
182 type RevokeEnvironmentTokenResponse struct {
183 state protoimpl.MessageState `protogen:"open.v1"`
184 unknownFields protoimpl.UnknownFields
185 sizeCache protoimpl.SizeCache
186 }
187
188 func (x *RevokeEnvironmentTokenResponse) Reset() {
189 *x = RevokeEnvironmentTokenResponse{}
190 mi := &file_svc_token_v1_service_proto_msgTypes[3]
191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
192 ms.StoreMessageInfo(mi)
193 }
194
195 func (x *RevokeEnvironmentTokenResponse) String() string {
196 return protoimpl.X.MessageStringOf(x)
197 }
198
199 func (*RevokeEnvironmentTokenResponse) ProtoMessage() {}
200
201 func (x *RevokeEnvironmentTokenResponse) ProtoReflect() protoreflect.Message {
202 mi := &file_svc_token_v1_service_proto_msgTypes[3]
203 if x != nil {
204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
205 if ms.LoadMessageInfo() == nil {
206 ms.StoreMessageInfo(mi)
207 }
208 return ms
209 }
210 return mi.MessageOf(x)
211 }
212
213 // Deprecated: Use RevokeEnvironmentTokenResponse.ProtoReflect.Descriptor instead.
214 func (*RevokeEnvironmentTokenResponse) Descriptor() ([]byte, []int) {
215 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{3}
216 }
217
218 type GetEnvironmentTokenRequest struct {
219 state protoimpl.MessageState `protogen:"open.v1"`
220 EnvironmentId int64 `protobuf:"varint,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
221 TokenId int64 `protobuf:"varint,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
222 unknownFields protoimpl.UnknownFields
223 sizeCache protoimpl.SizeCache
224 }
225
226 func (x *GetEnvironmentTokenRequest) Reset() {
227 *x = GetEnvironmentTokenRequest{}
228 mi := &file_svc_token_v1_service_proto_msgTypes[4]
229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
230 ms.StoreMessageInfo(mi)
231 }
232
233 func (x *GetEnvironmentTokenRequest) String() string {
234 return protoimpl.X.MessageStringOf(x)
235 }
236
237 func (*GetEnvironmentTokenRequest) ProtoMessage() {}
238
239 func (x *GetEnvironmentTokenRequest) ProtoReflect() protoreflect.Message {
240 mi := &file_svc_token_v1_service_proto_msgTypes[4]
241 if x != nil {
242 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
243 if ms.LoadMessageInfo() == nil {
244 ms.StoreMessageInfo(mi)
245 }
246 return ms
247 }
248 return mi.MessageOf(x)
249 }
250
251 // Deprecated: Use GetEnvironmentTokenRequest.ProtoReflect.Descriptor instead.
252 func (*GetEnvironmentTokenRequest) Descriptor() ([]byte, []int) {
253 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{4}
254 }
255
256 func (x *GetEnvironmentTokenRequest) GetEnvironmentId() int64 {
257 if x != nil {
258 return x.EnvironmentId
259 }
260 return 0
261 }
262
263 func (x *GetEnvironmentTokenRequest) GetTokenId() int64 {
264 if x != nil {
265 return x.TokenId
266 }
267 return 0
268 }
269
270 type GetEnvironmentTokenResponse struct {
271 state protoimpl.MessageState `protogen:"open.v1"`
272 Token *v1.EnvironmentToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
273 unknownFields protoimpl.UnknownFields
274 sizeCache protoimpl.SizeCache
275 }
276
277 func (x *GetEnvironmentTokenResponse) Reset() {
278 *x = GetEnvironmentTokenResponse{}
279 mi := &file_svc_token_v1_service_proto_msgTypes[5]
280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
281 ms.StoreMessageInfo(mi)
282 }
283
284 func (x *GetEnvironmentTokenResponse) String() string {
285 return protoimpl.X.MessageStringOf(x)
286 }
287
288 func (*GetEnvironmentTokenResponse) ProtoMessage() {}
289
290 func (x *GetEnvironmentTokenResponse) ProtoReflect() protoreflect.Message {
291 mi := &file_svc_token_v1_service_proto_msgTypes[5]
292 if x != nil {
293 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
294 if ms.LoadMessageInfo() == nil {
295 ms.StoreMessageInfo(mi)
296 }
297 return ms
298 }
299 return mi.MessageOf(x)
300 }
301
302 // Deprecated: Use GetEnvironmentTokenResponse.ProtoReflect.Descriptor instead.
303 func (*GetEnvironmentTokenResponse) Descriptor() ([]byte, []int) {
304 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{5}
305 }
306
307 func (x *GetEnvironmentTokenResponse) GetToken() *v1.EnvironmentToken {
308 if x != nil {
309 return x.Token
310 }
311 return nil
312 }
313
314 type ListEnvironmentTokenRequest struct {
315 state protoimpl.MessageState `protogen:"open.v1"`
316 Cursor *v1.Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
317 Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
318 EnvironmentId int64 `protobuf:"varint,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
319 unknownFields protoimpl.UnknownFields
320 sizeCache protoimpl.SizeCache
321 }
322
323 func (x *ListEnvironmentTokenRequest) Reset() {
324 *x = ListEnvironmentTokenRequest{}
325 mi := &file_svc_token_v1_service_proto_msgTypes[6]
326 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
327 ms.StoreMessageInfo(mi)
328 }
329
330 func (x *ListEnvironmentTokenRequest) String() string {
331 return protoimpl.X.MessageStringOf(x)
332 }
333
334 func (*ListEnvironmentTokenRequest) ProtoMessage() {}
335
336 func (x *ListEnvironmentTokenRequest) ProtoReflect() protoreflect.Message {
337 mi := &file_svc_token_v1_service_proto_msgTypes[6]
338 if x != nil {
339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
340 if ms.LoadMessageInfo() == nil {
341 ms.StoreMessageInfo(mi)
342 }
343 return ms
344 }
345 return mi.MessageOf(x)
346 }
347
348 // Deprecated: Use ListEnvironmentTokenRequest.ProtoReflect.Descriptor instead.
349 func (*ListEnvironmentTokenRequest) Descriptor() ([]byte, []int) {
350 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{6}
351 }
352
353 func (x *ListEnvironmentTokenRequest) GetCursor() *v1.Cursor {
354 if x != nil {
355 return x.Cursor
356 }
357 return nil
358 }
359
360 func (x *ListEnvironmentTokenRequest) GetLimit() int32 {
361 if x != nil {
362 return x.Limit
363 }
364 return 0
365 }
366
367 func (x *ListEnvironmentTokenRequest) GetEnvironmentId() int64 {
368 if x != nil {
369 return x.EnvironmentId
370 }
371 return 0
372 }
373
374 type ListEnvironmentTokenResponse struct {
375 state protoimpl.MessageState `protogen:"open.v1"`
376 Next *v1.Cursor `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"`
377 Items []*ListEnvironmentTokenResponse_ListItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
378 unknownFields protoimpl.UnknownFields
379 sizeCache protoimpl.SizeCache
380 }
381
382 func (x *ListEnvironmentTokenResponse) Reset() {
383 *x = ListEnvironmentTokenResponse{}
384 mi := &file_svc_token_v1_service_proto_msgTypes[7]
385 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
386 ms.StoreMessageInfo(mi)
387 }
388
389 func (x *ListEnvironmentTokenResponse) String() string {
390 return protoimpl.X.MessageStringOf(x)
391 }
392
393 func (*ListEnvironmentTokenResponse) ProtoMessage() {}
394
395 func (x *ListEnvironmentTokenResponse) ProtoReflect() protoreflect.Message {
396 mi := &file_svc_token_v1_service_proto_msgTypes[7]
397 if x != nil {
398 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
399 if ms.LoadMessageInfo() == nil {
400 ms.StoreMessageInfo(mi)
401 }
402 return ms
403 }
404 return mi.MessageOf(x)
405 }
406
407 // Deprecated: Use ListEnvironmentTokenResponse.ProtoReflect.Descriptor instead.
408 func (*ListEnvironmentTokenResponse) Descriptor() ([]byte, []int) {
409 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{7}
410 }
411
412 func (x *ListEnvironmentTokenResponse) GetNext() *v1.Cursor {
413 if x != nil {
414 return x.Next
415 }
416 return nil
417 }
418
419 func (x *ListEnvironmentTokenResponse) GetItems() []*ListEnvironmentTokenResponse_ListItem {
420 if x != nil {
421 return x.Items
422 }
423 return nil
424 }
425
426 type ListEnvironmentTokenResponse_ListItem struct {
427 state protoimpl.MessageState `protogen:"open.v1"`
428 Token *v1.EnvironmentToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
429 unknownFields protoimpl.UnknownFields
430 sizeCache protoimpl.SizeCache
431 }
432
433 func (x *ListEnvironmentTokenResponse_ListItem) Reset() {
434 *x = ListEnvironmentTokenResponse_ListItem{}
435 mi := &file_svc_token_v1_service_proto_msgTypes[8]
436 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
437 ms.StoreMessageInfo(mi)
438 }
439
440 func (x *ListEnvironmentTokenResponse_ListItem) String() string {
441 return protoimpl.X.MessageStringOf(x)
442 }
443
444 func (*ListEnvironmentTokenResponse_ListItem) ProtoMessage() {}
445
446 func (x *ListEnvironmentTokenResponse_ListItem) ProtoReflect() protoreflect.Message {
447 mi := &file_svc_token_v1_service_proto_msgTypes[8]
448 if x != nil {
449 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
450 if ms.LoadMessageInfo() == nil {
451 ms.StoreMessageInfo(mi)
452 }
453 return ms
454 }
455 return mi.MessageOf(x)
456 }
457
458 // Deprecated: Use ListEnvironmentTokenResponse_ListItem.ProtoReflect.Descriptor instead.
459 func (*ListEnvironmentTokenResponse_ListItem) Descriptor() ([]byte, []int) {
460 return file_svc_token_v1_service_proto_rawDescGZIP(), []int{7, 0}
461 }
462
463 func (x *ListEnvironmentTokenResponse_ListItem) GetToken() *v1.EnvironmentToken {
464 if x != nil {
465 return x.Token
466 }
467 return nil
468 }
469
470 var File_svc_token_v1_service_proto protoreflect.FileDescriptor
471
472 var file_svc_token_v1_service_proto_rawDesc = string([]byte{
473 0x0a, 0x1a, 0x73, 0x76, 0x63, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73,
474 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x73, 0x76,
475 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
476 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
477 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x74, 0x79, 0x70,
478 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
479 0x74, 0x6f, 0x1a, 0x20, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x76,
480 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70,
481 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
482 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65,
483 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69,
484 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
485 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
486 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20,
487 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
488 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
489 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f,
490 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65,
491 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
492 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x20, 0x47,
493 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
494 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
495 0x30, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
496 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f,
497 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
498 0x6e, 0x22, 0x61, 0x0a, 0x1d, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72,
499 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
500 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
501 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x69,
502 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b,
503 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x6f, 0x6b,
504 0x65, 0x6e, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x1e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e,
505 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
506 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5e, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76,
507 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
508 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
509 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6e,
510 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74,
511 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74,
512 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76,
513 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73,
514 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
515 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e,
516 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
517 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74,
518 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
519 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f,
520 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
521 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f,
522 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
523 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72,
524 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
525 0x0d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xcd,
526 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
527 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
528 0x24, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
529 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52,
530 0x04, 0x6e, 0x65, 0x78, 0x74, 0x12, 0x49, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02,
531 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
532 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
533 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
534 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
535 0x1a, 0x3c, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x30, 0x0a, 0x05,
536 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79,
537 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
538 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xe1,
539 0x03, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
540 0x7b, 0x0a, 0x18, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72,
541 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2d, 0x2e, 0x73, 0x76,
542 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72,
543 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f,
544 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x76, 0x63,
545 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61,
546 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b,
547 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x16,
548 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
549 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2b, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b,
550 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69,
551 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
552 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e,
553 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
554 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
555 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f,
556 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x28, 0x2e, 0x73, 0x76, 0x63,
557 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76,
558 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
559 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
560 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
561 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
562 0x00, 0x12, 0x6f, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
563 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x29, 0x2e, 0x73, 0x76, 0x63, 0x2e,
564 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76,
565 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
566 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
567 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
568 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
569 0x22, 0x00, 0x42, 0xa5, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x74,
570 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
571 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
572 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61,
573 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x76, 0x63, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f,
574 0x76, 0x31, 0x3b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58,
575 0xaa, 0x02, 0x0c, 0x53, 0x76, 0x63, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0xca,
576 0x02, 0x0c, 0x53, 0x76, 0x63, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02,
577 0x18, 0x53, 0x76, 0x63, 0x5c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50,
578 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x53, 0x76, 0x63, 0x3a,
579 0x3a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
580 0x6f, 0x33,
581 })
582
583 var (
584 file_svc_token_v1_service_proto_rawDescOnce sync.Once
585 file_svc_token_v1_service_proto_rawDescData []byte
586 )
587
588 func file_svc_token_v1_service_proto_rawDescGZIP() []byte {
589 file_svc_token_v1_service_proto_rawDescOnce.Do(func() {
590 file_svc_token_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_svc_token_v1_service_proto_rawDesc), len(file_svc_token_v1_service_proto_rawDesc)))
591 })
592 return file_svc_token_v1_service_proto_rawDescData
593 }
594
595 var file_svc_token_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
596 var file_svc_token_v1_service_proto_goTypes = []any{
597 (*GenerateEnvironmentTokenRequest)(nil), // 0: svc.token.v1.GenerateEnvironmentTokenRequest
598 (*GenerateEnvironmentTokenResponse)(nil), // 1: svc.token.v1.GenerateEnvironmentTokenResponse
599 (*RevokeEnvironmentTokenRequest)(nil), // 2: svc.token.v1.RevokeEnvironmentTokenRequest
600 (*RevokeEnvironmentTokenResponse)(nil), // 3: svc.token.v1.RevokeEnvironmentTokenResponse
601 (*GetEnvironmentTokenRequest)(nil), // 4: svc.token.v1.GetEnvironmentTokenRequest
602 (*GetEnvironmentTokenResponse)(nil), // 5: svc.token.v1.GetEnvironmentTokenResponse
603 (*ListEnvironmentTokenRequest)(nil), // 6: svc.token.v1.ListEnvironmentTokenRequest
604 (*ListEnvironmentTokenResponse)(nil), // 7: svc.token.v1.ListEnvironmentTokenResponse
605 (*ListEnvironmentTokenResponse_ListItem)(nil), // 8: svc.token.v1.ListEnvironmentTokenResponse.ListItem
606 (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
607 (v1.EnvironmentRole)(0), // 10: types.v1.EnvironmentRole
608 (*v1.EnvironmentToken)(nil), // 11: types.v1.EnvironmentToken
609 (*v1.Cursor)(nil), // 12: types.v1.Cursor
610 }
611 var file_svc_token_v1_service_proto_depIdxs = []int32{
612 9, // 0: svc.token.v1.GenerateEnvironmentTokenRequest.expires_at:type_name -> google.protobuf.Timestamp
613 10, // 1: svc.token.v1.GenerateEnvironmentTokenRequest.roles:type_name -> types.v1.EnvironmentRole
614 11, // 2: svc.token.v1.GenerateEnvironmentTokenResponse.token:type_name -> types.v1.EnvironmentToken
615 11, // 3: svc.token.v1.GetEnvironmentTokenResponse.token:type_name -> types.v1.EnvironmentToken
616 12, // 4: svc.token.v1.ListEnvironmentTokenRequest.cursor:type_name -> types.v1.Cursor
617 12, // 5: svc.token.v1.ListEnvironmentTokenResponse.next:type_name -> types.v1.Cursor
618 8, // 6: svc.token.v1.ListEnvironmentTokenResponse.items:type_name -> svc.token.v1.ListEnvironmentTokenResponse.ListItem
619 11, // 7: svc.token.v1.ListEnvironmentTokenResponse.ListItem.token:type_name -> types.v1.EnvironmentToken
620 0, // 8: svc.token.v1.TokenService.GenerateEnvironmentToken:input_type -> svc.token.v1.GenerateEnvironmentTokenRequest
621 2, // 9: svc.token.v1.TokenService.RevokeEnvironmentToken:input_type -> svc.token.v1.RevokeEnvironmentTokenRequest
622 4, // 10: svc.token.v1.TokenService.GetEnvironmentToken:input_type -> svc.token.v1.GetEnvironmentTokenRequest
623 6, // 11: svc.token.v1.TokenService.ListEnvironmentToken:input_type -> svc.token.v1.ListEnvironmentTokenRequest
624 1, // 12: svc.token.v1.TokenService.GenerateEnvironmentToken:output_type -> svc.token.v1.GenerateEnvironmentTokenResponse
625 3, // 13: svc.token.v1.TokenService.RevokeEnvironmentToken:output_type -> svc.token.v1.RevokeEnvironmentTokenResponse
626 5, // 14: svc.token.v1.TokenService.GetEnvironmentToken:output_type -> svc.token.v1.GetEnvironmentTokenResponse
627 7, // 15: svc.token.v1.TokenService.ListEnvironmentToken:output_type -> svc.token.v1.ListEnvironmentTokenResponse
628 12, // [12:16] is the sub-list for method output_type
629 8, // [8:12] is the sub-list for method input_type
630 8, // [8:8] is the sub-list for extension type_name
631 8, // [8:8] is the sub-list for extension extendee
632 0, // [0:8] is the sub-list for field type_name
633 }
634
635 func init() { file_svc_token_v1_service_proto_init() }
636 func file_svc_token_v1_service_proto_init() {
637 if File_svc_token_v1_service_proto != nil {
638 return
639 }
640 type x struct{}
641 out := protoimpl.TypeBuilder{
642 File: protoimpl.DescBuilder{
643 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
644 RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_token_v1_service_proto_rawDesc), len(file_svc_token_v1_service_proto_rawDesc)),
645 NumEnums: 0,
646 NumMessages: 9,
647 NumExtensions: 0,
648 NumServices: 1,
649 },
650 GoTypes: file_svc_token_v1_service_proto_goTypes,
651 DependencyIndexes: file_svc_token_v1_service_proto_depIdxs,
652 MessageInfos: file_svc_token_v1_service_proto_msgTypes,
653 }.Build()
654 File_svc_token_v1_service_proto = out.File
655 file_svc_token_v1_service_proto_goTypes = nil
656 file_svc_token_v1_service_proto_depIdxs = nil
657 }