github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/auth/auth.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: auth/auth.proto 3 4 package auth 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 math "math" 12 ) 13 14 // Reference imports to suppress errors if they are not otherwise used. 15 var _ = proto.Marshal 16 var _ = fmt.Errorf 17 var _ = math.Inf 18 19 // This is a compile-time assertion to ensure that this generated file 20 // is compatible with the proto package it is being compiled against. 21 // A compilation error at this line likely means your copy of the 22 // proto package needs to be updated. 23 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25 type Access int32 26 27 const ( 28 Access_UNKNOWN Access = 0 29 Access_GRANTED Access = 1 30 Access_DENIED Access = 2 31 ) 32 33 var Access_name = map[int32]string{ 34 0: "UNKNOWN", 35 1: "GRANTED", 36 2: "DENIED", 37 } 38 39 var Access_value = map[string]int32{ 40 "UNKNOWN": 0, 41 "GRANTED": 1, 42 "DENIED": 2, 43 } 44 45 func (x Access) String() string { 46 return proto.EnumName(Access_name, int32(x)) 47 } 48 49 func (Access) EnumDescriptor() ([]byte, []int) { 50 return fileDescriptor_712ec48c1eaf43a2, []int{0} 51 } 52 53 type ListAccountsRequest struct { 54 Options *Options `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` 55 XXX_NoUnkeyedLiteral struct{} `json:"-"` 56 XXX_unrecognized []byte `json:"-"` 57 XXX_sizecache int32 `json:"-"` 58 } 59 60 func (m *ListAccountsRequest) Reset() { *m = ListAccountsRequest{} } 61 func (m *ListAccountsRequest) String() string { return proto.CompactTextString(m) } 62 func (*ListAccountsRequest) ProtoMessage() {} 63 func (*ListAccountsRequest) Descriptor() ([]byte, []int) { 64 return fileDescriptor_712ec48c1eaf43a2, []int{0} 65 } 66 67 func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error { 68 return xxx_messageInfo_ListAccountsRequest.Unmarshal(m, b) 69 } 70 func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 71 return xxx_messageInfo_ListAccountsRequest.Marshal(b, m, deterministic) 72 } 73 func (m *ListAccountsRequest) XXX_Merge(src proto.Message) { 74 xxx_messageInfo_ListAccountsRequest.Merge(m, src) 75 } 76 func (m *ListAccountsRequest) XXX_Size() int { 77 return xxx_messageInfo_ListAccountsRequest.Size(m) 78 } 79 func (m *ListAccountsRequest) XXX_DiscardUnknown() { 80 xxx_messageInfo_ListAccountsRequest.DiscardUnknown(m) 81 } 82 83 var xxx_messageInfo_ListAccountsRequest proto.InternalMessageInfo 84 85 func (m *ListAccountsRequest) GetOptions() *Options { 86 if m != nil { 87 return m.Options 88 } 89 return nil 90 } 91 92 type ListAccountsResponse struct { 93 Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` 94 XXX_NoUnkeyedLiteral struct{} `json:"-"` 95 XXX_unrecognized []byte `json:"-"` 96 XXX_sizecache int32 `json:"-"` 97 } 98 99 func (m *ListAccountsResponse) Reset() { *m = ListAccountsResponse{} } 100 func (m *ListAccountsResponse) String() string { return proto.CompactTextString(m) } 101 func (*ListAccountsResponse) ProtoMessage() {} 102 func (*ListAccountsResponse) Descriptor() ([]byte, []int) { 103 return fileDescriptor_712ec48c1eaf43a2, []int{1} 104 } 105 106 func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error { 107 return xxx_messageInfo_ListAccountsResponse.Unmarshal(m, b) 108 } 109 func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 110 return xxx_messageInfo_ListAccountsResponse.Marshal(b, m, deterministic) 111 } 112 func (m *ListAccountsResponse) XXX_Merge(src proto.Message) { 113 xxx_messageInfo_ListAccountsResponse.Merge(m, src) 114 } 115 func (m *ListAccountsResponse) XXX_Size() int { 116 return xxx_messageInfo_ListAccountsResponse.Size(m) 117 } 118 func (m *ListAccountsResponse) XXX_DiscardUnknown() { 119 xxx_messageInfo_ListAccountsResponse.DiscardUnknown(m) 120 } 121 122 var xxx_messageInfo_ListAccountsResponse proto.InternalMessageInfo 123 124 func (m *ListAccountsResponse) GetAccounts() []*Account { 125 if m != nil { 126 return m.Accounts 127 } 128 return nil 129 } 130 131 type DeleteAccountRequest struct { 132 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 133 Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 134 XXX_NoUnkeyedLiteral struct{} `json:"-"` 135 XXX_unrecognized []byte `json:"-"` 136 XXX_sizecache int32 `json:"-"` 137 } 138 139 func (m *DeleteAccountRequest) Reset() { *m = DeleteAccountRequest{} } 140 func (m *DeleteAccountRequest) String() string { return proto.CompactTextString(m) } 141 func (*DeleteAccountRequest) ProtoMessage() {} 142 func (*DeleteAccountRequest) Descriptor() ([]byte, []int) { 143 return fileDescriptor_712ec48c1eaf43a2, []int{2} 144 } 145 146 func (m *DeleteAccountRequest) XXX_Unmarshal(b []byte) error { 147 return xxx_messageInfo_DeleteAccountRequest.Unmarshal(m, b) 148 } 149 func (m *DeleteAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 150 return xxx_messageInfo_DeleteAccountRequest.Marshal(b, m, deterministic) 151 } 152 func (m *DeleteAccountRequest) XXX_Merge(src proto.Message) { 153 xxx_messageInfo_DeleteAccountRequest.Merge(m, src) 154 } 155 func (m *DeleteAccountRequest) XXX_Size() int { 156 return xxx_messageInfo_DeleteAccountRequest.Size(m) 157 } 158 func (m *DeleteAccountRequest) XXX_DiscardUnknown() { 159 xxx_messageInfo_DeleteAccountRequest.DiscardUnknown(m) 160 } 161 162 var xxx_messageInfo_DeleteAccountRequest proto.InternalMessageInfo 163 164 func (m *DeleteAccountRequest) GetId() string { 165 if m != nil { 166 return m.Id 167 } 168 return "" 169 } 170 171 func (m *DeleteAccountRequest) GetOptions() *Options { 172 if m != nil { 173 return m.Options 174 } 175 return nil 176 } 177 178 type DeleteAccountResponse struct { 179 XXX_NoUnkeyedLiteral struct{} `json:"-"` 180 XXX_unrecognized []byte `json:"-"` 181 XXX_sizecache int32 `json:"-"` 182 } 183 184 func (m *DeleteAccountResponse) Reset() { *m = DeleteAccountResponse{} } 185 func (m *DeleteAccountResponse) String() string { return proto.CompactTextString(m) } 186 func (*DeleteAccountResponse) ProtoMessage() {} 187 func (*DeleteAccountResponse) Descriptor() ([]byte, []int) { 188 return fileDescriptor_712ec48c1eaf43a2, []int{3} 189 } 190 191 func (m *DeleteAccountResponse) XXX_Unmarshal(b []byte) error { 192 return xxx_messageInfo_DeleteAccountResponse.Unmarshal(m, b) 193 } 194 func (m *DeleteAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 195 return xxx_messageInfo_DeleteAccountResponse.Marshal(b, m, deterministic) 196 } 197 func (m *DeleteAccountResponse) XXX_Merge(src proto.Message) { 198 xxx_messageInfo_DeleteAccountResponse.Merge(m, src) 199 } 200 func (m *DeleteAccountResponse) XXX_Size() int { 201 return xxx_messageInfo_DeleteAccountResponse.Size(m) 202 } 203 func (m *DeleteAccountResponse) XXX_DiscardUnknown() { 204 xxx_messageInfo_DeleteAccountResponse.DiscardUnknown(m) 205 } 206 207 var xxx_messageInfo_DeleteAccountResponse proto.InternalMessageInfo 208 209 type Token struct { 210 AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` 211 RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` 212 Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` 213 Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` 214 XXX_NoUnkeyedLiteral struct{} `json:"-"` 215 XXX_unrecognized []byte `json:"-"` 216 XXX_sizecache int32 `json:"-"` 217 } 218 219 func (m *Token) Reset() { *m = Token{} } 220 func (m *Token) String() string { return proto.CompactTextString(m) } 221 func (*Token) ProtoMessage() {} 222 func (*Token) Descriptor() ([]byte, []int) { 223 return fileDescriptor_712ec48c1eaf43a2, []int{4} 224 } 225 226 func (m *Token) XXX_Unmarshal(b []byte) error { 227 return xxx_messageInfo_Token.Unmarshal(m, b) 228 } 229 func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 230 return xxx_messageInfo_Token.Marshal(b, m, deterministic) 231 } 232 func (m *Token) XXX_Merge(src proto.Message) { 233 xxx_messageInfo_Token.Merge(m, src) 234 } 235 func (m *Token) XXX_Size() int { 236 return xxx_messageInfo_Token.Size(m) 237 } 238 func (m *Token) XXX_DiscardUnknown() { 239 xxx_messageInfo_Token.DiscardUnknown(m) 240 } 241 242 var xxx_messageInfo_Token proto.InternalMessageInfo 243 244 func (m *Token) GetAccessToken() string { 245 if m != nil { 246 return m.AccessToken 247 } 248 return "" 249 } 250 251 func (m *Token) GetRefreshToken() string { 252 if m != nil { 253 return m.RefreshToken 254 } 255 return "" 256 } 257 258 func (m *Token) GetCreated() int64 { 259 if m != nil { 260 return m.Created 261 } 262 return 0 263 } 264 265 func (m *Token) GetExpiry() int64 { 266 if m != nil { 267 return m.Expiry 268 } 269 return 0 270 } 271 272 type Account struct { 273 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 274 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 275 Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 276 Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` 277 Issuer string `protobuf:"bytes,6,opt,name=issuer,proto3" json:"issuer,omitempty"` 278 Secret string `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"` 279 Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` 280 XXX_NoUnkeyedLiteral struct{} `json:"-"` 281 XXX_unrecognized []byte `json:"-"` 282 XXX_sizecache int32 `json:"-"` 283 } 284 285 func (m *Account) Reset() { *m = Account{} } 286 func (m *Account) String() string { return proto.CompactTextString(m) } 287 func (*Account) ProtoMessage() {} 288 func (*Account) Descriptor() ([]byte, []int) { 289 return fileDescriptor_712ec48c1eaf43a2, []int{5} 290 } 291 292 func (m *Account) XXX_Unmarshal(b []byte) error { 293 return xxx_messageInfo_Account.Unmarshal(m, b) 294 } 295 func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 296 return xxx_messageInfo_Account.Marshal(b, m, deterministic) 297 } 298 func (m *Account) XXX_Merge(src proto.Message) { 299 xxx_messageInfo_Account.Merge(m, src) 300 } 301 func (m *Account) XXX_Size() int { 302 return xxx_messageInfo_Account.Size(m) 303 } 304 func (m *Account) XXX_DiscardUnknown() { 305 xxx_messageInfo_Account.DiscardUnknown(m) 306 } 307 308 var xxx_messageInfo_Account proto.InternalMessageInfo 309 310 func (m *Account) GetId() string { 311 if m != nil { 312 return m.Id 313 } 314 return "" 315 } 316 317 func (m *Account) GetType() string { 318 if m != nil { 319 return m.Type 320 } 321 return "" 322 } 323 324 func (m *Account) GetMetadata() map[string]string { 325 if m != nil { 326 return m.Metadata 327 } 328 return nil 329 } 330 331 func (m *Account) GetScopes() []string { 332 if m != nil { 333 return m.Scopes 334 } 335 return nil 336 } 337 338 func (m *Account) GetIssuer() string { 339 if m != nil { 340 return m.Issuer 341 } 342 return "" 343 } 344 345 func (m *Account) GetSecret() string { 346 if m != nil { 347 return m.Secret 348 } 349 return "" 350 } 351 352 func (m *Account) GetName() string { 353 if m != nil { 354 return m.Name 355 } 356 return "" 357 } 358 359 type Resource struct { 360 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 361 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 362 Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` 363 XXX_NoUnkeyedLiteral struct{} `json:"-"` 364 XXX_unrecognized []byte `json:"-"` 365 XXX_sizecache int32 `json:"-"` 366 } 367 368 func (m *Resource) Reset() { *m = Resource{} } 369 func (m *Resource) String() string { return proto.CompactTextString(m) } 370 func (*Resource) ProtoMessage() {} 371 func (*Resource) Descriptor() ([]byte, []int) { 372 return fileDescriptor_712ec48c1eaf43a2, []int{6} 373 } 374 375 func (m *Resource) XXX_Unmarshal(b []byte) error { 376 return xxx_messageInfo_Resource.Unmarshal(m, b) 377 } 378 func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 379 return xxx_messageInfo_Resource.Marshal(b, m, deterministic) 380 } 381 func (m *Resource) XXX_Merge(src proto.Message) { 382 xxx_messageInfo_Resource.Merge(m, src) 383 } 384 func (m *Resource) XXX_Size() int { 385 return xxx_messageInfo_Resource.Size(m) 386 } 387 func (m *Resource) XXX_DiscardUnknown() { 388 xxx_messageInfo_Resource.DiscardUnknown(m) 389 } 390 391 var xxx_messageInfo_Resource proto.InternalMessageInfo 392 393 func (m *Resource) GetName() string { 394 if m != nil { 395 return m.Name 396 } 397 return "" 398 } 399 400 func (m *Resource) GetType() string { 401 if m != nil { 402 return m.Type 403 } 404 return "" 405 } 406 407 func (m *Resource) GetEndpoint() string { 408 if m != nil { 409 return m.Endpoint 410 } 411 return "" 412 } 413 414 type GenerateRequest struct { 415 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 416 Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 417 Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` 418 Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` 419 Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` 420 Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"` 421 Options *Options `protobuf:"bytes,8,opt,name=options,proto3" json:"options,omitempty"` 422 Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` 423 XXX_NoUnkeyedLiteral struct{} `json:"-"` 424 XXX_unrecognized []byte `json:"-"` 425 XXX_sizecache int32 `json:"-"` 426 } 427 428 func (m *GenerateRequest) Reset() { *m = GenerateRequest{} } 429 func (m *GenerateRequest) String() string { return proto.CompactTextString(m) } 430 func (*GenerateRequest) ProtoMessage() {} 431 func (*GenerateRequest) Descriptor() ([]byte, []int) { 432 return fileDescriptor_712ec48c1eaf43a2, []int{7} 433 } 434 435 func (m *GenerateRequest) XXX_Unmarshal(b []byte) error { 436 return xxx_messageInfo_GenerateRequest.Unmarshal(m, b) 437 } 438 func (m *GenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 439 return xxx_messageInfo_GenerateRequest.Marshal(b, m, deterministic) 440 } 441 func (m *GenerateRequest) XXX_Merge(src proto.Message) { 442 xxx_messageInfo_GenerateRequest.Merge(m, src) 443 } 444 func (m *GenerateRequest) XXX_Size() int { 445 return xxx_messageInfo_GenerateRequest.Size(m) 446 } 447 func (m *GenerateRequest) XXX_DiscardUnknown() { 448 xxx_messageInfo_GenerateRequest.DiscardUnknown(m) 449 } 450 451 var xxx_messageInfo_GenerateRequest proto.InternalMessageInfo 452 453 func (m *GenerateRequest) GetId() string { 454 if m != nil { 455 return m.Id 456 } 457 return "" 458 } 459 460 func (m *GenerateRequest) GetMetadata() map[string]string { 461 if m != nil { 462 return m.Metadata 463 } 464 return nil 465 } 466 467 func (m *GenerateRequest) GetScopes() []string { 468 if m != nil { 469 return m.Scopes 470 } 471 return nil 472 } 473 474 func (m *GenerateRequest) GetSecret() string { 475 if m != nil { 476 return m.Secret 477 } 478 return "" 479 } 480 481 func (m *GenerateRequest) GetType() string { 482 if m != nil { 483 return m.Type 484 } 485 return "" 486 } 487 488 func (m *GenerateRequest) GetProvider() string { 489 if m != nil { 490 return m.Provider 491 } 492 return "" 493 } 494 495 func (m *GenerateRequest) GetOptions() *Options { 496 if m != nil { 497 return m.Options 498 } 499 return nil 500 } 501 502 func (m *GenerateRequest) GetName() string { 503 if m != nil { 504 return m.Name 505 } 506 return "" 507 } 508 509 type GenerateResponse struct { 510 Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 511 XXX_NoUnkeyedLiteral struct{} `json:"-"` 512 XXX_unrecognized []byte `json:"-"` 513 XXX_sizecache int32 `json:"-"` 514 } 515 516 func (m *GenerateResponse) Reset() { *m = GenerateResponse{} } 517 func (m *GenerateResponse) String() string { return proto.CompactTextString(m) } 518 func (*GenerateResponse) ProtoMessage() {} 519 func (*GenerateResponse) Descriptor() ([]byte, []int) { 520 return fileDescriptor_712ec48c1eaf43a2, []int{8} 521 } 522 523 func (m *GenerateResponse) XXX_Unmarshal(b []byte) error { 524 return xxx_messageInfo_GenerateResponse.Unmarshal(m, b) 525 } 526 func (m *GenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 527 return xxx_messageInfo_GenerateResponse.Marshal(b, m, deterministic) 528 } 529 func (m *GenerateResponse) XXX_Merge(src proto.Message) { 530 xxx_messageInfo_GenerateResponse.Merge(m, src) 531 } 532 func (m *GenerateResponse) XXX_Size() int { 533 return xxx_messageInfo_GenerateResponse.Size(m) 534 } 535 func (m *GenerateResponse) XXX_DiscardUnknown() { 536 xxx_messageInfo_GenerateResponse.DiscardUnknown(m) 537 } 538 539 var xxx_messageInfo_GenerateResponse proto.InternalMessageInfo 540 541 func (m *GenerateResponse) GetAccount() *Account { 542 if m != nil { 543 return m.Account 544 } 545 return nil 546 } 547 548 type GrantRequest struct { 549 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` 550 Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` 551 Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` 552 XXX_NoUnkeyedLiteral struct{} `json:"-"` 553 XXX_unrecognized []byte `json:"-"` 554 XXX_sizecache int32 `json:"-"` 555 } 556 557 func (m *GrantRequest) Reset() { *m = GrantRequest{} } 558 func (m *GrantRequest) String() string { return proto.CompactTextString(m) } 559 func (*GrantRequest) ProtoMessage() {} 560 func (*GrantRequest) Descriptor() ([]byte, []int) { 561 return fileDescriptor_712ec48c1eaf43a2, []int{9} 562 } 563 564 func (m *GrantRequest) XXX_Unmarshal(b []byte) error { 565 return xxx_messageInfo_GrantRequest.Unmarshal(m, b) 566 } 567 func (m *GrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 568 return xxx_messageInfo_GrantRequest.Marshal(b, m, deterministic) 569 } 570 func (m *GrantRequest) XXX_Merge(src proto.Message) { 571 xxx_messageInfo_GrantRequest.Merge(m, src) 572 } 573 func (m *GrantRequest) XXX_Size() int { 574 return xxx_messageInfo_GrantRequest.Size(m) 575 } 576 func (m *GrantRequest) XXX_DiscardUnknown() { 577 xxx_messageInfo_GrantRequest.DiscardUnknown(m) 578 } 579 580 var xxx_messageInfo_GrantRequest proto.InternalMessageInfo 581 582 func (m *GrantRequest) GetScope() string { 583 if m != nil { 584 return m.Scope 585 } 586 return "" 587 } 588 589 func (m *GrantRequest) GetResource() *Resource { 590 if m != nil { 591 return m.Resource 592 } 593 return nil 594 } 595 596 func (m *GrantRequest) GetOptions() *Options { 597 if m != nil { 598 return m.Options 599 } 600 return nil 601 } 602 603 type GrantResponse struct { 604 XXX_NoUnkeyedLiteral struct{} `json:"-"` 605 XXX_unrecognized []byte `json:"-"` 606 XXX_sizecache int32 `json:"-"` 607 } 608 609 func (m *GrantResponse) Reset() { *m = GrantResponse{} } 610 func (m *GrantResponse) String() string { return proto.CompactTextString(m) } 611 func (*GrantResponse) ProtoMessage() {} 612 func (*GrantResponse) Descriptor() ([]byte, []int) { 613 return fileDescriptor_712ec48c1eaf43a2, []int{10} 614 } 615 616 func (m *GrantResponse) XXX_Unmarshal(b []byte) error { 617 return xxx_messageInfo_GrantResponse.Unmarshal(m, b) 618 } 619 func (m *GrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 620 return xxx_messageInfo_GrantResponse.Marshal(b, m, deterministic) 621 } 622 func (m *GrantResponse) XXX_Merge(src proto.Message) { 623 xxx_messageInfo_GrantResponse.Merge(m, src) 624 } 625 func (m *GrantResponse) XXX_Size() int { 626 return xxx_messageInfo_GrantResponse.Size(m) 627 } 628 func (m *GrantResponse) XXX_DiscardUnknown() { 629 xxx_messageInfo_GrantResponse.DiscardUnknown(m) 630 } 631 632 var xxx_messageInfo_GrantResponse proto.InternalMessageInfo 633 634 type RevokeRequest struct { 635 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` 636 Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` 637 Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` 638 XXX_NoUnkeyedLiteral struct{} `json:"-"` 639 XXX_unrecognized []byte `json:"-"` 640 XXX_sizecache int32 `json:"-"` 641 } 642 643 func (m *RevokeRequest) Reset() { *m = RevokeRequest{} } 644 func (m *RevokeRequest) String() string { return proto.CompactTextString(m) } 645 func (*RevokeRequest) ProtoMessage() {} 646 func (*RevokeRequest) Descriptor() ([]byte, []int) { 647 return fileDescriptor_712ec48c1eaf43a2, []int{11} 648 } 649 650 func (m *RevokeRequest) XXX_Unmarshal(b []byte) error { 651 return xxx_messageInfo_RevokeRequest.Unmarshal(m, b) 652 } 653 func (m *RevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 654 return xxx_messageInfo_RevokeRequest.Marshal(b, m, deterministic) 655 } 656 func (m *RevokeRequest) XXX_Merge(src proto.Message) { 657 xxx_messageInfo_RevokeRequest.Merge(m, src) 658 } 659 func (m *RevokeRequest) XXX_Size() int { 660 return xxx_messageInfo_RevokeRequest.Size(m) 661 } 662 func (m *RevokeRequest) XXX_DiscardUnknown() { 663 xxx_messageInfo_RevokeRequest.DiscardUnknown(m) 664 } 665 666 var xxx_messageInfo_RevokeRequest proto.InternalMessageInfo 667 668 func (m *RevokeRequest) GetScope() string { 669 if m != nil { 670 return m.Scope 671 } 672 return "" 673 } 674 675 func (m *RevokeRequest) GetResource() *Resource { 676 if m != nil { 677 return m.Resource 678 } 679 return nil 680 } 681 682 func (m *RevokeRequest) GetOptions() *Options { 683 if m != nil { 684 return m.Options 685 } 686 return nil 687 } 688 689 type RevokeResponse struct { 690 XXX_NoUnkeyedLiteral struct{} `json:"-"` 691 XXX_unrecognized []byte `json:"-"` 692 XXX_sizecache int32 `json:"-"` 693 } 694 695 func (m *RevokeResponse) Reset() { *m = RevokeResponse{} } 696 func (m *RevokeResponse) String() string { return proto.CompactTextString(m) } 697 func (*RevokeResponse) ProtoMessage() {} 698 func (*RevokeResponse) Descriptor() ([]byte, []int) { 699 return fileDescriptor_712ec48c1eaf43a2, []int{12} 700 } 701 702 func (m *RevokeResponse) XXX_Unmarshal(b []byte) error { 703 return xxx_messageInfo_RevokeResponse.Unmarshal(m, b) 704 } 705 func (m *RevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 706 return xxx_messageInfo_RevokeResponse.Marshal(b, m, deterministic) 707 } 708 func (m *RevokeResponse) XXX_Merge(src proto.Message) { 709 xxx_messageInfo_RevokeResponse.Merge(m, src) 710 } 711 func (m *RevokeResponse) XXX_Size() int { 712 return xxx_messageInfo_RevokeResponse.Size(m) 713 } 714 func (m *RevokeResponse) XXX_DiscardUnknown() { 715 xxx_messageInfo_RevokeResponse.DiscardUnknown(m) 716 } 717 718 var xxx_messageInfo_RevokeResponse proto.InternalMessageInfo 719 720 type InspectRequest struct { 721 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 722 Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 723 XXX_NoUnkeyedLiteral struct{} `json:"-"` 724 XXX_unrecognized []byte `json:"-"` 725 XXX_sizecache int32 `json:"-"` 726 } 727 728 func (m *InspectRequest) Reset() { *m = InspectRequest{} } 729 func (m *InspectRequest) String() string { return proto.CompactTextString(m) } 730 func (*InspectRequest) ProtoMessage() {} 731 func (*InspectRequest) Descriptor() ([]byte, []int) { 732 return fileDescriptor_712ec48c1eaf43a2, []int{13} 733 } 734 735 func (m *InspectRequest) XXX_Unmarshal(b []byte) error { 736 return xxx_messageInfo_InspectRequest.Unmarshal(m, b) 737 } 738 func (m *InspectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 739 return xxx_messageInfo_InspectRequest.Marshal(b, m, deterministic) 740 } 741 func (m *InspectRequest) XXX_Merge(src proto.Message) { 742 xxx_messageInfo_InspectRequest.Merge(m, src) 743 } 744 func (m *InspectRequest) XXX_Size() int { 745 return xxx_messageInfo_InspectRequest.Size(m) 746 } 747 func (m *InspectRequest) XXX_DiscardUnknown() { 748 xxx_messageInfo_InspectRequest.DiscardUnknown(m) 749 } 750 751 var xxx_messageInfo_InspectRequest proto.InternalMessageInfo 752 753 func (m *InspectRequest) GetToken() string { 754 if m != nil { 755 return m.Token 756 } 757 return "" 758 } 759 760 func (m *InspectRequest) GetOptions() *Options { 761 if m != nil { 762 return m.Options 763 } 764 return nil 765 } 766 767 type InspectResponse struct { 768 Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 769 XXX_NoUnkeyedLiteral struct{} `json:"-"` 770 XXX_unrecognized []byte `json:"-"` 771 XXX_sizecache int32 `json:"-"` 772 } 773 774 func (m *InspectResponse) Reset() { *m = InspectResponse{} } 775 func (m *InspectResponse) String() string { return proto.CompactTextString(m) } 776 func (*InspectResponse) ProtoMessage() {} 777 func (*InspectResponse) Descriptor() ([]byte, []int) { 778 return fileDescriptor_712ec48c1eaf43a2, []int{14} 779 } 780 781 func (m *InspectResponse) XXX_Unmarshal(b []byte) error { 782 return xxx_messageInfo_InspectResponse.Unmarshal(m, b) 783 } 784 func (m *InspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 785 return xxx_messageInfo_InspectResponse.Marshal(b, m, deterministic) 786 } 787 func (m *InspectResponse) XXX_Merge(src proto.Message) { 788 xxx_messageInfo_InspectResponse.Merge(m, src) 789 } 790 func (m *InspectResponse) XXX_Size() int { 791 return xxx_messageInfo_InspectResponse.Size(m) 792 } 793 func (m *InspectResponse) XXX_DiscardUnknown() { 794 xxx_messageInfo_InspectResponse.DiscardUnknown(m) 795 } 796 797 var xxx_messageInfo_InspectResponse proto.InternalMessageInfo 798 799 func (m *InspectResponse) GetAccount() *Account { 800 if m != nil { 801 return m.Account 802 } 803 return nil 804 } 805 806 type TokenRequest struct { 807 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 808 Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` 809 RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` 810 TokenExpiry int64 `protobuf:"varint,4,opt,name=token_expiry,json=tokenExpiry,proto3" json:"token_expiry,omitempty"` 811 Options *Options `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` 812 XXX_NoUnkeyedLiteral struct{} `json:"-"` 813 XXX_unrecognized []byte `json:"-"` 814 XXX_sizecache int32 `json:"-"` 815 } 816 817 func (m *TokenRequest) Reset() { *m = TokenRequest{} } 818 func (m *TokenRequest) String() string { return proto.CompactTextString(m) } 819 func (*TokenRequest) ProtoMessage() {} 820 func (*TokenRequest) Descriptor() ([]byte, []int) { 821 return fileDescriptor_712ec48c1eaf43a2, []int{15} 822 } 823 824 func (m *TokenRequest) XXX_Unmarshal(b []byte) error { 825 return xxx_messageInfo_TokenRequest.Unmarshal(m, b) 826 } 827 func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 828 return xxx_messageInfo_TokenRequest.Marshal(b, m, deterministic) 829 } 830 func (m *TokenRequest) XXX_Merge(src proto.Message) { 831 xxx_messageInfo_TokenRequest.Merge(m, src) 832 } 833 func (m *TokenRequest) XXX_Size() int { 834 return xxx_messageInfo_TokenRequest.Size(m) 835 } 836 func (m *TokenRequest) XXX_DiscardUnknown() { 837 xxx_messageInfo_TokenRequest.DiscardUnknown(m) 838 } 839 840 var xxx_messageInfo_TokenRequest proto.InternalMessageInfo 841 842 func (m *TokenRequest) GetId() string { 843 if m != nil { 844 return m.Id 845 } 846 return "" 847 } 848 849 func (m *TokenRequest) GetSecret() string { 850 if m != nil { 851 return m.Secret 852 } 853 return "" 854 } 855 856 func (m *TokenRequest) GetRefreshToken() string { 857 if m != nil { 858 return m.RefreshToken 859 } 860 return "" 861 } 862 863 func (m *TokenRequest) GetTokenExpiry() int64 { 864 if m != nil { 865 return m.TokenExpiry 866 } 867 return 0 868 } 869 870 func (m *TokenRequest) GetOptions() *Options { 871 if m != nil { 872 return m.Options 873 } 874 return nil 875 } 876 877 type TokenResponse struct { 878 Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 879 XXX_NoUnkeyedLiteral struct{} `json:"-"` 880 XXX_unrecognized []byte `json:"-"` 881 XXX_sizecache int32 `json:"-"` 882 } 883 884 func (m *TokenResponse) Reset() { *m = TokenResponse{} } 885 func (m *TokenResponse) String() string { return proto.CompactTextString(m) } 886 func (*TokenResponse) ProtoMessage() {} 887 func (*TokenResponse) Descriptor() ([]byte, []int) { 888 return fileDescriptor_712ec48c1eaf43a2, []int{16} 889 } 890 891 func (m *TokenResponse) XXX_Unmarshal(b []byte) error { 892 return xxx_messageInfo_TokenResponse.Unmarshal(m, b) 893 } 894 func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 895 return xxx_messageInfo_TokenResponse.Marshal(b, m, deterministic) 896 } 897 func (m *TokenResponse) XXX_Merge(src proto.Message) { 898 xxx_messageInfo_TokenResponse.Merge(m, src) 899 } 900 func (m *TokenResponse) XXX_Size() int { 901 return xxx_messageInfo_TokenResponse.Size(m) 902 } 903 func (m *TokenResponse) XXX_DiscardUnknown() { 904 xxx_messageInfo_TokenResponse.DiscardUnknown(m) 905 } 906 907 var xxx_messageInfo_TokenResponse proto.InternalMessageInfo 908 909 func (m *TokenResponse) GetToken() *Token { 910 if m != nil { 911 return m.Token 912 } 913 return nil 914 } 915 916 type Rule struct { 917 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 918 Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` 919 Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` 920 Access Access `protobuf:"varint,4,opt,name=access,proto3,enum=auth.Access" json:"access,omitempty"` 921 Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` 922 XXX_NoUnkeyedLiteral struct{} `json:"-"` 923 XXX_unrecognized []byte `json:"-"` 924 XXX_sizecache int32 `json:"-"` 925 } 926 927 func (m *Rule) Reset() { *m = Rule{} } 928 func (m *Rule) String() string { return proto.CompactTextString(m) } 929 func (*Rule) ProtoMessage() {} 930 func (*Rule) Descriptor() ([]byte, []int) { 931 return fileDescriptor_712ec48c1eaf43a2, []int{17} 932 } 933 934 func (m *Rule) XXX_Unmarshal(b []byte) error { 935 return xxx_messageInfo_Rule.Unmarshal(m, b) 936 } 937 func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 938 return xxx_messageInfo_Rule.Marshal(b, m, deterministic) 939 } 940 func (m *Rule) XXX_Merge(src proto.Message) { 941 xxx_messageInfo_Rule.Merge(m, src) 942 } 943 func (m *Rule) XXX_Size() int { 944 return xxx_messageInfo_Rule.Size(m) 945 } 946 func (m *Rule) XXX_DiscardUnknown() { 947 xxx_messageInfo_Rule.DiscardUnknown(m) 948 } 949 950 var xxx_messageInfo_Rule proto.InternalMessageInfo 951 952 func (m *Rule) GetId() string { 953 if m != nil { 954 return m.Id 955 } 956 return "" 957 } 958 959 func (m *Rule) GetScope() string { 960 if m != nil { 961 return m.Scope 962 } 963 return "" 964 } 965 966 func (m *Rule) GetResource() *Resource { 967 if m != nil { 968 return m.Resource 969 } 970 return nil 971 } 972 973 func (m *Rule) GetAccess() Access { 974 if m != nil { 975 return m.Access 976 } 977 return Access_UNKNOWN 978 } 979 980 func (m *Rule) GetPriority() int32 { 981 if m != nil { 982 return m.Priority 983 } 984 return 0 985 } 986 987 type Options struct { 988 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 989 XXX_NoUnkeyedLiteral struct{} `json:"-"` 990 XXX_unrecognized []byte `json:"-"` 991 XXX_sizecache int32 `json:"-"` 992 } 993 994 func (m *Options) Reset() { *m = Options{} } 995 func (m *Options) String() string { return proto.CompactTextString(m) } 996 func (*Options) ProtoMessage() {} 997 func (*Options) Descriptor() ([]byte, []int) { 998 return fileDescriptor_712ec48c1eaf43a2, []int{18} 999 } 1000 1001 func (m *Options) XXX_Unmarshal(b []byte) error { 1002 return xxx_messageInfo_Options.Unmarshal(m, b) 1003 } 1004 func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1005 return xxx_messageInfo_Options.Marshal(b, m, deterministic) 1006 } 1007 func (m *Options) XXX_Merge(src proto.Message) { 1008 xxx_messageInfo_Options.Merge(m, src) 1009 } 1010 func (m *Options) XXX_Size() int { 1011 return xxx_messageInfo_Options.Size(m) 1012 } 1013 func (m *Options) XXX_DiscardUnknown() { 1014 xxx_messageInfo_Options.DiscardUnknown(m) 1015 } 1016 1017 var xxx_messageInfo_Options proto.InternalMessageInfo 1018 1019 func (m *Options) GetNamespace() string { 1020 if m != nil { 1021 return m.Namespace 1022 } 1023 return "" 1024 } 1025 1026 type CreateRequest struct { 1027 Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` 1028 Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 1029 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1030 XXX_unrecognized []byte `json:"-"` 1031 XXX_sizecache int32 `json:"-"` 1032 } 1033 1034 func (m *CreateRequest) Reset() { *m = CreateRequest{} } 1035 func (m *CreateRequest) String() string { return proto.CompactTextString(m) } 1036 func (*CreateRequest) ProtoMessage() {} 1037 func (*CreateRequest) Descriptor() ([]byte, []int) { 1038 return fileDescriptor_712ec48c1eaf43a2, []int{19} 1039 } 1040 1041 func (m *CreateRequest) XXX_Unmarshal(b []byte) error { 1042 return xxx_messageInfo_CreateRequest.Unmarshal(m, b) 1043 } 1044 func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1045 return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) 1046 } 1047 func (m *CreateRequest) XXX_Merge(src proto.Message) { 1048 xxx_messageInfo_CreateRequest.Merge(m, src) 1049 } 1050 func (m *CreateRequest) XXX_Size() int { 1051 return xxx_messageInfo_CreateRequest.Size(m) 1052 } 1053 func (m *CreateRequest) XXX_DiscardUnknown() { 1054 xxx_messageInfo_CreateRequest.DiscardUnknown(m) 1055 } 1056 1057 var xxx_messageInfo_CreateRequest proto.InternalMessageInfo 1058 1059 func (m *CreateRequest) GetRule() *Rule { 1060 if m != nil { 1061 return m.Rule 1062 } 1063 return nil 1064 } 1065 1066 func (m *CreateRequest) GetOptions() *Options { 1067 if m != nil { 1068 return m.Options 1069 } 1070 return nil 1071 } 1072 1073 type CreateResponse struct { 1074 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1075 XXX_unrecognized []byte `json:"-"` 1076 XXX_sizecache int32 `json:"-"` 1077 } 1078 1079 func (m *CreateResponse) Reset() { *m = CreateResponse{} } 1080 func (m *CreateResponse) String() string { return proto.CompactTextString(m) } 1081 func (*CreateResponse) ProtoMessage() {} 1082 func (*CreateResponse) Descriptor() ([]byte, []int) { 1083 return fileDescriptor_712ec48c1eaf43a2, []int{20} 1084 } 1085 1086 func (m *CreateResponse) XXX_Unmarshal(b []byte) error { 1087 return xxx_messageInfo_CreateResponse.Unmarshal(m, b) 1088 } 1089 func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1090 return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) 1091 } 1092 func (m *CreateResponse) XXX_Merge(src proto.Message) { 1093 xxx_messageInfo_CreateResponse.Merge(m, src) 1094 } 1095 func (m *CreateResponse) XXX_Size() int { 1096 return xxx_messageInfo_CreateResponse.Size(m) 1097 } 1098 func (m *CreateResponse) XXX_DiscardUnknown() { 1099 xxx_messageInfo_CreateResponse.DiscardUnknown(m) 1100 } 1101 1102 var xxx_messageInfo_CreateResponse proto.InternalMessageInfo 1103 1104 type DeleteRequest struct { 1105 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 1106 Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 1107 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1108 XXX_unrecognized []byte `json:"-"` 1109 XXX_sizecache int32 `json:"-"` 1110 } 1111 1112 func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } 1113 func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } 1114 func (*DeleteRequest) ProtoMessage() {} 1115 func (*DeleteRequest) Descriptor() ([]byte, []int) { 1116 return fileDescriptor_712ec48c1eaf43a2, []int{21} 1117 } 1118 1119 func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { 1120 return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) 1121 } 1122 func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1123 return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) 1124 } 1125 func (m *DeleteRequest) XXX_Merge(src proto.Message) { 1126 xxx_messageInfo_DeleteRequest.Merge(m, src) 1127 } 1128 func (m *DeleteRequest) XXX_Size() int { 1129 return xxx_messageInfo_DeleteRequest.Size(m) 1130 } 1131 func (m *DeleteRequest) XXX_DiscardUnknown() { 1132 xxx_messageInfo_DeleteRequest.DiscardUnknown(m) 1133 } 1134 1135 var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo 1136 1137 func (m *DeleteRequest) GetId() string { 1138 if m != nil { 1139 return m.Id 1140 } 1141 return "" 1142 } 1143 1144 func (m *DeleteRequest) GetOptions() *Options { 1145 if m != nil { 1146 return m.Options 1147 } 1148 return nil 1149 } 1150 1151 type DeleteResponse struct { 1152 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1153 XXX_unrecognized []byte `json:"-"` 1154 XXX_sizecache int32 `json:"-"` 1155 } 1156 1157 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 1158 func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } 1159 func (*DeleteResponse) ProtoMessage() {} 1160 func (*DeleteResponse) Descriptor() ([]byte, []int) { 1161 return fileDescriptor_712ec48c1eaf43a2, []int{22} 1162 } 1163 1164 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 1165 return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) 1166 } 1167 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1168 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 1169 } 1170 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 1171 xxx_messageInfo_DeleteResponse.Merge(m, src) 1172 } 1173 func (m *DeleteResponse) XXX_Size() int { 1174 return xxx_messageInfo_DeleteResponse.Size(m) 1175 } 1176 func (m *DeleteResponse) XXX_DiscardUnknown() { 1177 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 1178 } 1179 1180 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 1181 1182 type ListRequest struct { 1183 Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 1184 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1185 XXX_unrecognized []byte `json:"-"` 1186 XXX_sizecache int32 `json:"-"` 1187 } 1188 1189 func (m *ListRequest) Reset() { *m = ListRequest{} } 1190 func (m *ListRequest) String() string { return proto.CompactTextString(m) } 1191 func (*ListRequest) ProtoMessage() {} 1192 func (*ListRequest) Descriptor() ([]byte, []int) { 1193 return fileDescriptor_712ec48c1eaf43a2, []int{23} 1194 } 1195 1196 func (m *ListRequest) XXX_Unmarshal(b []byte) error { 1197 return xxx_messageInfo_ListRequest.Unmarshal(m, b) 1198 } 1199 func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1200 return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic) 1201 } 1202 func (m *ListRequest) XXX_Merge(src proto.Message) { 1203 xxx_messageInfo_ListRequest.Merge(m, src) 1204 } 1205 func (m *ListRequest) XXX_Size() int { 1206 return xxx_messageInfo_ListRequest.Size(m) 1207 } 1208 func (m *ListRequest) XXX_DiscardUnknown() { 1209 xxx_messageInfo_ListRequest.DiscardUnknown(m) 1210 } 1211 1212 var xxx_messageInfo_ListRequest proto.InternalMessageInfo 1213 1214 func (m *ListRequest) GetOptions() *Options { 1215 if m != nil { 1216 return m.Options 1217 } 1218 return nil 1219 } 1220 1221 type ListResponse struct { 1222 Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` 1223 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1224 XXX_unrecognized []byte `json:"-"` 1225 XXX_sizecache int32 `json:"-"` 1226 } 1227 1228 func (m *ListResponse) Reset() { *m = ListResponse{} } 1229 func (m *ListResponse) String() string { return proto.CompactTextString(m) } 1230 func (*ListResponse) ProtoMessage() {} 1231 func (*ListResponse) Descriptor() ([]byte, []int) { 1232 return fileDescriptor_712ec48c1eaf43a2, []int{24} 1233 } 1234 1235 func (m *ListResponse) XXX_Unmarshal(b []byte) error { 1236 return xxx_messageInfo_ListResponse.Unmarshal(m, b) 1237 } 1238 func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1239 return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic) 1240 } 1241 func (m *ListResponse) XXX_Merge(src proto.Message) { 1242 xxx_messageInfo_ListResponse.Merge(m, src) 1243 } 1244 func (m *ListResponse) XXX_Size() int { 1245 return xxx_messageInfo_ListResponse.Size(m) 1246 } 1247 func (m *ListResponse) XXX_DiscardUnknown() { 1248 xxx_messageInfo_ListResponse.DiscardUnknown(m) 1249 } 1250 1251 var xxx_messageInfo_ListResponse proto.InternalMessageInfo 1252 1253 func (m *ListResponse) GetRules() []*Rule { 1254 if m != nil { 1255 return m.Rules 1256 } 1257 return nil 1258 } 1259 1260 type ChangeSecretRequest struct { 1261 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 1262 OldSecret string `protobuf:"bytes,2,opt,name=old_secret,json=oldSecret,proto3" json:"old_secret,omitempty"` 1263 NewSecret string `protobuf:"bytes,3,opt,name=new_secret,json=newSecret,proto3" json:"new_secret,omitempty"` 1264 Options *Options `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` 1265 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1266 XXX_unrecognized []byte `json:"-"` 1267 XXX_sizecache int32 `json:"-"` 1268 } 1269 1270 func (m *ChangeSecretRequest) Reset() { *m = ChangeSecretRequest{} } 1271 func (m *ChangeSecretRequest) String() string { return proto.CompactTextString(m) } 1272 func (*ChangeSecretRequest) ProtoMessage() {} 1273 func (*ChangeSecretRequest) Descriptor() ([]byte, []int) { 1274 return fileDescriptor_712ec48c1eaf43a2, []int{25} 1275 } 1276 1277 func (m *ChangeSecretRequest) XXX_Unmarshal(b []byte) error { 1278 return xxx_messageInfo_ChangeSecretRequest.Unmarshal(m, b) 1279 } 1280 func (m *ChangeSecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1281 return xxx_messageInfo_ChangeSecretRequest.Marshal(b, m, deterministic) 1282 } 1283 func (m *ChangeSecretRequest) XXX_Merge(src proto.Message) { 1284 xxx_messageInfo_ChangeSecretRequest.Merge(m, src) 1285 } 1286 func (m *ChangeSecretRequest) XXX_Size() int { 1287 return xxx_messageInfo_ChangeSecretRequest.Size(m) 1288 } 1289 func (m *ChangeSecretRequest) XXX_DiscardUnknown() { 1290 xxx_messageInfo_ChangeSecretRequest.DiscardUnknown(m) 1291 } 1292 1293 var xxx_messageInfo_ChangeSecretRequest proto.InternalMessageInfo 1294 1295 func (m *ChangeSecretRequest) GetId() string { 1296 if m != nil { 1297 return m.Id 1298 } 1299 return "" 1300 } 1301 1302 func (m *ChangeSecretRequest) GetOldSecret() string { 1303 if m != nil { 1304 return m.OldSecret 1305 } 1306 return "" 1307 } 1308 1309 func (m *ChangeSecretRequest) GetNewSecret() string { 1310 if m != nil { 1311 return m.NewSecret 1312 } 1313 return "" 1314 } 1315 1316 func (m *ChangeSecretRequest) GetOptions() *Options { 1317 if m != nil { 1318 return m.Options 1319 } 1320 return nil 1321 } 1322 1323 type ChangeSecretResponse struct { 1324 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1325 XXX_unrecognized []byte `json:"-"` 1326 XXX_sizecache int32 `json:"-"` 1327 } 1328 1329 func (m *ChangeSecretResponse) Reset() { *m = ChangeSecretResponse{} } 1330 func (m *ChangeSecretResponse) String() string { return proto.CompactTextString(m) } 1331 func (*ChangeSecretResponse) ProtoMessage() {} 1332 func (*ChangeSecretResponse) Descriptor() ([]byte, []int) { 1333 return fileDescriptor_712ec48c1eaf43a2, []int{26} 1334 } 1335 1336 func (m *ChangeSecretResponse) XXX_Unmarshal(b []byte) error { 1337 return xxx_messageInfo_ChangeSecretResponse.Unmarshal(m, b) 1338 } 1339 func (m *ChangeSecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1340 return xxx_messageInfo_ChangeSecretResponse.Marshal(b, m, deterministic) 1341 } 1342 func (m *ChangeSecretResponse) XXX_Merge(src proto.Message) { 1343 xxx_messageInfo_ChangeSecretResponse.Merge(m, src) 1344 } 1345 func (m *ChangeSecretResponse) XXX_Size() int { 1346 return xxx_messageInfo_ChangeSecretResponse.Size(m) 1347 } 1348 func (m *ChangeSecretResponse) XXX_DiscardUnknown() { 1349 xxx_messageInfo_ChangeSecretResponse.DiscardUnknown(m) 1350 } 1351 1352 var xxx_messageInfo_ChangeSecretResponse proto.InternalMessageInfo 1353 1354 func init() { 1355 proto.RegisterEnum("auth.Access", Access_name, Access_value) 1356 proto.RegisterType((*ListAccountsRequest)(nil), "auth.ListAccountsRequest") 1357 proto.RegisterType((*ListAccountsResponse)(nil), "auth.ListAccountsResponse") 1358 proto.RegisterType((*DeleteAccountRequest)(nil), "auth.DeleteAccountRequest") 1359 proto.RegisterType((*DeleteAccountResponse)(nil), "auth.DeleteAccountResponse") 1360 proto.RegisterType((*Token)(nil), "auth.Token") 1361 proto.RegisterType((*Account)(nil), "auth.Account") 1362 proto.RegisterMapType((map[string]string)(nil), "auth.Account.MetadataEntry") 1363 proto.RegisterType((*Resource)(nil), "auth.Resource") 1364 proto.RegisterType((*GenerateRequest)(nil), "auth.GenerateRequest") 1365 proto.RegisterMapType((map[string]string)(nil), "auth.GenerateRequest.MetadataEntry") 1366 proto.RegisterType((*GenerateResponse)(nil), "auth.GenerateResponse") 1367 proto.RegisterType((*GrantRequest)(nil), "auth.GrantRequest") 1368 proto.RegisterType((*GrantResponse)(nil), "auth.GrantResponse") 1369 proto.RegisterType((*RevokeRequest)(nil), "auth.RevokeRequest") 1370 proto.RegisterType((*RevokeResponse)(nil), "auth.RevokeResponse") 1371 proto.RegisterType((*InspectRequest)(nil), "auth.InspectRequest") 1372 proto.RegisterType((*InspectResponse)(nil), "auth.InspectResponse") 1373 proto.RegisterType((*TokenRequest)(nil), "auth.TokenRequest") 1374 proto.RegisterType((*TokenResponse)(nil), "auth.TokenResponse") 1375 proto.RegisterType((*Rule)(nil), "auth.Rule") 1376 proto.RegisterType((*Options)(nil), "auth.Options") 1377 proto.RegisterType((*CreateRequest)(nil), "auth.CreateRequest") 1378 proto.RegisterType((*CreateResponse)(nil), "auth.CreateResponse") 1379 proto.RegisterType((*DeleteRequest)(nil), "auth.DeleteRequest") 1380 proto.RegisterType((*DeleteResponse)(nil), "auth.DeleteResponse") 1381 proto.RegisterType((*ListRequest)(nil), "auth.ListRequest") 1382 proto.RegisterType((*ListResponse)(nil), "auth.ListResponse") 1383 proto.RegisterType((*ChangeSecretRequest)(nil), "auth.ChangeSecretRequest") 1384 proto.RegisterType((*ChangeSecretResponse)(nil), "auth.ChangeSecretResponse") 1385 } 1386 1387 func init() { proto.RegisterFile("auth/auth.proto", fileDescriptor_712ec48c1eaf43a2) } 1388 1389 var fileDescriptor_712ec48c1eaf43a2 = []byte{ 1390 // 1052 bytes of a gzipped FileDescriptorProto 1391 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x6e, 0xe3, 0xc4, 1392 0x17, 0xaf, 0x63, 0xe7, 0xeb, 0xe4, 0xa3, 0xf9, 0x4f, 0xd3, 0xfe, 0x4d, 0x16, 0x50, 0xeb, 0x45, 1393 0x6a, 0x77, 0x91, 0x52, 0x94, 0xd5, 0xc2, 0x6a, 0x2b, 0xb1, 0x2a, 0x6d, 0x54, 0x56, 0x40, 0x2a, 1394 0x99, 0x45, 0x20, 0x6e, 0x2a, 0xaf, 0x73, 0xd8, 0x58, 0x4d, 0x6d, 0x63, 0x8f, 0xbb, 0x84, 0x3b, 1395 0xee, 0x79, 0x02, 0x1e, 0x00, 0xae, 0xb9, 0xe7, 0x45, 0x78, 0x1a, 0x90, 0x67, 0xce, 0x38, 0x76, 1396 0xea, 0x86, 0x22, 0x90, 0xb8, 0xb1, 0x7c, 0x3e, 0xe7, 0xfc, 0x7e, 0x73, 0xce, 0xcc, 0xc0, 0xa6, 1397 0x93, 0xf0, 0xd9, 0x61, 0xfa, 0x19, 0x86, 0x51, 0xc0, 0x03, 0x66, 0xa4, 0xff, 0xd6, 0x87, 0xb0, 1398 0xf5, 0xa9, 0x17, 0xf3, 0x63, 0xd7, 0x0d, 0x12, 0x9f, 0xc7, 0x36, 0x7e, 0x9b, 0x60, 0xcc, 0xd9, 1399 0x3e, 0xd4, 0x83, 0x90, 0x7b, 0x81, 0x1f, 0x9b, 0xda, 0xae, 0x76, 0xd0, 0x1a, 0x75, 0x86, 0x22, 1400 0xf4, 0x5c, 0x2a, 0x6d, 0x65, 0xb5, 0x8e, 0xa1, 0x5f, 0x8c, 0x8f, 0xc3, 0xc0, 0x8f, 0x91, 0x3d, 1401 0x80, 0x86, 0x43, 0x3a, 0x53, 0xdb, 0xd5, 0x97, 0x19, 0xc8, 0xd3, 0xce, 0xcc, 0xd6, 0x39, 0xf4, 1402 0x4f, 0x71, 0x8e, 0x1c, 0x95, 0x89, 0x6a, 0xe8, 0x42, 0xc5, 0x9b, 0x8a, 0xe5, 0x9b, 0x76, 0xc5, 1403 0x9b, 0xe6, 0x6b, 0xaa, 0xac, 0xad, 0xe9, 0xff, 0xb0, 0xbd, 0x92, 0x50, 0x16, 0x65, 0xfd, 0xa0, 1404 0x41, 0xf5, 0x45, 0x70, 0x89, 0x3e, 0xdb, 0x83, 0xb6, 0xe3, 0xba, 0x18, 0xc7, 0x17, 0x3c, 0x95, 1405 0x69, 0x95, 0x96, 0xd4, 0x49, 0x97, 0xfb, 0xd0, 0x89, 0xf0, 0x9b, 0x08, 0xe3, 0x19, 0xf9, 0x54, 1406 0x84, 0x4f, 0x9b, 0x94, 0xd2, 0xc9, 0x84, 0xba, 0x1b, 0xa1, 0xc3, 0x71, 0x6a, 0xea, 0xbb, 0xda, 1407 0x81, 0x6e, 0x2b, 0x91, 0xed, 0x40, 0x0d, 0xbf, 0x0b, 0xbd, 0x68, 0x61, 0x1a, 0xc2, 0x40, 0x92, 1408 0xf5, 0x87, 0x06, 0x75, 0xaa, 0xeb, 0x06, 0x42, 0x06, 0x06, 0x5f, 0x84, 0x48, 0x2b, 0x89, 0x7f, 1409 0xf6, 0x01, 0x34, 0xae, 0x90, 0x3b, 0x53, 0x87, 0x3b, 0xa6, 0x21, 0x88, 0xbc, 0x57, 0x20, 0x72, 1410 0xf8, 0x19, 0x59, 0xc7, 0x3e, 0x8f, 0x16, 0x76, 0xe6, 0x9c, 0x16, 0x10, 0xbb, 0x41, 0x88, 0xb1, 1411 0x59, 0xdd, 0xd5, 0x0f, 0x9a, 0x36, 0x49, 0xa9, 0xde, 0x8b, 0xe3, 0x04, 0x23, 0xb3, 0x26, 0x96, 1412 0x21, 0x49, 0xf8, 0xa3, 0x1b, 0x21, 0x37, 0xeb, 0x52, 0x2f, 0xa5, 0xb4, 0x28, 0xdf, 0xb9, 0x42, 1413 0xb3, 0x21, 0x8b, 0x4a, 0xff, 0x07, 0x47, 0xd0, 0x29, 0x2c, 0xcb, 0x7a, 0xa0, 0x5f, 0xe2, 0x82, 1414 0xa0, 0xa4, 0xbf, 0xac, 0x0f, 0xd5, 0x6b, 0x67, 0x9e, 0x28, 0x30, 0x52, 0x78, 0x5a, 0x79, 0xa2, 1415 0x59, 0x13, 0x68, 0xd8, 0x18, 0x07, 0x49, 0xe4, 0x62, 0x96, 0x5c, 0x5b, 0x26, 0x2f, 0x65, 0x61, 1416 0x00, 0x0d, 0xf4, 0xa7, 0x61, 0xe0, 0xf9, 0x5c, 0x10, 0xdd, 0xb4, 0x33, 0xd9, 0xfa, 0xad, 0x02, 1417 0x9b, 0x67, 0xe8, 0x63, 0xe4, 0x70, 0xbc, 0xad, 0x77, 0x9e, 0xe5, 0x58, 0xd4, 0x05, 0x8b, 0xf7, 1418 0x25, 0x8b, 0x2b, 0x81, 0x77, 0x60, 0xd3, 0x58, 0x65, 0x93, 0x58, 0xab, 0xae, 0xb2, 0x26, 0x40, 1419 0xd4, 0x8a, 0x20, 0xc2, 0x28, 0xb8, 0xf6, 0xa6, 0x18, 0x11, 0xc7, 0x99, 0x9c, 0x6f, 0xee, 0xc6, 1420 0xba, 0xe6, 0xce, 0x18, 0x6b, 0xfe, 0x5b, 0xdb, 0x71, 0x04, 0xbd, 0x25, 0x09, 0x34, 0xbd, 0xfb, 1421 0x50, 0xa7, 0xf1, 0x2c, 0x8e, 0xbf, 0x1a, 0x28, 0x65, 0xb5, 0x16, 0xd0, 0x3e, 0x8b, 0x9c, 0xe5, 1422 0xcc, 0xf6, 0xa1, 0x2a, 0x88, 0xa1, 0xa5, 0xa5, 0xc0, 0x1e, 0x42, 0x23, 0xa2, 0x1d, 0xa7, 0xd1, 1423 0xed, 0xca, 0x7c, 0xaa, 0x0f, 0xec, 0xcc, 0x9e, 0x27, 0x42, 0x5f, 0x3b, 0xe5, 0x9b, 0xd0, 0xa1, 1424 0xa5, 0x69, 0xba, 0xbf, 0x87, 0x8e, 0x8d, 0xd7, 0xc1, 0x25, 0xfe, 0x07, 0xc5, 0xf4, 0xa0, 0xab, 1425 0xd6, 0xa6, 0x6a, 0xce, 0xa1, 0xfb, 0xdc, 0x8f, 0x43, 0x74, 0xf3, 0xdc, 0xe4, 0x0f, 0x1b, 0x29, 1426 0xdc, 0xfd, 0x54, 0x7b, 0x0a, 0x9b, 0x59, 0xc2, 0xbf, 0xbb, 0x4d, 0xbf, 0x68, 0xd0, 0x16, 0x07, 1427 0xd6, 0x6d, 0xf3, 0xb1, 0x6c, 0xe3, 0x4a, 0xa1, 0x8d, 0x6f, 0x1c, 0x82, 0x7a, 0xc9, 0x21, 0xb8, 1428 0x07, 0x6d, 0x61, 0xbc, 0x28, 0x1c, 0x78, 0x2d, 0xa1, 0x1b, 0x0b, 0x55, 0x1e, 0x65, 0x75, 0x2d, 1429 0xca, 0x11, 0x74, 0xa8, 0x50, 0xc2, 0xb8, 0x97, 0x67, 0xad, 0x35, 0x6a, 0xc9, 0x38, 0xe9, 0x23, 1430 0x2d, 0xd6, 0x4f, 0x1a, 0x18, 0x76, 0x32, 0xc7, 0x1b, 0xa8, 0xb2, 0x06, 0xa8, 0xdc, 0xd6, 0x00, 1431 0xfa, 0x5f, 0x34, 0xc0, 0x3b, 0x50, 0x93, 0x77, 0x82, 0x00, 0xd5, 0x1d, 0xb5, 0x33, 0x82, 0x31, 1432 0x8e, 0x6d, 0xb2, 0xc9, 0xc1, 0xf6, 0x82, 0xc8, 0xe3, 0x0b, 0x01, 0xaf, 0x6a, 0x67, 0xb2, 0xb5, 1433 0x0f, 0x75, 0x02, 0xc9, 0xde, 0x84, 0x66, 0x3a, 0xae, 0x71, 0xe8, 0xb8, 0xaa, 0x27, 0x97, 0x0a, 1434 0xeb, 0x2b, 0xe8, 0x9c, 0x88, 0xbb, 0x43, 0xed, 0xd1, 0xdb, 0x60, 0x44, 0xc9, 0x1c, 0x09, 0x38, 1435 0x50, 0x8d, 0xc9, 0x1c, 0x6d, 0xa1, 0xbf, 0x7b, 0xe7, 0xf4, 0xa0, 0xab, 0x32, 0x53, 0x73, 0x7e, 1436 0x0c, 0x1d, 0x79, 0x43, 0xfe, 0xe3, 0xbb, 0xb6, 0x07, 0x5d, 0x95, 0x89, 0x72, 0xbf, 0x0f, 0xad, 1437 0xf4, 0x45, 0x50, 0xf2, 0x92, 0x58, 0x9f, 0xe9, 0x3d, 0x68, 0xcb, 0x38, 0xda, 0xf8, 0x5d, 0xa8, 1438 0xa6, 0x30, 0xd5, 0xf3, 0x21, 0x8f, 0x5f, 0x1a, 0xac, 0x1f, 0x35, 0xd8, 0x3a, 0x99, 0x39, 0xfe, 1439 0x2b, 0xfc, 0x5c, 0x74, 0xeb, 0x6d, 0x60, 0xde, 0x02, 0x08, 0xe6, 0xd3, 0x8b, 0x42, 0x83, 0x37, 1440 0x83, 0xf9, 0x54, 0x46, 0xa5, 0x66, 0x1f, 0x5f, 0x2b, 0xb3, 0x4e, 0xfb, 0x82, 0xaf, 0xc9, 0x9c, 1441 0x03, 0x60, 0xac, 0x05, 0xb0, 0x03, 0xfd, 0x62, 0x35, 0x12, 0xc8, 0xc3, 0x21, 0xd4, 0x64, 0xbf, 1442 0xb0, 0x16, 0xd4, 0xbf, 0x98, 0x7c, 0x32, 0x39, 0xff, 0x72, 0xd2, 0xdb, 0x48, 0x85, 0x33, 0xfb, 1443 0x78, 0xf2, 0x62, 0x7c, 0xda, 0xd3, 0x18, 0x40, 0xed, 0x74, 0x3c, 0x79, 0x3e, 0x3e, 0xed, 0x55, 1444 0x46, 0xbf, 0x6a, 0x60, 0x1c, 0x27, 0x7c, 0xc6, 0x8e, 0xa0, 0xa1, 0x4e, 0x66, 0xb6, 0x5d, 0x7a, 1445 0x5d, 0x0d, 0x76, 0x56, 0xd5, 0xb4, 0x09, 0x1b, 0xec, 0x09, 0xd4, 0xe9, 0xb8, 0x60, 0x7d, 0xe9, 1446 0x54, 0x3c, 0x8e, 0x06, 0xdb, 0x2b, 0xda, 0x2c, 0x72, 0xa4, 0x1e, 0x49, 0x2c, 0x3f, 0x6b, 0x14, 1447 0xb5, 0x55, 0xd0, 0xa9, 0x98, 0xd1, 0xef, 0x1a, 0x34, 0xd4, 0x1b, 0x90, 0x3d, 0x03, 0x23, 0xdd, 1448 0x49, 0xf6, 0x86, 0xf4, 0x2d, 0x79, 0x5f, 0x0e, 0x06, 0x65, 0xa6, 0xac, 0x82, 0x13, 0xa8, 0xc9, 1449 0xa6, 0x62, 0xe4, 0x57, 0xf6, 0x3e, 0x1c, 0xdc, 0x2b, 0xb5, 0x65, 0x49, 0xce, 0xa0, 0x9d, 0xdf, 1450 0x0e, 0x55, 0x4d, 0x49, 0xc3, 0xa8, 0x6a, 0xca, 0x76, 0xcf, 0xda, 0x18, 0xfd, 0xac, 0x41, 0x35, 1451 0x6d, 0xbb, 0x98, 0x3d, 0x86, 0x9a, 0x1c, 0x24, 0x46, 0x34, 0x14, 0x06, 0x76, 0xd0, 0x2f, 0x2a, 1452 0xb3, 0x4a, 0x1e, 0x67, 0x70, 0xb6, 0xf2, 0x25, 0xaf, 0x84, 0xad, 0x8c, 0xd1, 0x06, 0x3b, 0x24, 1453 0x1a, 0xff, 0xb7, 0xe4, 0x4a, 0x85, 0xb0, 0xbc, 0x4a, 0x05, 0x7c, 0xf4, 0xee, 0xd7, 0x0f, 0x5e, 1454 0x79, 0x7c, 0x96, 0xbc, 0x1c, 0xba, 0xc1, 0xd5, 0xe1, 0x95, 0xe7, 0x46, 0x01, 0x7d, 0xaf, 0x1f, 1455 0x1d, 0x8a, 0x47, 0xbf, 0x78, 0xff, 0x1f, 0xa5, 0x9f, 0x97, 0x35, 0xa1, 0x78, 0xf4, 0x67, 0x00, 1456 0x00, 0x00, 0xff, 0xff, 0x59, 0x5b, 0x5f, 0xcd, 0x18, 0x0c, 0x00, 0x00, 1457 } 1458 1459 // Reference imports to suppress errors if they are not otherwise used. 1460 var _ context.Context 1461 var _ grpc.ClientConn 1462 1463 // This is a compile-time assertion to ensure that this generated file 1464 // is compatible with the grpc package it is being compiled against. 1465 const _ = grpc.SupportPackageIsVersion4 1466 1467 // AuthClient is the client API for Auth service. 1468 // 1469 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1470 type AuthClient interface { 1471 Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) 1472 Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) 1473 Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) 1474 } 1475 1476 type authClient struct { 1477 cc *grpc.ClientConn 1478 } 1479 1480 func NewAuthClient(cc *grpc.ClientConn) AuthClient { 1481 return &authClient{cc} 1482 } 1483 1484 func (c *authClient) Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) { 1485 out := new(GenerateResponse) 1486 err := c.cc.Invoke(ctx, "/auth.Auth/Generate", in, out, opts...) 1487 if err != nil { 1488 return nil, err 1489 } 1490 return out, nil 1491 } 1492 1493 func (c *authClient) Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) { 1494 out := new(InspectResponse) 1495 err := c.cc.Invoke(ctx, "/auth.Auth/Inspect", in, out, opts...) 1496 if err != nil { 1497 return nil, err 1498 } 1499 return out, nil 1500 } 1501 1502 func (c *authClient) Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) { 1503 out := new(TokenResponse) 1504 err := c.cc.Invoke(ctx, "/auth.Auth/Token", in, out, opts...) 1505 if err != nil { 1506 return nil, err 1507 } 1508 return out, nil 1509 } 1510 1511 // AuthServer is the server API for Auth service. 1512 type AuthServer interface { 1513 Generate(context.Context, *GenerateRequest) (*GenerateResponse, error) 1514 Inspect(context.Context, *InspectRequest) (*InspectResponse, error) 1515 Token(context.Context, *TokenRequest) (*TokenResponse, error) 1516 } 1517 1518 func RegisterAuthServer(s *grpc.Server, srv AuthServer) { 1519 s.RegisterService(&_Auth_serviceDesc, srv) 1520 } 1521 1522 func _Auth_Generate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1523 in := new(GenerateRequest) 1524 if err := dec(in); err != nil { 1525 return nil, err 1526 } 1527 if interceptor == nil { 1528 return srv.(AuthServer).Generate(ctx, in) 1529 } 1530 info := &grpc.UnaryServerInfo{ 1531 Server: srv, 1532 FullMethod: "/auth.Auth/Generate", 1533 } 1534 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1535 return srv.(AuthServer).Generate(ctx, req.(*GenerateRequest)) 1536 } 1537 return interceptor(ctx, in, info, handler) 1538 } 1539 1540 func _Auth_Inspect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1541 in := new(InspectRequest) 1542 if err := dec(in); err != nil { 1543 return nil, err 1544 } 1545 if interceptor == nil { 1546 return srv.(AuthServer).Inspect(ctx, in) 1547 } 1548 info := &grpc.UnaryServerInfo{ 1549 Server: srv, 1550 FullMethod: "/auth.Auth/Inspect", 1551 } 1552 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1553 return srv.(AuthServer).Inspect(ctx, req.(*InspectRequest)) 1554 } 1555 return interceptor(ctx, in, info, handler) 1556 } 1557 1558 func _Auth_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1559 in := new(TokenRequest) 1560 if err := dec(in); err != nil { 1561 return nil, err 1562 } 1563 if interceptor == nil { 1564 return srv.(AuthServer).Token(ctx, in) 1565 } 1566 info := &grpc.UnaryServerInfo{ 1567 Server: srv, 1568 FullMethod: "/auth.Auth/Token", 1569 } 1570 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1571 return srv.(AuthServer).Token(ctx, req.(*TokenRequest)) 1572 } 1573 return interceptor(ctx, in, info, handler) 1574 } 1575 1576 var _Auth_serviceDesc = grpc.ServiceDesc{ 1577 ServiceName: "auth.Auth", 1578 HandlerType: (*AuthServer)(nil), 1579 Methods: []grpc.MethodDesc{ 1580 { 1581 MethodName: "Generate", 1582 Handler: _Auth_Generate_Handler, 1583 }, 1584 { 1585 MethodName: "Inspect", 1586 Handler: _Auth_Inspect_Handler, 1587 }, 1588 { 1589 MethodName: "Token", 1590 Handler: _Auth_Token_Handler, 1591 }, 1592 }, 1593 Streams: []grpc.StreamDesc{}, 1594 Metadata: "auth/auth.proto", 1595 } 1596 1597 // AccountsClient is the client API for Accounts service. 1598 // 1599 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1600 type AccountsClient interface { 1601 List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) 1602 Delete(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) 1603 ChangeSecret(ctx context.Context, in *ChangeSecretRequest, opts ...grpc.CallOption) (*ChangeSecretResponse, error) 1604 } 1605 1606 type accountsClient struct { 1607 cc *grpc.ClientConn 1608 } 1609 1610 func NewAccountsClient(cc *grpc.ClientConn) AccountsClient { 1611 return &accountsClient{cc} 1612 } 1613 1614 func (c *accountsClient) List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) { 1615 out := new(ListAccountsResponse) 1616 err := c.cc.Invoke(ctx, "/auth.Accounts/List", in, out, opts...) 1617 if err != nil { 1618 return nil, err 1619 } 1620 return out, nil 1621 } 1622 1623 func (c *accountsClient) Delete(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) { 1624 out := new(DeleteAccountResponse) 1625 err := c.cc.Invoke(ctx, "/auth.Accounts/Delete", in, out, opts...) 1626 if err != nil { 1627 return nil, err 1628 } 1629 return out, nil 1630 } 1631 1632 func (c *accountsClient) ChangeSecret(ctx context.Context, in *ChangeSecretRequest, opts ...grpc.CallOption) (*ChangeSecretResponse, error) { 1633 out := new(ChangeSecretResponse) 1634 err := c.cc.Invoke(ctx, "/auth.Accounts/ChangeSecret", in, out, opts...) 1635 if err != nil { 1636 return nil, err 1637 } 1638 return out, nil 1639 } 1640 1641 // AccountsServer is the server API for Accounts service. 1642 type AccountsServer interface { 1643 List(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) 1644 Delete(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error) 1645 ChangeSecret(context.Context, *ChangeSecretRequest) (*ChangeSecretResponse, error) 1646 } 1647 1648 func RegisterAccountsServer(s *grpc.Server, srv AccountsServer) { 1649 s.RegisterService(&_Accounts_serviceDesc, srv) 1650 } 1651 1652 func _Accounts_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1653 in := new(ListAccountsRequest) 1654 if err := dec(in); err != nil { 1655 return nil, err 1656 } 1657 if interceptor == nil { 1658 return srv.(AccountsServer).List(ctx, in) 1659 } 1660 info := &grpc.UnaryServerInfo{ 1661 Server: srv, 1662 FullMethod: "/auth.Accounts/List", 1663 } 1664 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1665 return srv.(AccountsServer).List(ctx, req.(*ListAccountsRequest)) 1666 } 1667 return interceptor(ctx, in, info, handler) 1668 } 1669 1670 func _Accounts_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1671 in := new(DeleteAccountRequest) 1672 if err := dec(in); err != nil { 1673 return nil, err 1674 } 1675 if interceptor == nil { 1676 return srv.(AccountsServer).Delete(ctx, in) 1677 } 1678 info := &grpc.UnaryServerInfo{ 1679 Server: srv, 1680 FullMethod: "/auth.Accounts/Delete", 1681 } 1682 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1683 return srv.(AccountsServer).Delete(ctx, req.(*DeleteAccountRequest)) 1684 } 1685 return interceptor(ctx, in, info, handler) 1686 } 1687 1688 func _Accounts_ChangeSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1689 in := new(ChangeSecretRequest) 1690 if err := dec(in); err != nil { 1691 return nil, err 1692 } 1693 if interceptor == nil { 1694 return srv.(AccountsServer).ChangeSecret(ctx, in) 1695 } 1696 info := &grpc.UnaryServerInfo{ 1697 Server: srv, 1698 FullMethod: "/auth.Accounts/ChangeSecret", 1699 } 1700 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1701 return srv.(AccountsServer).ChangeSecret(ctx, req.(*ChangeSecretRequest)) 1702 } 1703 return interceptor(ctx, in, info, handler) 1704 } 1705 1706 var _Accounts_serviceDesc = grpc.ServiceDesc{ 1707 ServiceName: "auth.Accounts", 1708 HandlerType: (*AccountsServer)(nil), 1709 Methods: []grpc.MethodDesc{ 1710 { 1711 MethodName: "List", 1712 Handler: _Accounts_List_Handler, 1713 }, 1714 { 1715 MethodName: "Delete", 1716 Handler: _Accounts_Delete_Handler, 1717 }, 1718 { 1719 MethodName: "ChangeSecret", 1720 Handler: _Accounts_ChangeSecret_Handler, 1721 }, 1722 }, 1723 Streams: []grpc.StreamDesc{}, 1724 Metadata: "auth/auth.proto", 1725 } 1726 1727 // RulesClient is the client API for Rules service. 1728 // 1729 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1730 type RulesClient interface { 1731 Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) 1732 Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 1733 List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) 1734 } 1735 1736 type rulesClient struct { 1737 cc *grpc.ClientConn 1738 } 1739 1740 func NewRulesClient(cc *grpc.ClientConn) RulesClient { 1741 return &rulesClient{cc} 1742 } 1743 1744 func (c *rulesClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { 1745 out := new(CreateResponse) 1746 err := c.cc.Invoke(ctx, "/auth.Rules/Create", in, out, opts...) 1747 if err != nil { 1748 return nil, err 1749 } 1750 return out, nil 1751 } 1752 1753 func (c *rulesClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 1754 out := new(DeleteResponse) 1755 err := c.cc.Invoke(ctx, "/auth.Rules/Delete", in, out, opts...) 1756 if err != nil { 1757 return nil, err 1758 } 1759 return out, nil 1760 } 1761 1762 func (c *rulesClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { 1763 out := new(ListResponse) 1764 err := c.cc.Invoke(ctx, "/auth.Rules/List", in, out, opts...) 1765 if err != nil { 1766 return nil, err 1767 } 1768 return out, nil 1769 } 1770 1771 // RulesServer is the server API for Rules service. 1772 type RulesServer interface { 1773 Create(context.Context, *CreateRequest) (*CreateResponse, error) 1774 Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) 1775 List(context.Context, *ListRequest) (*ListResponse, error) 1776 } 1777 1778 func RegisterRulesServer(s *grpc.Server, srv RulesServer) { 1779 s.RegisterService(&_Rules_serviceDesc, srv) 1780 } 1781 1782 func _Rules_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1783 in := new(CreateRequest) 1784 if err := dec(in); err != nil { 1785 return nil, err 1786 } 1787 if interceptor == nil { 1788 return srv.(RulesServer).Create(ctx, in) 1789 } 1790 info := &grpc.UnaryServerInfo{ 1791 Server: srv, 1792 FullMethod: "/auth.Rules/Create", 1793 } 1794 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1795 return srv.(RulesServer).Create(ctx, req.(*CreateRequest)) 1796 } 1797 return interceptor(ctx, in, info, handler) 1798 } 1799 1800 func _Rules_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1801 in := new(DeleteRequest) 1802 if err := dec(in); err != nil { 1803 return nil, err 1804 } 1805 if interceptor == nil { 1806 return srv.(RulesServer).Delete(ctx, in) 1807 } 1808 info := &grpc.UnaryServerInfo{ 1809 Server: srv, 1810 FullMethod: "/auth.Rules/Delete", 1811 } 1812 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1813 return srv.(RulesServer).Delete(ctx, req.(*DeleteRequest)) 1814 } 1815 return interceptor(ctx, in, info, handler) 1816 } 1817 1818 func _Rules_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1819 in := new(ListRequest) 1820 if err := dec(in); err != nil { 1821 return nil, err 1822 } 1823 if interceptor == nil { 1824 return srv.(RulesServer).List(ctx, in) 1825 } 1826 info := &grpc.UnaryServerInfo{ 1827 Server: srv, 1828 FullMethod: "/auth.Rules/List", 1829 } 1830 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1831 return srv.(RulesServer).List(ctx, req.(*ListRequest)) 1832 } 1833 return interceptor(ctx, in, info, handler) 1834 } 1835 1836 var _Rules_serviceDesc = grpc.ServiceDesc{ 1837 ServiceName: "auth.Rules", 1838 HandlerType: (*RulesServer)(nil), 1839 Methods: []grpc.MethodDesc{ 1840 { 1841 MethodName: "Create", 1842 Handler: _Rules_Create_Handler, 1843 }, 1844 { 1845 MethodName: "Delete", 1846 Handler: _Rules_Delete_Handler, 1847 }, 1848 { 1849 MethodName: "List", 1850 Handler: _Rules_List_Handler, 1851 }, 1852 }, 1853 Streams: []grpc.StreamDesc{}, 1854 Metadata: "auth/auth.proto", 1855 }