github.com/pachyderm/pachyderm@v1.13.4/src/client/admin/v1_12/auth/auth.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: client/admin/v1_12/auth/auth.proto 3 4 package auth 5 6 import ( 7 context "context" 8 fmt "fmt" 9 _ "github.com/gogo/protobuf/gogoproto" 10 proto "github.com/gogo/protobuf/proto" 11 types "github.com/gogo/protobuf/types" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 io "io" 16 math "math" 17 math_bits "math/bits" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 30 31 type ClusterRole int32 32 33 const ( 34 ClusterRole_UNDEFINED ClusterRole = 0 35 // SUPER gives access to all APIs and owner on everything in PFS (previous just called admin) 36 ClusterRole_SUPER ClusterRole = 1 37 // FS gives Owner on all repos in PFS but not access to manage other aspects of the cluster 38 ClusterRole_FS ClusterRole = 2 39 ) 40 41 var ClusterRole_name = map[int32]string{ 42 0: "UNDEFINED", 43 1: "SUPER", 44 2: "FS", 45 } 46 47 var ClusterRole_value = map[string]int32{ 48 "UNDEFINED": 0, 49 "SUPER": 1, 50 "FS": 2, 51 } 52 53 func (x ClusterRole) String() string { 54 return proto.EnumName(ClusterRole_name, int32(x)) 55 } 56 57 func (ClusterRole) EnumDescriptor() ([]byte, []int) { 58 return fileDescriptor_e84be353c3527000, []int{0} 59 } 60 61 // Scope (actually a "role" in canonical security nomenclature) represents a 62 // rough level of access that a principal has to a repo 63 type Scope int32 64 65 const ( 66 // To remove a user's scope from a repo, set their scope to NONE 67 Scope_NONE Scope = 0 68 Scope_READER Scope = 1 69 Scope_WRITER Scope = 2 70 Scope_OWNER Scope = 3 71 ) 72 73 var Scope_name = map[int32]string{ 74 0: "NONE", 75 1: "READER", 76 2: "WRITER", 77 3: "OWNER", 78 } 79 80 var Scope_value = map[string]int32{ 81 "NONE": 0, 82 "READER": 1, 83 "WRITER": 2, 84 "OWNER": 3, 85 } 86 87 func (x Scope) String() string { 88 return proto.EnumName(Scope_name, int32(x)) 89 } 90 91 func (Scope) EnumDescriptor() ([]byte, []int) { 92 return fileDescriptor_e84be353c3527000, []int{1} 93 } 94 95 type TokenInfo_TokenSource int32 96 97 const ( 98 TokenInfo_INVALID TokenInfo_TokenSource = 0 99 TokenInfo_AUTHENTICATE TokenInfo_TokenSource = 1 100 TokenInfo_GET_TOKEN TokenInfo_TokenSource = 2 101 ) 102 103 var TokenInfo_TokenSource_name = map[int32]string{ 104 0: "INVALID", 105 1: "AUTHENTICATE", 106 2: "GET_TOKEN", 107 } 108 109 var TokenInfo_TokenSource_value = map[string]int32{ 110 "INVALID": 0, 111 "AUTHENTICATE": 1, 112 "GET_TOKEN": 2, 113 } 114 115 func (x TokenInfo_TokenSource) String() string { 116 return proto.EnumName(TokenInfo_TokenSource_name, int32(x)) 117 } 118 119 func (TokenInfo_TokenSource) EnumDescriptor() ([]byte, []int) { 120 return fileDescriptor_e84be353c3527000, []int{20, 0} 121 } 122 123 // ActivateRequest mirrors AuthenticateRequest. The caller is authenticated via 124 // GitHub OAuth, and then promoted to the cluster's first Admin. Afterwards, the 125 // caller can promote other users to Admin and remove themselves 126 type ActivateRequest struct { 127 // If set, Pachyderm will authenticate the caller as this user. 128 // - If set to a github user (i.e. it has a 'github:' prefix or no prefix) 129 // then Pachyderm will confirm that it matches the user associated with 130 // 'github_token' 131 // - If set to a robot user (i.e. it has a 'robot:' prefix), then Pachyderm 132 // will generate a new token for the robot user; this token will be the only 133 // way to administer this cluster until more admins are added. 134 Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` 135 // This is the token returned by GitHub and used to authenticate the caller. 136 // When Pachyderm is deployed locally, setting this value to a given string 137 // will automatically authenticate the caller as a GitHub user whose username 138 // is that string (unless this "looks like" a GitHub access code, in which 139 // case Pachyderm does retrieve the corresponding GitHub username) 140 GitHubToken string `protobuf:"bytes,1,opt,name=github_token,json=githubToken,proto3" json:"github_token,omitempty"` 141 // If set, activate auth for the root user (`pach:root`), and add this 142 // token as the initial login token. The root user will have super 143 // admin permissions on the cluster. 144 RootToken string `protobuf:"bytes,3,opt,name=root_token,json=rootToken,proto3" json:"root_token,omitempty"` 145 XXX_NoUnkeyedLiteral struct{} `json:"-"` 146 XXX_unrecognized []byte `json:"-"` 147 XXX_sizecache int32 `json:"-"` 148 } 149 150 func (m *ActivateRequest) Reset() { *m = ActivateRequest{} } 151 func (m *ActivateRequest) String() string { return proto.CompactTextString(m) } 152 func (*ActivateRequest) ProtoMessage() {} 153 func (*ActivateRequest) Descriptor() ([]byte, []int) { 154 return fileDescriptor_e84be353c3527000, []int{0} 155 } 156 func (m *ActivateRequest) XXX_Unmarshal(b []byte) error { 157 return m.Unmarshal(b) 158 } 159 func (m *ActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 160 if deterministic { 161 return xxx_messageInfo_ActivateRequest.Marshal(b, m, deterministic) 162 } else { 163 b = b[:cap(b)] 164 n, err := m.MarshalToSizedBuffer(b) 165 if err != nil { 166 return nil, err 167 } 168 return b[:n], nil 169 } 170 } 171 func (m *ActivateRequest) XXX_Merge(src proto.Message) { 172 xxx_messageInfo_ActivateRequest.Merge(m, src) 173 } 174 func (m *ActivateRequest) XXX_Size() int { 175 return m.Size() 176 } 177 func (m *ActivateRequest) XXX_DiscardUnknown() { 178 xxx_messageInfo_ActivateRequest.DiscardUnknown(m) 179 } 180 181 var xxx_messageInfo_ActivateRequest proto.InternalMessageInfo 182 183 func (m *ActivateRequest) GetSubject() string { 184 if m != nil { 185 return m.Subject 186 } 187 return "" 188 } 189 190 func (m *ActivateRequest) GetGitHubToken() string { 191 if m != nil { 192 return m.GitHubToken 193 } 194 return "" 195 } 196 197 func (m *ActivateRequest) GetRootToken() string { 198 if m != nil { 199 return m.RootToken 200 } 201 return "" 202 } 203 204 type ActivateResponse struct { 205 // pach_token authenticates the caller with Pachyderm (if you want to perform 206 // Pachyderm operations after auth has been activated as themselves, you must 207 // present this token along with your regular request) 208 PachToken string `protobuf:"bytes,1,opt,name=pach_token,json=pachToken,proto3" json:"pach_token,omitempty"` 209 XXX_NoUnkeyedLiteral struct{} `json:"-"` 210 XXX_unrecognized []byte `json:"-"` 211 XXX_sizecache int32 `json:"-"` 212 } 213 214 func (m *ActivateResponse) Reset() { *m = ActivateResponse{} } 215 func (m *ActivateResponse) String() string { return proto.CompactTextString(m) } 216 func (*ActivateResponse) ProtoMessage() {} 217 func (*ActivateResponse) Descriptor() ([]byte, []int) { 218 return fileDescriptor_e84be353c3527000, []int{1} 219 } 220 func (m *ActivateResponse) XXX_Unmarshal(b []byte) error { 221 return m.Unmarshal(b) 222 } 223 func (m *ActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 224 if deterministic { 225 return xxx_messageInfo_ActivateResponse.Marshal(b, m, deterministic) 226 } else { 227 b = b[:cap(b)] 228 n, err := m.MarshalToSizedBuffer(b) 229 if err != nil { 230 return nil, err 231 } 232 return b[:n], nil 233 } 234 } 235 func (m *ActivateResponse) XXX_Merge(src proto.Message) { 236 xxx_messageInfo_ActivateResponse.Merge(m, src) 237 } 238 func (m *ActivateResponse) XXX_Size() int { 239 return m.Size() 240 } 241 func (m *ActivateResponse) XXX_DiscardUnknown() { 242 xxx_messageInfo_ActivateResponse.DiscardUnknown(m) 243 } 244 245 var xxx_messageInfo_ActivateResponse proto.InternalMessageInfo 246 247 func (m *ActivateResponse) GetPachToken() string { 248 if m != nil { 249 return m.PachToken 250 } 251 return "" 252 } 253 254 type DeactivateRequest struct { 255 XXX_NoUnkeyedLiteral struct{} `json:"-"` 256 XXX_unrecognized []byte `json:"-"` 257 XXX_sizecache int32 `json:"-"` 258 } 259 260 func (m *DeactivateRequest) Reset() { *m = DeactivateRequest{} } 261 func (m *DeactivateRequest) String() string { return proto.CompactTextString(m) } 262 func (*DeactivateRequest) ProtoMessage() {} 263 func (*DeactivateRequest) Descriptor() ([]byte, []int) { 264 return fileDescriptor_e84be353c3527000, []int{2} 265 } 266 func (m *DeactivateRequest) XXX_Unmarshal(b []byte) error { 267 return m.Unmarshal(b) 268 } 269 func (m *DeactivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 270 if deterministic { 271 return xxx_messageInfo_DeactivateRequest.Marshal(b, m, deterministic) 272 } else { 273 b = b[:cap(b)] 274 n, err := m.MarshalToSizedBuffer(b) 275 if err != nil { 276 return nil, err 277 } 278 return b[:n], nil 279 } 280 } 281 func (m *DeactivateRequest) XXX_Merge(src proto.Message) { 282 xxx_messageInfo_DeactivateRequest.Merge(m, src) 283 } 284 func (m *DeactivateRequest) XXX_Size() int { 285 return m.Size() 286 } 287 func (m *DeactivateRequest) XXX_DiscardUnknown() { 288 xxx_messageInfo_DeactivateRequest.DiscardUnknown(m) 289 } 290 291 var xxx_messageInfo_DeactivateRequest proto.InternalMessageInfo 292 293 type DeactivateResponse struct { 294 XXX_NoUnkeyedLiteral struct{} `json:"-"` 295 XXX_unrecognized []byte `json:"-"` 296 XXX_sizecache int32 `json:"-"` 297 } 298 299 func (m *DeactivateResponse) Reset() { *m = DeactivateResponse{} } 300 func (m *DeactivateResponse) String() string { return proto.CompactTextString(m) } 301 func (*DeactivateResponse) ProtoMessage() {} 302 func (*DeactivateResponse) Descriptor() ([]byte, []int) { 303 return fileDescriptor_e84be353c3527000, []int{3} 304 } 305 func (m *DeactivateResponse) XXX_Unmarshal(b []byte) error { 306 return m.Unmarshal(b) 307 } 308 func (m *DeactivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 309 if deterministic { 310 return xxx_messageInfo_DeactivateResponse.Marshal(b, m, deterministic) 311 } else { 312 b = b[:cap(b)] 313 n, err := m.MarshalToSizedBuffer(b) 314 if err != nil { 315 return nil, err 316 } 317 return b[:n], nil 318 } 319 } 320 func (m *DeactivateResponse) XXX_Merge(src proto.Message) { 321 xxx_messageInfo_DeactivateResponse.Merge(m, src) 322 } 323 func (m *DeactivateResponse) XXX_Size() int { 324 return m.Size() 325 } 326 func (m *DeactivateResponse) XXX_DiscardUnknown() { 327 xxx_messageInfo_DeactivateResponse.DiscardUnknown(m) 328 } 329 330 var xxx_messageInfo_DeactivateResponse proto.InternalMessageInfo 331 332 // IDProvider configures a single ID provider that can authenticate Pachyderm 333 // users 334 type IDProvider struct { 335 // Name identifies this authentication backend in Pachyderm. 336 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 337 // Description is a human-readable description of this authentication 338 // backend. It's ignored by Pachyderm, but exists for the benefit of users 339 // configuring Pachyderm's auth system. 340 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 341 SAML *IDProvider_SAMLOptions `protobuf:"bytes,3,opt,name=saml,proto3" json:"saml,omitempty"` 342 OIDC *IDProvider_OIDCOptions `protobuf:"bytes,5,opt,name=oidc,proto3" json:"oidc,omitempty"` 343 GitHub *IDProvider_GitHubOptions `protobuf:"bytes,4,opt,name=github,proto3" json:"github,omitempty"` 344 XXX_NoUnkeyedLiteral struct{} `json:"-"` 345 XXX_unrecognized []byte `json:"-"` 346 XXX_sizecache int32 `json:"-"` 347 } 348 349 func (m *IDProvider) Reset() { *m = IDProvider{} } 350 func (m *IDProvider) String() string { return proto.CompactTextString(m) } 351 func (*IDProvider) ProtoMessage() {} 352 func (*IDProvider) Descriptor() ([]byte, []int) { 353 return fileDescriptor_e84be353c3527000, []int{4} 354 } 355 func (m *IDProvider) XXX_Unmarshal(b []byte) error { 356 return m.Unmarshal(b) 357 } 358 func (m *IDProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 359 if deterministic { 360 return xxx_messageInfo_IDProvider.Marshal(b, m, deterministic) 361 } else { 362 b = b[:cap(b)] 363 n, err := m.MarshalToSizedBuffer(b) 364 if err != nil { 365 return nil, err 366 } 367 return b[:n], nil 368 } 369 } 370 func (m *IDProvider) XXX_Merge(src proto.Message) { 371 xxx_messageInfo_IDProvider.Merge(m, src) 372 } 373 func (m *IDProvider) XXX_Size() int { 374 return m.Size() 375 } 376 func (m *IDProvider) XXX_DiscardUnknown() { 377 xxx_messageInfo_IDProvider.DiscardUnknown(m) 378 } 379 380 var xxx_messageInfo_IDProvider proto.InternalMessageInfo 381 382 func (m *IDProvider) GetName() string { 383 if m != nil { 384 return m.Name 385 } 386 return "" 387 } 388 389 func (m *IDProvider) GetDescription() string { 390 if m != nil { 391 return m.Description 392 } 393 return "" 394 } 395 396 func (m *IDProvider) GetSAML() *IDProvider_SAMLOptions { 397 if m != nil { 398 return m.SAML 399 } 400 return nil 401 } 402 403 func (m *IDProvider) GetOIDC() *IDProvider_OIDCOptions { 404 if m != nil { 405 return m.OIDC 406 } 407 return nil 408 } 409 410 func (m *IDProvider) GetGitHub() *IDProvider_GitHubOptions { 411 if m != nil { 412 return m.GitHub 413 } 414 return nil 415 } 416 417 // SAMLOptions describes a SAML-based identity provider 418 type IDProvider_SAMLOptions struct { 419 // metadata_url is the URL of the SAML ID provider's metadata service 420 // (which Pachd can query to get more info about the SAML ID provider) 421 MetadataURL string `protobuf:"bytes,1,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"` 422 // metadata_xml is a direct reproduction of the ID provider's metadata. 423 // Users can set this field in the argument to SetConfig if the ID provider 424 // can't be reached from pachd (e.g. because it's on a separate network to 425 // which Pachyderm users also have access) or for testing. Exactly one of 426 // metadata_url and metadata_xml should be set in calls to SetConfig, but 427 // internally, if metadata_url is set, the result of scraping the metadata 428 // URL will be placed here in the result from GetConfig(). 429 MetadataXML []byte `protobuf:"bytes,2,opt,name=metadata_xml,json=metadataXml,proto3" json:"metadata_xml,omitempty"` 430 // If this ID provider supports sending group memberships via attribute, 431 // then users can set group_attribute to the SAML attribute that indicates 432 // group mmbership, and Pachyderm will update users' group memberships when 433 // they authenticate. 434 GroupAttribute string `protobuf:"bytes,3,opt,name=group_attribute,json=groupAttribute,proto3" json:"group_attribute,omitempty"` 435 XXX_NoUnkeyedLiteral struct{} `json:"-"` 436 XXX_unrecognized []byte `json:"-"` 437 XXX_sizecache int32 `json:"-"` 438 } 439 440 func (m *IDProvider_SAMLOptions) Reset() { *m = IDProvider_SAMLOptions{} } 441 func (m *IDProvider_SAMLOptions) String() string { return proto.CompactTextString(m) } 442 func (*IDProvider_SAMLOptions) ProtoMessage() {} 443 func (*IDProvider_SAMLOptions) Descriptor() ([]byte, []int) { 444 return fileDescriptor_e84be353c3527000, []int{4, 0} 445 } 446 func (m *IDProvider_SAMLOptions) XXX_Unmarshal(b []byte) error { 447 return m.Unmarshal(b) 448 } 449 func (m *IDProvider_SAMLOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 450 if deterministic { 451 return xxx_messageInfo_IDProvider_SAMLOptions.Marshal(b, m, deterministic) 452 } else { 453 b = b[:cap(b)] 454 n, err := m.MarshalToSizedBuffer(b) 455 if err != nil { 456 return nil, err 457 } 458 return b[:n], nil 459 } 460 } 461 func (m *IDProvider_SAMLOptions) XXX_Merge(src proto.Message) { 462 xxx_messageInfo_IDProvider_SAMLOptions.Merge(m, src) 463 } 464 func (m *IDProvider_SAMLOptions) XXX_Size() int { 465 return m.Size() 466 } 467 func (m *IDProvider_SAMLOptions) XXX_DiscardUnknown() { 468 xxx_messageInfo_IDProvider_SAMLOptions.DiscardUnknown(m) 469 } 470 471 var xxx_messageInfo_IDProvider_SAMLOptions proto.InternalMessageInfo 472 473 func (m *IDProvider_SAMLOptions) GetMetadataURL() string { 474 if m != nil { 475 return m.MetadataURL 476 } 477 return "" 478 } 479 480 func (m *IDProvider_SAMLOptions) GetMetadataXML() []byte { 481 if m != nil { 482 return m.MetadataXML 483 } 484 return nil 485 } 486 487 func (m *IDProvider_SAMLOptions) GetGroupAttribute() string { 488 if m != nil { 489 return m.GroupAttribute 490 } 491 return "" 492 } 493 494 // OIDCOptions describes a OIDC-based identity provider 495 type IDProvider_OIDCOptions struct { 496 Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` 497 ClientID string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` 498 ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` 499 RedirectURI string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` 500 AdditionalScopes []string `protobuf:"bytes,5,rep,name=additional_scopes,json=additionalScopes,proto3" json:"additional_scopes,omitempty"` 501 IgnoreEmailVerified bool `protobuf:"varint,6,opt,name=ignore_email_verified,json=ignoreEmailVerified,proto3" json:"ignore_email_verified,omitempty"` 502 XXX_NoUnkeyedLiteral struct{} `json:"-"` 503 XXX_unrecognized []byte `json:"-"` 504 XXX_sizecache int32 `json:"-"` 505 } 506 507 func (m *IDProvider_OIDCOptions) Reset() { *m = IDProvider_OIDCOptions{} } 508 func (m *IDProvider_OIDCOptions) String() string { return proto.CompactTextString(m) } 509 func (*IDProvider_OIDCOptions) ProtoMessage() {} 510 func (*IDProvider_OIDCOptions) Descriptor() ([]byte, []int) { 511 return fileDescriptor_e84be353c3527000, []int{4, 1} 512 } 513 func (m *IDProvider_OIDCOptions) XXX_Unmarshal(b []byte) error { 514 return m.Unmarshal(b) 515 } 516 func (m *IDProvider_OIDCOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 517 if deterministic { 518 return xxx_messageInfo_IDProvider_OIDCOptions.Marshal(b, m, deterministic) 519 } else { 520 b = b[:cap(b)] 521 n, err := m.MarshalToSizedBuffer(b) 522 if err != nil { 523 return nil, err 524 } 525 return b[:n], nil 526 } 527 } 528 func (m *IDProvider_OIDCOptions) XXX_Merge(src proto.Message) { 529 xxx_messageInfo_IDProvider_OIDCOptions.Merge(m, src) 530 } 531 func (m *IDProvider_OIDCOptions) XXX_Size() int { 532 return m.Size() 533 } 534 func (m *IDProvider_OIDCOptions) XXX_DiscardUnknown() { 535 xxx_messageInfo_IDProvider_OIDCOptions.DiscardUnknown(m) 536 } 537 538 var xxx_messageInfo_IDProvider_OIDCOptions proto.InternalMessageInfo 539 540 func (m *IDProvider_OIDCOptions) GetIssuer() string { 541 if m != nil { 542 return m.Issuer 543 } 544 return "" 545 } 546 547 func (m *IDProvider_OIDCOptions) GetClientID() string { 548 if m != nil { 549 return m.ClientID 550 } 551 return "" 552 } 553 554 func (m *IDProvider_OIDCOptions) GetClientSecret() string { 555 if m != nil { 556 return m.ClientSecret 557 } 558 return "" 559 } 560 561 func (m *IDProvider_OIDCOptions) GetRedirectURI() string { 562 if m != nil { 563 return m.RedirectURI 564 } 565 return "" 566 } 567 568 func (m *IDProvider_OIDCOptions) GetAdditionalScopes() []string { 569 if m != nil { 570 return m.AdditionalScopes 571 } 572 return nil 573 } 574 575 func (m *IDProvider_OIDCOptions) GetIgnoreEmailVerified() bool { 576 if m != nil { 577 return m.IgnoreEmailVerified 578 } 579 return false 580 } 581 582 // GitHubOptions is an empty protobuf message whose presence in the IDProvider 583 // of an AuthConfig indicates that GitHub auth should be enabled. 584 type IDProvider_GitHubOptions struct { 585 XXX_NoUnkeyedLiteral struct{} `json:"-"` 586 XXX_unrecognized []byte `json:"-"` 587 XXX_sizecache int32 `json:"-"` 588 } 589 590 func (m *IDProvider_GitHubOptions) Reset() { *m = IDProvider_GitHubOptions{} } 591 func (m *IDProvider_GitHubOptions) String() string { return proto.CompactTextString(m) } 592 func (*IDProvider_GitHubOptions) ProtoMessage() {} 593 func (*IDProvider_GitHubOptions) Descriptor() ([]byte, []int) { 594 return fileDescriptor_e84be353c3527000, []int{4, 2} 595 } 596 func (m *IDProvider_GitHubOptions) XXX_Unmarshal(b []byte) error { 597 return m.Unmarshal(b) 598 } 599 func (m *IDProvider_GitHubOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 600 if deterministic { 601 return xxx_messageInfo_IDProvider_GitHubOptions.Marshal(b, m, deterministic) 602 } else { 603 b = b[:cap(b)] 604 n, err := m.MarshalToSizedBuffer(b) 605 if err != nil { 606 return nil, err 607 } 608 return b[:n], nil 609 } 610 } 611 func (m *IDProvider_GitHubOptions) XXX_Merge(src proto.Message) { 612 xxx_messageInfo_IDProvider_GitHubOptions.Merge(m, src) 613 } 614 func (m *IDProvider_GitHubOptions) XXX_Size() int { 615 return m.Size() 616 } 617 func (m *IDProvider_GitHubOptions) XXX_DiscardUnknown() { 618 xxx_messageInfo_IDProvider_GitHubOptions.DiscardUnknown(m) 619 } 620 621 var xxx_messageInfo_IDProvider_GitHubOptions proto.InternalMessageInfo 622 623 // Configure Pachyderm's auth system (particularly authentication backends 624 type AuthConfig struct { 625 // live_config_version identifies the version of a given pachyderm cluster's 626 // current auth configuration; if a user tries to write an auth configuration 627 // where live_config_version doesn't match the version of the cluster's 628 // current config, the write will fail. This allows for safe 629 // read+modify+write config changes. 630 LiveConfigVersion int64 `protobuf:"varint,1,opt,name=live_config_version,json=liveConfigVersion,proto3" json:"live_config_version,omitempty"` 631 // id_providers describes external ID providers that can authenticate 632 // Pachyderm users (e.g. GitHub, Okta, etc) 633 IDProviders []*IDProvider `protobuf:"bytes,2,rep,name=id_providers,json=idProviders,proto3" json:"id_providers,omitempty"` 634 SAMLServiceOptions *AuthConfig_SAMLServiceOptions `protobuf:"bytes,3,opt,name=saml_svc_options,json=samlSvcOptions,proto3" json:"saml_svc_options,omitempty"` 635 XXX_NoUnkeyedLiteral struct{} `json:"-"` 636 XXX_unrecognized []byte `json:"-"` 637 XXX_sizecache int32 `json:"-"` 638 } 639 640 func (m *AuthConfig) Reset() { *m = AuthConfig{} } 641 func (m *AuthConfig) String() string { return proto.CompactTextString(m) } 642 func (*AuthConfig) ProtoMessage() {} 643 func (*AuthConfig) Descriptor() ([]byte, []int) { 644 return fileDescriptor_e84be353c3527000, []int{5} 645 } 646 func (m *AuthConfig) XXX_Unmarshal(b []byte) error { 647 return m.Unmarshal(b) 648 } 649 func (m *AuthConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 650 if deterministic { 651 return xxx_messageInfo_AuthConfig.Marshal(b, m, deterministic) 652 } else { 653 b = b[:cap(b)] 654 n, err := m.MarshalToSizedBuffer(b) 655 if err != nil { 656 return nil, err 657 } 658 return b[:n], nil 659 } 660 } 661 func (m *AuthConfig) XXX_Merge(src proto.Message) { 662 xxx_messageInfo_AuthConfig.Merge(m, src) 663 } 664 func (m *AuthConfig) XXX_Size() int { 665 return m.Size() 666 } 667 func (m *AuthConfig) XXX_DiscardUnknown() { 668 xxx_messageInfo_AuthConfig.DiscardUnknown(m) 669 } 670 671 var xxx_messageInfo_AuthConfig proto.InternalMessageInfo 672 673 func (m *AuthConfig) GetLiveConfigVersion() int64 { 674 if m != nil { 675 return m.LiveConfigVersion 676 } 677 return 0 678 } 679 680 func (m *AuthConfig) GetIDProviders() []*IDProvider { 681 if m != nil { 682 return m.IDProviders 683 } 684 return nil 685 } 686 687 func (m *AuthConfig) GetSAMLServiceOptions() *AuthConfig_SAMLServiceOptions { 688 if m != nil { 689 return m.SAMLServiceOptions 690 } 691 return nil 692 } 693 694 // saml_svc_options configures the SAML services (Assertion Consumer Service 695 // and Metadata Service) that Pachd can export. 696 type AuthConfig_SAMLServiceOptions struct { 697 // acs is the URL of Pachd's Assertion Consumer Service (i.e. where SAML ID 698 // providers can send SAMLResponses to Pachd). If Pachyderm is running in a 699 // private cluster, the cluster admin would be responsible for setting up a 700 // domain name/proxy to resolve to pachd:654/acs 701 ACSURL string `protobuf:"bytes,1,opt,name=acs_url,json=acsUrl,proto3" json:"acs_url,omitempty"` 702 // metadata_url is the public URL of Pachd's SAML metadata service (some 703 // SAML ID providers will query this for information about Pachyderm's SAML 704 // implementation and use it to idenfity Pachyderm as a service provider). 705 // If Pachyderm is running in a private cluster, the cluster admin would be 706 // responsible for creating this URL (which must resolve to 707 // pachd:654/saml/metadata) 708 MetadataURL string `protobuf:"bytes,2,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"` 709 // dash_url is the public address of this cluster's Pachyderm 710 // dashboard, if one exists; this option determines where users will be 711 // redirected after successfully authenticating 712 DashURL string `protobuf:"bytes,3,opt,name=dash_url,json=dashUrl,proto3" json:"dash_url,omitempty"` 713 // session_duration determines the duration of SAML-IdP-authenticated user 714 // sessions (specified as a Golang time duration, e.g. "24h" or "600m"). If 715 // unset, user sessions last 24 hours (a short default, as SAML assertions 716 // may contain group memberships that need to be refreshed) 717 SessionDuration string `protobuf:"bytes,4,opt,name=session_duration,json=sessionDuration,proto3" json:"session_duration,omitempty"` 718 // debug_logging determines whether pachd emits verbose logs (including 719 // SAML credentials) as it receives them, which may be helpful for 720 // debugging. This will probably not be present in any official releases. 721 DebugLogging bool `protobuf:"varint,5,opt,name=debug_logging,json=debugLogging,proto3" json:"debug_logging,omitempty"` 722 XXX_NoUnkeyedLiteral struct{} `json:"-"` 723 XXX_unrecognized []byte `json:"-"` 724 XXX_sizecache int32 `json:"-"` 725 } 726 727 func (m *AuthConfig_SAMLServiceOptions) Reset() { *m = AuthConfig_SAMLServiceOptions{} } 728 func (m *AuthConfig_SAMLServiceOptions) String() string { return proto.CompactTextString(m) } 729 func (*AuthConfig_SAMLServiceOptions) ProtoMessage() {} 730 func (*AuthConfig_SAMLServiceOptions) Descriptor() ([]byte, []int) { 731 return fileDescriptor_e84be353c3527000, []int{5, 0} 732 } 733 func (m *AuthConfig_SAMLServiceOptions) XXX_Unmarshal(b []byte) error { 734 return m.Unmarshal(b) 735 } 736 func (m *AuthConfig_SAMLServiceOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 737 if deterministic { 738 return xxx_messageInfo_AuthConfig_SAMLServiceOptions.Marshal(b, m, deterministic) 739 } else { 740 b = b[:cap(b)] 741 n, err := m.MarshalToSizedBuffer(b) 742 if err != nil { 743 return nil, err 744 } 745 return b[:n], nil 746 } 747 } 748 func (m *AuthConfig_SAMLServiceOptions) XXX_Merge(src proto.Message) { 749 xxx_messageInfo_AuthConfig_SAMLServiceOptions.Merge(m, src) 750 } 751 func (m *AuthConfig_SAMLServiceOptions) XXX_Size() int { 752 return m.Size() 753 } 754 func (m *AuthConfig_SAMLServiceOptions) XXX_DiscardUnknown() { 755 xxx_messageInfo_AuthConfig_SAMLServiceOptions.DiscardUnknown(m) 756 } 757 758 var xxx_messageInfo_AuthConfig_SAMLServiceOptions proto.InternalMessageInfo 759 760 func (m *AuthConfig_SAMLServiceOptions) GetACSURL() string { 761 if m != nil { 762 return m.ACSURL 763 } 764 return "" 765 } 766 767 func (m *AuthConfig_SAMLServiceOptions) GetMetadataURL() string { 768 if m != nil { 769 return m.MetadataURL 770 } 771 return "" 772 } 773 774 func (m *AuthConfig_SAMLServiceOptions) GetDashURL() string { 775 if m != nil { 776 return m.DashURL 777 } 778 return "" 779 } 780 781 func (m *AuthConfig_SAMLServiceOptions) GetSessionDuration() string { 782 if m != nil { 783 return m.SessionDuration 784 } 785 return "" 786 } 787 788 func (m *AuthConfig_SAMLServiceOptions) GetDebugLogging() bool { 789 if m != nil { 790 return m.DebugLogging 791 } 792 return false 793 } 794 795 type GetConfigurationRequest struct { 796 XXX_NoUnkeyedLiteral struct{} `json:"-"` 797 XXX_unrecognized []byte `json:"-"` 798 XXX_sizecache int32 `json:"-"` 799 } 800 801 func (m *GetConfigurationRequest) Reset() { *m = GetConfigurationRequest{} } 802 func (m *GetConfigurationRequest) String() string { return proto.CompactTextString(m) } 803 func (*GetConfigurationRequest) ProtoMessage() {} 804 func (*GetConfigurationRequest) Descriptor() ([]byte, []int) { 805 return fileDescriptor_e84be353c3527000, []int{6} 806 } 807 func (m *GetConfigurationRequest) XXX_Unmarshal(b []byte) error { 808 return m.Unmarshal(b) 809 } 810 func (m *GetConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 811 if deterministic { 812 return xxx_messageInfo_GetConfigurationRequest.Marshal(b, m, deterministic) 813 } else { 814 b = b[:cap(b)] 815 n, err := m.MarshalToSizedBuffer(b) 816 if err != nil { 817 return nil, err 818 } 819 return b[:n], nil 820 } 821 } 822 func (m *GetConfigurationRequest) XXX_Merge(src proto.Message) { 823 xxx_messageInfo_GetConfigurationRequest.Merge(m, src) 824 } 825 func (m *GetConfigurationRequest) XXX_Size() int { 826 return m.Size() 827 } 828 func (m *GetConfigurationRequest) XXX_DiscardUnknown() { 829 xxx_messageInfo_GetConfigurationRequest.DiscardUnknown(m) 830 } 831 832 var xxx_messageInfo_GetConfigurationRequest proto.InternalMessageInfo 833 834 type GetConfigurationResponse struct { 835 Configuration *AuthConfig `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` 836 XXX_NoUnkeyedLiteral struct{} `json:"-"` 837 XXX_unrecognized []byte `json:"-"` 838 XXX_sizecache int32 `json:"-"` 839 } 840 841 func (m *GetConfigurationResponse) Reset() { *m = GetConfigurationResponse{} } 842 func (m *GetConfigurationResponse) String() string { return proto.CompactTextString(m) } 843 func (*GetConfigurationResponse) ProtoMessage() {} 844 func (*GetConfigurationResponse) Descriptor() ([]byte, []int) { 845 return fileDescriptor_e84be353c3527000, []int{7} 846 } 847 func (m *GetConfigurationResponse) XXX_Unmarshal(b []byte) error { 848 return m.Unmarshal(b) 849 } 850 func (m *GetConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 851 if deterministic { 852 return xxx_messageInfo_GetConfigurationResponse.Marshal(b, m, deterministic) 853 } else { 854 b = b[:cap(b)] 855 n, err := m.MarshalToSizedBuffer(b) 856 if err != nil { 857 return nil, err 858 } 859 return b[:n], nil 860 } 861 } 862 func (m *GetConfigurationResponse) XXX_Merge(src proto.Message) { 863 xxx_messageInfo_GetConfigurationResponse.Merge(m, src) 864 } 865 func (m *GetConfigurationResponse) XXX_Size() int { 866 return m.Size() 867 } 868 func (m *GetConfigurationResponse) XXX_DiscardUnknown() { 869 xxx_messageInfo_GetConfigurationResponse.DiscardUnknown(m) 870 } 871 872 var xxx_messageInfo_GetConfigurationResponse proto.InternalMessageInfo 873 874 func (m *GetConfigurationResponse) GetConfiguration() *AuthConfig { 875 if m != nil { 876 return m.Configuration 877 } 878 return nil 879 } 880 881 type SetConfigurationRequest struct { 882 Configuration *AuthConfig `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` 883 XXX_NoUnkeyedLiteral struct{} `json:"-"` 884 XXX_unrecognized []byte `json:"-"` 885 XXX_sizecache int32 `json:"-"` 886 } 887 888 func (m *SetConfigurationRequest) Reset() { *m = SetConfigurationRequest{} } 889 func (m *SetConfigurationRequest) String() string { return proto.CompactTextString(m) } 890 func (*SetConfigurationRequest) ProtoMessage() {} 891 func (*SetConfigurationRequest) Descriptor() ([]byte, []int) { 892 return fileDescriptor_e84be353c3527000, []int{8} 893 } 894 func (m *SetConfigurationRequest) XXX_Unmarshal(b []byte) error { 895 return m.Unmarshal(b) 896 } 897 func (m *SetConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 898 if deterministic { 899 return xxx_messageInfo_SetConfigurationRequest.Marshal(b, m, deterministic) 900 } else { 901 b = b[:cap(b)] 902 n, err := m.MarshalToSizedBuffer(b) 903 if err != nil { 904 return nil, err 905 } 906 return b[:n], nil 907 } 908 } 909 func (m *SetConfigurationRequest) XXX_Merge(src proto.Message) { 910 xxx_messageInfo_SetConfigurationRequest.Merge(m, src) 911 } 912 func (m *SetConfigurationRequest) XXX_Size() int { 913 return m.Size() 914 } 915 func (m *SetConfigurationRequest) XXX_DiscardUnknown() { 916 xxx_messageInfo_SetConfigurationRequest.DiscardUnknown(m) 917 } 918 919 var xxx_messageInfo_SetConfigurationRequest proto.InternalMessageInfo 920 921 func (m *SetConfigurationRequest) GetConfiguration() *AuthConfig { 922 if m != nil { 923 return m.Configuration 924 } 925 return nil 926 } 927 928 type SetConfigurationResponse struct { 929 XXX_NoUnkeyedLiteral struct{} `json:"-"` 930 XXX_unrecognized []byte `json:"-"` 931 XXX_sizecache int32 `json:"-"` 932 } 933 934 func (m *SetConfigurationResponse) Reset() { *m = SetConfigurationResponse{} } 935 func (m *SetConfigurationResponse) String() string { return proto.CompactTextString(m) } 936 func (*SetConfigurationResponse) ProtoMessage() {} 937 func (*SetConfigurationResponse) Descriptor() ([]byte, []int) { 938 return fileDescriptor_e84be353c3527000, []int{9} 939 } 940 func (m *SetConfigurationResponse) XXX_Unmarshal(b []byte) error { 941 return m.Unmarshal(b) 942 } 943 func (m *SetConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 944 if deterministic { 945 return xxx_messageInfo_SetConfigurationResponse.Marshal(b, m, deterministic) 946 } else { 947 b = b[:cap(b)] 948 n, err := m.MarshalToSizedBuffer(b) 949 if err != nil { 950 return nil, err 951 } 952 return b[:n], nil 953 } 954 } 955 func (m *SetConfigurationResponse) XXX_Merge(src proto.Message) { 956 xxx_messageInfo_SetConfigurationResponse.Merge(m, src) 957 } 958 func (m *SetConfigurationResponse) XXX_Size() int { 959 return m.Size() 960 } 961 func (m *SetConfigurationResponse) XXX_DiscardUnknown() { 962 xxx_messageInfo_SetConfigurationResponse.DiscardUnknown(m) 963 } 964 965 var xxx_messageInfo_SetConfigurationResponse proto.InternalMessageInfo 966 967 // ClusterRoles reflects any cluster-wide permissions a principal has. 968 // A principal can have multiple cluster roles. 969 type ClusterRoles struct { 970 Roles []ClusterRole `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=auth_1_12.ClusterRole" json:"roles,omitempty"` 971 XXX_NoUnkeyedLiteral struct{} `json:"-"` 972 XXX_unrecognized []byte `json:"-"` 973 XXX_sizecache int32 `json:"-"` 974 } 975 976 func (m *ClusterRoles) Reset() { *m = ClusterRoles{} } 977 func (m *ClusterRoles) String() string { return proto.CompactTextString(m) } 978 func (*ClusterRoles) ProtoMessage() {} 979 func (*ClusterRoles) Descriptor() ([]byte, []int) { 980 return fileDescriptor_e84be353c3527000, []int{10} 981 } 982 func (m *ClusterRoles) XXX_Unmarshal(b []byte) error { 983 return m.Unmarshal(b) 984 } 985 func (m *ClusterRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 986 if deterministic { 987 return xxx_messageInfo_ClusterRoles.Marshal(b, m, deterministic) 988 } else { 989 b = b[:cap(b)] 990 n, err := m.MarshalToSizedBuffer(b) 991 if err != nil { 992 return nil, err 993 } 994 return b[:n], nil 995 } 996 } 997 func (m *ClusterRoles) XXX_Merge(src proto.Message) { 998 xxx_messageInfo_ClusterRoles.Merge(m, src) 999 } 1000 func (m *ClusterRoles) XXX_Size() int { 1001 return m.Size() 1002 } 1003 func (m *ClusterRoles) XXX_DiscardUnknown() { 1004 xxx_messageInfo_ClusterRoles.DiscardUnknown(m) 1005 } 1006 1007 var xxx_messageInfo_ClusterRoles proto.InternalMessageInfo 1008 1009 func (m *ClusterRoles) GetRoles() []ClusterRole { 1010 if m != nil { 1011 return m.Roles 1012 } 1013 return nil 1014 } 1015 1016 // Get the current set of principals and roles for the cluster 1017 type GetClusterRoleBindingsRequest struct { 1018 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1019 XXX_unrecognized []byte `json:"-"` 1020 XXX_sizecache int32 `json:"-"` 1021 } 1022 1023 func (m *GetClusterRoleBindingsRequest) Reset() { *m = GetClusterRoleBindingsRequest{} } 1024 func (m *GetClusterRoleBindingsRequest) String() string { return proto.CompactTextString(m) } 1025 func (*GetClusterRoleBindingsRequest) ProtoMessage() {} 1026 func (*GetClusterRoleBindingsRequest) Descriptor() ([]byte, []int) { 1027 return fileDescriptor_e84be353c3527000, []int{11} 1028 } 1029 func (m *GetClusterRoleBindingsRequest) XXX_Unmarshal(b []byte) error { 1030 return m.Unmarshal(b) 1031 } 1032 func (m *GetClusterRoleBindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1033 if deterministic { 1034 return xxx_messageInfo_GetClusterRoleBindingsRequest.Marshal(b, m, deterministic) 1035 } else { 1036 b = b[:cap(b)] 1037 n, err := m.MarshalToSizedBuffer(b) 1038 if err != nil { 1039 return nil, err 1040 } 1041 return b[:n], nil 1042 } 1043 } 1044 func (m *GetClusterRoleBindingsRequest) XXX_Merge(src proto.Message) { 1045 xxx_messageInfo_GetClusterRoleBindingsRequest.Merge(m, src) 1046 } 1047 func (m *GetClusterRoleBindingsRequest) XXX_Size() int { 1048 return m.Size() 1049 } 1050 func (m *GetClusterRoleBindingsRequest) XXX_DiscardUnknown() { 1051 xxx_messageInfo_GetClusterRoleBindingsRequest.DiscardUnknown(m) 1052 } 1053 1054 var xxx_messageInfo_GetClusterRoleBindingsRequest proto.InternalMessageInfo 1055 1056 type GetClusterRoleBindingsResponse struct { 1057 // bindings contains a mapping of principals to cluster roles 1058 Bindings map[string]*ClusterRoles `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 1059 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1060 XXX_unrecognized []byte `json:"-"` 1061 XXX_sizecache int32 `json:"-"` 1062 } 1063 1064 func (m *GetClusterRoleBindingsResponse) Reset() { *m = GetClusterRoleBindingsResponse{} } 1065 func (m *GetClusterRoleBindingsResponse) String() string { return proto.CompactTextString(m) } 1066 func (*GetClusterRoleBindingsResponse) ProtoMessage() {} 1067 func (*GetClusterRoleBindingsResponse) Descriptor() ([]byte, []int) { 1068 return fileDescriptor_e84be353c3527000, []int{12} 1069 } 1070 func (m *GetClusterRoleBindingsResponse) XXX_Unmarshal(b []byte) error { 1071 return m.Unmarshal(b) 1072 } 1073 func (m *GetClusterRoleBindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1074 if deterministic { 1075 return xxx_messageInfo_GetClusterRoleBindingsResponse.Marshal(b, m, deterministic) 1076 } else { 1077 b = b[:cap(b)] 1078 n, err := m.MarshalToSizedBuffer(b) 1079 if err != nil { 1080 return nil, err 1081 } 1082 return b[:n], nil 1083 } 1084 } 1085 func (m *GetClusterRoleBindingsResponse) XXX_Merge(src proto.Message) { 1086 xxx_messageInfo_GetClusterRoleBindingsResponse.Merge(m, src) 1087 } 1088 func (m *GetClusterRoleBindingsResponse) XXX_Size() int { 1089 return m.Size() 1090 } 1091 func (m *GetClusterRoleBindingsResponse) XXX_DiscardUnknown() { 1092 xxx_messageInfo_GetClusterRoleBindingsResponse.DiscardUnknown(m) 1093 } 1094 1095 var xxx_messageInfo_GetClusterRoleBindingsResponse proto.InternalMessageInfo 1096 1097 func (m *GetClusterRoleBindingsResponse) GetBindings() map[string]*ClusterRoles { 1098 if m != nil { 1099 return m.Bindings 1100 } 1101 return nil 1102 } 1103 1104 // Set cluster roles for the specified principal. Setting an empty list of roles 1105 // revokes any roles the principal has. 1106 type ModifyClusterRoleBindingRequest struct { 1107 Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"` 1108 Roles *ClusterRoles `protobuf:"bytes,2,opt,name=roles,proto3" json:"roles,omitempty"` 1109 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1110 XXX_unrecognized []byte `json:"-"` 1111 XXX_sizecache int32 `json:"-"` 1112 } 1113 1114 func (m *ModifyClusterRoleBindingRequest) Reset() { *m = ModifyClusterRoleBindingRequest{} } 1115 func (m *ModifyClusterRoleBindingRequest) String() string { return proto.CompactTextString(m) } 1116 func (*ModifyClusterRoleBindingRequest) ProtoMessage() {} 1117 func (*ModifyClusterRoleBindingRequest) Descriptor() ([]byte, []int) { 1118 return fileDescriptor_e84be353c3527000, []int{13} 1119 } 1120 func (m *ModifyClusterRoleBindingRequest) XXX_Unmarshal(b []byte) error { 1121 return m.Unmarshal(b) 1122 } 1123 func (m *ModifyClusterRoleBindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1124 if deterministic { 1125 return xxx_messageInfo_ModifyClusterRoleBindingRequest.Marshal(b, m, deterministic) 1126 } else { 1127 b = b[:cap(b)] 1128 n, err := m.MarshalToSizedBuffer(b) 1129 if err != nil { 1130 return nil, err 1131 } 1132 return b[:n], nil 1133 } 1134 } 1135 func (m *ModifyClusterRoleBindingRequest) XXX_Merge(src proto.Message) { 1136 xxx_messageInfo_ModifyClusterRoleBindingRequest.Merge(m, src) 1137 } 1138 func (m *ModifyClusterRoleBindingRequest) XXX_Size() int { 1139 return m.Size() 1140 } 1141 func (m *ModifyClusterRoleBindingRequest) XXX_DiscardUnknown() { 1142 xxx_messageInfo_ModifyClusterRoleBindingRequest.DiscardUnknown(m) 1143 } 1144 1145 var xxx_messageInfo_ModifyClusterRoleBindingRequest proto.InternalMessageInfo 1146 1147 func (m *ModifyClusterRoleBindingRequest) GetPrincipal() string { 1148 if m != nil { 1149 return m.Principal 1150 } 1151 return "" 1152 } 1153 1154 func (m *ModifyClusterRoleBindingRequest) GetRoles() *ClusterRoles { 1155 if m != nil { 1156 return m.Roles 1157 } 1158 return nil 1159 } 1160 1161 type ModifyClusterRoleBindingResponse struct { 1162 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1163 XXX_unrecognized []byte `json:"-"` 1164 XXX_sizecache int32 `json:"-"` 1165 } 1166 1167 func (m *ModifyClusterRoleBindingResponse) Reset() { *m = ModifyClusterRoleBindingResponse{} } 1168 func (m *ModifyClusterRoleBindingResponse) String() string { return proto.CompactTextString(m) } 1169 func (*ModifyClusterRoleBindingResponse) ProtoMessage() {} 1170 func (*ModifyClusterRoleBindingResponse) Descriptor() ([]byte, []int) { 1171 return fileDescriptor_e84be353c3527000, []int{14} 1172 } 1173 func (m *ModifyClusterRoleBindingResponse) XXX_Unmarshal(b []byte) error { 1174 return m.Unmarshal(b) 1175 } 1176 func (m *ModifyClusterRoleBindingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1177 if deterministic { 1178 return xxx_messageInfo_ModifyClusterRoleBindingResponse.Marshal(b, m, deterministic) 1179 } else { 1180 b = b[:cap(b)] 1181 n, err := m.MarshalToSizedBuffer(b) 1182 if err != nil { 1183 return nil, err 1184 } 1185 return b[:n], nil 1186 } 1187 } 1188 func (m *ModifyClusterRoleBindingResponse) XXX_Merge(src proto.Message) { 1189 xxx_messageInfo_ModifyClusterRoleBindingResponse.Merge(m, src) 1190 } 1191 func (m *ModifyClusterRoleBindingResponse) XXX_Size() int { 1192 return m.Size() 1193 } 1194 func (m *ModifyClusterRoleBindingResponse) XXX_DiscardUnknown() { 1195 xxx_messageInfo_ModifyClusterRoleBindingResponse.DiscardUnknown(m) 1196 } 1197 1198 var xxx_messageInfo_ModifyClusterRoleBindingResponse proto.InternalMessageInfo 1199 1200 // Deprecated. Get the list of cluster super admins. 1201 type GetAdminsRequest struct { 1202 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1203 XXX_unrecognized []byte `json:"-"` 1204 XXX_sizecache int32 `json:"-"` 1205 } 1206 1207 func (m *GetAdminsRequest) Reset() { *m = GetAdminsRequest{} } 1208 func (m *GetAdminsRequest) String() string { return proto.CompactTextString(m) } 1209 func (*GetAdminsRequest) ProtoMessage() {} 1210 func (*GetAdminsRequest) Descriptor() ([]byte, []int) { 1211 return fileDescriptor_e84be353c3527000, []int{15} 1212 } 1213 func (m *GetAdminsRequest) XXX_Unmarshal(b []byte) error { 1214 return m.Unmarshal(b) 1215 } 1216 func (m *GetAdminsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1217 if deterministic { 1218 return xxx_messageInfo_GetAdminsRequest.Marshal(b, m, deterministic) 1219 } else { 1220 b = b[:cap(b)] 1221 n, err := m.MarshalToSizedBuffer(b) 1222 if err != nil { 1223 return nil, err 1224 } 1225 return b[:n], nil 1226 } 1227 } 1228 func (m *GetAdminsRequest) XXX_Merge(src proto.Message) { 1229 xxx_messageInfo_GetAdminsRequest.Merge(m, src) 1230 } 1231 func (m *GetAdminsRequest) XXX_Size() int { 1232 return m.Size() 1233 } 1234 func (m *GetAdminsRequest) XXX_DiscardUnknown() { 1235 xxx_messageInfo_GetAdminsRequest.DiscardUnknown(m) 1236 } 1237 1238 var xxx_messageInfo_GetAdminsRequest proto.InternalMessageInfo 1239 1240 type GetAdminsResponse struct { 1241 Admins []string `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"` 1242 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1243 XXX_unrecognized []byte `json:"-"` 1244 XXX_sizecache int32 `json:"-"` 1245 } 1246 1247 func (m *GetAdminsResponse) Reset() { *m = GetAdminsResponse{} } 1248 func (m *GetAdminsResponse) String() string { return proto.CompactTextString(m) } 1249 func (*GetAdminsResponse) ProtoMessage() {} 1250 func (*GetAdminsResponse) Descriptor() ([]byte, []int) { 1251 return fileDescriptor_e84be353c3527000, []int{16} 1252 } 1253 func (m *GetAdminsResponse) XXX_Unmarshal(b []byte) error { 1254 return m.Unmarshal(b) 1255 } 1256 func (m *GetAdminsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1257 if deterministic { 1258 return xxx_messageInfo_GetAdminsResponse.Marshal(b, m, deterministic) 1259 } else { 1260 b = b[:cap(b)] 1261 n, err := m.MarshalToSizedBuffer(b) 1262 if err != nil { 1263 return nil, err 1264 } 1265 return b[:n], nil 1266 } 1267 } 1268 func (m *GetAdminsResponse) XXX_Merge(src proto.Message) { 1269 xxx_messageInfo_GetAdminsResponse.Merge(m, src) 1270 } 1271 func (m *GetAdminsResponse) XXX_Size() int { 1272 return m.Size() 1273 } 1274 func (m *GetAdminsResponse) XXX_DiscardUnknown() { 1275 xxx_messageInfo_GetAdminsResponse.DiscardUnknown(m) 1276 } 1277 1278 var xxx_messageInfo_GetAdminsResponse proto.InternalMessageInfo 1279 1280 func (m *GetAdminsResponse) GetAdmins() []string { 1281 if m != nil { 1282 return m.Admins 1283 } 1284 return nil 1285 } 1286 1287 // Deprecated. Add and remove users from the set of cluster super admins. 1288 type ModifyAdminsRequest struct { 1289 Add []string `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"` 1290 Remove []string `protobuf:"bytes,2,rep,name=remove,proto3" json:"remove,omitempty"` 1291 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1292 XXX_unrecognized []byte `json:"-"` 1293 XXX_sizecache int32 `json:"-"` 1294 } 1295 1296 func (m *ModifyAdminsRequest) Reset() { *m = ModifyAdminsRequest{} } 1297 func (m *ModifyAdminsRequest) String() string { return proto.CompactTextString(m) } 1298 func (*ModifyAdminsRequest) ProtoMessage() {} 1299 func (*ModifyAdminsRequest) Descriptor() ([]byte, []int) { 1300 return fileDescriptor_e84be353c3527000, []int{17} 1301 } 1302 func (m *ModifyAdminsRequest) XXX_Unmarshal(b []byte) error { 1303 return m.Unmarshal(b) 1304 } 1305 func (m *ModifyAdminsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1306 if deterministic { 1307 return xxx_messageInfo_ModifyAdminsRequest.Marshal(b, m, deterministic) 1308 } else { 1309 b = b[:cap(b)] 1310 n, err := m.MarshalToSizedBuffer(b) 1311 if err != nil { 1312 return nil, err 1313 } 1314 return b[:n], nil 1315 } 1316 } 1317 func (m *ModifyAdminsRequest) XXX_Merge(src proto.Message) { 1318 xxx_messageInfo_ModifyAdminsRequest.Merge(m, src) 1319 } 1320 func (m *ModifyAdminsRequest) XXX_Size() int { 1321 return m.Size() 1322 } 1323 func (m *ModifyAdminsRequest) XXX_DiscardUnknown() { 1324 xxx_messageInfo_ModifyAdminsRequest.DiscardUnknown(m) 1325 } 1326 1327 var xxx_messageInfo_ModifyAdminsRequest proto.InternalMessageInfo 1328 1329 func (m *ModifyAdminsRequest) GetAdd() []string { 1330 if m != nil { 1331 return m.Add 1332 } 1333 return nil 1334 } 1335 1336 func (m *ModifyAdminsRequest) GetRemove() []string { 1337 if m != nil { 1338 return m.Remove 1339 } 1340 return nil 1341 } 1342 1343 type ModifyAdminsResponse struct { 1344 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1345 XXX_unrecognized []byte `json:"-"` 1346 XXX_sizecache int32 `json:"-"` 1347 } 1348 1349 func (m *ModifyAdminsResponse) Reset() { *m = ModifyAdminsResponse{} } 1350 func (m *ModifyAdminsResponse) String() string { return proto.CompactTextString(m) } 1351 func (*ModifyAdminsResponse) ProtoMessage() {} 1352 func (*ModifyAdminsResponse) Descriptor() ([]byte, []int) { 1353 return fileDescriptor_e84be353c3527000, []int{18} 1354 } 1355 func (m *ModifyAdminsResponse) XXX_Unmarshal(b []byte) error { 1356 return m.Unmarshal(b) 1357 } 1358 func (m *ModifyAdminsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1359 if deterministic { 1360 return xxx_messageInfo_ModifyAdminsResponse.Marshal(b, m, deterministic) 1361 } else { 1362 b = b[:cap(b)] 1363 n, err := m.MarshalToSizedBuffer(b) 1364 if err != nil { 1365 return nil, err 1366 } 1367 return b[:n], nil 1368 } 1369 } 1370 func (m *ModifyAdminsResponse) XXX_Merge(src proto.Message) { 1371 xxx_messageInfo_ModifyAdminsResponse.Merge(m, src) 1372 } 1373 func (m *ModifyAdminsResponse) XXX_Size() int { 1374 return m.Size() 1375 } 1376 func (m *ModifyAdminsResponse) XXX_DiscardUnknown() { 1377 xxx_messageInfo_ModifyAdminsResponse.DiscardUnknown(m) 1378 } 1379 1380 var xxx_messageInfo_ModifyAdminsResponse proto.InternalMessageInfo 1381 1382 // OTPInfo is the analogue of 'TokenInfo' for Authentication Codes (short-lived, 1383 // one-time-use codes that are passed to the frontend and then exchanged for 1384 // longer-lived tokens) 1385 type OTPInfo struct { 1386 // Subject (i.e. Pachyderm account) that a given OTP authenticates. This may 1387 // be copied into the 'subject' field of a TokenInfo, and therefore has the 1388 // same format, with the same prefixes. 1389 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 1390 // session_expiration indicates when the subject's session expires, a.k.a. 1391 // when the Token to which this OTP converts expires (likely later than this 1392 // OTP expires, but never earlier). 1393 SessionExpiration *types.Timestamp `protobuf:"bytes,2,opt,name=session_expiration,json=sessionExpiration,proto3" json:"session_expiration,omitempty"` 1394 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1395 XXX_unrecognized []byte `json:"-"` 1396 XXX_sizecache int32 `json:"-"` 1397 } 1398 1399 func (m *OTPInfo) Reset() { *m = OTPInfo{} } 1400 func (m *OTPInfo) String() string { return proto.CompactTextString(m) } 1401 func (*OTPInfo) ProtoMessage() {} 1402 func (*OTPInfo) Descriptor() ([]byte, []int) { 1403 return fileDescriptor_e84be353c3527000, []int{19} 1404 } 1405 func (m *OTPInfo) XXX_Unmarshal(b []byte) error { 1406 return m.Unmarshal(b) 1407 } 1408 func (m *OTPInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1409 if deterministic { 1410 return xxx_messageInfo_OTPInfo.Marshal(b, m, deterministic) 1411 } else { 1412 b = b[:cap(b)] 1413 n, err := m.MarshalToSizedBuffer(b) 1414 if err != nil { 1415 return nil, err 1416 } 1417 return b[:n], nil 1418 } 1419 } 1420 func (m *OTPInfo) XXX_Merge(src proto.Message) { 1421 xxx_messageInfo_OTPInfo.Merge(m, src) 1422 } 1423 func (m *OTPInfo) XXX_Size() int { 1424 return m.Size() 1425 } 1426 func (m *OTPInfo) XXX_DiscardUnknown() { 1427 xxx_messageInfo_OTPInfo.DiscardUnknown(m) 1428 } 1429 1430 var xxx_messageInfo_OTPInfo proto.InternalMessageInfo 1431 1432 func (m *OTPInfo) GetSubject() string { 1433 if m != nil { 1434 return m.Subject 1435 } 1436 return "" 1437 } 1438 1439 func (m *OTPInfo) GetSessionExpiration() *types.Timestamp { 1440 if m != nil { 1441 return m.SessionExpiration 1442 } 1443 return nil 1444 } 1445 1446 // TokenInfo is the 'value' of an auth token 'key' in the 'tokens' collection 1447 type TokenInfo struct { 1448 // Subject (i.e. Pachyderm account) that a given token authorizes. Prefixed 1449 // with "github:" or "robot:" to distinguish the two classes of 1450 // Subject in Pachyderm 1451 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 1452 Source TokenInfo_TokenSource `protobuf:"varint,2,opt,name=source,proto3,enum=auth_1_12.TokenInfo_TokenSource" json:"source,omitempty"` 1453 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1454 XXX_unrecognized []byte `json:"-"` 1455 XXX_sizecache int32 `json:"-"` 1456 } 1457 1458 func (m *TokenInfo) Reset() { *m = TokenInfo{} } 1459 func (m *TokenInfo) String() string { return proto.CompactTextString(m) } 1460 func (*TokenInfo) ProtoMessage() {} 1461 func (*TokenInfo) Descriptor() ([]byte, []int) { 1462 return fileDescriptor_e84be353c3527000, []int{20} 1463 } 1464 func (m *TokenInfo) XXX_Unmarshal(b []byte) error { 1465 return m.Unmarshal(b) 1466 } 1467 func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1468 if deterministic { 1469 return xxx_messageInfo_TokenInfo.Marshal(b, m, deterministic) 1470 } else { 1471 b = b[:cap(b)] 1472 n, err := m.MarshalToSizedBuffer(b) 1473 if err != nil { 1474 return nil, err 1475 } 1476 return b[:n], nil 1477 } 1478 } 1479 func (m *TokenInfo) XXX_Merge(src proto.Message) { 1480 xxx_messageInfo_TokenInfo.Merge(m, src) 1481 } 1482 func (m *TokenInfo) XXX_Size() int { 1483 return m.Size() 1484 } 1485 func (m *TokenInfo) XXX_DiscardUnknown() { 1486 xxx_messageInfo_TokenInfo.DiscardUnknown(m) 1487 } 1488 1489 var xxx_messageInfo_TokenInfo proto.InternalMessageInfo 1490 1491 func (m *TokenInfo) GetSubject() string { 1492 if m != nil { 1493 return m.Subject 1494 } 1495 return "" 1496 } 1497 1498 func (m *TokenInfo) GetSource() TokenInfo_TokenSource { 1499 if m != nil { 1500 return m.Source 1501 } 1502 return TokenInfo_INVALID 1503 } 1504 1505 type AuthenticateRequest struct { 1506 // This is the token returned by GitHub and used to authenticate the caller. 1507 // When Pachyderm is deployed locally, setting this value to a given string 1508 // will automatically authenticate the caller as a GitHub user whose username 1509 // is that string (unless this "looks like" a GitHub access code, in which 1510 // case Pachyderm does retrieve the corresponding GitHub username) 1511 GitHubToken string `protobuf:"bytes,1,opt,name=github_token,json=githubToken,proto3" json:"github_token,omitempty"` 1512 // This is the session state that Pachyderm creates in order to keep track of 1513 // information related to the current OIDC session. 1514 OIDCState string `protobuf:"bytes,3,opt,name=oidc_state,json=oidcState,proto3" json:"oidc_state,omitempty"` 1515 // This is a short-lived, one-time-use password generated by Pachyderm, for 1516 // the purpose of propagating authentication to new clients (e.g. from the 1517 // dash to pachd) 1518 OneTimePassword string `protobuf:"bytes,2,opt,name=one_time_password,json=oneTimePassword,proto3" json:"one_time_password,omitempty"` 1519 // This is an ID Token issued by the OIDC provider. 1520 IdToken string `protobuf:"bytes,4,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` 1521 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1522 XXX_unrecognized []byte `json:"-"` 1523 XXX_sizecache int32 `json:"-"` 1524 } 1525 1526 func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } 1527 func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } 1528 func (*AuthenticateRequest) ProtoMessage() {} 1529 func (*AuthenticateRequest) Descriptor() ([]byte, []int) { 1530 return fileDescriptor_e84be353c3527000, []int{21} 1531 } 1532 func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error { 1533 return m.Unmarshal(b) 1534 } 1535 func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1536 if deterministic { 1537 return xxx_messageInfo_AuthenticateRequest.Marshal(b, m, deterministic) 1538 } else { 1539 b = b[:cap(b)] 1540 n, err := m.MarshalToSizedBuffer(b) 1541 if err != nil { 1542 return nil, err 1543 } 1544 return b[:n], nil 1545 } 1546 } 1547 func (m *AuthenticateRequest) XXX_Merge(src proto.Message) { 1548 xxx_messageInfo_AuthenticateRequest.Merge(m, src) 1549 } 1550 func (m *AuthenticateRequest) XXX_Size() int { 1551 return m.Size() 1552 } 1553 func (m *AuthenticateRequest) XXX_DiscardUnknown() { 1554 xxx_messageInfo_AuthenticateRequest.DiscardUnknown(m) 1555 } 1556 1557 var xxx_messageInfo_AuthenticateRequest proto.InternalMessageInfo 1558 1559 func (m *AuthenticateRequest) GetGitHubToken() string { 1560 if m != nil { 1561 return m.GitHubToken 1562 } 1563 return "" 1564 } 1565 1566 func (m *AuthenticateRequest) GetOIDCState() string { 1567 if m != nil { 1568 return m.OIDCState 1569 } 1570 return "" 1571 } 1572 1573 func (m *AuthenticateRequest) GetOneTimePassword() string { 1574 if m != nil { 1575 return m.OneTimePassword 1576 } 1577 return "" 1578 } 1579 1580 func (m *AuthenticateRequest) GetIdToken() string { 1581 if m != nil { 1582 return m.IdToken 1583 } 1584 return "" 1585 } 1586 1587 type AuthenticateResponse struct { 1588 // pach_token authenticates the caller with Pachyderm (if you want to perform 1589 // Pachyderm operations after auth has been activated as themselves, you must 1590 // present this token along with your regular request) 1591 PachToken string `protobuf:"bytes,1,opt,name=pach_token,json=pachToken,proto3" json:"pach_token,omitempty"` 1592 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1593 XXX_unrecognized []byte `json:"-"` 1594 XXX_sizecache int32 `json:"-"` 1595 } 1596 1597 func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} } 1598 func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) } 1599 func (*AuthenticateResponse) ProtoMessage() {} 1600 func (*AuthenticateResponse) Descriptor() ([]byte, []int) { 1601 return fileDescriptor_e84be353c3527000, []int{22} 1602 } 1603 func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error { 1604 return m.Unmarshal(b) 1605 } 1606 func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1607 if deterministic { 1608 return xxx_messageInfo_AuthenticateResponse.Marshal(b, m, deterministic) 1609 } else { 1610 b = b[:cap(b)] 1611 n, err := m.MarshalToSizedBuffer(b) 1612 if err != nil { 1613 return nil, err 1614 } 1615 return b[:n], nil 1616 } 1617 } 1618 func (m *AuthenticateResponse) XXX_Merge(src proto.Message) { 1619 xxx_messageInfo_AuthenticateResponse.Merge(m, src) 1620 } 1621 func (m *AuthenticateResponse) XXX_Size() int { 1622 return m.Size() 1623 } 1624 func (m *AuthenticateResponse) XXX_DiscardUnknown() { 1625 xxx_messageInfo_AuthenticateResponse.DiscardUnknown(m) 1626 } 1627 1628 var xxx_messageInfo_AuthenticateResponse proto.InternalMessageInfo 1629 1630 func (m *AuthenticateResponse) GetPachToken() string { 1631 if m != nil { 1632 return m.PachToken 1633 } 1634 return "" 1635 } 1636 1637 type WhoAmIRequest struct { 1638 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1639 XXX_unrecognized []byte `json:"-"` 1640 XXX_sizecache int32 `json:"-"` 1641 } 1642 1643 func (m *WhoAmIRequest) Reset() { *m = WhoAmIRequest{} } 1644 func (m *WhoAmIRequest) String() string { return proto.CompactTextString(m) } 1645 func (*WhoAmIRequest) ProtoMessage() {} 1646 func (*WhoAmIRequest) Descriptor() ([]byte, []int) { 1647 return fileDescriptor_e84be353c3527000, []int{23} 1648 } 1649 func (m *WhoAmIRequest) XXX_Unmarshal(b []byte) error { 1650 return m.Unmarshal(b) 1651 } 1652 func (m *WhoAmIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1653 if deterministic { 1654 return xxx_messageInfo_WhoAmIRequest.Marshal(b, m, deterministic) 1655 } else { 1656 b = b[:cap(b)] 1657 n, err := m.MarshalToSizedBuffer(b) 1658 if err != nil { 1659 return nil, err 1660 } 1661 return b[:n], nil 1662 } 1663 } 1664 func (m *WhoAmIRequest) XXX_Merge(src proto.Message) { 1665 xxx_messageInfo_WhoAmIRequest.Merge(m, src) 1666 } 1667 func (m *WhoAmIRequest) XXX_Size() int { 1668 return m.Size() 1669 } 1670 func (m *WhoAmIRequest) XXX_DiscardUnknown() { 1671 xxx_messageInfo_WhoAmIRequest.DiscardUnknown(m) 1672 } 1673 1674 var xxx_messageInfo_WhoAmIRequest proto.InternalMessageInfo 1675 1676 type WhoAmIResponse struct { 1677 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 1678 IsAdmin bool `protobuf:"varint,2,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` 1679 TTL int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` 1680 ClusterRoles *ClusterRoles `protobuf:"bytes,4,opt,name=cluster_roles,json=clusterRoles,proto3" json:"cluster_roles,omitempty"` 1681 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1682 XXX_unrecognized []byte `json:"-"` 1683 XXX_sizecache int32 `json:"-"` 1684 } 1685 1686 func (m *WhoAmIResponse) Reset() { *m = WhoAmIResponse{} } 1687 func (m *WhoAmIResponse) String() string { return proto.CompactTextString(m) } 1688 func (*WhoAmIResponse) ProtoMessage() {} 1689 func (*WhoAmIResponse) Descriptor() ([]byte, []int) { 1690 return fileDescriptor_e84be353c3527000, []int{24} 1691 } 1692 func (m *WhoAmIResponse) XXX_Unmarshal(b []byte) error { 1693 return m.Unmarshal(b) 1694 } 1695 func (m *WhoAmIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1696 if deterministic { 1697 return xxx_messageInfo_WhoAmIResponse.Marshal(b, m, deterministic) 1698 } else { 1699 b = b[:cap(b)] 1700 n, err := m.MarshalToSizedBuffer(b) 1701 if err != nil { 1702 return nil, err 1703 } 1704 return b[:n], nil 1705 } 1706 } 1707 func (m *WhoAmIResponse) XXX_Merge(src proto.Message) { 1708 xxx_messageInfo_WhoAmIResponse.Merge(m, src) 1709 } 1710 func (m *WhoAmIResponse) XXX_Size() int { 1711 return m.Size() 1712 } 1713 func (m *WhoAmIResponse) XXX_DiscardUnknown() { 1714 xxx_messageInfo_WhoAmIResponse.DiscardUnknown(m) 1715 } 1716 1717 var xxx_messageInfo_WhoAmIResponse proto.InternalMessageInfo 1718 1719 func (m *WhoAmIResponse) GetUsername() string { 1720 if m != nil { 1721 return m.Username 1722 } 1723 return "" 1724 } 1725 1726 func (m *WhoAmIResponse) GetIsAdmin() bool { 1727 if m != nil { 1728 return m.IsAdmin 1729 } 1730 return false 1731 } 1732 1733 func (m *WhoAmIResponse) GetTTL() int64 { 1734 if m != nil { 1735 return m.TTL 1736 } 1737 return 0 1738 } 1739 1740 func (m *WhoAmIResponse) GetClusterRoles() *ClusterRoles { 1741 if m != nil { 1742 return m.ClusterRoles 1743 } 1744 return nil 1745 } 1746 1747 type ACL struct { 1748 // principal -> scope. All principals are the default principal of a Pachyderm 1749 // subject (i.e. all keys in this map are strings prefixed with either 1750 // "github:" or "robot:", followed by the name of a GitHub user, all of whom 1751 // are Pachyderm subjects, or a Pachyderm robot user) 1752 Entries map[string]Scope `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=auth_1_12.Scope"` 1753 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1754 XXX_unrecognized []byte `json:"-"` 1755 XXX_sizecache int32 `json:"-"` 1756 } 1757 1758 func (m *ACL) Reset() { *m = ACL{} } 1759 func (m *ACL) String() string { return proto.CompactTextString(m) } 1760 func (*ACL) ProtoMessage() {} 1761 func (*ACL) Descriptor() ([]byte, []int) { 1762 return fileDescriptor_e84be353c3527000, []int{25} 1763 } 1764 func (m *ACL) XXX_Unmarshal(b []byte) error { 1765 return m.Unmarshal(b) 1766 } 1767 func (m *ACL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1768 if deterministic { 1769 return xxx_messageInfo_ACL.Marshal(b, m, deterministic) 1770 } else { 1771 b = b[:cap(b)] 1772 n, err := m.MarshalToSizedBuffer(b) 1773 if err != nil { 1774 return nil, err 1775 } 1776 return b[:n], nil 1777 } 1778 } 1779 func (m *ACL) XXX_Merge(src proto.Message) { 1780 xxx_messageInfo_ACL.Merge(m, src) 1781 } 1782 func (m *ACL) XXX_Size() int { 1783 return m.Size() 1784 } 1785 func (m *ACL) XXX_DiscardUnknown() { 1786 xxx_messageInfo_ACL.DiscardUnknown(m) 1787 } 1788 1789 var xxx_messageInfo_ACL proto.InternalMessageInfo 1790 1791 func (m *ACL) GetEntries() map[string]Scope { 1792 if m != nil { 1793 return m.Entries 1794 } 1795 return nil 1796 } 1797 1798 type Users struct { 1799 Usernames map[string]bool `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 1800 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1801 XXX_unrecognized []byte `json:"-"` 1802 XXX_sizecache int32 `json:"-"` 1803 } 1804 1805 func (m *Users) Reset() { *m = Users{} } 1806 func (m *Users) String() string { return proto.CompactTextString(m) } 1807 func (*Users) ProtoMessage() {} 1808 func (*Users) Descriptor() ([]byte, []int) { 1809 return fileDescriptor_e84be353c3527000, []int{26} 1810 } 1811 func (m *Users) XXX_Unmarshal(b []byte) error { 1812 return m.Unmarshal(b) 1813 } 1814 func (m *Users) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1815 if deterministic { 1816 return xxx_messageInfo_Users.Marshal(b, m, deterministic) 1817 } else { 1818 b = b[:cap(b)] 1819 n, err := m.MarshalToSizedBuffer(b) 1820 if err != nil { 1821 return nil, err 1822 } 1823 return b[:n], nil 1824 } 1825 } 1826 func (m *Users) XXX_Merge(src proto.Message) { 1827 xxx_messageInfo_Users.Merge(m, src) 1828 } 1829 func (m *Users) XXX_Size() int { 1830 return m.Size() 1831 } 1832 func (m *Users) XXX_DiscardUnknown() { 1833 xxx_messageInfo_Users.DiscardUnknown(m) 1834 } 1835 1836 var xxx_messageInfo_Users proto.InternalMessageInfo 1837 1838 func (m *Users) GetUsernames() map[string]bool { 1839 if m != nil { 1840 return m.Usernames 1841 } 1842 return nil 1843 } 1844 1845 type Groups struct { 1846 Groups map[string]bool `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 1847 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1848 XXX_unrecognized []byte `json:"-"` 1849 XXX_sizecache int32 `json:"-"` 1850 } 1851 1852 func (m *Groups) Reset() { *m = Groups{} } 1853 func (m *Groups) String() string { return proto.CompactTextString(m) } 1854 func (*Groups) ProtoMessage() {} 1855 func (*Groups) Descriptor() ([]byte, []int) { 1856 return fileDescriptor_e84be353c3527000, []int{27} 1857 } 1858 func (m *Groups) XXX_Unmarshal(b []byte) error { 1859 return m.Unmarshal(b) 1860 } 1861 func (m *Groups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1862 if deterministic { 1863 return xxx_messageInfo_Groups.Marshal(b, m, deterministic) 1864 } else { 1865 b = b[:cap(b)] 1866 n, err := m.MarshalToSizedBuffer(b) 1867 if err != nil { 1868 return nil, err 1869 } 1870 return b[:n], nil 1871 } 1872 } 1873 func (m *Groups) XXX_Merge(src proto.Message) { 1874 xxx_messageInfo_Groups.Merge(m, src) 1875 } 1876 func (m *Groups) XXX_Size() int { 1877 return m.Size() 1878 } 1879 func (m *Groups) XXX_DiscardUnknown() { 1880 xxx_messageInfo_Groups.DiscardUnknown(m) 1881 } 1882 1883 var xxx_messageInfo_Groups proto.InternalMessageInfo 1884 1885 func (m *Groups) GetGroups() map[string]bool { 1886 if m != nil { 1887 return m.Groups 1888 } 1889 return nil 1890 } 1891 1892 type AuthorizeRequest struct { 1893 // repo is the object that the caller wants to access 1894 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 1895 // scope is the access level that the caller needs to perform an action 1896 Scope Scope `protobuf:"varint,2,opt,name=scope,proto3,enum=auth_1_12.Scope" json:"scope,omitempty"` 1897 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1898 XXX_unrecognized []byte `json:"-"` 1899 XXX_sizecache int32 `json:"-"` 1900 } 1901 1902 func (m *AuthorizeRequest) Reset() { *m = AuthorizeRequest{} } 1903 func (m *AuthorizeRequest) String() string { return proto.CompactTextString(m) } 1904 func (*AuthorizeRequest) ProtoMessage() {} 1905 func (*AuthorizeRequest) Descriptor() ([]byte, []int) { 1906 return fileDescriptor_e84be353c3527000, []int{28} 1907 } 1908 func (m *AuthorizeRequest) XXX_Unmarshal(b []byte) error { 1909 return m.Unmarshal(b) 1910 } 1911 func (m *AuthorizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1912 if deterministic { 1913 return xxx_messageInfo_AuthorizeRequest.Marshal(b, m, deterministic) 1914 } else { 1915 b = b[:cap(b)] 1916 n, err := m.MarshalToSizedBuffer(b) 1917 if err != nil { 1918 return nil, err 1919 } 1920 return b[:n], nil 1921 } 1922 } 1923 func (m *AuthorizeRequest) XXX_Merge(src proto.Message) { 1924 xxx_messageInfo_AuthorizeRequest.Merge(m, src) 1925 } 1926 func (m *AuthorizeRequest) XXX_Size() int { 1927 return m.Size() 1928 } 1929 func (m *AuthorizeRequest) XXX_DiscardUnknown() { 1930 xxx_messageInfo_AuthorizeRequest.DiscardUnknown(m) 1931 } 1932 1933 var xxx_messageInfo_AuthorizeRequest proto.InternalMessageInfo 1934 1935 func (m *AuthorizeRequest) GetRepo() string { 1936 if m != nil { 1937 return m.Repo 1938 } 1939 return "" 1940 } 1941 1942 func (m *AuthorizeRequest) GetScope() Scope { 1943 if m != nil { 1944 return m.Scope 1945 } 1946 return Scope_NONE 1947 } 1948 1949 type AuthorizeResponse struct { 1950 // authorized is true if the caller has at least 1951 // 'AuthorizeRequest.scope'-level access to 'AuthorizeRequest.repo', and false 1952 // otherwise 1953 Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` 1954 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1955 XXX_unrecognized []byte `json:"-"` 1956 XXX_sizecache int32 `json:"-"` 1957 } 1958 1959 func (m *AuthorizeResponse) Reset() { *m = AuthorizeResponse{} } 1960 func (m *AuthorizeResponse) String() string { return proto.CompactTextString(m) } 1961 func (*AuthorizeResponse) ProtoMessage() {} 1962 func (*AuthorizeResponse) Descriptor() ([]byte, []int) { 1963 return fileDescriptor_e84be353c3527000, []int{29} 1964 } 1965 func (m *AuthorizeResponse) XXX_Unmarshal(b []byte) error { 1966 return m.Unmarshal(b) 1967 } 1968 func (m *AuthorizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1969 if deterministic { 1970 return xxx_messageInfo_AuthorizeResponse.Marshal(b, m, deterministic) 1971 } else { 1972 b = b[:cap(b)] 1973 n, err := m.MarshalToSizedBuffer(b) 1974 if err != nil { 1975 return nil, err 1976 } 1977 return b[:n], nil 1978 } 1979 } 1980 func (m *AuthorizeResponse) XXX_Merge(src proto.Message) { 1981 xxx_messageInfo_AuthorizeResponse.Merge(m, src) 1982 } 1983 func (m *AuthorizeResponse) XXX_Size() int { 1984 return m.Size() 1985 } 1986 func (m *AuthorizeResponse) XXX_DiscardUnknown() { 1987 xxx_messageInfo_AuthorizeResponse.DiscardUnknown(m) 1988 } 1989 1990 var xxx_messageInfo_AuthorizeResponse proto.InternalMessageInfo 1991 1992 func (m *AuthorizeResponse) GetAuthorized() bool { 1993 if m != nil { 1994 return m.Authorized 1995 } 1996 return false 1997 } 1998 1999 type GetScopeRequest struct { 2000 // username is the principal (some of which belong to robots rather than 2001 // users, but the name is preserved for now to provide compatibility with the 2002 // pachyderm dash) whose access level is queried. To query the access level 2003 // of a robot user, the caller must prefix username with "robot:". If 2004 // 'username' has no prefix (i.e. no ":"), then it's assumed to be a github 2005 // user's principal. 2006 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 2007 // repos are the objects to which 'username's access level is being queried 2008 Repos []string `protobuf:"bytes,2,rep,name=repos,proto3" json:"repos,omitempty"` 2009 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2010 XXX_unrecognized []byte `json:"-"` 2011 XXX_sizecache int32 `json:"-"` 2012 } 2013 2014 func (m *GetScopeRequest) Reset() { *m = GetScopeRequest{} } 2015 func (m *GetScopeRequest) String() string { return proto.CompactTextString(m) } 2016 func (*GetScopeRequest) ProtoMessage() {} 2017 func (*GetScopeRequest) Descriptor() ([]byte, []int) { 2018 return fileDescriptor_e84be353c3527000, []int{30} 2019 } 2020 func (m *GetScopeRequest) XXX_Unmarshal(b []byte) error { 2021 return m.Unmarshal(b) 2022 } 2023 func (m *GetScopeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2024 if deterministic { 2025 return xxx_messageInfo_GetScopeRequest.Marshal(b, m, deterministic) 2026 } else { 2027 b = b[:cap(b)] 2028 n, err := m.MarshalToSizedBuffer(b) 2029 if err != nil { 2030 return nil, err 2031 } 2032 return b[:n], nil 2033 } 2034 } 2035 func (m *GetScopeRequest) XXX_Merge(src proto.Message) { 2036 xxx_messageInfo_GetScopeRequest.Merge(m, src) 2037 } 2038 func (m *GetScopeRequest) XXX_Size() int { 2039 return m.Size() 2040 } 2041 func (m *GetScopeRequest) XXX_DiscardUnknown() { 2042 xxx_messageInfo_GetScopeRequest.DiscardUnknown(m) 2043 } 2044 2045 var xxx_messageInfo_GetScopeRequest proto.InternalMessageInfo 2046 2047 func (m *GetScopeRequest) GetUsername() string { 2048 if m != nil { 2049 return m.Username 2050 } 2051 return "" 2052 } 2053 2054 func (m *GetScopeRequest) GetRepos() []string { 2055 if m != nil { 2056 return m.Repos 2057 } 2058 return nil 2059 } 2060 2061 type GetScopeResponse struct { 2062 // scopes (actually a "role"--see "Scope") are the access level that 2063 // 'GetScopeRequest.username' has to each repo in 'GetScopeRequest.repos', in 2064 // the same order that repos appeared in 'repos'. 2065 Scopes []Scope `protobuf:"varint,1,rep,packed,name=scopes,proto3,enum=auth_1_12.Scope" json:"scopes,omitempty"` 2066 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2067 XXX_unrecognized []byte `json:"-"` 2068 XXX_sizecache int32 `json:"-"` 2069 } 2070 2071 func (m *GetScopeResponse) Reset() { *m = GetScopeResponse{} } 2072 func (m *GetScopeResponse) String() string { return proto.CompactTextString(m) } 2073 func (*GetScopeResponse) ProtoMessage() {} 2074 func (*GetScopeResponse) Descriptor() ([]byte, []int) { 2075 return fileDescriptor_e84be353c3527000, []int{31} 2076 } 2077 func (m *GetScopeResponse) XXX_Unmarshal(b []byte) error { 2078 return m.Unmarshal(b) 2079 } 2080 func (m *GetScopeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2081 if deterministic { 2082 return xxx_messageInfo_GetScopeResponse.Marshal(b, m, deterministic) 2083 } else { 2084 b = b[:cap(b)] 2085 n, err := m.MarshalToSizedBuffer(b) 2086 if err != nil { 2087 return nil, err 2088 } 2089 return b[:n], nil 2090 } 2091 } 2092 func (m *GetScopeResponse) XXX_Merge(src proto.Message) { 2093 xxx_messageInfo_GetScopeResponse.Merge(m, src) 2094 } 2095 func (m *GetScopeResponse) XXX_Size() int { 2096 return m.Size() 2097 } 2098 func (m *GetScopeResponse) XXX_DiscardUnknown() { 2099 xxx_messageInfo_GetScopeResponse.DiscardUnknown(m) 2100 } 2101 2102 var xxx_messageInfo_GetScopeResponse proto.InternalMessageInfo 2103 2104 func (m *GetScopeResponse) GetScopes() []Scope { 2105 if m != nil { 2106 return m.Scopes 2107 } 2108 return nil 2109 } 2110 2111 type SetScopeRequest struct { 2112 // username is the principal (some of which belong to robots rather than 2113 // users, but the name is preserved for now to provide compatibility with the 2114 // pachyderm dash) whose access is being granted/revoked. As with 2115 // GetScopeRequest, to set the access level of a robot user, the caller must 2116 // prefix username with "robot:". If 'username' has no prefix (i.e. no ":"), 2117 // then it's assumed to be a github user's principal. 2118 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 2119 // repo is the object to which access is being granted/revoked 2120 Repo string `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"` 2121 // scope (actually a "role"--see "Scope") is the access level that the owner 2122 // of 'principal' will now have 2123 Scope Scope `protobuf:"varint,3,opt,name=scope,proto3,enum=auth_1_12.Scope" json:"scope,omitempty"` 2124 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2125 XXX_unrecognized []byte `json:"-"` 2126 XXX_sizecache int32 `json:"-"` 2127 } 2128 2129 func (m *SetScopeRequest) Reset() { *m = SetScopeRequest{} } 2130 func (m *SetScopeRequest) String() string { return proto.CompactTextString(m) } 2131 func (*SetScopeRequest) ProtoMessage() {} 2132 func (*SetScopeRequest) Descriptor() ([]byte, []int) { 2133 return fileDescriptor_e84be353c3527000, []int{32} 2134 } 2135 func (m *SetScopeRequest) XXX_Unmarshal(b []byte) error { 2136 return m.Unmarshal(b) 2137 } 2138 func (m *SetScopeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2139 if deterministic { 2140 return xxx_messageInfo_SetScopeRequest.Marshal(b, m, deterministic) 2141 } else { 2142 b = b[:cap(b)] 2143 n, err := m.MarshalToSizedBuffer(b) 2144 if err != nil { 2145 return nil, err 2146 } 2147 return b[:n], nil 2148 } 2149 } 2150 func (m *SetScopeRequest) XXX_Merge(src proto.Message) { 2151 xxx_messageInfo_SetScopeRequest.Merge(m, src) 2152 } 2153 func (m *SetScopeRequest) XXX_Size() int { 2154 return m.Size() 2155 } 2156 func (m *SetScopeRequest) XXX_DiscardUnknown() { 2157 xxx_messageInfo_SetScopeRequest.DiscardUnknown(m) 2158 } 2159 2160 var xxx_messageInfo_SetScopeRequest proto.InternalMessageInfo 2161 2162 func (m *SetScopeRequest) GetUsername() string { 2163 if m != nil { 2164 return m.Username 2165 } 2166 return "" 2167 } 2168 2169 func (m *SetScopeRequest) GetRepo() string { 2170 if m != nil { 2171 return m.Repo 2172 } 2173 return "" 2174 } 2175 2176 func (m *SetScopeRequest) GetScope() Scope { 2177 if m != nil { 2178 return m.Scope 2179 } 2180 return Scope_NONE 2181 } 2182 2183 type SetScopeResponse struct { 2184 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2185 XXX_unrecognized []byte `json:"-"` 2186 XXX_sizecache int32 `json:"-"` 2187 } 2188 2189 func (m *SetScopeResponse) Reset() { *m = SetScopeResponse{} } 2190 func (m *SetScopeResponse) String() string { return proto.CompactTextString(m) } 2191 func (*SetScopeResponse) ProtoMessage() {} 2192 func (*SetScopeResponse) Descriptor() ([]byte, []int) { 2193 return fileDescriptor_e84be353c3527000, []int{33} 2194 } 2195 func (m *SetScopeResponse) XXX_Unmarshal(b []byte) error { 2196 return m.Unmarshal(b) 2197 } 2198 func (m *SetScopeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2199 if deterministic { 2200 return xxx_messageInfo_SetScopeResponse.Marshal(b, m, deterministic) 2201 } else { 2202 b = b[:cap(b)] 2203 n, err := m.MarshalToSizedBuffer(b) 2204 if err != nil { 2205 return nil, err 2206 } 2207 return b[:n], nil 2208 } 2209 } 2210 func (m *SetScopeResponse) XXX_Merge(src proto.Message) { 2211 xxx_messageInfo_SetScopeResponse.Merge(m, src) 2212 } 2213 func (m *SetScopeResponse) XXX_Size() int { 2214 return m.Size() 2215 } 2216 func (m *SetScopeResponse) XXX_DiscardUnknown() { 2217 xxx_messageInfo_SetScopeResponse.DiscardUnknown(m) 2218 } 2219 2220 var xxx_messageInfo_SetScopeResponse proto.InternalMessageInfo 2221 2222 type GetACLRequest struct { 2223 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 2224 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2225 XXX_unrecognized []byte `json:"-"` 2226 XXX_sizecache int32 `json:"-"` 2227 } 2228 2229 func (m *GetACLRequest) Reset() { *m = GetACLRequest{} } 2230 func (m *GetACLRequest) String() string { return proto.CompactTextString(m) } 2231 func (*GetACLRequest) ProtoMessage() {} 2232 func (*GetACLRequest) Descriptor() ([]byte, []int) { 2233 return fileDescriptor_e84be353c3527000, []int{34} 2234 } 2235 func (m *GetACLRequest) XXX_Unmarshal(b []byte) error { 2236 return m.Unmarshal(b) 2237 } 2238 func (m *GetACLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2239 if deterministic { 2240 return xxx_messageInfo_GetACLRequest.Marshal(b, m, deterministic) 2241 } else { 2242 b = b[:cap(b)] 2243 n, err := m.MarshalToSizedBuffer(b) 2244 if err != nil { 2245 return nil, err 2246 } 2247 return b[:n], nil 2248 } 2249 } 2250 func (m *GetACLRequest) XXX_Merge(src proto.Message) { 2251 xxx_messageInfo_GetACLRequest.Merge(m, src) 2252 } 2253 func (m *GetACLRequest) XXX_Size() int { 2254 return m.Size() 2255 } 2256 func (m *GetACLRequest) XXX_DiscardUnknown() { 2257 xxx_messageInfo_GetACLRequest.DiscardUnknown(m) 2258 } 2259 2260 var xxx_messageInfo_GetACLRequest proto.InternalMessageInfo 2261 2262 func (m *GetACLRequest) GetRepo() string { 2263 if m != nil { 2264 return m.Repo 2265 } 2266 return "" 2267 } 2268 2269 type ACLEntry struct { 2270 // username is the principal posessing this level of access to this ACL's 2271 // repo (despite the name, this principal may be for a human github user or a 2272 // pachyderm robot) 2273 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 2274 // scope is the level of access that the owner of 'principal' has to this 2275 // ACL's repo (actually a role in typical security terminology) 2276 Scope Scope `protobuf:"varint,2,opt,name=scope,proto3,enum=auth_1_12.Scope" json:"scope,omitempty"` 2277 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2278 XXX_unrecognized []byte `json:"-"` 2279 XXX_sizecache int32 `json:"-"` 2280 } 2281 2282 func (m *ACLEntry) Reset() { *m = ACLEntry{} } 2283 func (m *ACLEntry) String() string { return proto.CompactTextString(m) } 2284 func (*ACLEntry) ProtoMessage() {} 2285 func (*ACLEntry) Descriptor() ([]byte, []int) { 2286 return fileDescriptor_e84be353c3527000, []int{35} 2287 } 2288 func (m *ACLEntry) XXX_Unmarshal(b []byte) error { 2289 return m.Unmarshal(b) 2290 } 2291 func (m *ACLEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2292 if deterministic { 2293 return xxx_messageInfo_ACLEntry.Marshal(b, m, deterministic) 2294 } else { 2295 b = b[:cap(b)] 2296 n, err := m.MarshalToSizedBuffer(b) 2297 if err != nil { 2298 return nil, err 2299 } 2300 return b[:n], nil 2301 } 2302 } 2303 func (m *ACLEntry) XXX_Merge(src proto.Message) { 2304 xxx_messageInfo_ACLEntry.Merge(m, src) 2305 } 2306 func (m *ACLEntry) XXX_Size() int { 2307 return m.Size() 2308 } 2309 func (m *ACLEntry) XXX_DiscardUnknown() { 2310 xxx_messageInfo_ACLEntry.DiscardUnknown(m) 2311 } 2312 2313 var xxx_messageInfo_ACLEntry proto.InternalMessageInfo 2314 2315 func (m *ACLEntry) GetUsername() string { 2316 if m != nil { 2317 return m.Username 2318 } 2319 return "" 2320 } 2321 2322 func (m *ACLEntry) GetScope() Scope { 2323 if m != nil { 2324 return m.Scope 2325 } 2326 return Scope_NONE 2327 } 2328 2329 // GetACLReponse contains the list of entries on a Pachyderm ACL. 2330 // 2331 // To avoid migration pain with the Pachyderm dash the list of user principal 2332 // entries and robot principal entries are separate. This way, no prefix or 2333 // other disambiguating device is needed in 'entries' to separate user 2334 // principals from robot principals (which would confuse the dash). Instead, 2335 // the dash can simply ignore robot principals. 2336 type GetACLResponse struct { 2337 // entries contains all [user principal] -> [role] mappings. This is separate 2338 // from robot_entries to avoid migration pain the Pachyderm dashboard 2339 Entries []*ACLEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` 2340 // robot_entries contains all [robot principal] -> [role] mappings. This is 2341 // separate from entries to be unambiguous (all keys are robot principals, but 2342 // have no prefixes) while avoiding migration pain in the Pachyderm dashboard. 2343 RobotEntries []*ACLEntry `protobuf:"bytes,2,rep,name=robot_entries,json=robotEntries,proto3" json:"robot_entries,omitempty"` 2344 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2345 XXX_unrecognized []byte `json:"-"` 2346 XXX_sizecache int32 `json:"-"` 2347 } 2348 2349 func (m *GetACLResponse) Reset() { *m = GetACLResponse{} } 2350 func (m *GetACLResponse) String() string { return proto.CompactTextString(m) } 2351 func (*GetACLResponse) ProtoMessage() {} 2352 func (*GetACLResponse) Descriptor() ([]byte, []int) { 2353 return fileDescriptor_e84be353c3527000, []int{36} 2354 } 2355 func (m *GetACLResponse) XXX_Unmarshal(b []byte) error { 2356 return m.Unmarshal(b) 2357 } 2358 func (m *GetACLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2359 if deterministic { 2360 return xxx_messageInfo_GetACLResponse.Marshal(b, m, deterministic) 2361 } else { 2362 b = b[:cap(b)] 2363 n, err := m.MarshalToSizedBuffer(b) 2364 if err != nil { 2365 return nil, err 2366 } 2367 return b[:n], nil 2368 } 2369 } 2370 func (m *GetACLResponse) XXX_Merge(src proto.Message) { 2371 xxx_messageInfo_GetACLResponse.Merge(m, src) 2372 } 2373 func (m *GetACLResponse) XXX_Size() int { 2374 return m.Size() 2375 } 2376 func (m *GetACLResponse) XXX_DiscardUnknown() { 2377 xxx_messageInfo_GetACLResponse.DiscardUnknown(m) 2378 } 2379 2380 var xxx_messageInfo_GetACLResponse proto.InternalMessageInfo 2381 2382 func (m *GetACLResponse) GetEntries() []*ACLEntry { 2383 if m != nil { 2384 return m.Entries 2385 } 2386 return nil 2387 } 2388 2389 func (m *GetACLResponse) GetRobotEntries() []*ACLEntry { 2390 if m != nil { 2391 return m.RobotEntries 2392 } 2393 return nil 2394 } 2395 2396 type SetACLRequest struct { 2397 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 2398 Entries []*ACLEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` 2399 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2400 XXX_unrecognized []byte `json:"-"` 2401 XXX_sizecache int32 `json:"-"` 2402 } 2403 2404 func (m *SetACLRequest) Reset() { *m = SetACLRequest{} } 2405 func (m *SetACLRequest) String() string { return proto.CompactTextString(m) } 2406 func (*SetACLRequest) ProtoMessage() {} 2407 func (*SetACLRequest) Descriptor() ([]byte, []int) { 2408 return fileDescriptor_e84be353c3527000, []int{37} 2409 } 2410 func (m *SetACLRequest) XXX_Unmarshal(b []byte) error { 2411 return m.Unmarshal(b) 2412 } 2413 func (m *SetACLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2414 if deterministic { 2415 return xxx_messageInfo_SetACLRequest.Marshal(b, m, deterministic) 2416 } else { 2417 b = b[:cap(b)] 2418 n, err := m.MarshalToSizedBuffer(b) 2419 if err != nil { 2420 return nil, err 2421 } 2422 return b[:n], nil 2423 } 2424 } 2425 func (m *SetACLRequest) XXX_Merge(src proto.Message) { 2426 xxx_messageInfo_SetACLRequest.Merge(m, src) 2427 } 2428 func (m *SetACLRequest) XXX_Size() int { 2429 return m.Size() 2430 } 2431 func (m *SetACLRequest) XXX_DiscardUnknown() { 2432 xxx_messageInfo_SetACLRequest.DiscardUnknown(m) 2433 } 2434 2435 var xxx_messageInfo_SetACLRequest proto.InternalMessageInfo 2436 2437 func (m *SetACLRequest) GetRepo() string { 2438 if m != nil { 2439 return m.Repo 2440 } 2441 return "" 2442 } 2443 2444 func (m *SetACLRequest) GetEntries() []*ACLEntry { 2445 if m != nil { 2446 return m.Entries 2447 } 2448 return nil 2449 } 2450 2451 type SetACLResponse struct { 2452 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2453 XXX_unrecognized []byte `json:"-"` 2454 XXX_sizecache int32 `json:"-"` 2455 } 2456 2457 func (m *SetACLResponse) Reset() { *m = SetACLResponse{} } 2458 func (m *SetACLResponse) String() string { return proto.CompactTextString(m) } 2459 func (*SetACLResponse) ProtoMessage() {} 2460 func (*SetACLResponse) Descriptor() ([]byte, []int) { 2461 return fileDescriptor_e84be353c3527000, []int{38} 2462 } 2463 func (m *SetACLResponse) XXX_Unmarshal(b []byte) error { 2464 return m.Unmarshal(b) 2465 } 2466 func (m *SetACLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2467 if deterministic { 2468 return xxx_messageInfo_SetACLResponse.Marshal(b, m, deterministic) 2469 } else { 2470 b = b[:cap(b)] 2471 n, err := m.MarshalToSizedBuffer(b) 2472 if err != nil { 2473 return nil, err 2474 } 2475 return b[:n], nil 2476 } 2477 } 2478 func (m *SetACLResponse) XXX_Merge(src proto.Message) { 2479 xxx_messageInfo_SetACLResponse.Merge(m, src) 2480 } 2481 func (m *SetACLResponse) XXX_Size() int { 2482 return m.Size() 2483 } 2484 func (m *SetACLResponse) XXX_DiscardUnknown() { 2485 xxx_messageInfo_SetACLResponse.DiscardUnknown(m) 2486 } 2487 2488 var xxx_messageInfo_SetACLResponse proto.InternalMessageInfo 2489 2490 // SessionInfo stores information associated with one OIDC authentication 2491 // session (i.e. a single instance of a single user logging in). Sessions are 2492 // short-lived and stored in the 'oidc-authns' collection, keyed by the OIDC 2493 // 'state' token (30-character CSPRNG-generated string). 'GetOIDCLogin' 2494 // generates and inserts entries, then /authorization-code/callback retrieves 2495 // an access token from the ID provider and uses it to retrive the caller's 2496 // email and store it in 'email', and finally Authorize() returns a Pachyderm 2497 // token identified with that email address as a subject in Pachyderm. 2498 type SessionInfo struct { 2499 // nonce is used by /authorization-code/callback to validate session 2500 // continuity with the IdP after a user has arrived there from GetOIDCLogin(). 2501 // This is a 30-character CSPRNG-generated string. 2502 Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 2503 // email contains the email adddress associated with a user in their OIDC ID 2504 // provider. Currently users are identified with their email address rather 2505 // than their OIDC subject identifier to make switching between OIDC ID 2506 // providers easier for users, and to make user identities more easily 2507 // comprehensible in Pachyderm. The OIDC spec doesn't require that users' 2508 // emails be present or unique, but we think this will be preferable in 2509 // practice. 2510 Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` 2511 // conversion_err indicates whether an error was encountered while exchanging 2512 // an auth code for an access token, or while obtaining a user's email (in 2513 // /authorization-code/callback). Storing the error state here allows any 2514 // sibling calls to Authenticate() (i.e. using the same OIDC state token) to 2515 // notify their caller that an error has occurred. We avoid passing the caller 2516 // any details of the error (which are logged by Pachyderm) to avoid giving 2517 // information to a user who has network access to Pachyderm but not an 2518 // account in the OIDC provider. 2519 ConversionErr bool `protobuf:"varint,3,opt,name=conversion_err,json=conversionErr,proto3" json:"conversion_err,omitempty"` 2520 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2521 XXX_unrecognized []byte `json:"-"` 2522 XXX_sizecache int32 `json:"-"` 2523 } 2524 2525 func (m *SessionInfo) Reset() { *m = SessionInfo{} } 2526 func (m *SessionInfo) String() string { return proto.CompactTextString(m) } 2527 func (*SessionInfo) ProtoMessage() {} 2528 func (*SessionInfo) Descriptor() ([]byte, []int) { 2529 return fileDescriptor_e84be353c3527000, []int{39} 2530 } 2531 func (m *SessionInfo) XXX_Unmarshal(b []byte) error { 2532 return m.Unmarshal(b) 2533 } 2534 func (m *SessionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2535 if deterministic { 2536 return xxx_messageInfo_SessionInfo.Marshal(b, m, deterministic) 2537 } else { 2538 b = b[:cap(b)] 2539 n, err := m.MarshalToSizedBuffer(b) 2540 if err != nil { 2541 return nil, err 2542 } 2543 return b[:n], nil 2544 } 2545 } 2546 func (m *SessionInfo) XXX_Merge(src proto.Message) { 2547 xxx_messageInfo_SessionInfo.Merge(m, src) 2548 } 2549 func (m *SessionInfo) XXX_Size() int { 2550 return m.Size() 2551 } 2552 func (m *SessionInfo) XXX_DiscardUnknown() { 2553 xxx_messageInfo_SessionInfo.DiscardUnknown(m) 2554 } 2555 2556 var xxx_messageInfo_SessionInfo proto.InternalMessageInfo 2557 2558 func (m *SessionInfo) GetNonce() string { 2559 if m != nil { 2560 return m.Nonce 2561 } 2562 return "" 2563 } 2564 2565 func (m *SessionInfo) GetEmail() string { 2566 if m != nil { 2567 return m.Email 2568 } 2569 return "" 2570 } 2571 2572 func (m *SessionInfo) GetConversionErr() bool { 2573 if m != nil { 2574 return m.ConversionErr 2575 } 2576 return false 2577 } 2578 2579 type GetOIDCLoginRequest struct { 2580 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2581 XXX_unrecognized []byte `json:"-"` 2582 XXX_sizecache int32 `json:"-"` 2583 } 2584 2585 func (m *GetOIDCLoginRequest) Reset() { *m = GetOIDCLoginRequest{} } 2586 func (m *GetOIDCLoginRequest) String() string { return proto.CompactTextString(m) } 2587 func (*GetOIDCLoginRequest) ProtoMessage() {} 2588 func (*GetOIDCLoginRequest) Descriptor() ([]byte, []int) { 2589 return fileDescriptor_e84be353c3527000, []int{40} 2590 } 2591 func (m *GetOIDCLoginRequest) XXX_Unmarshal(b []byte) error { 2592 return m.Unmarshal(b) 2593 } 2594 func (m *GetOIDCLoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2595 if deterministic { 2596 return xxx_messageInfo_GetOIDCLoginRequest.Marshal(b, m, deterministic) 2597 } else { 2598 b = b[:cap(b)] 2599 n, err := m.MarshalToSizedBuffer(b) 2600 if err != nil { 2601 return nil, err 2602 } 2603 return b[:n], nil 2604 } 2605 } 2606 func (m *GetOIDCLoginRequest) XXX_Merge(src proto.Message) { 2607 xxx_messageInfo_GetOIDCLoginRequest.Merge(m, src) 2608 } 2609 func (m *GetOIDCLoginRequest) XXX_Size() int { 2610 return m.Size() 2611 } 2612 func (m *GetOIDCLoginRequest) XXX_DiscardUnknown() { 2613 xxx_messageInfo_GetOIDCLoginRequest.DiscardUnknown(m) 2614 } 2615 2616 var xxx_messageInfo_GetOIDCLoginRequest proto.InternalMessageInfo 2617 2618 type GetOIDCLoginResponse struct { 2619 // The login URL generated for the OIDC object 2620 LoginURL string `protobuf:"bytes,1,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"` 2621 State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` 2622 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2623 XXX_unrecognized []byte `json:"-"` 2624 XXX_sizecache int32 `json:"-"` 2625 } 2626 2627 func (m *GetOIDCLoginResponse) Reset() { *m = GetOIDCLoginResponse{} } 2628 func (m *GetOIDCLoginResponse) String() string { return proto.CompactTextString(m) } 2629 func (*GetOIDCLoginResponse) ProtoMessage() {} 2630 func (*GetOIDCLoginResponse) Descriptor() ([]byte, []int) { 2631 return fileDescriptor_e84be353c3527000, []int{41} 2632 } 2633 func (m *GetOIDCLoginResponse) XXX_Unmarshal(b []byte) error { 2634 return m.Unmarshal(b) 2635 } 2636 func (m *GetOIDCLoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2637 if deterministic { 2638 return xxx_messageInfo_GetOIDCLoginResponse.Marshal(b, m, deterministic) 2639 } else { 2640 b = b[:cap(b)] 2641 n, err := m.MarshalToSizedBuffer(b) 2642 if err != nil { 2643 return nil, err 2644 } 2645 return b[:n], nil 2646 } 2647 } 2648 func (m *GetOIDCLoginResponse) XXX_Merge(src proto.Message) { 2649 xxx_messageInfo_GetOIDCLoginResponse.Merge(m, src) 2650 } 2651 func (m *GetOIDCLoginResponse) XXX_Size() int { 2652 return m.Size() 2653 } 2654 func (m *GetOIDCLoginResponse) XXX_DiscardUnknown() { 2655 xxx_messageInfo_GetOIDCLoginResponse.DiscardUnknown(m) 2656 } 2657 2658 var xxx_messageInfo_GetOIDCLoginResponse proto.InternalMessageInfo 2659 2660 func (m *GetOIDCLoginResponse) GetLoginURL() string { 2661 if m != nil { 2662 return m.LoginURL 2663 } 2664 return "" 2665 } 2666 2667 func (m *GetOIDCLoginResponse) GetState() string { 2668 if m != nil { 2669 return m.State 2670 } 2671 return "" 2672 } 2673 2674 type GetAuthTokenRequest struct { 2675 // The returned token will allow the caller to access resources as this 2676 // subject 2677 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 2678 // ttl indicates the requested (approximate) remaining lifetime of this token, 2679 // in seconds 2680 TTL int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` 2681 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2682 XXX_unrecognized []byte `json:"-"` 2683 XXX_sizecache int32 `json:"-"` 2684 } 2685 2686 func (m *GetAuthTokenRequest) Reset() { *m = GetAuthTokenRequest{} } 2687 func (m *GetAuthTokenRequest) String() string { return proto.CompactTextString(m) } 2688 func (*GetAuthTokenRequest) ProtoMessage() {} 2689 func (*GetAuthTokenRequest) Descriptor() ([]byte, []int) { 2690 return fileDescriptor_e84be353c3527000, []int{42} 2691 } 2692 func (m *GetAuthTokenRequest) XXX_Unmarshal(b []byte) error { 2693 return m.Unmarshal(b) 2694 } 2695 func (m *GetAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2696 if deterministic { 2697 return xxx_messageInfo_GetAuthTokenRequest.Marshal(b, m, deterministic) 2698 } else { 2699 b = b[:cap(b)] 2700 n, err := m.MarshalToSizedBuffer(b) 2701 if err != nil { 2702 return nil, err 2703 } 2704 return b[:n], nil 2705 } 2706 } 2707 func (m *GetAuthTokenRequest) XXX_Merge(src proto.Message) { 2708 xxx_messageInfo_GetAuthTokenRequest.Merge(m, src) 2709 } 2710 func (m *GetAuthTokenRequest) XXX_Size() int { 2711 return m.Size() 2712 } 2713 func (m *GetAuthTokenRequest) XXX_DiscardUnknown() { 2714 xxx_messageInfo_GetAuthTokenRequest.DiscardUnknown(m) 2715 } 2716 2717 var xxx_messageInfo_GetAuthTokenRequest proto.InternalMessageInfo 2718 2719 func (m *GetAuthTokenRequest) GetSubject() string { 2720 if m != nil { 2721 return m.Subject 2722 } 2723 return "" 2724 } 2725 2726 func (m *GetAuthTokenRequest) GetTTL() int64 { 2727 if m != nil { 2728 return m.TTL 2729 } 2730 return 0 2731 } 2732 2733 type GetAuthTokenResponse struct { 2734 // A canonicalized version of the subject in the request 2735 Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` 2736 // A new auth token for the user in 'GetAuthTokenRequest.Subject' token 2737 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 2738 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2739 XXX_unrecognized []byte `json:"-"` 2740 XXX_sizecache int32 `json:"-"` 2741 } 2742 2743 func (m *GetAuthTokenResponse) Reset() { *m = GetAuthTokenResponse{} } 2744 func (m *GetAuthTokenResponse) String() string { return proto.CompactTextString(m) } 2745 func (*GetAuthTokenResponse) ProtoMessage() {} 2746 func (*GetAuthTokenResponse) Descriptor() ([]byte, []int) { 2747 return fileDescriptor_e84be353c3527000, []int{43} 2748 } 2749 func (m *GetAuthTokenResponse) XXX_Unmarshal(b []byte) error { 2750 return m.Unmarshal(b) 2751 } 2752 func (m *GetAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2753 if deterministic { 2754 return xxx_messageInfo_GetAuthTokenResponse.Marshal(b, m, deterministic) 2755 } else { 2756 b = b[:cap(b)] 2757 n, err := m.MarshalToSizedBuffer(b) 2758 if err != nil { 2759 return nil, err 2760 } 2761 return b[:n], nil 2762 } 2763 } 2764 func (m *GetAuthTokenResponse) XXX_Merge(src proto.Message) { 2765 xxx_messageInfo_GetAuthTokenResponse.Merge(m, src) 2766 } 2767 func (m *GetAuthTokenResponse) XXX_Size() int { 2768 return m.Size() 2769 } 2770 func (m *GetAuthTokenResponse) XXX_DiscardUnknown() { 2771 xxx_messageInfo_GetAuthTokenResponse.DiscardUnknown(m) 2772 } 2773 2774 var xxx_messageInfo_GetAuthTokenResponse proto.InternalMessageInfo 2775 2776 func (m *GetAuthTokenResponse) GetSubject() string { 2777 if m != nil { 2778 return m.Subject 2779 } 2780 return "" 2781 } 2782 2783 func (m *GetAuthTokenResponse) GetToken() string { 2784 if m != nil { 2785 return m.Token 2786 } 2787 return "" 2788 } 2789 2790 type ExtendAuthTokenRequest struct { 2791 // token indicates the Pachyderm token whose TTL is being extended 2792 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 2793 // ttl indicates the new TTL of 'token' (if it's longer than the existing TTL) 2794 TTL int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` 2795 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2796 XXX_unrecognized []byte `json:"-"` 2797 XXX_sizecache int32 `json:"-"` 2798 } 2799 2800 func (m *ExtendAuthTokenRequest) Reset() { *m = ExtendAuthTokenRequest{} } 2801 func (m *ExtendAuthTokenRequest) String() string { return proto.CompactTextString(m) } 2802 func (*ExtendAuthTokenRequest) ProtoMessage() {} 2803 func (*ExtendAuthTokenRequest) Descriptor() ([]byte, []int) { 2804 return fileDescriptor_e84be353c3527000, []int{44} 2805 } 2806 func (m *ExtendAuthTokenRequest) XXX_Unmarshal(b []byte) error { 2807 return m.Unmarshal(b) 2808 } 2809 func (m *ExtendAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2810 if deterministic { 2811 return xxx_messageInfo_ExtendAuthTokenRequest.Marshal(b, m, deterministic) 2812 } else { 2813 b = b[:cap(b)] 2814 n, err := m.MarshalToSizedBuffer(b) 2815 if err != nil { 2816 return nil, err 2817 } 2818 return b[:n], nil 2819 } 2820 } 2821 func (m *ExtendAuthTokenRequest) XXX_Merge(src proto.Message) { 2822 xxx_messageInfo_ExtendAuthTokenRequest.Merge(m, src) 2823 } 2824 func (m *ExtendAuthTokenRequest) XXX_Size() int { 2825 return m.Size() 2826 } 2827 func (m *ExtendAuthTokenRequest) XXX_DiscardUnknown() { 2828 xxx_messageInfo_ExtendAuthTokenRequest.DiscardUnknown(m) 2829 } 2830 2831 var xxx_messageInfo_ExtendAuthTokenRequest proto.InternalMessageInfo 2832 2833 func (m *ExtendAuthTokenRequest) GetToken() string { 2834 if m != nil { 2835 return m.Token 2836 } 2837 return "" 2838 } 2839 2840 func (m *ExtendAuthTokenRequest) GetTTL() int64 { 2841 if m != nil { 2842 return m.TTL 2843 } 2844 return 0 2845 } 2846 2847 type ExtendAuthTokenResponse struct { 2848 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2849 XXX_unrecognized []byte `json:"-"` 2850 XXX_sizecache int32 `json:"-"` 2851 } 2852 2853 func (m *ExtendAuthTokenResponse) Reset() { *m = ExtendAuthTokenResponse{} } 2854 func (m *ExtendAuthTokenResponse) String() string { return proto.CompactTextString(m) } 2855 func (*ExtendAuthTokenResponse) ProtoMessage() {} 2856 func (*ExtendAuthTokenResponse) Descriptor() ([]byte, []int) { 2857 return fileDescriptor_e84be353c3527000, []int{45} 2858 } 2859 func (m *ExtendAuthTokenResponse) XXX_Unmarshal(b []byte) error { 2860 return m.Unmarshal(b) 2861 } 2862 func (m *ExtendAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2863 if deterministic { 2864 return xxx_messageInfo_ExtendAuthTokenResponse.Marshal(b, m, deterministic) 2865 } else { 2866 b = b[:cap(b)] 2867 n, err := m.MarshalToSizedBuffer(b) 2868 if err != nil { 2869 return nil, err 2870 } 2871 return b[:n], nil 2872 } 2873 } 2874 func (m *ExtendAuthTokenResponse) XXX_Merge(src proto.Message) { 2875 xxx_messageInfo_ExtendAuthTokenResponse.Merge(m, src) 2876 } 2877 func (m *ExtendAuthTokenResponse) XXX_Size() int { 2878 return m.Size() 2879 } 2880 func (m *ExtendAuthTokenResponse) XXX_DiscardUnknown() { 2881 xxx_messageInfo_ExtendAuthTokenResponse.DiscardUnknown(m) 2882 } 2883 2884 var xxx_messageInfo_ExtendAuthTokenResponse proto.InternalMessageInfo 2885 2886 type RevokeAuthTokenRequest struct { 2887 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 2888 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2889 XXX_unrecognized []byte `json:"-"` 2890 XXX_sizecache int32 `json:"-"` 2891 } 2892 2893 func (m *RevokeAuthTokenRequest) Reset() { *m = RevokeAuthTokenRequest{} } 2894 func (m *RevokeAuthTokenRequest) String() string { return proto.CompactTextString(m) } 2895 func (*RevokeAuthTokenRequest) ProtoMessage() {} 2896 func (*RevokeAuthTokenRequest) Descriptor() ([]byte, []int) { 2897 return fileDescriptor_e84be353c3527000, []int{46} 2898 } 2899 func (m *RevokeAuthTokenRequest) XXX_Unmarshal(b []byte) error { 2900 return m.Unmarshal(b) 2901 } 2902 func (m *RevokeAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2903 if deterministic { 2904 return xxx_messageInfo_RevokeAuthTokenRequest.Marshal(b, m, deterministic) 2905 } else { 2906 b = b[:cap(b)] 2907 n, err := m.MarshalToSizedBuffer(b) 2908 if err != nil { 2909 return nil, err 2910 } 2911 return b[:n], nil 2912 } 2913 } 2914 func (m *RevokeAuthTokenRequest) XXX_Merge(src proto.Message) { 2915 xxx_messageInfo_RevokeAuthTokenRequest.Merge(m, src) 2916 } 2917 func (m *RevokeAuthTokenRequest) XXX_Size() int { 2918 return m.Size() 2919 } 2920 func (m *RevokeAuthTokenRequest) XXX_DiscardUnknown() { 2921 xxx_messageInfo_RevokeAuthTokenRequest.DiscardUnknown(m) 2922 } 2923 2924 var xxx_messageInfo_RevokeAuthTokenRequest proto.InternalMessageInfo 2925 2926 func (m *RevokeAuthTokenRequest) GetToken() string { 2927 if m != nil { 2928 return m.Token 2929 } 2930 return "" 2931 } 2932 2933 type RevokeAuthTokenResponse struct { 2934 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2935 XXX_unrecognized []byte `json:"-"` 2936 XXX_sizecache int32 `json:"-"` 2937 } 2938 2939 func (m *RevokeAuthTokenResponse) Reset() { *m = RevokeAuthTokenResponse{} } 2940 func (m *RevokeAuthTokenResponse) String() string { return proto.CompactTextString(m) } 2941 func (*RevokeAuthTokenResponse) ProtoMessage() {} 2942 func (*RevokeAuthTokenResponse) Descriptor() ([]byte, []int) { 2943 return fileDescriptor_e84be353c3527000, []int{47} 2944 } 2945 func (m *RevokeAuthTokenResponse) XXX_Unmarshal(b []byte) error { 2946 return m.Unmarshal(b) 2947 } 2948 func (m *RevokeAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2949 if deterministic { 2950 return xxx_messageInfo_RevokeAuthTokenResponse.Marshal(b, m, deterministic) 2951 } else { 2952 b = b[:cap(b)] 2953 n, err := m.MarshalToSizedBuffer(b) 2954 if err != nil { 2955 return nil, err 2956 } 2957 return b[:n], nil 2958 } 2959 } 2960 func (m *RevokeAuthTokenResponse) XXX_Merge(src proto.Message) { 2961 xxx_messageInfo_RevokeAuthTokenResponse.Merge(m, src) 2962 } 2963 func (m *RevokeAuthTokenResponse) XXX_Size() int { 2964 return m.Size() 2965 } 2966 func (m *RevokeAuthTokenResponse) XXX_DiscardUnknown() { 2967 xxx_messageInfo_RevokeAuthTokenResponse.DiscardUnknown(m) 2968 } 2969 2970 var xxx_messageInfo_RevokeAuthTokenResponse proto.InternalMessageInfo 2971 2972 type SetGroupsForUserRequest struct { 2973 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 2974 Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` 2975 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2976 XXX_unrecognized []byte `json:"-"` 2977 XXX_sizecache int32 `json:"-"` 2978 } 2979 2980 func (m *SetGroupsForUserRequest) Reset() { *m = SetGroupsForUserRequest{} } 2981 func (m *SetGroupsForUserRequest) String() string { return proto.CompactTextString(m) } 2982 func (*SetGroupsForUserRequest) ProtoMessage() {} 2983 func (*SetGroupsForUserRequest) Descriptor() ([]byte, []int) { 2984 return fileDescriptor_e84be353c3527000, []int{48} 2985 } 2986 func (m *SetGroupsForUserRequest) XXX_Unmarshal(b []byte) error { 2987 return m.Unmarshal(b) 2988 } 2989 func (m *SetGroupsForUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2990 if deterministic { 2991 return xxx_messageInfo_SetGroupsForUserRequest.Marshal(b, m, deterministic) 2992 } else { 2993 b = b[:cap(b)] 2994 n, err := m.MarshalToSizedBuffer(b) 2995 if err != nil { 2996 return nil, err 2997 } 2998 return b[:n], nil 2999 } 3000 } 3001 func (m *SetGroupsForUserRequest) XXX_Merge(src proto.Message) { 3002 xxx_messageInfo_SetGroupsForUserRequest.Merge(m, src) 3003 } 3004 func (m *SetGroupsForUserRequest) XXX_Size() int { 3005 return m.Size() 3006 } 3007 func (m *SetGroupsForUserRequest) XXX_DiscardUnknown() { 3008 xxx_messageInfo_SetGroupsForUserRequest.DiscardUnknown(m) 3009 } 3010 3011 var xxx_messageInfo_SetGroupsForUserRequest proto.InternalMessageInfo 3012 3013 func (m *SetGroupsForUserRequest) GetUsername() string { 3014 if m != nil { 3015 return m.Username 3016 } 3017 return "" 3018 } 3019 3020 func (m *SetGroupsForUserRequest) GetGroups() []string { 3021 if m != nil { 3022 return m.Groups 3023 } 3024 return nil 3025 } 3026 3027 type SetGroupsForUserResponse struct { 3028 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3029 XXX_unrecognized []byte `json:"-"` 3030 XXX_sizecache int32 `json:"-"` 3031 } 3032 3033 func (m *SetGroupsForUserResponse) Reset() { *m = SetGroupsForUserResponse{} } 3034 func (m *SetGroupsForUserResponse) String() string { return proto.CompactTextString(m) } 3035 func (*SetGroupsForUserResponse) ProtoMessage() {} 3036 func (*SetGroupsForUserResponse) Descriptor() ([]byte, []int) { 3037 return fileDescriptor_e84be353c3527000, []int{49} 3038 } 3039 func (m *SetGroupsForUserResponse) XXX_Unmarshal(b []byte) error { 3040 return m.Unmarshal(b) 3041 } 3042 func (m *SetGroupsForUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3043 if deterministic { 3044 return xxx_messageInfo_SetGroupsForUserResponse.Marshal(b, m, deterministic) 3045 } else { 3046 b = b[:cap(b)] 3047 n, err := m.MarshalToSizedBuffer(b) 3048 if err != nil { 3049 return nil, err 3050 } 3051 return b[:n], nil 3052 } 3053 } 3054 func (m *SetGroupsForUserResponse) XXX_Merge(src proto.Message) { 3055 xxx_messageInfo_SetGroupsForUserResponse.Merge(m, src) 3056 } 3057 func (m *SetGroupsForUserResponse) XXX_Size() int { 3058 return m.Size() 3059 } 3060 func (m *SetGroupsForUserResponse) XXX_DiscardUnknown() { 3061 xxx_messageInfo_SetGroupsForUserResponse.DiscardUnknown(m) 3062 } 3063 3064 var xxx_messageInfo_SetGroupsForUserResponse proto.InternalMessageInfo 3065 3066 type ModifyMembersRequest struct { 3067 Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` 3068 Add []string `protobuf:"bytes,2,rep,name=add,proto3" json:"add,omitempty"` 3069 Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"` 3070 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3071 XXX_unrecognized []byte `json:"-"` 3072 XXX_sizecache int32 `json:"-"` 3073 } 3074 3075 func (m *ModifyMembersRequest) Reset() { *m = ModifyMembersRequest{} } 3076 func (m *ModifyMembersRequest) String() string { return proto.CompactTextString(m) } 3077 func (*ModifyMembersRequest) ProtoMessage() {} 3078 func (*ModifyMembersRequest) Descriptor() ([]byte, []int) { 3079 return fileDescriptor_e84be353c3527000, []int{50} 3080 } 3081 func (m *ModifyMembersRequest) XXX_Unmarshal(b []byte) error { 3082 return m.Unmarshal(b) 3083 } 3084 func (m *ModifyMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3085 if deterministic { 3086 return xxx_messageInfo_ModifyMembersRequest.Marshal(b, m, deterministic) 3087 } else { 3088 b = b[:cap(b)] 3089 n, err := m.MarshalToSizedBuffer(b) 3090 if err != nil { 3091 return nil, err 3092 } 3093 return b[:n], nil 3094 } 3095 } 3096 func (m *ModifyMembersRequest) XXX_Merge(src proto.Message) { 3097 xxx_messageInfo_ModifyMembersRequest.Merge(m, src) 3098 } 3099 func (m *ModifyMembersRequest) XXX_Size() int { 3100 return m.Size() 3101 } 3102 func (m *ModifyMembersRequest) XXX_DiscardUnknown() { 3103 xxx_messageInfo_ModifyMembersRequest.DiscardUnknown(m) 3104 } 3105 3106 var xxx_messageInfo_ModifyMembersRequest proto.InternalMessageInfo 3107 3108 func (m *ModifyMembersRequest) GetGroup() string { 3109 if m != nil { 3110 return m.Group 3111 } 3112 return "" 3113 } 3114 3115 func (m *ModifyMembersRequest) GetAdd() []string { 3116 if m != nil { 3117 return m.Add 3118 } 3119 return nil 3120 } 3121 3122 func (m *ModifyMembersRequest) GetRemove() []string { 3123 if m != nil { 3124 return m.Remove 3125 } 3126 return nil 3127 } 3128 3129 type ModifyMembersResponse struct { 3130 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3131 XXX_unrecognized []byte `json:"-"` 3132 XXX_sizecache int32 `json:"-"` 3133 } 3134 3135 func (m *ModifyMembersResponse) Reset() { *m = ModifyMembersResponse{} } 3136 func (m *ModifyMembersResponse) String() string { return proto.CompactTextString(m) } 3137 func (*ModifyMembersResponse) ProtoMessage() {} 3138 func (*ModifyMembersResponse) Descriptor() ([]byte, []int) { 3139 return fileDescriptor_e84be353c3527000, []int{51} 3140 } 3141 func (m *ModifyMembersResponse) XXX_Unmarshal(b []byte) error { 3142 return m.Unmarshal(b) 3143 } 3144 func (m *ModifyMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3145 if deterministic { 3146 return xxx_messageInfo_ModifyMembersResponse.Marshal(b, m, deterministic) 3147 } else { 3148 b = b[:cap(b)] 3149 n, err := m.MarshalToSizedBuffer(b) 3150 if err != nil { 3151 return nil, err 3152 } 3153 return b[:n], nil 3154 } 3155 } 3156 func (m *ModifyMembersResponse) XXX_Merge(src proto.Message) { 3157 xxx_messageInfo_ModifyMembersResponse.Merge(m, src) 3158 } 3159 func (m *ModifyMembersResponse) XXX_Size() int { 3160 return m.Size() 3161 } 3162 func (m *ModifyMembersResponse) XXX_DiscardUnknown() { 3163 xxx_messageInfo_ModifyMembersResponse.DiscardUnknown(m) 3164 } 3165 3166 var xxx_messageInfo_ModifyMembersResponse proto.InternalMessageInfo 3167 3168 type GetGroupsRequest struct { 3169 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 3170 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3171 XXX_unrecognized []byte `json:"-"` 3172 XXX_sizecache int32 `json:"-"` 3173 } 3174 3175 func (m *GetGroupsRequest) Reset() { *m = GetGroupsRequest{} } 3176 func (m *GetGroupsRequest) String() string { return proto.CompactTextString(m) } 3177 func (*GetGroupsRequest) ProtoMessage() {} 3178 func (*GetGroupsRequest) Descriptor() ([]byte, []int) { 3179 return fileDescriptor_e84be353c3527000, []int{52} 3180 } 3181 func (m *GetGroupsRequest) XXX_Unmarshal(b []byte) error { 3182 return m.Unmarshal(b) 3183 } 3184 func (m *GetGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3185 if deterministic { 3186 return xxx_messageInfo_GetGroupsRequest.Marshal(b, m, deterministic) 3187 } else { 3188 b = b[:cap(b)] 3189 n, err := m.MarshalToSizedBuffer(b) 3190 if err != nil { 3191 return nil, err 3192 } 3193 return b[:n], nil 3194 } 3195 } 3196 func (m *GetGroupsRequest) XXX_Merge(src proto.Message) { 3197 xxx_messageInfo_GetGroupsRequest.Merge(m, src) 3198 } 3199 func (m *GetGroupsRequest) XXX_Size() int { 3200 return m.Size() 3201 } 3202 func (m *GetGroupsRequest) XXX_DiscardUnknown() { 3203 xxx_messageInfo_GetGroupsRequest.DiscardUnknown(m) 3204 } 3205 3206 var xxx_messageInfo_GetGroupsRequest proto.InternalMessageInfo 3207 3208 func (m *GetGroupsRequest) GetUsername() string { 3209 if m != nil { 3210 return m.Username 3211 } 3212 return "" 3213 } 3214 3215 type GetGroupsResponse struct { 3216 Groups []string `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` 3217 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3218 XXX_unrecognized []byte `json:"-"` 3219 XXX_sizecache int32 `json:"-"` 3220 } 3221 3222 func (m *GetGroupsResponse) Reset() { *m = GetGroupsResponse{} } 3223 func (m *GetGroupsResponse) String() string { return proto.CompactTextString(m) } 3224 func (*GetGroupsResponse) ProtoMessage() {} 3225 func (*GetGroupsResponse) Descriptor() ([]byte, []int) { 3226 return fileDescriptor_e84be353c3527000, []int{53} 3227 } 3228 func (m *GetGroupsResponse) XXX_Unmarshal(b []byte) error { 3229 return m.Unmarshal(b) 3230 } 3231 func (m *GetGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3232 if deterministic { 3233 return xxx_messageInfo_GetGroupsResponse.Marshal(b, m, deterministic) 3234 } else { 3235 b = b[:cap(b)] 3236 n, err := m.MarshalToSizedBuffer(b) 3237 if err != nil { 3238 return nil, err 3239 } 3240 return b[:n], nil 3241 } 3242 } 3243 func (m *GetGroupsResponse) XXX_Merge(src proto.Message) { 3244 xxx_messageInfo_GetGroupsResponse.Merge(m, src) 3245 } 3246 func (m *GetGroupsResponse) XXX_Size() int { 3247 return m.Size() 3248 } 3249 func (m *GetGroupsResponse) XXX_DiscardUnknown() { 3250 xxx_messageInfo_GetGroupsResponse.DiscardUnknown(m) 3251 } 3252 3253 var xxx_messageInfo_GetGroupsResponse proto.InternalMessageInfo 3254 3255 func (m *GetGroupsResponse) GetGroups() []string { 3256 if m != nil { 3257 return m.Groups 3258 } 3259 return nil 3260 } 3261 3262 type GetUsersRequest struct { 3263 Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` 3264 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3265 XXX_unrecognized []byte `json:"-"` 3266 XXX_sizecache int32 `json:"-"` 3267 } 3268 3269 func (m *GetUsersRequest) Reset() { *m = GetUsersRequest{} } 3270 func (m *GetUsersRequest) String() string { return proto.CompactTextString(m) } 3271 func (*GetUsersRequest) ProtoMessage() {} 3272 func (*GetUsersRequest) Descriptor() ([]byte, []int) { 3273 return fileDescriptor_e84be353c3527000, []int{54} 3274 } 3275 func (m *GetUsersRequest) XXX_Unmarshal(b []byte) error { 3276 return m.Unmarshal(b) 3277 } 3278 func (m *GetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3279 if deterministic { 3280 return xxx_messageInfo_GetUsersRequest.Marshal(b, m, deterministic) 3281 } else { 3282 b = b[:cap(b)] 3283 n, err := m.MarshalToSizedBuffer(b) 3284 if err != nil { 3285 return nil, err 3286 } 3287 return b[:n], nil 3288 } 3289 } 3290 func (m *GetUsersRequest) XXX_Merge(src proto.Message) { 3291 xxx_messageInfo_GetUsersRequest.Merge(m, src) 3292 } 3293 func (m *GetUsersRequest) XXX_Size() int { 3294 return m.Size() 3295 } 3296 func (m *GetUsersRequest) XXX_DiscardUnknown() { 3297 xxx_messageInfo_GetUsersRequest.DiscardUnknown(m) 3298 } 3299 3300 var xxx_messageInfo_GetUsersRequest proto.InternalMessageInfo 3301 3302 func (m *GetUsersRequest) GetGroup() string { 3303 if m != nil { 3304 return m.Group 3305 } 3306 return "" 3307 } 3308 3309 type GetUsersResponse struct { 3310 Usernames []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"` 3311 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3312 XXX_unrecognized []byte `json:"-"` 3313 XXX_sizecache int32 `json:"-"` 3314 } 3315 3316 func (m *GetUsersResponse) Reset() { *m = GetUsersResponse{} } 3317 func (m *GetUsersResponse) String() string { return proto.CompactTextString(m) } 3318 func (*GetUsersResponse) ProtoMessage() {} 3319 func (*GetUsersResponse) Descriptor() ([]byte, []int) { 3320 return fileDescriptor_e84be353c3527000, []int{55} 3321 } 3322 func (m *GetUsersResponse) XXX_Unmarshal(b []byte) error { 3323 return m.Unmarshal(b) 3324 } 3325 func (m *GetUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3326 if deterministic { 3327 return xxx_messageInfo_GetUsersResponse.Marshal(b, m, deterministic) 3328 } else { 3329 b = b[:cap(b)] 3330 n, err := m.MarshalToSizedBuffer(b) 3331 if err != nil { 3332 return nil, err 3333 } 3334 return b[:n], nil 3335 } 3336 } 3337 func (m *GetUsersResponse) XXX_Merge(src proto.Message) { 3338 xxx_messageInfo_GetUsersResponse.Merge(m, src) 3339 } 3340 func (m *GetUsersResponse) XXX_Size() int { 3341 return m.Size() 3342 } 3343 func (m *GetUsersResponse) XXX_DiscardUnknown() { 3344 xxx_messageInfo_GetUsersResponse.DiscardUnknown(m) 3345 } 3346 3347 var xxx_messageInfo_GetUsersResponse proto.InternalMessageInfo 3348 3349 func (m *GetUsersResponse) GetUsernames() []string { 3350 if m != nil { 3351 return m.Usernames 3352 } 3353 return nil 3354 } 3355 3356 // GetOneTimePassword allows users to generate short-lived (~30s) tokens that 3357 // can be passed to Authenticate() (via AuthenticateRequest.one_time_password) 3358 // and exchanged for a longer-lived pachyderm token. This is more secure than 3359 // GetAuthToken, which produces long-lived authorization tokens. 3360 type GetOneTimePasswordRequest struct { 3361 // If the caller is an admin, GetOneTimePassword() can return a code for 3362 // any user (useful for testing). 3363 // If the caller is not an admin, GetOneTimePassword() will return an 3364 // authentication code for the caller if username is unset or set to the 3365 // caller's username (and will return an error otherwise) 3366 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 3367 // ttl indicates the requested (approximate) remaining lifetime of this token, 3368 // in seconds 3369 TTL int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` 3370 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3371 XXX_unrecognized []byte `json:"-"` 3372 XXX_sizecache int32 `json:"-"` 3373 } 3374 3375 func (m *GetOneTimePasswordRequest) Reset() { *m = GetOneTimePasswordRequest{} } 3376 func (m *GetOneTimePasswordRequest) String() string { return proto.CompactTextString(m) } 3377 func (*GetOneTimePasswordRequest) ProtoMessage() {} 3378 func (*GetOneTimePasswordRequest) Descriptor() ([]byte, []int) { 3379 return fileDescriptor_e84be353c3527000, []int{56} 3380 } 3381 func (m *GetOneTimePasswordRequest) XXX_Unmarshal(b []byte) error { 3382 return m.Unmarshal(b) 3383 } 3384 func (m *GetOneTimePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3385 if deterministic { 3386 return xxx_messageInfo_GetOneTimePasswordRequest.Marshal(b, m, deterministic) 3387 } else { 3388 b = b[:cap(b)] 3389 n, err := m.MarshalToSizedBuffer(b) 3390 if err != nil { 3391 return nil, err 3392 } 3393 return b[:n], nil 3394 } 3395 } 3396 func (m *GetOneTimePasswordRequest) XXX_Merge(src proto.Message) { 3397 xxx_messageInfo_GetOneTimePasswordRequest.Merge(m, src) 3398 } 3399 func (m *GetOneTimePasswordRequest) XXX_Size() int { 3400 return m.Size() 3401 } 3402 func (m *GetOneTimePasswordRequest) XXX_DiscardUnknown() { 3403 xxx_messageInfo_GetOneTimePasswordRequest.DiscardUnknown(m) 3404 } 3405 3406 var xxx_messageInfo_GetOneTimePasswordRequest proto.InternalMessageInfo 3407 3408 func (m *GetOneTimePasswordRequest) GetSubject() string { 3409 if m != nil { 3410 return m.Subject 3411 } 3412 return "" 3413 } 3414 3415 func (m *GetOneTimePasswordRequest) GetTTL() int64 { 3416 if m != nil { 3417 return m.TTL 3418 } 3419 return 0 3420 } 3421 3422 type GetOneTimePasswordResponse struct { 3423 // 'code' is the string that must be presented in 3424 // AuthenticateRequest.one_time_password to login as 3425 // GetOneTimePasswordRequest.subject 3426 Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` 3427 // expiration is the time at which the token in 'code' will expire 3428 OTPExpiration *types.Timestamp `protobuf:"bytes,2,opt,name=otp_expiration,json=otpExpiration,proto3" json:"otp_expiration,omitempty"` 3429 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3430 XXX_unrecognized []byte `json:"-"` 3431 XXX_sizecache int32 `json:"-"` 3432 } 3433 3434 func (m *GetOneTimePasswordResponse) Reset() { *m = GetOneTimePasswordResponse{} } 3435 func (m *GetOneTimePasswordResponse) String() string { return proto.CompactTextString(m) } 3436 func (*GetOneTimePasswordResponse) ProtoMessage() {} 3437 func (*GetOneTimePasswordResponse) Descriptor() ([]byte, []int) { 3438 return fileDescriptor_e84be353c3527000, []int{57} 3439 } 3440 func (m *GetOneTimePasswordResponse) XXX_Unmarshal(b []byte) error { 3441 return m.Unmarshal(b) 3442 } 3443 func (m *GetOneTimePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3444 if deterministic { 3445 return xxx_messageInfo_GetOneTimePasswordResponse.Marshal(b, m, deterministic) 3446 } else { 3447 b = b[:cap(b)] 3448 n, err := m.MarshalToSizedBuffer(b) 3449 if err != nil { 3450 return nil, err 3451 } 3452 return b[:n], nil 3453 } 3454 } 3455 func (m *GetOneTimePasswordResponse) XXX_Merge(src proto.Message) { 3456 xxx_messageInfo_GetOneTimePasswordResponse.Merge(m, src) 3457 } 3458 func (m *GetOneTimePasswordResponse) XXX_Size() int { 3459 return m.Size() 3460 } 3461 func (m *GetOneTimePasswordResponse) XXX_DiscardUnknown() { 3462 xxx_messageInfo_GetOneTimePasswordResponse.DiscardUnknown(m) 3463 } 3464 3465 var xxx_messageInfo_GetOneTimePasswordResponse proto.InternalMessageInfo 3466 3467 func (m *GetOneTimePasswordResponse) GetCode() string { 3468 if m != nil { 3469 return m.Code 3470 } 3471 return "" 3472 } 3473 3474 func (m *GetOneTimePasswordResponse) GetOTPExpiration() *types.Timestamp { 3475 if m != nil { 3476 return m.OTPExpiration 3477 } 3478 return nil 3479 } 3480 3481 type HashedAuthToken struct { 3482 HashedToken string `protobuf:"bytes,1,opt,name=hashed_token,json=hashedToken,proto3" json:"hashed_token,omitempty"` 3483 TokenInfo *TokenInfo `protobuf:"bytes,2,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"` 3484 Expiration *types.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` 3485 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3486 XXX_unrecognized []byte `json:"-"` 3487 XXX_sizecache int32 `json:"-"` 3488 } 3489 3490 func (m *HashedAuthToken) Reset() { *m = HashedAuthToken{} } 3491 func (m *HashedAuthToken) String() string { return proto.CompactTextString(m) } 3492 func (*HashedAuthToken) ProtoMessage() {} 3493 func (*HashedAuthToken) Descriptor() ([]byte, []int) { 3494 return fileDescriptor_e84be353c3527000, []int{58} 3495 } 3496 func (m *HashedAuthToken) XXX_Unmarshal(b []byte) error { 3497 return m.Unmarshal(b) 3498 } 3499 func (m *HashedAuthToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3500 if deterministic { 3501 return xxx_messageInfo_HashedAuthToken.Marshal(b, m, deterministic) 3502 } else { 3503 b = b[:cap(b)] 3504 n, err := m.MarshalToSizedBuffer(b) 3505 if err != nil { 3506 return nil, err 3507 } 3508 return b[:n], nil 3509 } 3510 } 3511 func (m *HashedAuthToken) XXX_Merge(src proto.Message) { 3512 xxx_messageInfo_HashedAuthToken.Merge(m, src) 3513 } 3514 func (m *HashedAuthToken) XXX_Size() int { 3515 return m.Size() 3516 } 3517 func (m *HashedAuthToken) XXX_DiscardUnknown() { 3518 xxx_messageInfo_HashedAuthToken.DiscardUnknown(m) 3519 } 3520 3521 var xxx_messageInfo_HashedAuthToken proto.InternalMessageInfo 3522 3523 func (m *HashedAuthToken) GetHashedToken() string { 3524 if m != nil { 3525 return m.HashedToken 3526 } 3527 return "" 3528 } 3529 3530 func (m *HashedAuthToken) GetTokenInfo() *TokenInfo { 3531 if m != nil { 3532 return m.TokenInfo 3533 } 3534 return nil 3535 } 3536 3537 func (m *HashedAuthToken) GetExpiration() *types.Timestamp { 3538 if m != nil { 3539 return m.Expiration 3540 } 3541 return nil 3542 } 3543 3544 // ExtractAuthTokens returns all the hashed robot tokens that have been issued. 3545 // User tokens are not extracted as they can be recreated by logging in. 3546 type ExtractAuthTokensRequest struct { 3547 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3548 XXX_unrecognized []byte `json:"-"` 3549 XXX_sizecache int32 `json:"-"` 3550 } 3551 3552 func (m *ExtractAuthTokensRequest) Reset() { *m = ExtractAuthTokensRequest{} } 3553 func (m *ExtractAuthTokensRequest) String() string { return proto.CompactTextString(m) } 3554 func (*ExtractAuthTokensRequest) ProtoMessage() {} 3555 func (*ExtractAuthTokensRequest) Descriptor() ([]byte, []int) { 3556 return fileDescriptor_e84be353c3527000, []int{59} 3557 } 3558 func (m *ExtractAuthTokensRequest) XXX_Unmarshal(b []byte) error { 3559 return m.Unmarshal(b) 3560 } 3561 func (m *ExtractAuthTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3562 if deterministic { 3563 return xxx_messageInfo_ExtractAuthTokensRequest.Marshal(b, m, deterministic) 3564 } else { 3565 b = b[:cap(b)] 3566 n, err := m.MarshalToSizedBuffer(b) 3567 if err != nil { 3568 return nil, err 3569 } 3570 return b[:n], nil 3571 } 3572 } 3573 func (m *ExtractAuthTokensRequest) XXX_Merge(src proto.Message) { 3574 xxx_messageInfo_ExtractAuthTokensRequest.Merge(m, src) 3575 } 3576 func (m *ExtractAuthTokensRequest) XXX_Size() int { 3577 return m.Size() 3578 } 3579 func (m *ExtractAuthTokensRequest) XXX_DiscardUnknown() { 3580 xxx_messageInfo_ExtractAuthTokensRequest.DiscardUnknown(m) 3581 } 3582 3583 var xxx_messageInfo_ExtractAuthTokensRequest proto.InternalMessageInfo 3584 3585 type ExtractAuthTokensResponse struct { 3586 Tokens []*HashedAuthToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` 3587 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3588 XXX_unrecognized []byte `json:"-"` 3589 XXX_sizecache int32 `json:"-"` 3590 } 3591 3592 func (m *ExtractAuthTokensResponse) Reset() { *m = ExtractAuthTokensResponse{} } 3593 func (m *ExtractAuthTokensResponse) String() string { return proto.CompactTextString(m) } 3594 func (*ExtractAuthTokensResponse) ProtoMessage() {} 3595 func (*ExtractAuthTokensResponse) Descriptor() ([]byte, []int) { 3596 return fileDescriptor_e84be353c3527000, []int{60} 3597 } 3598 func (m *ExtractAuthTokensResponse) XXX_Unmarshal(b []byte) error { 3599 return m.Unmarshal(b) 3600 } 3601 func (m *ExtractAuthTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3602 if deterministic { 3603 return xxx_messageInfo_ExtractAuthTokensResponse.Marshal(b, m, deterministic) 3604 } else { 3605 b = b[:cap(b)] 3606 n, err := m.MarshalToSizedBuffer(b) 3607 if err != nil { 3608 return nil, err 3609 } 3610 return b[:n], nil 3611 } 3612 } 3613 func (m *ExtractAuthTokensResponse) XXX_Merge(src proto.Message) { 3614 xxx_messageInfo_ExtractAuthTokensResponse.Merge(m, src) 3615 } 3616 func (m *ExtractAuthTokensResponse) XXX_Size() int { 3617 return m.Size() 3618 } 3619 func (m *ExtractAuthTokensResponse) XXX_DiscardUnknown() { 3620 xxx_messageInfo_ExtractAuthTokensResponse.DiscardUnknown(m) 3621 } 3622 3623 var xxx_messageInfo_ExtractAuthTokensResponse proto.InternalMessageInfo 3624 3625 func (m *ExtractAuthTokensResponse) GetTokens() []*HashedAuthToken { 3626 if m != nil { 3627 return m.Tokens 3628 } 3629 return nil 3630 } 3631 3632 // RestoreAuthToken inserts a hashed token that has previously been extracted. 3633 type RestoreAuthTokenRequest struct { 3634 Token *HashedAuthToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 3635 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3636 XXX_unrecognized []byte `json:"-"` 3637 XXX_sizecache int32 `json:"-"` 3638 } 3639 3640 func (m *RestoreAuthTokenRequest) Reset() { *m = RestoreAuthTokenRequest{} } 3641 func (m *RestoreAuthTokenRequest) String() string { return proto.CompactTextString(m) } 3642 func (*RestoreAuthTokenRequest) ProtoMessage() {} 3643 func (*RestoreAuthTokenRequest) Descriptor() ([]byte, []int) { 3644 return fileDescriptor_e84be353c3527000, []int{61} 3645 } 3646 func (m *RestoreAuthTokenRequest) XXX_Unmarshal(b []byte) error { 3647 return m.Unmarshal(b) 3648 } 3649 func (m *RestoreAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3650 if deterministic { 3651 return xxx_messageInfo_RestoreAuthTokenRequest.Marshal(b, m, deterministic) 3652 } else { 3653 b = b[:cap(b)] 3654 n, err := m.MarshalToSizedBuffer(b) 3655 if err != nil { 3656 return nil, err 3657 } 3658 return b[:n], nil 3659 } 3660 } 3661 func (m *RestoreAuthTokenRequest) XXX_Merge(src proto.Message) { 3662 xxx_messageInfo_RestoreAuthTokenRequest.Merge(m, src) 3663 } 3664 func (m *RestoreAuthTokenRequest) XXX_Size() int { 3665 return m.Size() 3666 } 3667 func (m *RestoreAuthTokenRequest) XXX_DiscardUnknown() { 3668 xxx_messageInfo_RestoreAuthTokenRequest.DiscardUnknown(m) 3669 } 3670 3671 var xxx_messageInfo_RestoreAuthTokenRequest proto.InternalMessageInfo 3672 3673 func (m *RestoreAuthTokenRequest) GetToken() *HashedAuthToken { 3674 if m != nil { 3675 return m.Token 3676 } 3677 return nil 3678 } 3679 3680 type RestoreAuthTokenResponse struct { 3681 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3682 XXX_unrecognized []byte `json:"-"` 3683 XXX_sizecache int32 `json:"-"` 3684 } 3685 3686 func (m *RestoreAuthTokenResponse) Reset() { *m = RestoreAuthTokenResponse{} } 3687 func (m *RestoreAuthTokenResponse) String() string { return proto.CompactTextString(m) } 3688 func (*RestoreAuthTokenResponse) ProtoMessage() {} 3689 func (*RestoreAuthTokenResponse) Descriptor() ([]byte, []int) { 3690 return fileDescriptor_e84be353c3527000, []int{62} 3691 } 3692 func (m *RestoreAuthTokenResponse) XXX_Unmarshal(b []byte) error { 3693 return m.Unmarshal(b) 3694 } 3695 func (m *RestoreAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3696 if deterministic { 3697 return xxx_messageInfo_RestoreAuthTokenResponse.Marshal(b, m, deterministic) 3698 } else { 3699 b = b[:cap(b)] 3700 n, err := m.MarshalToSizedBuffer(b) 3701 if err != nil { 3702 return nil, err 3703 } 3704 return b[:n], nil 3705 } 3706 } 3707 func (m *RestoreAuthTokenResponse) XXX_Merge(src proto.Message) { 3708 xxx_messageInfo_RestoreAuthTokenResponse.Merge(m, src) 3709 } 3710 func (m *RestoreAuthTokenResponse) XXX_Size() int { 3711 return m.Size() 3712 } 3713 func (m *RestoreAuthTokenResponse) XXX_DiscardUnknown() { 3714 xxx_messageInfo_RestoreAuthTokenResponse.DiscardUnknown(m) 3715 } 3716 3717 var xxx_messageInfo_RestoreAuthTokenResponse proto.InternalMessageInfo 3718 3719 func init() { 3720 proto.RegisterEnum("auth_1_12.ClusterRole", ClusterRole_name, ClusterRole_value) 3721 proto.RegisterEnum("auth_1_12.Scope", Scope_name, Scope_value) 3722 proto.RegisterEnum("auth_1_12.TokenInfo_TokenSource", TokenInfo_TokenSource_name, TokenInfo_TokenSource_value) 3723 proto.RegisterType((*ActivateRequest)(nil), "auth_1_12.ActivateRequest") 3724 proto.RegisterType((*ActivateResponse)(nil), "auth_1_12.ActivateResponse") 3725 proto.RegisterType((*DeactivateRequest)(nil), "auth_1_12.DeactivateRequest") 3726 proto.RegisterType((*DeactivateResponse)(nil), "auth_1_12.DeactivateResponse") 3727 proto.RegisterType((*IDProvider)(nil), "auth_1_12.IDProvider") 3728 proto.RegisterType((*IDProvider_SAMLOptions)(nil), "auth_1_12.IDProvider.SAMLOptions") 3729 proto.RegisterType((*IDProvider_OIDCOptions)(nil), "auth_1_12.IDProvider.OIDCOptions") 3730 proto.RegisterType((*IDProvider_GitHubOptions)(nil), "auth_1_12.IDProvider.GitHubOptions") 3731 proto.RegisterType((*AuthConfig)(nil), "auth_1_12.AuthConfig") 3732 proto.RegisterType((*AuthConfig_SAMLServiceOptions)(nil), "auth_1_12.AuthConfig.SAMLServiceOptions") 3733 proto.RegisterType((*GetConfigurationRequest)(nil), "auth_1_12.GetConfigurationRequest") 3734 proto.RegisterType((*GetConfigurationResponse)(nil), "auth_1_12.GetConfigurationResponse") 3735 proto.RegisterType((*SetConfigurationRequest)(nil), "auth_1_12.SetConfigurationRequest") 3736 proto.RegisterType((*SetConfigurationResponse)(nil), "auth_1_12.SetConfigurationResponse") 3737 proto.RegisterType((*ClusterRoles)(nil), "auth_1_12.ClusterRoles") 3738 proto.RegisterType((*GetClusterRoleBindingsRequest)(nil), "auth_1_12.GetClusterRoleBindingsRequest") 3739 proto.RegisterType((*GetClusterRoleBindingsResponse)(nil), "auth_1_12.GetClusterRoleBindingsResponse") 3740 proto.RegisterMapType((map[string]*ClusterRoles)(nil), "auth_1_12.GetClusterRoleBindingsResponse.BindingsEntry") 3741 proto.RegisterType((*ModifyClusterRoleBindingRequest)(nil), "auth_1_12.ModifyClusterRoleBindingRequest") 3742 proto.RegisterType((*ModifyClusterRoleBindingResponse)(nil), "auth_1_12.ModifyClusterRoleBindingResponse") 3743 proto.RegisterType((*GetAdminsRequest)(nil), "auth_1_12.GetAdminsRequest") 3744 proto.RegisterType((*GetAdminsResponse)(nil), "auth_1_12.GetAdminsResponse") 3745 proto.RegisterType((*ModifyAdminsRequest)(nil), "auth_1_12.ModifyAdminsRequest") 3746 proto.RegisterType((*ModifyAdminsResponse)(nil), "auth_1_12.ModifyAdminsResponse") 3747 proto.RegisterType((*OTPInfo)(nil), "auth_1_12.OTPInfo") 3748 proto.RegisterType((*TokenInfo)(nil), "auth_1_12.TokenInfo") 3749 proto.RegisterType((*AuthenticateRequest)(nil), "auth_1_12.AuthenticateRequest") 3750 proto.RegisterType((*AuthenticateResponse)(nil), "auth_1_12.AuthenticateResponse") 3751 proto.RegisterType((*WhoAmIRequest)(nil), "auth_1_12.WhoAmIRequest") 3752 proto.RegisterType((*WhoAmIResponse)(nil), "auth_1_12.WhoAmIResponse") 3753 proto.RegisterType((*ACL)(nil), "auth_1_12.ACL") 3754 proto.RegisterMapType((map[string]Scope)(nil), "auth_1_12.ACL.EntriesEntry") 3755 proto.RegisterType((*Users)(nil), "auth_1_12.Users") 3756 proto.RegisterMapType((map[string]bool)(nil), "auth_1_12.Users.UsernamesEntry") 3757 proto.RegisterType((*Groups)(nil), "auth_1_12.Groups") 3758 proto.RegisterMapType((map[string]bool)(nil), "auth_1_12.Groups.GroupsEntry") 3759 proto.RegisterType((*AuthorizeRequest)(nil), "auth_1_12.AuthorizeRequest") 3760 proto.RegisterType((*AuthorizeResponse)(nil), "auth_1_12.AuthorizeResponse") 3761 proto.RegisterType((*GetScopeRequest)(nil), "auth_1_12.GetScopeRequest") 3762 proto.RegisterType((*GetScopeResponse)(nil), "auth_1_12.GetScopeResponse") 3763 proto.RegisterType((*SetScopeRequest)(nil), "auth_1_12.SetScopeRequest") 3764 proto.RegisterType((*SetScopeResponse)(nil), "auth_1_12.SetScopeResponse") 3765 proto.RegisterType((*GetACLRequest)(nil), "auth_1_12.GetACLRequest") 3766 proto.RegisterType((*ACLEntry)(nil), "auth_1_12.ACLEntry") 3767 proto.RegisterType((*GetACLResponse)(nil), "auth_1_12.GetACLResponse") 3768 proto.RegisterType((*SetACLRequest)(nil), "auth_1_12.SetACLRequest") 3769 proto.RegisterType((*SetACLResponse)(nil), "auth_1_12.SetACLResponse") 3770 proto.RegisterType((*SessionInfo)(nil), "auth_1_12.SessionInfo") 3771 proto.RegisterType((*GetOIDCLoginRequest)(nil), "auth_1_12.GetOIDCLoginRequest") 3772 proto.RegisterType((*GetOIDCLoginResponse)(nil), "auth_1_12.GetOIDCLoginResponse") 3773 proto.RegisterType((*GetAuthTokenRequest)(nil), "auth_1_12.GetAuthTokenRequest") 3774 proto.RegisterType((*GetAuthTokenResponse)(nil), "auth_1_12.GetAuthTokenResponse") 3775 proto.RegisterType((*ExtendAuthTokenRequest)(nil), "auth_1_12.ExtendAuthTokenRequest") 3776 proto.RegisterType((*ExtendAuthTokenResponse)(nil), "auth_1_12.ExtendAuthTokenResponse") 3777 proto.RegisterType((*RevokeAuthTokenRequest)(nil), "auth_1_12.RevokeAuthTokenRequest") 3778 proto.RegisterType((*RevokeAuthTokenResponse)(nil), "auth_1_12.RevokeAuthTokenResponse") 3779 proto.RegisterType((*SetGroupsForUserRequest)(nil), "auth_1_12.SetGroupsForUserRequest") 3780 proto.RegisterType((*SetGroupsForUserResponse)(nil), "auth_1_12.SetGroupsForUserResponse") 3781 proto.RegisterType((*ModifyMembersRequest)(nil), "auth_1_12.ModifyMembersRequest") 3782 proto.RegisterType((*ModifyMembersResponse)(nil), "auth_1_12.ModifyMembersResponse") 3783 proto.RegisterType((*GetGroupsRequest)(nil), "auth_1_12.GetGroupsRequest") 3784 proto.RegisterType((*GetGroupsResponse)(nil), "auth_1_12.GetGroupsResponse") 3785 proto.RegisterType((*GetUsersRequest)(nil), "auth_1_12.GetUsersRequest") 3786 proto.RegisterType((*GetUsersResponse)(nil), "auth_1_12.GetUsersResponse") 3787 proto.RegisterType((*GetOneTimePasswordRequest)(nil), "auth_1_12.GetOneTimePasswordRequest") 3788 proto.RegisterType((*GetOneTimePasswordResponse)(nil), "auth_1_12.GetOneTimePasswordResponse") 3789 proto.RegisterType((*HashedAuthToken)(nil), "auth_1_12.HashedAuthToken") 3790 proto.RegisterType((*ExtractAuthTokensRequest)(nil), "auth_1_12.ExtractAuthTokensRequest") 3791 proto.RegisterType((*ExtractAuthTokensResponse)(nil), "auth_1_12.ExtractAuthTokensResponse") 3792 proto.RegisterType((*RestoreAuthTokenRequest)(nil), "auth_1_12.RestoreAuthTokenRequest") 3793 proto.RegisterType((*RestoreAuthTokenResponse)(nil), "auth_1_12.RestoreAuthTokenResponse") 3794 } 3795 3796 func init() { 3797 proto.RegisterFile("client/admin/v1_12/auth/auth.proto", fileDescriptor_e84be353c3527000) 3798 } 3799 3800 var fileDescriptor_e84be353c3527000 = []byte{ 3801 // 2641 bytes of a gzipped FileDescriptorProto 3802 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x59, 0xcd, 0x6f, 0xe3, 0xc6, 3803 0x15, 0xb7, 0x24, 0x4b, 0x96, 0x9e, 0x24, 0x5b, 0x1e, 0x7b, 0xbd, 0x32, 0x77, 0xd7, 0x72, 0xe8, 3804 0x7c, 0x78, 0x37, 0x89, 0x9c, 0x28, 0x0d, 0x9a, 0x26, 0x5b, 0x2c, 0x64, 0x5b, 0xeb, 0x55, 0xd7, 3805 0x5f, 0x21, 0xe5, 0xdd, 0x20, 0x40, 0xc1, 0xd0, 0xe4, 0x58, 0x66, 0x56, 0x22, 0x55, 0x92, 0x72, 3806 0x77, 0x73, 0xe8, 0xa9, 0xe8, 0x21, 0xe7, 0x1e, 0x8b, 0xa2, 0x97, 0xfe, 0x1b, 0x3d, 0x17, 0x68, 3807 0x0f, 0xbd, 0x17, 0x30, 0x0a, 0x01, 0xfd, 0x3f, 0x8a, 0xf9, 0x20, 0x35, 0xa4, 0x28, 0xd9, 0xdb, 3808 0x5c, 0x6c, 0xce, 0x7b, 0x6f, 0x7e, 0xf3, 0xe6, 0xcd, 0x9b, 0x37, 0xbf, 0x19, 0x81, 0x6c, 0xf4, 3809 0x2c, 0x6c, 0xfb, 0x3b, 0xba, 0xd9, 0xb7, 0xec, 0x9d, 0xab, 0x4f, 0xb5, 0x4f, 0x1b, 0x3b, 0xfa, 3810 0xd0, 0xbf, 0xa4, 0x7f, 0xea, 0x03, 0xd7, 0xf1, 0x1d, 0x54, 0x20, 0xdf, 0x1a, 0x51, 0x49, 0xab, 3811 0x5d, 0xa7, 0xeb, 0x50, 0xe9, 0x0e, 0xf9, 0x62, 0x06, 0x52, 0xad, 0xeb, 0x38, 0xdd, 0x1e, 0xde, 3812 0xa1, 0xad, 0xf3, 0xe1, 0xc5, 0x8e, 0x6f, 0xf5, 0xb1, 0xe7, 0xeb, 0xfd, 0x01, 0x33, 0x90, 0x7f, 3813 0x07, 0x4b, 0x4d, 0xc3, 0xb7, 0xae, 0x74, 0x1f, 0x2b, 0xf8, 0x37, 0x43, 0xec, 0xf9, 0xa8, 0x0a, 3814 0x0b, 0xde, 0xf0, 0xfc, 0x7b, 0x6c, 0xf8, 0xd5, 0xf4, 0x66, 0x6a, 0xbb, 0xa0, 0x04, 0x4d, 0xd4, 3815 0x80, 0x52, 0xd7, 0xf2, 0x2f, 0x87, 0xe7, 0x9a, 0xef, 0xbc, 0xc2, 0x76, 0x35, 0x45, 0xd4, 0xbb, 3816 0x4b, 0xa3, 0xeb, 0x5a, 0xf1, 0xc0, 0xf2, 0x9f, 0x0d, 0xcf, 0x3b, 0x44, 0xac, 0x14, 0x99, 0x11, 3817 0x6d, 0xa0, 0x07, 0x00, 0xae, 0xe3, 0xf8, 0xbc, 0x47, 0x86, 0x02, 0x16, 0x88, 0x84, 0xaa, 0xe5, 3818 0x4f, 0xa1, 0x32, 0x1e, 0xdf, 0x1b, 0x38, 0xb6, 0x87, 0x49, 0x97, 0x81, 0x6e, 0x5c, 0x8a, 0x83, 3819 0x28, 0x05, 0x22, 0x61, 0x5d, 0x56, 0x60, 0x79, 0x1f, 0xeb, 0x51, 0xa7, 0xe5, 0x55, 0x40, 0xa2, 3820 0x90, 0x21, 0xc9, 0xff, 0xcc, 0x02, 0xb4, 0xf7, 0x4f, 0x5d, 0xe7, 0xca, 0x32, 0xb1, 0x8b, 0x10, 3821 0xcc, 0xdb, 0x7a, 0x1f, 0x73, 0x48, 0xfa, 0x8d, 0x36, 0xa1, 0x68, 0x62, 0xcf, 0x70, 0xad, 0x81, 3822 0x6f, 0x39, 0x36, 0x9f, 0xb1, 0x28, 0x42, 0x4f, 0x60, 0xde, 0xd3, 0xfb, 0x3d, 0xea, 0x7b, 0xb1, 3823 0xf1, 0x4e, 0x3d, 0x8c, 0x79, 0x7d, 0x0c, 0x5d, 0x57, 0x9b, 0x47, 0x87, 0x27, 0xd4, 0xde, 0xdb, 3824 0xcd, 0x8f, 0xae, 0x6b, 0xf3, 0x44, 0xa0, 0xd0, 0x8e, 0x04, 0xc0, 0xb1, 0x4c, 0xa3, 0x9a, 0x9d, 3825 0x05, 0x70, 0xd2, 0xde, 0xdf, 0x8b, 0x00, 0x10, 0x81, 0x42, 0x3b, 0xa2, 0x03, 0xc8, 0xb1, 0x90, 3826 0x56, 0xe7, 0x29, 0xc4, 0x56, 0x32, 0x04, 0x5b, 0x83, 0x00, 0x04, 0x46, 0xd7, 0xb5, 0x1c, 0x13, 3827 0x29, 0xbc, 0xbb, 0xf4, 0xe7, 0x14, 0x14, 0x05, 0x4f, 0xc9, 0x82, 0xf6, 0xb1, 0xaf, 0x9b, 0xba, 3828 0xaf, 0x6b, 0x43, 0xb7, 0x27, 0x2e, 0xe8, 0x11, 0x97, 0x9f, 0x29, 0x87, 0x4a, 0x31, 0x30, 0x3a, 3829 0x73, 0x7b, 0x91, 0x3e, 0xaf, 0xfb, 0x3d, 0x1a, 0xb1, 0x52, 0xb4, 0xcf, 0x37, 0x47, 0x42, 0x9f, 3830 0x6f, 0xfa, 0x3d, 0xf4, 0x01, 0x2c, 0x75, 0x5d, 0x67, 0x38, 0xd0, 0x74, 0xdf, 0x77, 0xad, 0xf3, 3831 0xa1, 0x8f, 0x79, 0x26, 0x2c, 0x52, 0x71, 0x33, 0x90, 0x4a, 0x3f, 0xa6, 0xa1, 0x28, 0x44, 0x02, 3832 0xad, 0x41, 0xce, 0xf2, 0xbc, 0x21, 0x76, 0xf9, 0x9a, 0xf1, 0x16, 0x7a, 0x08, 0x05, 0xb6, 0x3d, 3833 0x34, 0xcb, 0x64, 0x6b, 0xb6, 0x5b, 0x1a, 0x5d, 0xd7, 0xf2, 0x7b, 0x54, 0xd8, 0xde, 0x57, 0xf2, 3834 0x4c, 0xdd, 0x36, 0xd1, 0x16, 0x94, 0xb9, 0xa9, 0x87, 0x0d, 0x17, 0xfb, 0x7c, 0xe4, 0x12, 0x13, 3835 0xaa, 0x54, 0x46, 0x26, 0xe5, 0x62, 0xd3, 0x72, 0xb1, 0xe1, 0x6b, 0x43, 0xd7, 0xa2, 0x71, 0xe6, 3836 0x81, 0x50, 0xb8, 0xfc, 0x4c, 0x69, 0x2b, 0xc5, 0xc0, 0xe8, 0xcc, 0xb5, 0xd0, 0x87, 0xb0, 0xac, 3837 0x9b, 0xa6, 0x45, 0x1c, 0xd5, 0x7b, 0x9a, 0x67, 0x38, 0x03, 0xec, 0x55, 0xb3, 0x9b, 0x99, 0xed, 3838 0x82, 0x52, 0x19, 0x2b, 0x54, 0x2a, 0x47, 0x0d, 0xb8, 0x63, 0x75, 0x6d, 0xc7, 0xc5, 0x1a, 0xee, 3839 0xeb, 0x56, 0x4f, 0xbb, 0xc2, 0xae, 0x75, 0x61, 0x61, 0xb3, 0x9a, 0xdb, 0x4c, 0x6d, 0xe7, 0x95, 3840 0x15, 0xa6, 0x6c, 0x11, 0xdd, 0x0b, 0xae, 0x92, 0x96, 0xa0, 0x1c, 0x59, 0x52, 0xf9, 0xdf, 0x19, 3841 0x80, 0xe6, 0xd0, 0xbf, 0xdc, 0x73, 0xec, 0x0b, 0xab, 0x8b, 0xea, 0xb0, 0xd2, 0xb3, 0xae, 0xb0, 3842 0x66, 0xd0, 0x26, 0x81, 0xf4, 0x48, 0x0a, 0x93, 0x48, 0x65, 0x94, 0x65, 0xa2, 0x62, 0x86, 0x2f, 3843 0x98, 0x02, 0xb5, 0xa1, 0x64, 0x99, 0xda, 0x80, 0xa7, 0x8b, 0x57, 0x4d, 0x6f, 0x66, 0xb6, 0x8b, 3844 0x8d, 0x3b, 0x89, 0xc9, 0xc4, 0xe6, 0x3e, 0x6e, 0x7b, 0x4a, 0xd1, 0x32, 0xc3, 0x06, 0xfa, 0x1e, 3845 0x2a, 0x24, 0xb5, 0x35, 0xef, 0xca, 0xd0, 0x1c, 0xe6, 0x1d, 0xdf, 0x1f, 0xdb, 0x02, 0xdc, 0xd8, 3846 0x57, 0xba, 0x3f, 0x54, 0xec, 0x5e, 0x59, 0x06, 0x0e, 0x12, 0x74, 0x6d, 0x74, 0x5d, 0x43, 0x93, 3847 0x72, 0x65, 0x91, 0x20, 0xab, 0x57, 0x06, 0x6f, 0x4b, 0xff, 0x4d, 0x41, 0x82, 0x19, 0xda, 0x82, 3848 0x05, 0xdd, 0xf0, 0x84, 0xb4, 0xa5, 0x09, 0xdf, 0xdc, 0x53, 0x49, 0xc6, 0xe6, 0x74, 0xc3, 0x8b, 3849 0x27, 0x2b, 0xb1, 0x4c, 0xdf, 0x22, 0xc1, 0xdf, 0x87, 0xbc, 0xa9, 0x7b, 0x97, 0xd4, 0x9e, 0xe6, 3850 0xca, 0x6e, 0x71, 0x74, 0x5d, 0x5b, 0xd8, 0xd7, 0xbd, 0x4b, 0x62, 0xbb, 0x40, 0x94, 0xc4, 0xee, 3851 0x21, 0x54, 0x3c, 0xec, 0x91, 0xc8, 0x6a, 0xe6, 0xd0, 0xd5, 0x69, 0xf9, 0xa0, 0x79, 0xa3, 0x2c, 3852 0x71, 0xf9, 0x3e, 0x17, 0x93, 0x1c, 0x34, 0xf1, 0xf9, 0xb0, 0xab, 0xf5, 0x9c, 0x6e, 0xd7, 0xb2, 3853 0xbb, 0xb4, 0x14, 0xe4, 0x95, 0x12, 0x15, 0x1e, 0x32, 0x99, 0xbc, 0x0e, 0x77, 0x0f, 0xb0, 0xcf, 3854 0xe2, 0xc5, 0x3b, 0x06, 0xd5, 0xed, 0x25, 0x54, 0x27, 0x55, 0xbc, 0x5a, 0x7e, 0x05, 0x65, 0x43, 3855 0x54, 0xd0, 0x68, 0x44, 0x97, 0x75, 0xbc, 0x0e, 0x4a, 0xd4, 0x56, 0x7e, 0x01, 0x77, 0xd5, 0xe4, 3856 0x31, 0x7f, 0x1a, 0xae, 0x04, 0x55, 0x75, 0x8a, 0xc3, 0xf2, 0x63, 0x28, 0xed, 0xf5, 0x86, 0x9e, 3857 0x8f, 0x5d, 0xc5, 0xe9, 0x61, 0x0f, 0x7d, 0x04, 0x59, 0x97, 0x7c, 0x54, 0x53, 0x9b, 0x99, 0xed, 3858 0xc5, 0xc6, 0x9a, 0x30, 0x80, 0x60, 0xa7, 0x30, 0x23, 0xb9, 0x06, 0x0f, 0x48, 0x28, 0xc6, 0x8a, 3859 0x5d, 0xcb, 0x36, 0x2d, 0xbb, 0xeb, 0x05, 0xb1, 0xfa, 0x47, 0x0a, 0x36, 0xa6, 0x59, 0xf0, 0x90, 3860 0xa9, 0x90, 0x3f, 0xe7, 0x32, 0x3a, 0x68, 0xb1, 0xf1, 0x73, 0x61, 0xd0, 0xd9, 0x9d, 0xeb, 0x81, 3861 0xa0, 0x65, 0xfb, 0xee, 0x1b, 0x25, 0x04, 0x92, 0x3a, 0x50, 0x8e, 0xa8, 0x50, 0x05, 0x32, 0xaf, 3862 0xf0, 0x1b, 0x5e, 0xb8, 0xc8, 0x27, 0xfa, 0x18, 0xb2, 0x57, 0x7a, 0x6f, 0x88, 0x69, 0x1a, 0x16, 3863 0x1b, 0x77, 0x93, 0x67, 0xea, 0x29, 0xcc, 0xea, 0xcb, 0xf4, 0x17, 0x29, 0xd9, 0x86, 0xda, 0x91, 3864 0x63, 0x5a, 0x17, 0x6f, 0x26, 0x5d, 0x0a, 0x16, 0xea, 0x3e, 0x14, 0x06, 0xae, 0x65, 0x1b, 0xd6, 3865 0x40, 0xef, 0x85, 0xa7, 0x65, 0x20, 0x20, 0x63, 0xb2, 0xe8, 0xde, 0x34, 0x26, 0x0b, 0xaf, 0x0c, 3866 0x9b, 0xd3, 0xc7, 0xe3, 0x0b, 0x88, 0xa0, 0x72, 0x80, 0xfd, 0x26, 0xe1, 0x25, 0x61, 0xd4, 0x3f, 3867 0x84, 0x65, 0x41, 0xc6, 0xe3, 0xbc, 0x06, 0x39, 0xca, 0x5e, 0x58, 0x94, 0x0b, 0x0a, 0x6f, 0xc9, 3868 0x4f, 0x60, 0x85, 0x0d, 0x12, 0xc1, 0x20, 0x01, 0xd3, 0x4d, 0x93, 0xdb, 0x92, 0x4f, 0x02, 0xe0, 3869 0xe2, 0xbe, 0x73, 0x85, 0x69, 0xad, 0x2a, 0x28, 0xbc, 0x25, 0xaf, 0xc1, 0x6a, 0x14, 0x80, 0x7b, 3870 0x66, 0xc3, 0xc2, 0x49, 0xe7, 0xb4, 0x6d, 0x5f, 0x38, 0x22, 0x8b, 0x49, 0x45, 0x59, 0x4c, 0x1b, 3871 0x50, 0xb0, 0x6f, 0xf1, 0xeb, 0x81, 0xc5, 0xb3, 0x9b, 0x85, 0x47, 0xaa, 0x33, 0xc2, 0x54, 0x0f, 3872 0x08, 0x53, 0xbd, 0x13, 0x10, 0x26, 0x65, 0x99, 0xf7, 0x6a, 0x85, 0x9d, 0xe4, 0x3f, 0xa5, 0xa0, 3873 0x40, 0x49, 0xc9, 0x0d, 0x43, 0x7e, 0x01, 0x39, 0xcf, 0x19, 0xba, 0x06, 0x5b, 0xf9, 0xc5, 0xc6, 3874 0xa6, 0xb0, 0x0a, 0x61, 0x7f, 0xf6, 0xa5, 0x52, 0x3b, 0x85, 0xdb, 0xcb, 0x5f, 0x41, 0x51, 0x10, 3875 0xa3, 0x22, 0x2c, 0xb4, 0x8f, 0x5f, 0x34, 0x0f, 0xdb, 0xfb, 0x95, 0x39, 0x54, 0x81, 0x52, 0xf3, 3876 0xac, 0xf3, 0xac, 0x75, 0xdc, 0x69, 0xef, 0x35, 0x3b, 0xad, 0x4a, 0x0a, 0x95, 0xa1, 0x70, 0xd0, 3877 0xea, 0x68, 0x9d, 0x93, 0xe7, 0xad, 0xe3, 0x4a, 0x5a, 0xfe, 0x5b, 0x0a, 0x56, 0xc8, 0x1e, 0xc5, 3878 0xb6, 0x6f, 0x19, 0x02, 0xc3, 0xfb, 0x7f, 0x78, 0xdc, 0x47, 0x00, 0x84, 0x8b, 0x68, 0x9e, 0xaf, 3879 0x07, 0xa7, 0xf7, 0x6e, 0x79, 0x74, 0x5d, 0x2b, 0x90, 0xe3, 0x5a, 0x25, 0x42, 0xa5, 0x40, 0x0c, 3880 0xe8, 0x27, 0x7a, 0x04, 0xcb, 0x8e, 0x8d, 0x35, 0xc2, 0x36, 0xb5, 0x81, 0xee, 0x79, 0xbf, 0x75, 3881 0x5c, 0x7e, 0x4e, 0x2b, 0x4b, 0x8e, 0x8d, 0x49, 0x50, 0x4f, 0xb9, 0x18, 0xad, 0x43, 0xde, 0x32, 3882 0xb9, 0x27, 0xac, 0x7e, 0x2e, 0x58, 0x26, 0xa3, 0x7a, 0x9f, 0xc3, 0x6a, 0xd4, 0xff, 0xdb, 0x31, 3883 0xc4, 0x25, 0x28, 0xbf, 0xbc, 0x74, 0x9a, 0xfd, 0x76, 0x90, 0x9d, 0x7f, 0x49, 0xc1, 0x62, 0x20, 3884 0xe1, 0x10, 0x12, 0xe4, 0x87, 0x1e, 0x76, 0x05, 0x3e, 0x18, 0xb6, 0xa9, 0x47, 0x9e, 0x46, 0x93, 3885 0x95, 0x3a, 0x9d, 0x57, 0x16, 0x2c, 0x8f, 0xa6, 0x1a, 0x5a, 0x87, 0x8c, 0xef, 0xb3, 0x73, 0x21, 3886 0xb3, 0xbb, 0x30, 0xba, 0xae, 0x65, 0x3a, 0x9d, 0x43, 0x85, 0xc8, 0xd0, 0x63, 0x42, 0x34, 0xe8, 3887 0xa6, 0xd1, 0xd8, 0x8e, 0x9b, 0x9f, 0xbd, 0xe3, 0x4a, 0x86, 0xd0, 0x92, 0x7f, 0x4c, 0x41, 0xa6, 3888 0xb9, 0x77, 0x88, 0x3e, 0x87, 0x05, 0x6c, 0xfb, 0xae, 0x85, 0x83, 0xd2, 0x74, 0x4f, 0x2c, 0xb8, 3889 0x7b, 0x87, 0xf5, 0x16, 0xd3, 0xb2, 0xf2, 0x13, 0xd8, 0x4a, 0x87, 0x50, 0x12, 0x15, 0x09, 0xc5, 3890 0xe7, 0x7d, 0xb1, 0xf8, 0x2c, 0x36, 0x2a, 0x02, 0x2c, 0xe5, 0x28, 0x62, 0xd5, 0xf9, 0x7d, 0x0a, 3891 0xb2, 0x67, 0x1e, 0x39, 0xe8, 0x7f, 0x09, 0x85, 0x20, 0x2c, 0x81, 0x43, 0x35, 0xa1, 0x27, 0x35, 3892 0xa2, 0x7f, 0xa9, 0x05, 0x73, 0x6a, 0xdc, 0x43, 0x7a, 0x0c, 0x8b, 0x51, 0x65, 0x82, 0x63, 0xab, 3893 0xa2, 0x63, 0x79, 0xd1, 0x8d, 0x1f, 0x20, 0x77, 0x40, 0xf8, 0xa1, 0x87, 0x3e, 0x87, 0x1c, 0x65, 3894 0x8a, 0x81, 0x0f, 0x0f, 0xc4, 0x7a, 0x4d, 0x15, 0xfc, 0x1f, 0xf3, 0x80, 0x1b, 0x4b, 0xbf, 0x80, 3895 0xa2, 0x20, 0x7e, 0xab, 0xb1, 0x8f, 0xa1, 0x42, 0x52, 0xcf, 0x71, 0xad, 0x1f, 0xc2, 0x7d, 0x83, 3896 0x60, 0xde, 0xc5, 0x03, 0x27, 0xb8, 0x3f, 0x90, 0x6f, 0x12, 0x56, 0x4a, 0xfd, 0xa6, 0x87, 0x95, 3897 0xaa, 0xe5, 0xcf, 0x60, 0x59, 0xc0, 0xe3, 0x49, 0xb8, 0x01, 0xa0, 0x07, 0x42, 0x93, 0xc2, 0xe6, 3898 0x15, 0x41, 0x22, 0xef, 0xc1, 0xd2, 0x01, 0xf6, 0x19, 0x0e, 0xf7, 0x61, 0x56, 0xde, 0xae, 0x42, 3899 0x96, 0xf8, 0xe4, 0xf1, 0x6a, 0xc9, 0x1a, 0xf2, 0x63, 0x5a, 0xae, 0x39, 0x08, 0x1f, 0x78, 0x1b, 3900 0x72, 0x9c, 0xb0, 0xb2, 0x43, 0x77, 0xd2, 0x6d, 0xae, 0x97, 0x2d, 0x58, 0x52, 0xdf, 0xc2, 0x85, 3901 0x20, 0x44, 0xe9, 0xa4, 0x10, 0x65, 0x66, 0x87, 0x08, 0x41, 0x45, 0x8d, 0x39, 0x2a, 0x6f, 0x41, 3902 0x99, 0x9c, 0x2b, 0x7b, 0x87, 0x33, 0xd6, 0x40, 0x3e, 0x86, 0x7c, 0x73, 0xef, 0x90, 0xad, 0xf1, 3903 0x2c, 0xe7, 0x6e, 0xbb, 0x56, 0x6f, 0x60, 0x31, 0x18, 0x94, 0xc7, 0xeb, 0xe3, 0xf8, 0xae, 0x5c, 3904 0x89, 0xee, 0xca, 0xe8, 0x6e, 0x44, 0x5f, 0x40, 0xd9, 0x75, 0xce, 0x1d, 0x5f, 0x0b, 0x3a, 0xa5, 3905 0xa7, 0x77, 0x2a, 0x51, 0x4b, 0xbe, 0x79, 0x65, 0x05, 0xca, 0xea, 0x4d, 0xf3, 0x15, 0xbd, 0x49, 3906 0xdf, 0xec, 0x8d, 0x5c, 0x81, 0x45, 0x35, 0x32, 0x1d, 0xf9, 0x3b, 0x28, 0xaa, 0xec, 0x30, 0xa3, 3907 0x07, 0xd7, 0x2a, 0x64, 0x6d, 0xc7, 0x36, 0x82, 0x80, 0xb1, 0x06, 0x91, 0xd2, 0xbb, 0x0a, 0x5f, 3908 0x4b, 0xd6, 0x40, 0xef, 0xc1, 0xa2, 0xe1, 0xd8, 0xfc, 0xae, 0xa1, 0x61, 0xd7, 0xa5, 0xab, 0x9a, 3909 0xa7, 0x04, 0x90, 0x4b, 0x5b, 0xae, 0x2b, 0xdf, 0x81, 0x95, 0x03, 0xec, 0x93, 0xb3, 0xe1, 0xd0, 3910 0xe9, 0x5a, 0x02, 0x91, 0x5d, 0x8d, 0x8a, 0x79, 0x7c, 0x1f, 0x42, 0xa1, 0x47, 0x04, 0x02, 0x9d, 3911 0xa7, 0xf7, 0x39, 0x6a, 0x45, 0x58, 0x77, 0x9e, 0xaa, 0x09, 0xed, 0x5e, 0x85, 0x2c, 0x3b, 0x83, 3912 0xb8, 0x5b, 0xb4, 0x21, 0xff, 0x8a, 0x8e, 0x47, 0x76, 0x18, 0x3b, 0xbb, 0x26, 0xdf, 0x32, 0x62, 3913 0x47, 0x32, 0x2f, 0xe4, 0xe9, 0xc9, 0x42, 0x2e, 0x3f, 0xa5, 0x4e, 0x0a, 0x58, 0xdc, 0xc9, 0xe9, 3914 0x0f, 0x23, 0xab, 0x90, 0x15, 0x8f, 0x22, 0xd6, 0x90, 0xdb, 0xb0, 0xd6, 0x7a, 0xed, 0x63, 0xdb, 3915 0x9c, 0x70, 0x2b, 0xd1, 0x7e, 0x96, 0x4b, 0xeb, 0x70, 0x77, 0x02, 0x8a, 0xaf, 0x65, 0x1d, 0xd6, 3916 0x14, 0x7c, 0xe5, 0xbc, 0xc2, 0xb7, 0x1b, 0x85, 0x40, 0x4d, 0xd8, 0x73, 0xa8, 0x23, 0x7a, 0x1b, 3917 0x60, 0x15, 0xf3, 0xa9, 0xe3, 0x92, 0xca, 0x7d, 0x9b, 0x3d, 0xbf, 0x16, 0x16, 0x67, 0xce, 0xd2, 3918 0x58, 0x8b, 0x5f, 0x02, 0x62, 0x70, 0x7c, 0xa8, 0x17, 0x01, 0x83, 0x3b, 0xc2, 0xfd, 0x73, 0x72, 3919 0xbd, 0x1c, 0xfb, 0x4c, 0x7b, 0x07, 0x3e, 0xd3, 0x46, 0xc0, 0x0c, 0xd3, 0x49, 0xcc, 0x30, 0x13, 3920 0x61, 0x86, 0x77, 0xe1, 0x4e, 0x0c, 0x37, 0x0c, 0x13, 0xa9, 0x82, 0xcc, 0x99, 0x5b, 0x4c, 0x8a, 3921 0x13, 0xda, 0xc0, 0x7e, 0x4c, 0x68, 0x85, 0x63, 0x68, 0x3c, 0xd3, 0x0f, 0x68, 0x9d, 0xa6, 0x87, 3922 0xe1, 0xcc, 0x89, 0xc8, 0x9f, 0x50, 0x2f, 0xb8, 0x21, 0x07, 0xbd, 0x1f, 0x3f, 0x62, 0x0b, 0xc2, 3923 0x09, 0x2a, 0x9f, 0xc2, 0x3a, 0xd9, 0x31, 0x51, 0xce, 0xf4, 0x93, 0xd2, 0xfb, 0x0f, 0x29, 0x90, 3924 0x92, 0x20, 0xb9, 0x3b, 0x08, 0xe6, 0x0d, 0xc7, 0x0c, 0x1f, 0xc9, 0xc8, 0x37, 0xea, 0xc0, 0xa2, 3925 0xe3, 0x0f, 0xde, 0x8a, 0x2e, 0xef, 0x2e, 0x8f, 0xae, 0x6b, 0xe5, 0x93, 0xce, 0xe9, 0x98, 0x2e, 3926 0x2b, 0x65, 0xc7, 0x1f, 0x08, 0xec, 0xf9, 0xaf, 0x29, 0x58, 0x7a, 0xa6, 0x7b, 0x97, 0x78, 0x9c, 3927 0xd5, 0xe8, 0x1d, 0x28, 0x5d, 0x52, 0x51, 0x84, 0xdb, 0x15, 0x99, 0x8c, 0x99, 0x7c, 0x06, 0x40, 3928 0x75, 0x9a, 0x65, 0x5f, 0x38, 0xdc, 0x91, 0xd5, 0x24, 0x42, 0xad, 0x14, 0xfc, 0x90, 0x9b, 0x7f, 3929 0x09, 0x20, 0x78, 0x9f, 0xb9, 0x91, 0xec, 0x0b, 0xd6, 0x24, 0x8f, 0x5b, 0xaf, 0x7d, 0x57, 0x37, 3930 0xc6, 0x35, 0x21, 0xbc, 0xf7, 0x9c, 0xc0, 0x7a, 0x82, 0x8e, 0x87, 0xb2, 0x01, 0x39, 0xea, 0x41, 3931 0x70, 0x68, 0x48, 0x82, 0x97, 0xb1, 0x89, 0x2b, 0xdc, 0x52, 0x7e, 0x4e, 0xb6, 0xa7, 0xe7, 0x3b, 3932 0xee, 0xe4, 0x7e, 0xfe, 0x44, 0xdc, 0xcf, 0xb3, 0xd1, 0xf8, 0x5e, 0x97, 0xa0, 0x3a, 0x09, 0xc6, 3933 0x9c, 0x7b, 0xb4, 0x03, 0x45, 0x81, 0x8e, 0x92, 0xab, 0xc3, 0xd9, 0xf1, 0x7e, 0xeb, 0x69, 0xfb, 3934 0xb8, 0x45, 0xee, 0x16, 0x05, 0xc8, 0xaa, 0x67, 0xa7, 0x2d, 0xa5, 0x92, 0x42, 0x39, 0x48, 0x3f, 3935 0x55, 0x2b, 0xe9, 0x47, 0x3f, 0x83, 0x2c, 0x3d, 0x25, 0x51, 0x1e, 0xe6, 0x8f, 0x4f, 0x8e, 0x5b, 3936 0x95, 0x39, 0x04, 0x90, 0x53, 0x5a, 0xcd, 0x7d, 0x6a, 0x06, 0x90, 0x7b, 0xa9, 0xb4, 0x3b, 0x2d, 3937 0xa5, 0x92, 0x26, 0xbd, 0x4f, 0x5e, 0x1e, 0xb7, 0x94, 0x4a, 0xa6, 0xf1, 0xc7, 0x65, 0xc8, 0x34, 3938 0x4f, 0xdb, 0xa8, 0x05, 0xf9, 0xe0, 0xa1, 0x17, 0x89, 0x9e, 0xc7, 0x5e, 0x9f, 0xa5, 0x7b, 0x89, 3939 0x3a, 0xbe, 0x89, 0xe7, 0xd0, 0x73, 0x80, 0xf1, 0x3b, 0x2f, 0xba, 0x2f, 0x18, 0x4f, 0xbc, 0x09, 3940 0x4b, 0x0f, 0xa6, 0x68, 0x43, 0xb0, 0x5f, 0xd3, 0xdd, 0x18, 0x79, 0xa5, 0x40, 0x72, 0xec, 0x25, 3941 0x20, 0xe1, 0x69, 0x44, 0xda, 0x9a, 0x69, 0x23, 0xc2, 0xab, 0xb3, 0xe0, 0xd5, 0x5b, 0xc0, 0xab, 3942 0xd3, 0xe1, 0x9f, 0x41, 0x21, 0xbc, 0x72, 0xa3, 0x7b, 0x51, 0x97, 0x22, 0x17, 0x6b, 0xe9, 0x7e, 3943 0xb2, 0x32, 0x44, 0xfa, 0x1a, 0x4a, 0xe2, 0x75, 0x1a, 0x6d, 0x08, 0xf6, 0x09, 0x17, 0x75, 0xa9, 3944 0x36, 0x55, 0x1f, 0x42, 0x3a, 0xb0, 0x96, 0xfc, 0x8e, 0x82, 0xb6, 0x6f, 0xf1, 0xd4, 0xc2, 0x86, 3945 0x79, 0x78, 0xeb, 0x47, 0x19, 0x79, 0x0e, 0x0d, 0xa1, 0x3a, 0xed, 0xe1, 0x02, 0x3d, 0x9a, 0xf0, 3946 0x77, 0xea, 0x6b, 0x8a, 0xf4, 0xe1, 0xad, 0x6c, 0xc5, 0xd0, 0x89, 0x37, 0xd4, 0x48, 0xe8, 0x12, 3947 0xae, 0xde, 0x91, 0xd0, 0x25, 0x5d, 0x6d, 0xd9, 0xba, 0x86, 0x37, 0x85, 0xc8, 0xba, 0xc6, 0xef, 3948 0x23, 0x91, 0x75, 0x9d, 0xb8, 0x5c, 0xc8, 0x73, 0xe8, 0x09, 0xe4, 0xd8, 0xad, 0x17, 0x55, 0x05, 3949 0xcb, 0xc8, 0xd5, 0x58, 0x5a, 0x4f, 0xd0, 0x84, 0x00, 0x2d, 0xc8, 0x07, 0x57, 0x87, 0xc8, 0xa6, 3950 0x8d, 0x5d, 0x4a, 0xa4, 0x7b, 0x89, 0x3a, 0x11, 0x46, 0x4d, 0x82, 0x51, 0x67, 0xc0, 0xa8, 0x93, 3951 0x30, 0x4f, 0x20, 0xc7, 0x68, 0x79, 0x64, 0x3a, 0x91, 0xeb, 0x41, 0x64, 0x3a, 0x51, 0x0e, 0xcf, 3952 0x00, 0xd4, 0x49, 0x00, 0x75, 0x2a, 0x80, 0x1a, 0x07, 0xf8, 0x1a, 0x4a, 0x22, 0x7d, 0x8d, 0xac, 3953 0x76, 0x02, 0xdd, 0x8d, 0xac, 0x76, 0x12, 0xef, 0x0d, 0x21, 0xc7, 0x07, 0x60, 0x0c, 0x32, 0x7e, 3954 0x08, 0xc4, 0x21, 0x27, 0x49, 0xdc, 0x1c, 0xfa, 0x16, 0x96, 0x62, 0x64, 0x11, 0x89, 0x3f, 0x3a, 3955 0x25, 0x73, 0x52, 0x49, 0x9e, 0x65, 0x22, 0x62, 0xc7, 0xd8, 0x63, 0x04, 0x3b, 0x99, 0x89, 0x46, 3956 0xb0, 0xa7, 0x91, 0xcf, 0xa0, 0x5e, 0x46, 0xf8, 0x62, 0xbc, 0x5e, 0x26, 0x71, 0xd3, 0x78, 0xbd, 3957 0x4c, 0x26, 0x9c, 0x73, 0xa8, 0x03, 0xe5, 0x08, 0x35, 0x44, 0x93, 0x65, 0x2c, 0x4a, 0x46, 0xa5, 3958 0xcd, 0xe9, 0x06, 0xb1, 0x2a, 0xcc, 0x9f, 0x29, 0x62, 0xfb, 0x20, 0xc2, 0x36, 0xe3, 0x55, 0x38, 3959 0x4a, 0x2d, 0xc3, 0xcd, 0xc6, 0x9e, 0x5d, 0x62, 0x9b, 0x4d, 0x64, 0x96, 0xf1, 0xcd, 0x16, 0x21, 3960 0x93, 0xf2, 0x1c, 0x32, 0x00, 0x4d, 0xb2, 0x3b, 0xf4, 0x6e, 0x2c, 0x13, 0x13, 0xf9, 0xa4, 0xf4, 3961 0xde, 0x0d, 0x56, 0xe1, 0x20, 0xdf, 0xc1, 0xf2, 0x04, 0xed, 0x41, 0x5b, 0xd1, 0x0c, 0x4a, 0x24, 3962 0x4c, 0xd2, 0xbb, 0xb3, 0x8d, 0xc4, 0x64, 0x88, 0x53, 0x17, 0x14, 0x4d, 0xa3, 0x44, 0x92, 0x14, 3963 0x49, 0x86, 0x69, 0xdc, 0x47, 0x9e, 0xdb, 0x7d, 0xf6, 0xf7, 0xd1, 0x46, 0xea, 0x5f, 0xa3, 0x8d, 3964 0xd4, 0x7f, 0x46, 0x1b, 0xa9, 0x6f, 0xbf, 0x64, 0x2f, 0x9d, 0x75, 0xc3, 0xe9, 0xef, 0x0c, 0x74, 3965 0xe3, 0xf2, 0x8d, 0x89, 0x5d, 0xf1, 0xcb, 0x73, 0x8d, 0x9d, 0x29, 0x3f, 0xc7, 0x9f, 0xe7, 0x28, 3966 0x7b, 0xfc, 0xec, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x55, 0x41, 0x17, 0xbd, 0xb0, 0x1f, 0x00, 3967 0x00, 3968 } 3969 3970 // Reference imports to suppress errors if they are not otherwise used. 3971 var _ context.Context 3972 var _ grpc.ClientConn 3973 3974 // This is a compile-time assertion to ensure that this generated file 3975 // is compatible with the grpc package it is being compiled against. 3976 const _ = grpc.SupportPackageIsVersion4 3977 3978 // APIClient is the client API for API service. 3979 // 3980 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 3981 type APIClient interface { 3982 // Activate/Deactivate the auth API. 'Activate' sets an initial set of admins 3983 // for the Pachyderm cluster, and 'Deactivate' removes all ACLs, tokens, and 3984 // admins from the Pachyderm cluster, making all data publicly accessable 3985 Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) 3986 Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) 3987 GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) 3988 SetConfiguration(ctx context.Context, in *SetConfigurationRequest, opts ...grpc.CallOption) (*SetConfigurationResponse, error) 3989 // Deprecated. GetAdmins returns the current list of cluster super admins 3990 GetAdmins(ctx context.Context, in *GetAdminsRequest, opts ...grpc.CallOption) (*GetAdminsResponse, error) 3991 // Deprecated. ModifyAdmins adds or removes super admins from the cluster 3992 ModifyAdmins(ctx context.Context, in *ModifyAdminsRequest, opts ...grpc.CallOption) (*ModifyAdminsResponse, error) 3993 // GetClusterRoleBindings returns the current set of cluster role bindings 3994 GetClusterRoleBindings(ctx context.Context, in *GetClusterRoleBindingsRequest, opts ...grpc.CallOption) (*GetClusterRoleBindingsResponse, error) 3995 // ModifyAdmin sets the list of admin roles for a principal 3996 ModifyClusterRoleBinding(ctx context.Context, in *ModifyClusterRoleBindingRequest, opts ...grpc.CallOption) (*ModifyClusterRoleBindingResponse, error) 3997 Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) 3998 Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) 3999 WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) 4000 GetScope(ctx context.Context, in *GetScopeRequest, opts ...grpc.CallOption) (*GetScopeResponse, error) 4001 SetScope(ctx context.Context, in *SetScopeRequest, opts ...grpc.CallOption) (*SetScopeResponse, error) 4002 GetACL(ctx context.Context, in *GetACLRequest, opts ...grpc.CallOption) (*GetACLResponse, error) 4003 SetACL(ctx context.Context, in *SetACLRequest, opts ...grpc.CallOption) (*SetACLResponse, error) 4004 GetOIDCLogin(ctx context.Context, in *GetOIDCLoginRequest, opts ...grpc.CallOption) (*GetOIDCLoginResponse, error) 4005 GetAuthToken(ctx context.Context, in *GetAuthTokenRequest, opts ...grpc.CallOption) (*GetAuthTokenResponse, error) 4006 ExtendAuthToken(ctx context.Context, in *ExtendAuthTokenRequest, opts ...grpc.CallOption) (*ExtendAuthTokenResponse, error) 4007 RevokeAuthToken(ctx context.Context, in *RevokeAuthTokenRequest, opts ...grpc.CallOption) (*RevokeAuthTokenResponse, error) 4008 SetGroupsForUser(ctx context.Context, in *SetGroupsForUserRequest, opts ...grpc.CallOption) (*SetGroupsForUserResponse, error) 4009 ModifyMembers(ctx context.Context, in *ModifyMembersRequest, opts ...grpc.CallOption) (*ModifyMembersResponse, error) 4010 GetGroups(ctx context.Context, in *GetGroupsRequest, opts ...grpc.CallOption) (*GetGroupsResponse, error) 4011 GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) 4012 GetOneTimePassword(ctx context.Context, in *GetOneTimePasswordRequest, opts ...grpc.CallOption) (*GetOneTimePasswordResponse, error) 4013 ExtractAuthTokens(ctx context.Context, in *ExtractAuthTokensRequest, opts ...grpc.CallOption) (*ExtractAuthTokensResponse, error) 4014 RestoreAuthToken(ctx context.Context, in *RestoreAuthTokenRequest, opts ...grpc.CallOption) (*RestoreAuthTokenResponse, error) 4015 } 4016 4017 type aPIClient struct { 4018 cc *grpc.ClientConn 4019 } 4020 4021 func NewAPIClient(cc *grpc.ClientConn) APIClient { 4022 return &aPIClient{cc} 4023 } 4024 4025 func (c *aPIClient) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) { 4026 out := new(ActivateResponse) 4027 err := c.cc.Invoke(ctx, "/auth_1_12.API/Activate", in, out, opts...) 4028 if err != nil { 4029 return nil, err 4030 } 4031 return out, nil 4032 } 4033 4034 func (c *aPIClient) Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) { 4035 out := new(DeactivateResponse) 4036 err := c.cc.Invoke(ctx, "/auth_1_12.API/Deactivate", in, out, opts...) 4037 if err != nil { 4038 return nil, err 4039 } 4040 return out, nil 4041 } 4042 4043 func (c *aPIClient) GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) { 4044 out := new(GetConfigurationResponse) 4045 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetConfiguration", in, out, opts...) 4046 if err != nil { 4047 return nil, err 4048 } 4049 return out, nil 4050 } 4051 4052 func (c *aPIClient) SetConfiguration(ctx context.Context, in *SetConfigurationRequest, opts ...grpc.CallOption) (*SetConfigurationResponse, error) { 4053 out := new(SetConfigurationResponse) 4054 err := c.cc.Invoke(ctx, "/auth_1_12.API/SetConfiguration", in, out, opts...) 4055 if err != nil { 4056 return nil, err 4057 } 4058 return out, nil 4059 } 4060 4061 func (c *aPIClient) GetAdmins(ctx context.Context, in *GetAdminsRequest, opts ...grpc.CallOption) (*GetAdminsResponse, error) { 4062 out := new(GetAdminsResponse) 4063 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetAdmins", in, out, opts...) 4064 if err != nil { 4065 return nil, err 4066 } 4067 return out, nil 4068 } 4069 4070 func (c *aPIClient) ModifyAdmins(ctx context.Context, in *ModifyAdminsRequest, opts ...grpc.CallOption) (*ModifyAdminsResponse, error) { 4071 out := new(ModifyAdminsResponse) 4072 err := c.cc.Invoke(ctx, "/auth_1_12.API/ModifyAdmins", in, out, opts...) 4073 if err != nil { 4074 return nil, err 4075 } 4076 return out, nil 4077 } 4078 4079 func (c *aPIClient) GetClusterRoleBindings(ctx context.Context, in *GetClusterRoleBindingsRequest, opts ...grpc.CallOption) (*GetClusterRoleBindingsResponse, error) { 4080 out := new(GetClusterRoleBindingsResponse) 4081 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetClusterRoleBindings", in, out, opts...) 4082 if err != nil { 4083 return nil, err 4084 } 4085 return out, nil 4086 } 4087 4088 func (c *aPIClient) ModifyClusterRoleBinding(ctx context.Context, in *ModifyClusterRoleBindingRequest, opts ...grpc.CallOption) (*ModifyClusterRoleBindingResponse, error) { 4089 out := new(ModifyClusterRoleBindingResponse) 4090 err := c.cc.Invoke(ctx, "/auth_1_12.API/ModifyClusterRoleBinding", in, out, opts...) 4091 if err != nil { 4092 return nil, err 4093 } 4094 return out, nil 4095 } 4096 4097 func (c *aPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { 4098 out := new(AuthenticateResponse) 4099 err := c.cc.Invoke(ctx, "/auth_1_12.API/Authenticate", in, out, opts...) 4100 if err != nil { 4101 return nil, err 4102 } 4103 return out, nil 4104 } 4105 4106 func (c *aPIClient) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) { 4107 out := new(AuthorizeResponse) 4108 err := c.cc.Invoke(ctx, "/auth_1_12.API/Authorize", in, out, opts...) 4109 if err != nil { 4110 return nil, err 4111 } 4112 return out, nil 4113 } 4114 4115 func (c *aPIClient) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) { 4116 out := new(WhoAmIResponse) 4117 err := c.cc.Invoke(ctx, "/auth_1_12.API/WhoAmI", in, out, opts...) 4118 if err != nil { 4119 return nil, err 4120 } 4121 return out, nil 4122 } 4123 4124 func (c *aPIClient) GetScope(ctx context.Context, in *GetScopeRequest, opts ...grpc.CallOption) (*GetScopeResponse, error) { 4125 out := new(GetScopeResponse) 4126 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetScope", in, out, opts...) 4127 if err != nil { 4128 return nil, err 4129 } 4130 return out, nil 4131 } 4132 4133 func (c *aPIClient) SetScope(ctx context.Context, in *SetScopeRequest, opts ...grpc.CallOption) (*SetScopeResponse, error) { 4134 out := new(SetScopeResponse) 4135 err := c.cc.Invoke(ctx, "/auth_1_12.API/SetScope", in, out, opts...) 4136 if err != nil { 4137 return nil, err 4138 } 4139 return out, nil 4140 } 4141 4142 func (c *aPIClient) GetACL(ctx context.Context, in *GetACLRequest, opts ...grpc.CallOption) (*GetACLResponse, error) { 4143 out := new(GetACLResponse) 4144 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetACL", in, out, opts...) 4145 if err != nil { 4146 return nil, err 4147 } 4148 return out, nil 4149 } 4150 4151 func (c *aPIClient) SetACL(ctx context.Context, in *SetACLRequest, opts ...grpc.CallOption) (*SetACLResponse, error) { 4152 out := new(SetACLResponse) 4153 err := c.cc.Invoke(ctx, "/auth_1_12.API/SetACL", in, out, opts...) 4154 if err != nil { 4155 return nil, err 4156 } 4157 return out, nil 4158 } 4159 4160 func (c *aPIClient) GetOIDCLogin(ctx context.Context, in *GetOIDCLoginRequest, opts ...grpc.CallOption) (*GetOIDCLoginResponse, error) { 4161 out := new(GetOIDCLoginResponse) 4162 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetOIDCLogin", in, out, opts...) 4163 if err != nil { 4164 return nil, err 4165 } 4166 return out, nil 4167 } 4168 4169 func (c *aPIClient) GetAuthToken(ctx context.Context, in *GetAuthTokenRequest, opts ...grpc.CallOption) (*GetAuthTokenResponse, error) { 4170 out := new(GetAuthTokenResponse) 4171 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetAuthToken", in, out, opts...) 4172 if err != nil { 4173 return nil, err 4174 } 4175 return out, nil 4176 } 4177 4178 func (c *aPIClient) ExtendAuthToken(ctx context.Context, in *ExtendAuthTokenRequest, opts ...grpc.CallOption) (*ExtendAuthTokenResponse, error) { 4179 out := new(ExtendAuthTokenResponse) 4180 err := c.cc.Invoke(ctx, "/auth_1_12.API/ExtendAuthToken", in, out, opts...) 4181 if err != nil { 4182 return nil, err 4183 } 4184 return out, nil 4185 } 4186 4187 func (c *aPIClient) RevokeAuthToken(ctx context.Context, in *RevokeAuthTokenRequest, opts ...grpc.CallOption) (*RevokeAuthTokenResponse, error) { 4188 out := new(RevokeAuthTokenResponse) 4189 err := c.cc.Invoke(ctx, "/auth_1_12.API/RevokeAuthToken", in, out, opts...) 4190 if err != nil { 4191 return nil, err 4192 } 4193 return out, nil 4194 } 4195 4196 func (c *aPIClient) SetGroupsForUser(ctx context.Context, in *SetGroupsForUserRequest, opts ...grpc.CallOption) (*SetGroupsForUserResponse, error) { 4197 out := new(SetGroupsForUserResponse) 4198 err := c.cc.Invoke(ctx, "/auth_1_12.API/SetGroupsForUser", in, out, opts...) 4199 if err != nil { 4200 return nil, err 4201 } 4202 return out, nil 4203 } 4204 4205 func (c *aPIClient) ModifyMembers(ctx context.Context, in *ModifyMembersRequest, opts ...grpc.CallOption) (*ModifyMembersResponse, error) { 4206 out := new(ModifyMembersResponse) 4207 err := c.cc.Invoke(ctx, "/auth_1_12.API/ModifyMembers", in, out, opts...) 4208 if err != nil { 4209 return nil, err 4210 } 4211 return out, nil 4212 } 4213 4214 func (c *aPIClient) GetGroups(ctx context.Context, in *GetGroupsRequest, opts ...grpc.CallOption) (*GetGroupsResponse, error) { 4215 out := new(GetGroupsResponse) 4216 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetGroups", in, out, opts...) 4217 if err != nil { 4218 return nil, err 4219 } 4220 return out, nil 4221 } 4222 4223 func (c *aPIClient) GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) { 4224 out := new(GetUsersResponse) 4225 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetUsers", in, out, opts...) 4226 if err != nil { 4227 return nil, err 4228 } 4229 return out, nil 4230 } 4231 4232 func (c *aPIClient) GetOneTimePassword(ctx context.Context, in *GetOneTimePasswordRequest, opts ...grpc.CallOption) (*GetOneTimePasswordResponse, error) { 4233 out := new(GetOneTimePasswordResponse) 4234 err := c.cc.Invoke(ctx, "/auth_1_12.API/GetOneTimePassword", in, out, opts...) 4235 if err != nil { 4236 return nil, err 4237 } 4238 return out, nil 4239 } 4240 4241 func (c *aPIClient) ExtractAuthTokens(ctx context.Context, in *ExtractAuthTokensRequest, opts ...grpc.CallOption) (*ExtractAuthTokensResponse, error) { 4242 out := new(ExtractAuthTokensResponse) 4243 err := c.cc.Invoke(ctx, "/auth_1_12.API/ExtractAuthTokens", in, out, opts...) 4244 if err != nil { 4245 return nil, err 4246 } 4247 return out, nil 4248 } 4249 4250 func (c *aPIClient) RestoreAuthToken(ctx context.Context, in *RestoreAuthTokenRequest, opts ...grpc.CallOption) (*RestoreAuthTokenResponse, error) { 4251 out := new(RestoreAuthTokenResponse) 4252 err := c.cc.Invoke(ctx, "/auth_1_12.API/RestoreAuthToken", in, out, opts...) 4253 if err != nil { 4254 return nil, err 4255 } 4256 return out, nil 4257 } 4258 4259 // APIServer is the server API for API service. 4260 type APIServer interface { 4261 // Activate/Deactivate the auth API. 'Activate' sets an initial set of admins 4262 // for the Pachyderm cluster, and 'Deactivate' removes all ACLs, tokens, and 4263 // admins from the Pachyderm cluster, making all data publicly accessable 4264 Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) 4265 Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error) 4266 GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error) 4267 SetConfiguration(context.Context, *SetConfigurationRequest) (*SetConfigurationResponse, error) 4268 // Deprecated. GetAdmins returns the current list of cluster super admins 4269 GetAdmins(context.Context, *GetAdminsRequest) (*GetAdminsResponse, error) 4270 // Deprecated. ModifyAdmins adds or removes super admins from the cluster 4271 ModifyAdmins(context.Context, *ModifyAdminsRequest) (*ModifyAdminsResponse, error) 4272 // GetClusterRoleBindings returns the current set of cluster role bindings 4273 GetClusterRoleBindings(context.Context, *GetClusterRoleBindingsRequest) (*GetClusterRoleBindingsResponse, error) 4274 // ModifyAdmin sets the list of admin roles for a principal 4275 ModifyClusterRoleBinding(context.Context, *ModifyClusterRoleBindingRequest) (*ModifyClusterRoleBindingResponse, error) 4276 Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) 4277 Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) 4278 WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) 4279 GetScope(context.Context, *GetScopeRequest) (*GetScopeResponse, error) 4280 SetScope(context.Context, *SetScopeRequest) (*SetScopeResponse, error) 4281 GetACL(context.Context, *GetACLRequest) (*GetACLResponse, error) 4282 SetACL(context.Context, *SetACLRequest) (*SetACLResponse, error) 4283 GetOIDCLogin(context.Context, *GetOIDCLoginRequest) (*GetOIDCLoginResponse, error) 4284 GetAuthToken(context.Context, *GetAuthTokenRequest) (*GetAuthTokenResponse, error) 4285 ExtendAuthToken(context.Context, *ExtendAuthTokenRequest) (*ExtendAuthTokenResponse, error) 4286 RevokeAuthToken(context.Context, *RevokeAuthTokenRequest) (*RevokeAuthTokenResponse, error) 4287 SetGroupsForUser(context.Context, *SetGroupsForUserRequest) (*SetGroupsForUserResponse, error) 4288 ModifyMembers(context.Context, *ModifyMembersRequest) (*ModifyMembersResponse, error) 4289 GetGroups(context.Context, *GetGroupsRequest) (*GetGroupsResponse, error) 4290 GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error) 4291 GetOneTimePassword(context.Context, *GetOneTimePasswordRequest) (*GetOneTimePasswordResponse, error) 4292 ExtractAuthTokens(context.Context, *ExtractAuthTokensRequest) (*ExtractAuthTokensResponse, error) 4293 RestoreAuthToken(context.Context, *RestoreAuthTokenRequest) (*RestoreAuthTokenResponse, error) 4294 } 4295 4296 // UnimplementedAPIServer can be embedded to have forward compatible implementations. 4297 type UnimplementedAPIServer struct { 4298 } 4299 4300 func (*UnimplementedAPIServer) Activate(ctx context.Context, req *ActivateRequest) (*ActivateResponse, error) { 4301 return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented") 4302 } 4303 func (*UnimplementedAPIServer) Deactivate(ctx context.Context, req *DeactivateRequest) (*DeactivateResponse, error) { 4304 return nil, status.Errorf(codes.Unimplemented, "method Deactivate not implemented") 4305 } 4306 func (*UnimplementedAPIServer) GetConfiguration(ctx context.Context, req *GetConfigurationRequest) (*GetConfigurationResponse, error) { 4307 return nil, status.Errorf(codes.Unimplemented, "method GetConfiguration not implemented") 4308 } 4309 func (*UnimplementedAPIServer) SetConfiguration(ctx context.Context, req *SetConfigurationRequest) (*SetConfigurationResponse, error) { 4310 return nil, status.Errorf(codes.Unimplemented, "method SetConfiguration not implemented") 4311 } 4312 func (*UnimplementedAPIServer) GetAdmins(ctx context.Context, req *GetAdminsRequest) (*GetAdminsResponse, error) { 4313 return nil, status.Errorf(codes.Unimplemented, "method GetAdmins not implemented") 4314 } 4315 func (*UnimplementedAPIServer) ModifyAdmins(ctx context.Context, req *ModifyAdminsRequest) (*ModifyAdminsResponse, error) { 4316 return nil, status.Errorf(codes.Unimplemented, "method ModifyAdmins not implemented") 4317 } 4318 func (*UnimplementedAPIServer) GetClusterRoleBindings(ctx context.Context, req *GetClusterRoleBindingsRequest) (*GetClusterRoleBindingsResponse, error) { 4319 return nil, status.Errorf(codes.Unimplemented, "method GetClusterRoleBindings not implemented") 4320 } 4321 func (*UnimplementedAPIServer) ModifyClusterRoleBinding(ctx context.Context, req *ModifyClusterRoleBindingRequest) (*ModifyClusterRoleBindingResponse, error) { 4322 return nil, status.Errorf(codes.Unimplemented, "method ModifyClusterRoleBinding not implemented") 4323 } 4324 func (*UnimplementedAPIServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error) { 4325 return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented") 4326 } 4327 func (*UnimplementedAPIServer) Authorize(ctx context.Context, req *AuthorizeRequest) (*AuthorizeResponse, error) { 4328 return nil, status.Errorf(codes.Unimplemented, "method Authorize not implemented") 4329 } 4330 func (*UnimplementedAPIServer) WhoAmI(ctx context.Context, req *WhoAmIRequest) (*WhoAmIResponse, error) { 4331 return nil, status.Errorf(codes.Unimplemented, "method WhoAmI not implemented") 4332 } 4333 func (*UnimplementedAPIServer) GetScope(ctx context.Context, req *GetScopeRequest) (*GetScopeResponse, error) { 4334 return nil, status.Errorf(codes.Unimplemented, "method GetScope not implemented") 4335 } 4336 func (*UnimplementedAPIServer) SetScope(ctx context.Context, req *SetScopeRequest) (*SetScopeResponse, error) { 4337 return nil, status.Errorf(codes.Unimplemented, "method SetScope not implemented") 4338 } 4339 func (*UnimplementedAPIServer) GetACL(ctx context.Context, req *GetACLRequest) (*GetACLResponse, error) { 4340 return nil, status.Errorf(codes.Unimplemented, "method GetACL not implemented") 4341 } 4342 func (*UnimplementedAPIServer) SetACL(ctx context.Context, req *SetACLRequest) (*SetACLResponse, error) { 4343 return nil, status.Errorf(codes.Unimplemented, "method SetACL not implemented") 4344 } 4345 func (*UnimplementedAPIServer) GetOIDCLogin(ctx context.Context, req *GetOIDCLoginRequest) (*GetOIDCLoginResponse, error) { 4346 return nil, status.Errorf(codes.Unimplemented, "method GetOIDCLogin not implemented") 4347 } 4348 func (*UnimplementedAPIServer) GetAuthToken(ctx context.Context, req *GetAuthTokenRequest) (*GetAuthTokenResponse, error) { 4349 return nil, status.Errorf(codes.Unimplemented, "method GetAuthToken not implemented") 4350 } 4351 func (*UnimplementedAPIServer) ExtendAuthToken(ctx context.Context, req *ExtendAuthTokenRequest) (*ExtendAuthTokenResponse, error) { 4352 return nil, status.Errorf(codes.Unimplemented, "method ExtendAuthToken not implemented") 4353 } 4354 func (*UnimplementedAPIServer) RevokeAuthToken(ctx context.Context, req *RevokeAuthTokenRequest) (*RevokeAuthTokenResponse, error) { 4355 return nil, status.Errorf(codes.Unimplemented, "method RevokeAuthToken not implemented") 4356 } 4357 func (*UnimplementedAPIServer) SetGroupsForUser(ctx context.Context, req *SetGroupsForUserRequest) (*SetGroupsForUserResponse, error) { 4358 return nil, status.Errorf(codes.Unimplemented, "method SetGroupsForUser not implemented") 4359 } 4360 func (*UnimplementedAPIServer) ModifyMembers(ctx context.Context, req *ModifyMembersRequest) (*ModifyMembersResponse, error) { 4361 return nil, status.Errorf(codes.Unimplemented, "method ModifyMembers not implemented") 4362 } 4363 func (*UnimplementedAPIServer) GetGroups(ctx context.Context, req *GetGroupsRequest) (*GetGroupsResponse, error) { 4364 return nil, status.Errorf(codes.Unimplemented, "method GetGroups not implemented") 4365 } 4366 func (*UnimplementedAPIServer) GetUsers(ctx context.Context, req *GetUsersRequest) (*GetUsersResponse, error) { 4367 return nil, status.Errorf(codes.Unimplemented, "method GetUsers not implemented") 4368 } 4369 func (*UnimplementedAPIServer) GetOneTimePassword(ctx context.Context, req *GetOneTimePasswordRequest) (*GetOneTimePasswordResponse, error) { 4370 return nil, status.Errorf(codes.Unimplemented, "method GetOneTimePassword not implemented") 4371 } 4372 func (*UnimplementedAPIServer) ExtractAuthTokens(ctx context.Context, req *ExtractAuthTokensRequest) (*ExtractAuthTokensResponse, error) { 4373 return nil, status.Errorf(codes.Unimplemented, "method ExtractAuthTokens not implemented") 4374 } 4375 func (*UnimplementedAPIServer) RestoreAuthToken(ctx context.Context, req *RestoreAuthTokenRequest) (*RestoreAuthTokenResponse, error) { 4376 return nil, status.Errorf(codes.Unimplemented, "method RestoreAuthToken not implemented") 4377 } 4378 4379 func RegisterAPIServer(s *grpc.Server, srv APIServer) { 4380 s.RegisterService(&_API_serviceDesc, srv) 4381 } 4382 4383 func _API_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4384 in := new(ActivateRequest) 4385 if err := dec(in); err != nil { 4386 return nil, err 4387 } 4388 if interceptor == nil { 4389 return srv.(APIServer).Activate(ctx, in) 4390 } 4391 info := &grpc.UnaryServerInfo{ 4392 Server: srv, 4393 FullMethod: "/auth_1_12.API/Activate", 4394 } 4395 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4396 return srv.(APIServer).Activate(ctx, req.(*ActivateRequest)) 4397 } 4398 return interceptor(ctx, in, info, handler) 4399 } 4400 4401 func _API_Deactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4402 in := new(DeactivateRequest) 4403 if err := dec(in); err != nil { 4404 return nil, err 4405 } 4406 if interceptor == nil { 4407 return srv.(APIServer).Deactivate(ctx, in) 4408 } 4409 info := &grpc.UnaryServerInfo{ 4410 Server: srv, 4411 FullMethod: "/auth_1_12.API/Deactivate", 4412 } 4413 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4414 return srv.(APIServer).Deactivate(ctx, req.(*DeactivateRequest)) 4415 } 4416 return interceptor(ctx, in, info, handler) 4417 } 4418 4419 func _API_GetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4420 in := new(GetConfigurationRequest) 4421 if err := dec(in); err != nil { 4422 return nil, err 4423 } 4424 if interceptor == nil { 4425 return srv.(APIServer).GetConfiguration(ctx, in) 4426 } 4427 info := &grpc.UnaryServerInfo{ 4428 Server: srv, 4429 FullMethod: "/auth_1_12.API/GetConfiguration", 4430 } 4431 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4432 return srv.(APIServer).GetConfiguration(ctx, req.(*GetConfigurationRequest)) 4433 } 4434 return interceptor(ctx, in, info, handler) 4435 } 4436 4437 func _API_SetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4438 in := new(SetConfigurationRequest) 4439 if err := dec(in); err != nil { 4440 return nil, err 4441 } 4442 if interceptor == nil { 4443 return srv.(APIServer).SetConfiguration(ctx, in) 4444 } 4445 info := &grpc.UnaryServerInfo{ 4446 Server: srv, 4447 FullMethod: "/auth_1_12.API/SetConfiguration", 4448 } 4449 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4450 return srv.(APIServer).SetConfiguration(ctx, req.(*SetConfigurationRequest)) 4451 } 4452 return interceptor(ctx, in, info, handler) 4453 } 4454 4455 func _API_GetAdmins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4456 in := new(GetAdminsRequest) 4457 if err := dec(in); err != nil { 4458 return nil, err 4459 } 4460 if interceptor == nil { 4461 return srv.(APIServer).GetAdmins(ctx, in) 4462 } 4463 info := &grpc.UnaryServerInfo{ 4464 Server: srv, 4465 FullMethod: "/auth_1_12.API/GetAdmins", 4466 } 4467 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4468 return srv.(APIServer).GetAdmins(ctx, req.(*GetAdminsRequest)) 4469 } 4470 return interceptor(ctx, in, info, handler) 4471 } 4472 4473 func _API_ModifyAdmins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4474 in := new(ModifyAdminsRequest) 4475 if err := dec(in); err != nil { 4476 return nil, err 4477 } 4478 if interceptor == nil { 4479 return srv.(APIServer).ModifyAdmins(ctx, in) 4480 } 4481 info := &grpc.UnaryServerInfo{ 4482 Server: srv, 4483 FullMethod: "/auth_1_12.API/ModifyAdmins", 4484 } 4485 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4486 return srv.(APIServer).ModifyAdmins(ctx, req.(*ModifyAdminsRequest)) 4487 } 4488 return interceptor(ctx, in, info, handler) 4489 } 4490 4491 func _API_GetClusterRoleBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4492 in := new(GetClusterRoleBindingsRequest) 4493 if err := dec(in); err != nil { 4494 return nil, err 4495 } 4496 if interceptor == nil { 4497 return srv.(APIServer).GetClusterRoleBindings(ctx, in) 4498 } 4499 info := &grpc.UnaryServerInfo{ 4500 Server: srv, 4501 FullMethod: "/auth_1_12.API/GetClusterRoleBindings", 4502 } 4503 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4504 return srv.(APIServer).GetClusterRoleBindings(ctx, req.(*GetClusterRoleBindingsRequest)) 4505 } 4506 return interceptor(ctx, in, info, handler) 4507 } 4508 4509 func _API_ModifyClusterRoleBinding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4510 in := new(ModifyClusterRoleBindingRequest) 4511 if err := dec(in); err != nil { 4512 return nil, err 4513 } 4514 if interceptor == nil { 4515 return srv.(APIServer).ModifyClusterRoleBinding(ctx, in) 4516 } 4517 info := &grpc.UnaryServerInfo{ 4518 Server: srv, 4519 FullMethod: "/auth_1_12.API/ModifyClusterRoleBinding", 4520 } 4521 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4522 return srv.(APIServer).ModifyClusterRoleBinding(ctx, req.(*ModifyClusterRoleBindingRequest)) 4523 } 4524 return interceptor(ctx, in, info, handler) 4525 } 4526 4527 func _API_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4528 in := new(AuthenticateRequest) 4529 if err := dec(in); err != nil { 4530 return nil, err 4531 } 4532 if interceptor == nil { 4533 return srv.(APIServer).Authenticate(ctx, in) 4534 } 4535 info := &grpc.UnaryServerInfo{ 4536 Server: srv, 4537 FullMethod: "/auth_1_12.API/Authenticate", 4538 } 4539 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4540 return srv.(APIServer).Authenticate(ctx, req.(*AuthenticateRequest)) 4541 } 4542 return interceptor(ctx, in, info, handler) 4543 } 4544 4545 func _API_Authorize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4546 in := new(AuthorizeRequest) 4547 if err := dec(in); err != nil { 4548 return nil, err 4549 } 4550 if interceptor == nil { 4551 return srv.(APIServer).Authorize(ctx, in) 4552 } 4553 info := &grpc.UnaryServerInfo{ 4554 Server: srv, 4555 FullMethod: "/auth_1_12.API/Authorize", 4556 } 4557 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4558 return srv.(APIServer).Authorize(ctx, req.(*AuthorizeRequest)) 4559 } 4560 return interceptor(ctx, in, info, handler) 4561 } 4562 4563 func _API_WhoAmI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4564 in := new(WhoAmIRequest) 4565 if err := dec(in); err != nil { 4566 return nil, err 4567 } 4568 if interceptor == nil { 4569 return srv.(APIServer).WhoAmI(ctx, in) 4570 } 4571 info := &grpc.UnaryServerInfo{ 4572 Server: srv, 4573 FullMethod: "/auth_1_12.API/WhoAmI", 4574 } 4575 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4576 return srv.(APIServer).WhoAmI(ctx, req.(*WhoAmIRequest)) 4577 } 4578 return interceptor(ctx, in, info, handler) 4579 } 4580 4581 func _API_GetScope_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4582 in := new(GetScopeRequest) 4583 if err := dec(in); err != nil { 4584 return nil, err 4585 } 4586 if interceptor == nil { 4587 return srv.(APIServer).GetScope(ctx, in) 4588 } 4589 info := &grpc.UnaryServerInfo{ 4590 Server: srv, 4591 FullMethod: "/auth_1_12.API/GetScope", 4592 } 4593 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4594 return srv.(APIServer).GetScope(ctx, req.(*GetScopeRequest)) 4595 } 4596 return interceptor(ctx, in, info, handler) 4597 } 4598 4599 func _API_SetScope_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4600 in := new(SetScopeRequest) 4601 if err := dec(in); err != nil { 4602 return nil, err 4603 } 4604 if interceptor == nil { 4605 return srv.(APIServer).SetScope(ctx, in) 4606 } 4607 info := &grpc.UnaryServerInfo{ 4608 Server: srv, 4609 FullMethod: "/auth_1_12.API/SetScope", 4610 } 4611 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4612 return srv.(APIServer).SetScope(ctx, req.(*SetScopeRequest)) 4613 } 4614 return interceptor(ctx, in, info, handler) 4615 } 4616 4617 func _API_GetACL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4618 in := new(GetACLRequest) 4619 if err := dec(in); err != nil { 4620 return nil, err 4621 } 4622 if interceptor == nil { 4623 return srv.(APIServer).GetACL(ctx, in) 4624 } 4625 info := &grpc.UnaryServerInfo{ 4626 Server: srv, 4627 FullMethod: "/auth_1_12.API/GetACL", 4628 } 4629 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4630 return srv.(APIServer).GetACL(ctx, req.(*GetACLRequest)) 4631 } 4632 return interceptor(ctx, in, info, handler) 4633 } 4634 4635 func _API_SetACL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4636 in := new(SetACLRequest) 4637 if err := dec(in); err != nil { 4638 return nil, err 4639 } 4640 if interceptor == nil { 4641 return srv.(APIServer).SetACL(ctx, in) 4642 } 4643 info := &grpc.UnaryServerInfo{ 4644 Server: srv, 4645 FullMethod: "/auth_1_12.API/SetACL", 4646 } 4647 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4648 return srv.(APIServer).SetACL(ctx, req.(*SetACLRequest)) 4649 } 4650 return interceptor(ctx, in, info, handler) 4651 } 4652 4653 func _API_GetOIDCLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4654 in := new(GetOIDCLoginRequest) 4655 if err := dec(in); err != nil { 4656 return nil, err 4657 } 4658 if interceptor == nil { 4659 return srv.(APIServer).GetOIDCLogin(ctx, in) 4660 } 4661 info := &grpc.UnaryServerInfo{ 4662 Server: srv, 4663 FullMethod: "/auth_1_12.API/GetOIDCLogin", 4664 } 4665 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4666 return srv.(APIServer).GetOIDCLogin(ctx, req.(*GetOIDCLoginRequest)) 4667 } 4668 return interceptor(ctx, in, info, handler) 4669 } 4670 4671 func _API_GetAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4672 in := new(GetAuthTokenRequest) 4673 if err := dec(in); err != nil { 4674 return nil, err 4675 } 4676 if interceptor == nil { 4677 return srv.(APIServer).GetAuthToken(ctx, in) 4678 } 4679 info := &grpc.UnaryServerInfo{ 4680 Server: srv, 4681 FullMethod: "/auth_1_12.API/GetAuthToken", 4682 } 4683 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4684 return srv.(APIServer).GetAuthToken(ctx, req.(*GetAuthTokenRequest)) 4685 } 4686 return interceptor(ctx, in, info, handler) 4687 } 4688 4689 func _API_ExtendAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4690 in := new(ExtendAuthTokenRequest) 4691 if err := dec(in); err != nil { 4692 return nil, err 4693 } 4694 if interceptor == nil { 4695 return srv.(APIServer).ExtendAuthToken(ctx, in) 4696 } 4697 info := &grpc.UnaryServerInfo{ 4698 Server: srv, 4699 FullMethod: "/auth_1_12.API/ExtendAuthToken", 4700 } 4701 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4702 return srv.(APIServer).ExtendAuthToken(ctx, req.(*ExtendAuthTokenRequest)) 4703 } 4704 return interceptor(ctx, in, info, handler) 4705 } 4706 4707 func _API_RevokeAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4708 in := new(RevokeAuthTokenRequest) 4709 if err := dec(in); err != nil { 4710 return nil, err 4711 } 4712 if interceptor == nil { 4713 return srv.(APIServer).RevokeAuthToken(ctx, in) 4714 } 4715 info := &grpc.UnaryServerInfo{ 4716 Server: srv, 4717 FullMethod: "/auth_1_12.API/RevokeAuthToken", 4718 } 4719 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4720 return srv.(APIServer).RevokeAuthToken(ctx, req.(*RevokeAuthTokenRequest)) 4721 } 4722 return interceptor(ctx, in, info, handler) 4723 } 4724 4725 func _API_SetGroupsForUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4726 in := new(SetGroupsForUserRequest) 4727 if err := dec(in); err != nil { 4728 return nil, err 4729 } 4730 if interceptor == nil { 4731 return srv.(APIServer).SetGroupsForUser(ctx, in) 4732 } 4733 info := &grpc.UnaryServerInfo{ 4734 Server: srv, 4735 FullMethod: "/auth_1_12.API/SetGroupsForUser", 4736 } 4737 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4738 return srv.(APIServer).SetGroupsForUser(ctx, req.(*SetGroupsForUserRequest)) 4739 } 4740 return interceptor(ctx, in, info, handler) 4741 } 4742 4743 func _API_ModifyMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4744 in := new(ModifyMembersRequest) 4745 if err := dec(in); err != nil { 4746 return nil, err 4747 } 4748 if interceptor == nil { 4749 return srv.(APIServer).ModifyMembers(ctx, in) 4750 } 4751 info := &grpc.UnaryServerInfo{ 4752 Server: srv, 4753 FullMethod: "/auth_1_12.API/ModifyMembers", 4754 } 4755 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4756 return srv.(APIServer).ModifyMembers(ctx, req.(*ModifyMembersRequest)) 4757 } 4758 return interceptor(ctx, in, info, handler) 4759 } 4760 4761 func _API_GetGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4762 in := new(GetGroupsRequest) 4763 if err := dec(in); err != nil { 4764 return nil, err 4765 } 4766 if interceptor == nil { 4767 return srv.(APIServer).GetGroups(ctx, in) 4768 } 4769 info := &grpc.UnaryServerInfo{ 4770 Server: srv, 4771 FullMethod: "/auth_1_12.API/GetGroups", 4772 } 4773 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4774 return srv.(APIServer).GetGroups(ctx, req.(*GetGroupsRequest)) 4775 } 4776 return interceptor(ctx, in, info, handler) 4777 } 4778 4779 func _API_GetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4780 in := new(GetUsersRequest) 4781 if err := dec(in); err != nil { 4782 return nil, err 4783 } 4784 if interceptor == nil { 4785 return srv.(APIServer).GetUsers(ctx, in) 4786 } 4787 info := &grpc.UnaryServerInfo{ 4788 Server: srv, 4789 FullMethod: "/auth_1_12.API/GetUsers", 4790 } 4791 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4792 return srv.(APIServer).GetUsers(ctx, req.(*GetUsersRequest)) 4793 } 4794 return interceptor(ctx, in, info, handler) 4795 } 4796 4797 func _API_GetOneTimePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4798 in := new(GetOneTimePasswordRequest) 4799 if err := dec(in); err != nil { 4800 return nil, err 4801 } 4802 if interceptor == nil { 4803 return srv.(APIServer).GetOneTimePassword(ctx, in) 4804 } 4805 info := &grpc.UnaryServerInfo{ 4806 Server: srv, 4807 FullMethod: "/auth_1_12.API/GetOneTimePassword", 4808 } 4809 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4810 return srv.(APIServer).GetOneTimePassword(ctx, req.(*GetOneTimePasswordRequest)) 4811 } 4812 return interceptor(ctx, in, info, handler) 4813 } 4814 4815 func _API_ExtractAuthTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4816 in := new(ExtractAuthTokensRequest) 4817 if err := dec(in); err != nil { 4818 return nil, err 4819 } 4820 if interceptor == nil { 4821 return srv.(APIServer).ExtractAuthTokens(ctx, in) 4822 } 4823 info := &grpc.UnaryServerInfo{ 4824 Server: srv, 4825 FullMethod: "/auth_1_12.API/ExtractAuthTokens", 4826 } 4827 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4828 return srv.(APIServer).ExtractAuthTokens(ctx, req.(*ExtractAuthTokensRequest)) 4829 } 4830 return interceptor(ctx, in, info, handler) 4831 } 4832 4833 func _API_RestoreAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4834 in := new(RestoreAuthTokenRequest) 4835 if err := dec(in); err != nil { 4836 return nil, err 4837 } 4838 if interceptor == nil { 4839 return srv.(APIServer).RestoreAuthToken(ctx, in) 4840 } 4841 info := &grpc.UnaryServerInfo{ 4842 Server: srv, 4843 FullMethod: "/auth_1_12.API/RestoreAuthToken", 4844 } 4845 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4846 return srv.(APIServer).RestoreAuthToken(ctx, req.(*RestoreAuthTokenRequest)) 4847 } 4848 return interceptor(ctx, in, info, handler) 4849 } 4850 4851 var _API_serviceDesc = grpc.ServiceDesc{ 4852 ServiceName: "auth_1_12.API", 4853 HandlerType: (*APIServer)(nil), 4854 Methods: []grpc.MethodDesc{ 4855 { 4856 MethodName: "Activate", 4857 Handler: _API_Activate_Handler, 4858 }, 4859 { 4860 MethodName: "Deactivate", 4861 Handler: _API_Deactivate_Handler, 4862 }, 4863 { 4864 MethodName: "GetConfiguration", 4865 Handler: _API_GetConfiguration_Handler, 4866 }, 4867 { 4868 MethodName: "SetConfiguration", 4869 Handler: _API_SetConfiguration_Handler, 4870 }, 4871 { 4872 MethodName: "GetAdmins", 4873 Handler: _API_GetAdmins_Handler, 4874 }, 4875 { 4876 MethodName: "ModifyAdmins", 4877 Handler: _API_ModifyAdmins_Handler, 4878 }, 4879 { 4880 MethodName: "GetClusterRoleBindings", 4881 Handler: _API_GetClusterRoleBindings_Handler, 4882 }, 4883 { 4884 MethodName: "ModifyClusterRoleBinding", 4885 Handler: _API_ModifyClusterRoleBinding_Handler, 4886 }, 4887 { 4888 MethodName: "Authenticate", 4889 Handler: _API_Authenticate_Handler, 4890 }, 4891 { 4892 MethodName: "Authorize", 4893 Handler: _API_Authorize_Handler, 4894 }, 4895 { 4896 MethodName: "WhoAmI", 4897 Handler: _API_WhoAmI_Handler, 4898 }, 4899 { 4900 MethodName: "GetScope", 4901 Handler: _API_GetScope_Handler, 4902 }, 4903 { 4904 MethodName: "SetScope", 4905 Handler: _API_SetScope_Handler, 4906 }, 4907 { 4908 MethodName: "GetACL", 4909 Handler: _API_GetACL_Handler, 4910 }, 4911 { 4912 MethodName: "SetACL", 4913 Handler: _API_SetACL_Handler, 4914 }, 4915 { 4916 MethodName: "GetOIDCLogin", 4917 Handler: _API_GetOIDCLogin_Handler, 4918 }, 4919 { 4920 MethodName: "GetAuthToken", 4921 Handler: _API_GetAuthToken_Handler, 4922 }, 4923 { 4924 MethodName: "ExtendAuthToken", 4925 Handler: _API_ExtendAuthToken_Handler, 4926 }, 4927 { 4928 MethodName: "RevokeAuthToken", 4929 Handler: _API_RevokeAuthToken_Handler, 4930 }, 4931 { 4932 MethodName: "SetGroupsForUser", 4933 Handler: _API_SetGroupsForUser_Handler, 4934 }, 4935 { 4936 MethodName: "ModifyMembers", 4937 Handler: _API_ModifyMembers_Handler, 4938 }, 4939 { 4940 MethodName: "GetGroups", 4941 Handler: _API_GetGroups_Handler, 4942 }, 4943 { 4944 MethodName: "GetUsers", 4945 Handler: _API_GetUsers_Handler, 4946 }, 4947 { 4948 MethodName: "GetOneTimePassword", 4949 Handler: _API_GetOneTimePassword_Handler, 4950 }, 4951 { 4952 MethodName: "ExtractAuthTokens", 4953 Handler: _API_ExtractAuthTokens_Handler, 4954 }, 4955 { 4956 MethodName: "RestoreAuthToken", 4957 Handler: _API_RestoreAuthToken_Handler, 4958 }, 4959 }, 4960 Streams: []grpc.StreamDesc{}, 4961 Metadata: "client/admin/v1_12/auth/auth.proto", 4962 } 4963 4964 func (m *ActivateRequest) Marshal() (dAtA []byte, err error) { 4965 size := m.Size() 4966 dAtA = make([]byte, size) 4967 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4968 if err != nil { 4969 return nil, err 4970 } 4971 return dAtA[:n], nil 4972 } 4973 4974 func (m *ActivateRequest) MarshalTo(dAtA []byte) (int, error) { 4975 size := m.Size() 4976 return m.MarshalToSizedBuffer(dAtA[:size]) 4977 } 4978 4979 func (m *ActivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4980 i := len(dAtA) 4981 _ = i 4982 var l int 4983 _ = l 4984 if m.XXX_unrecognized != nil { 4985 i -= len(m.XXX_unrecognized) 4986 copy(dAtA[i:], m.XXX_unrecognized) 4987 } 4988 if len(m.RootToken) > 0 { 4989 i -= len(m.RootToken) 4990 copy(dAtA[i:], m.RootToken) 4991 i = encodeVarintAuth(dAtA, i, uint64(len(m.RootToken))) 4992 i-- 4993 dAtA[i] = 0x1a 4994 } 4995 if len(m.Subject) > 0 { 4996 i -= len(m.Subject) 4997 copy(dAtA[i:], m.Subject) 4998 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 4999 i-- 5000 dAtA[i] = 0x12 5001 } 5002 if len(m.GitHubToken) > 0 { 5003 i -= len(m.GitHubToken) 5004 copy(dAtA[i:], m.GitHubToken) 5005 i = encodeVarintAuth(dAtA, i, uint64(len(m.GitHubToken))) 5006 i-- 5007 dAtA[i] = 0xa 5008 } 5009 return len(dAtA) - i, nil 5010 } 5011 5012 func (m *ActivateResponse) Marshal() (dAtA []byte, err error) { 5013 size := m.Size() 5014 dAtA = make([]byte, size) 5015 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5016 if err != nil { 5017 return nil, err 5018 } 5019 return dAtA[:n], nil 5020 } 5021 5022 func (m *ActivateResponse) MarshalTo(dAtA []byte) (int, error) { 5023 size := m.Size() 5024 return m.MarshalToSizedBuffer(dAtA[:size]) 5025 } 5026 5027 func (m *ActivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5028 i := len(dAtA) 5029 _ = i 5030 var l int 5031 _ = l 5032 if m.XXX_unrecognized != nil { 5033 i -= len(m.XXX_unrecognized) 5034 copy(dAtA[i:], m.XXX_unrecognized) 5035 } 5036 if len(m.PachToken) > 0 { 5037 i -= len(m.PachToken) 5038 copy(dAtA[i:], m.PachToken) 5039 i = encodeVarintAuth(dAtA, i, uint64(len(m.PachToken))) 5040 i-- 5041 dAtA[i] = 0xa 5042 } 5043 return len(dAtA) - i, nil 5044 } 5045 5046 func (m *DeactivateRequest) Marshal() (dAtA []byte, err error) { 5047 size := m.Size() 5048 dAtA = make([]byte, size) 5049 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5050 if err != nil { 5051 return nil, err 5052 } 5053 return dAtA[:n], nil 5054 } 5055 5056 func (m *DeactivateRequest) MarshalTo(dAtA []byte) (int, error) { 5057 size := m.Size() 5058 return m.MarshalToSizedBuffer(dAtA[:size]) 5059 } 5060 5061 func (m *DeactivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5062 i := len(dAtA) 5063 _ = i 5064 var l int 5065 _ = l 5066 if m.XXX_unrecognized != nil { 5067 i -= len(m.XXX_unrecognized) 5068 copy(dAtA[i:], m.XXX_unrecognized) 5069 } 5070 return len(dAtA) - i, nil 5071 } 5072 5073 func (m *DeactivateResponse) Marshal() (dAtA []byte, err error) { 5074 size := m.Size() 5075 dAtA = make([]byte, size) 5076 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5077 if err != nil { 5078 return nil, err 5079 } 5080 return dAtA[:n], nil 5081 } 5082 5083 func (m *DeactivateResponse) MarshalTo(dAtA []byte) (int, error) { 5084 size := m.Size() 5085 return m.MarshalToSizedBuffer(dAtA[:size]) 5086 } 5087 5088 func (m *DeactivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5089 i := len(dAtA) 5090 _ = i 5091 var l int 5092 _ = l 5093 if m.XXX_unrecognized != nil { 5094 i -= len(m.XXX_unrecognized) 5095 copy(dAtA[i:], m.XXX_unrecognized) 5096 } 5097 return len(dAtA) - i, nil 5098 } 5099 5100 func (m *IDProvider) Marshal() (dAtA []byte, err error) { 5101 size := m.Size() 5102 dAtA = make([]byte, size) 5103 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5104 if err != nil { 5105 return nil, err 5106 } 5107 return dAtA[:n], nil 5108 } 5109 5110 func (m *IDProvider) MarshalTo(dAtA []byte) (int, error) { 5111 size := m.Size() 5112 return m.MarshalToSizedBuffer(dAtA[:size]) 5113 } 5114 5115 func (m *IDProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5116 i := len(dAtA) 5117 _ = i 5118 var l int 5119 _ = l 5120 if m.XXX_unrecognized != nil { 5121 i -= len(m.XXX_unrecognized) 5122 copy(dAtA[i:], m.XXX_unrecognized) 5123 } 5124 if m.OIDC != nil { 5125 { 5126 size, err := m.OIDC.MarshalToSizedBuffer(dAtA[:i]) 5127 if err != nil { 5128 return 0, err 5129 } 5130 i -= size 5131 i = encodeVarintAuth(dAtA, i, uint64(size)) 5132 } 5133 i-- 5134 dAtA[i] = 0x2a 5135 } 5136 if m.GitHub != nil { 5137 { 5138 size, err := m.GitHub.MarshalToSizedBuffer(dAtA[:i]) 5139 if err != nil { 5140 return 0, err 5141 } 5142 i -= size 5143 i = encodeVarintAuth(dAtA, i, uint64(size)) 5144 } 5145 i-- 5146 dAtA[i] = 0x22 5147 } 5148 if m.SAML != nil { 5149 { 5150 size, err := m.SAML.MarshalToSizedBuffer(dAtA[:i]) 5151 if err != nil { 5152 return 0, err 5153 } 5154 i -= size 5155 i = encodeVarintAuth(dAtA, i, uint64(size)) 5156 } 5157 i-- 5158 dAtA[i] = 0x1a 5159 } 5160 if len(m.Description) > 0 { 5161 i -= len(m.Description) 5162 copy(dAtA[i:], m.Description) 5163 i = encodeVarintAuth(dAtA, i, uint64(len(m.Description))) 5164 i-- 5165 dAtA[i] = 0x12 5166 } 5167 if len(m.Name) > 0 { 5168 i -= len(m.Name) 5169 copy(dAtA[i:], m.Name) 5170 i = encodeVarintAuth(dAtA, i, uint64(len(m.Name))) 5171 i-- 5172 dAtA[i] = 0xa 5173 } 5174 return len(dAtA) - i, nil 5175 } 5176 5177 func (m *IDProvider_SAMLOptions) Marshal() (dAtA []byte, err error) { 5178 size := m.Size() 5179 dAtA = make([]byte, size) 5180 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5181 if err != nil { 5182 return nil, err 5183 } 5184 return dAtA[:n], nil 5185 } 5186 5187 func (m *IDProvider_SAMLOptions) MarshalTo(dAtA []byte) (int, error) { 5188 size := m.Size() 5189 return m.MarshalToSizedBuffer(dAtA[:size]) 5190 } 5191 5192 func (m *IDProvider_SAMLOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5193 i := len(dAtA) 5194 _ = i 5195 var l int 5196 _ = l 5197 if m.XXX_unrecognized != nil { 5198 i -= len(m.XXX_unrecognized) 5199 copy(dAtA[i:], m.XXX_unrecognized) 5200 } 5201 if len(m.GroupAttribute) > 0 { 5202 i -= len(m.GroupAttribute) 5203 copy(dAtA[i:], m.GroupAttribute) 5204 i = encodeVarintAuth(dAtA, i, uint64(len(m.GroupAttribute))) 5205 i-- 5206 dAtA[i] = 0x1a 5207 } 5208 if len(m.MetadataXML) > 0 { 5209 i -= len(m.MetadataXML) 5210 copy(dAtA[i:], m.MetadataXML) 5211 i = encodeVarintAuth(dAtA, i, uint64(len(m.MetadataXML))) 5212 i-- 5213 dAtA[i] = 0x12 5214 } 5215 if len(m.MetadataURL) > 0 { 5216 i -= len(m.MetadataURL) 5217 copy(dAtA[i:], m.MetadataURL) 5218 i = encodeVarintAuth(dAtA, i, uint64(len(m.MetadataURL))) 5219 i-- 5220 dAtA[i] = 0xa 5221 } 5222 return len(dAtA) - i, nil 5223 } 5224 5225 func (m *IDProvider_OIDCOptions) Marshal() (dAtA []byte, err error) { 5226 size := m.Size() 5227 dAtA = make([]byte, size) 5228 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5229 if err != nil { 5230 return nil, err 5231 } 5232 return dAtA[:n], nil 5233 } 5234 5235 func (m *IDProvider_OIDCOptions) MarshalTo(dAtA []byte) (int, error) { 5236 size := m.Size() 5237 return m.MarshalToSizedBuffer(dAtA[:size]) 5238 } 5239 5240 func (m *IDProvider_OIDCOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5241 i := len(dAtA) 5242 _ = i 5243 var l int 5244 _ = l 5245 if m.XXX_unrecognized != nil { 5246 i -= len(m.XXX_unrecognized) 5247 copy(dAtA[i:], m.XXX_unrecognized) 5248 } 5249 if m.IgnoreEmailVerified { 5250 i-- 5251 if m.IgnoreEmailVerified { 5252 dAtA[i] = 1 5253 } else { 5254 dAtA[i] = 0 5255 } 5256 i-- 5257 dAtA[i] = 0x30 5258 } 5259 if len(m.AdditionalScopes) > 0 { 5260 for iNdEx := len(m.AdditionalScopes) - 1; iNdEx >= 0; iNdEx-- { 5261 i -= len(m.AdditionalScopes[iNdEx]) 5262 copy(dAtA[i:], m.AdditionalScopes[iNdEx]) 5263 i = encodeVarintAuth(dAtA, i, uint64(len(m.AdditionalScopes[iNdEx]))) 5264 i-- 5265 dAtA[i] = 0x2a 5266 } 5267 } 5268 if len(m.RedirectURI) > 0 { 5269 i -= len(m.RedirectURI) 5270 copy(dAtA[i:], m.RedirectURI) 5271 i = encodeVarintAuth(dAtA, i, uint64(len(m.RedirectURI))) 5272 i-- 5273 dAtA[i] = 0x22 5274 } 5275 if len(m.ClientSecret) > 0 { 5276 i -= len(m.ClientSecret) 5277 copy(dAtA[i:], m.ClientSecret) 5278 i = encodeVarintAuth(dAtA, i, uint64(len(m.ClientSecret))) 5279 i-- 5280 dAtA[i] = 0x1a 5281 } 5282 if len(m.ClientID) > 0 { 5283 i -= len(m.ClientID) 5284 copy(dAtA[i:], m.ClientID) 5285 i = encodeVarintAuth(dAtA, i, uint64(len(m.ClientID))) 5286 i-- 5287 dAtA[i] = 0x12 5288 } 5289 if len(m.Issuer) > 0 { 5290 i -= len(m.Issuer) 5291 copy(dAtA[i:], m.Issuer) 5292 i = encodeVarintAuth(dAtA, i, uint64(len(m.Issuer))) 5293 i-- 5294 dAtA[i] = 0xa 5295 } 5296 return len(dAtA) - i, nil 5297 } 5298 5299 func (m *IDProvider_GitHubOptions) Marshal() (dAtA []byte, err error) { 5300 size := m.Size() 5301 dAtA = make([]byte, size) 5302 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5303 if err != nil { 5304 return nil, err 5305 } 5306 return dAtA[:n], nil 5307 } 5308 5309 func (m *IDProvider_GitHubOptions) MarshalTo(dAtA []byte) (int, error) { 5310 size := m.Size() 5311 return m.MarshalToSizedBuffer(dAtA[:size]) 5312 } 5313 5314 func (m *IDProvider_GitHubOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5315 i := len(dAtA) 5316 _ = i 5317 var l int 5318 _ = l 5319 if m.XXX_unrecognized != nil { 5320 i -= len(m.XXX_unrecognized) 5321 copy(dAtA[i:], m.XXX_unrecognized) 5322 } 5323 return len(dAtA) - i, nil 5324 } 5325 5326 func (m *AuthConfig) Marshal() (dAtA []byte, err error) { 5327 size := m.Size() 5328 dAtA = make([]byte, size) 5329 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5330 if err != nil { 5331 return nil, err 5332 } 5333 return dAtA[:n], nil 5334 } 5335 5336 func (m *AuthConfig) MarshalTo(dAtA []byte) (int, error) { 5337 size := m.Size() 5338 return m.MarshalToSizedBuffer(dAtA[:size]) 5339 } 5340 5341 func (m *AuthConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5342 i := len(dAtA) 5343 _ = i 5344 var l int 5345 _ = l 5346 if m.XXX_unrecognized != nil { 5347 i -= len(m.XXX_unrecognized) 5348 copy(dAtA[i:], m.XXX_unrecognized) 5349 } 5350 if m.SAMLServiceOptions != nil { 5351 { 5352 size, err := m.SAMLServiceOptions.MarshalToSizedBuffer(dAtA[:i]) 5353 if err != nil { 5354 return 0, err 5355 } 5356 i -= size 5357 i = encodeVarintAuth(dAtA, i, uint64(size)) 5358 } 5359 i-- 5360 dAtA[i] = 0x1a 5361 } 5362 if len(m.IDProviders) > 0 { 5363 for iNdEx := len(m.IDProviders) - 1; iNdEx >= 0; iNdEx-- { 5364 { 5365 size, err := m.IDProviders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5366 if err != nil { 5367 return 0, err 5368 } 5369 i -= size 5370 i = encodeVarintAuth(dAtA, i, uint64(size)) 5371 } 5372 i-- 5373 dAtA[i] = 0x12 5374 } 5375 } 5376 if m.LiveConfigVersion != 0 { 5377 i = encodeVarintAuth(dAtA, i, uint64(m.LiveConfigVersion)) 5378 i-- 5379 dAtA[i] = 0x8 5380 } 5381 return len(dAtA) - i, nil 5382 } 5383 5384 func (m *AuthConfig_SAMLServiceOptions) Marshal() (dAtA []byte, err error) { 5385 size := m.Size() 5386 dAtA = make([]byte, size) 5387 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5388 if err != nil { 5389 return nil, err 5390 } 5391 return dAtA[:n], nil 5392 } 5393 5394 func (m *AuthConfig_SAMLServiceOptions) MarshalTo(dAtA []byte) (int, error) { 5395 size := m.Size() 5396 return m.MarshalToSizedBuffer(dAtA[:size]) 5397 } 5398 5399 func (m *AuthConfig_SAMLServiceOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5400 i := len(dAtA) 5401 _ = i 5402 var l int 5403 _ = l 5404 if m.XXX_unrecognized != nil { 5405 i -= len(m.XXX_unrecognized) 5406 copy(dAtA[i:], m.XXX_unrecognized) 5407 } 5408 if m.DebugLogging { 5409 i-- 5410 if m.DebugLogging { 5411 dAtA[i] = 1 5412 } else { 5413 dAtA[i] = 0 5414 } 5415 i-- 5416 dAtA[i] = 0x28 5417 } 5418 if len(m.SessionDuration) > 0 { 5419 i -= len(m.SessionDuration) 5420 copy(dAtA[i:], m.SessionDuration) 5421 i = encodeVarintAuth(dAtA, i, uint64(len(m.SessionDuration))) 5422 i-- 5423 dAtA[i] = 0x22 5424 } 5425 if len(m.DashURL) > 0 { 5426 i -= len(m.DashURL) 5427 copy(dAtA[i:], m.DashURL) 5428 i = encodeVarintAuth(dAtA, i, uint64(len(m.DashURL))) 5429 i-- 5430 dAtA[i] = 0x1a 5431 } 5432 if len(m.MetadataURL) > 0 { 5433 i -= len(m.MetadataURL) 5434 copy(dAtA[i:], m.MetadataURL) 5435 i = encodeVarintAuth(dAtA, i, uint64(len(m.MetadataURL))) 5436 i-- 5437 dAtA[i] = 0x12 5438 } 5439 if len(m.ACSURL) > 0 { 5440 i -= len(m.ACSURL) 5441 copy(dAtA[i:], m.ACSURL) 5442 i = encodeVarintAuth(dAtA, i, uint64(len(m.ACSURL))) 5443 i-- 5444 dAtA[i] = 0xa 5445 } 5446 return len(dAtA) - i, nil 5447 } 5448 5449 func (m *GetConfigurationRequest) Marshal() (dAtA []byte, err error) { 5450 size := m.Size() 5451 dAtA = make([]byte, size) 5452 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5453 if err != nil { 5454 return nil, err 5455 } 5456 return dAtA[:n], nil 5457 } 5458 5459 func (m *GetConfigurationRequest) MarshalTo(dAtA []byte) (int, error) { 5460 size := m.Size() 5461 return m.MarshalToSizedBuffer(dAtA[:size]) 5462 } 5463 5464 func (m *GetConfigurationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5465 i := len(dAtA) 5466 _ = i 5467 var l int 5468 _ = l 5469 if m.XXX_unrecognized != nil { 5470 i -= len(m.XXX_unrecognized) 5471 copy(dAtA[i:], m.XXX_unrecognized) 5472 } 5473 return len(dAtA) - i, nil 5474 } 5475 5476 func (m *GetConfigurationResponse) Marshal() (dAtA []byte, err error) { 5477 size := m.Size() 5478 dAtA = make([]byte, size) 5479 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5480 if err != nil { 5481 return nil, err 5482 } 5483 return dAtA[:n], nil 5484 } 5485 5486 func (m *GetConfigurationResponse) MarshalTo(dAtA []byte) (int, error) { 5487 size := m.Size() 5488 return m.MarshalToSizedBuffer(dAtA[:size]) 5489 } 5490 5491 func (m *GetConfigurationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5492 i := len(dAtA) 5493 _ = i 5494 var l int 5495 _ = l 5496 if m.XXX_unrecognized != nil { 5497 i -= len(m.XXX_unrecognized) 5498 copy(dAtA[i:], m.XXX_unrecognized) 5499 } 5500 if m.Configuration != nil { 5501 { 5502 size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) 5503 if err != nil { 5504 return 0, err 5505 } 5506 i -= size 5507 i = encodeVarintAuth(dAtA, i, uint64(size)) 5508 } 5509 i-- 5510 dAtA[i] = 0xa 5511 } 5512 return len(dAtA) - i, nil 5513 } 5514 5515 func (m *SetConfigurationRequest) Marshal() (dAtA []byte, err error) { 5516 size := m.Size() 5517 dAtA = make([]byte, size) 5518 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5519 if err != nil { 5520 return nil, err 5521 } 5522 return dAtA[:n], nil 5523 } 5524 5525 func (m *SetConfigurationRequest) MarshalTo(dAtA []byte) (int, error) { 5526 size := m.Size() 5527 return m.MarshalToSizedBuffer(dAtA[:size]) 5528 } 5529 5530 func (m *SetConfigurationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5531 i := len(dAtA) 5532 _ = i 5533 var l int 5534 _ = l 5535 if m.XXX_unrecognized != nil { 5536 i -= len(m.XXX_unrecognized) 5537 copy(dAtA[i:], m.XXX_unrecognized) 5538 } 5539 if m.Configuration != nil { 5540 { 5541 size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) 5542 if err != nil { 5543 return 0, err 5544 } 5545 i -= size 5546 i = encodeVarintAuth(dAtA, i, uint64(size)) 5547 } 5548 i-- 5549 dAtA[i] = 0xa 5550 } 5551 return len(dAtA) - i, nil 5552 } 5553 5554 func (m *SetConfigurationResponse) Marshal() (dAtA []byte, err error) { 5555 size := m.Size() 5556 dAtA = make([]byte, size) 5557 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5558 if err != nil { 5559 return nil, err 5560 } 5561 return dAtA[:n], nil 5562 } 5563 5564 func (m *SetConfigurationResponse) MarshalTo(dAtA []byte) (int, error) { 5565 size := m.Size() 5566 return m.MarshalToSizedBuffer(dAtA[:size]) 5567 } 5568 5569 func (m *SetConfigurationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5570 i := len(dAtA) 5571 _ = i 5572 var l int 5573 _ = l 5574 if m.XXX_unrecognized != nil { 5575 i -= len(m.XXX_unrecognized) 5576 copy(dAtA[i:], m.XXX_unrecognized) 5577 } 5578 return len(dAtA) - i, nil 5579 } 5580 5581 func (m *ClusterRoles) Marshal() (dAtA []byte, err error) { 5582 size := m.Size() 5583 dAtA = make([]byte, size) 5584 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5585 if err != nil { 5586 return nil, err 5587 } 5588 return dAtA[:n], nil 5589 } 5590 5591 func (m *ClusterRoles) MarshalTo(dAtA []byte) (int, error) { 5592 size := m.Size() 5593 return m.MarshalToSizedBuffer(dAtA[:size]) 5594 } 5595 5596 func (m *ClusterRoles) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5597 i := len(dAtA) 5598 _ = i 5599 var l int 5600 _ = l 5601 if m.XXX_unrecognized != nil { 5602 i -= len(m.XXX_unrecognized) 5603 copy(dAtA[i:], m.XXX_unrecognized) 5604 } 5605 if len(m.Roles) > 0 { 5606 dAtA8 := make([]byte, len(m.Roles)*10) 5607 var j7 int 5608 for _, num := range m.Roles { 5609 for num >= 1<<7 { 5610 dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) 5611 num >>= 7 5612 j7++ 5613 } 5614 dAtA8[j7] = uint8(num) 5615 j7++ 5616 } 5617 i -= j7 5618 copy(dAtA[i:], dAtA8[:j7]) 5619 i = encodeVarintAuth(dAtA, i, uint64(j7)) 5620 i-- 5621 dAtA[i] = 0xa 5622 } 5623 return len(dAtA) - i, nil 5624 } 5625 5626 func (m *GetClusterRoleBindingsRequest) Marshal() (dAtA []byte, err error) { 5627 size := m.Size() 5628 dAtA = make([]byte, size) 5629 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5630 if err != nil { 5631 return nil, err 5632 } 5633 return dAtA[:n], nil 5634 } 5635 5636 func (m *GetClusterRoleBindingsRequest) MarshalTo(dAtA []byte) (int, error) { 5637 size := m.Size() 5638 return m.MarshalToSizedBuffer(dAtA[:size]) 5639 } 5640 5641 func (m *GetClusterRoleBindingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5642 i := len(dAtA) 5643 _ = i 5644 var l int 5645 _ = l 5646 if m.XXX_unrecognized != nil { 5647 i -= len(m.XXX_unrecognized) 5648 copy(dAtA[i:], m.XXX_unrecognized) 5649 } 5650 return len(dAtA) - i, nil 5651 } 5652 5653 func (m *GetClusterRoleBindingsResponse) Marshal() (dAtA []byte, err error) { 5654 size := m.Size() 5655 dAtA = make([]byte, size) 5656 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5657 if err != nil { 5658 return nil, err 5659 } 5660 return dAtA[:n], nil 5661 } 5662 5663 func (m *GetClusterRoleBindingsResponse) MarshalTo(dAtA []byte) (int, error) { 5664 size := m.Size() 5665 return m.MarshalToSizedBuffer(dAtA[:size]) 5666 } 5667 5668 func (m *GetClusterRoleBindingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5669 i := len(dAtA) 5670 _ = i 5671 var l int 5672 _ = l 5673 if m.XXX_unrecognized != nil { 5674 i -= len(m.XXX_unrecognized) 5675 copy(dAtA[i:], m.XXX_unrecognized) 5676 } 5677 if len(m.Bindings) > 0 { 5678 for k := range m.Bindings { 5679 v := m.Bindings[k] 5680 baseI := i 5681 if v != nil { 5682 { 5683 size, err := v.MarshalToSizedBuffer(dAtA[:i]) 5684 if err != nil { 5685 return 0, err 5686 } 5687 i -= size 5688 i = encodeVarintAuth(dAtA, i, uint64(size)) 5689 } 5690 i-- 5691 dAtA[i] = 0x12 5692 } 5693 i -= len(k) 5694 copy(dAtA[i:], k) 5695 i = encodeVarintAuth(dAtA, i, uint64(len(k))) 5696 i-- 5697 dAtA[i] = 0xa 5698 i = encodeVarintAuth(dAtA, i, uint64(baseI-i)) 5699 i-- 5700 dAtA[i] = 0xa 5701 } 5702 } 5703 return len(dAtA) - i, nil 5704 } 5705 5706 func (m *ModifyClusterRoleBindingRequest) Marshal() (dAtA []byte, err error) { 5707 size := m.Size() 5708 dAtA = make([]byte, size) 5709 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5710 if err != nil { 5711 return nil, err 5712 } 5713 return dAtA[:n], nil 5714 } 5715 5716 func (m *ModifyClusterRoleBindingRequest) MarshalTo(dAtA []byte) (int, error) { 5717 size := m.Size() 5718 return m.MarshalToSizedBuffer(dAtA[:size]) 5719 } 5720 5721 func (m *ModifyClusterRoleBindingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5722 i := len(dAtA) 5723 _ = i 5724 var l int 5725 _ = l 5726 if m.XXX_unrecognized != nil { 5727 i -= len(m.XXX_unrecognized) 5728 copy(dAtA[i:], m.XXX_unrecognized) 5729 } 5730 if m.Roles != nil { 5731 { 5732 size, err := m.Roles.MarshalToSizedBuffer(dAtA[:i]) 5733 if err != nil { 5734 return 0, err 5735 } 5736 i -= size 5737 i = encodeVarintAuth(dAtA, i, uint64(size)) 5738 } 5739 i-- 5740 dAtA[i] = 0x12 5741 } 5742 if len(m.Principal) > 0 { 5743 i -= len(m.Principal) 5744 copy(dAtA[i:], m.Principal) 5745 i = encodeVarintAuth(dAtA, i, uint64(len(m.Principal))) 5746 i-- 5747 dAtA[i] = 0xa 5748 } 5749 return len(dAtA) - i, nil 5750 } 5751 5752 func (m *ModifyClusterRoleBindingResponse) Marshal() (dAtA []byte, err error) { 5753 size := m.Size() 5754 dAtA = make([]byte, size) 5755 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5756 if err != nil { 5757 return nil, err 5758 } 5759 return dAtA[:n], nil 5760 } 5761 5762 func (m *ModifyClusterRoleBindingResponse) MarshalTo(dAtA []byte) (int, error) { 5763 size := m.Size() 5764 return m.MarshalToSizedBuffer(dAtA[:size]) 5765 } 5766 5767 func (m *ModifyClusterRoleBindingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5768 i := len(dAtA) 5769 _ = i 5770 var l int 5771 _ = l 5772 if m.XXX_unrecognized != nil { 5773 i -= len(m.XXX_unrecognized) 5774 copy(dAtA[i:], m.XXX_unrecognized) 5775 } 5776 return len(dAtA) - i, nil 5777 } 5778 5779 func (m *GetAdminsRequest) Marshal() (dAtA []byte, err error) { 5780 size := m.Size() 5781 dAtA = make([]byte, size) 5782 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5783 if err != nil { 5784 return nil, err 5785 } 5786 return dAtA[:n], nil 5787 } 5788 5789 func (m *GetAdminsRequest) MarshalTo(dAtA []byte) (int, error) { 5790 size := m.Size() 5791 return m.MarshalToSizedBuffer(dAtA[:size]) 5792 } 5793 5794 func (m *GetAdminsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5795 i := len(dAtA) 5796 _ = i 5797 var l int 5798 _ = l 5799 if m.XXX_unrecognized != nil { 5800 i -= len(m.XXX_unrecognized) 5801 copy(dAtA[i:], m.XXX_unrecognized) 5802 } 5803 return len(dAtA) - i, nil 5804 } 5805 5806 func (m *GetAdminsResponse) Marshal() (dAtA []byte, err error) { 5807 size := m.Size() 5808 dAtA = make([]byte, size) 5809 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5810 if err != nil { 5811 return nil, err 5812 } 5813 return dAtA[:n], nil 5814 } 5815 5816 func (m *GetAdminsResponse) MarshalTo(dAtA []byte) (int, error) { 5817 size := m.Size() 5818 return m.MarshalToSizedBuffer(dAtA[:size]) 5819 } 5820 5821 func (m *GetAdminsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5822 i := len(dAtA) 5823 _ = i 5824 var l int 5825 _ = l 5826 if m.XXX_unrecognized != nil { 5827 i -= len(m.XXX_unrecognized) 5828 copy(dAtA[i:], m.XXX_unrecognized) 5829 } 5830 if len(m.Admins) > 0 { 5831 for iNdEx := len(m.Admins) - 1; iNdEx >= 0; iNdEx-- { 5832 i -= len(m.Admins[iNdEx]) 5833 copy(dAtA[i:], m.Admins[iNdEx]) 5834 i = encodeVarintAuth(dAtA, i, uint64(len(m.Admins[iNdEx]))) 5835 i-- 5836 dAtA[i] = 0xa 5837 } 5838 } 5839 return len(dAtA) - i, nil 5840 } 5841 5842 func (m *ModifyAdminsRequest) Marshal() (dAtA []byte, err error) { 5843 size := m.Size() 5844 dAtA = make([]byte, size) 5845 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5846 if err != nil { 5847 return nil, err 5848 } 5849 return dAtA[:n], nil 5850 } 5851 5852 func (m *ModifyAdminsRequest) MarshalTo(dAtA []byte) (int, error) { 5853 size := m.Size() 5854 return m.MarshalToSizedBuffer(dAtA[:size]) 5855 } 5856 5857 func (m *ModifyAdminsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5858 i := len(dAtA) 5859 _ = i 5860 var l int 5861 _ = l 5862 if m.XXX_unrecognized != nil { 5863 i -= len(m.XXX_unrecognized) 5864 copy(dAtA[i:], m.XXX_unrecognized) 5865 } 5866 if len(m.Remove) > 0 { 5867 for iNdEx := len(m.Remove) - 1; iNdEx >= 0; iNdEx-- { 5868 i -= len(m.Remove[iNdEx]) 5869 copy(dAtA[i:], m.Remove[iNdEx]) 5870 i = encodeVarintAuth(dAtA, i, uint64(len(m.Remove[iNdEx]))) 5871 i-- 5872 dAtA[i] = 0x12 5873 } 5874 } 5875 if len(m.Add) > 0 { 5876 for iNdEx := len(m.Add) - 1; iNdEx >= 0; iNdEx-- { 5877 i -= len(m.Add[iNdEx]) 5878 copy(dAtA[i:], m.Add[iNdEx]) 5879 i = encodeVarintAuth(dAtA, i, uint64(len(m.Add[iNdEx]))) 5880 i-- 5881 dAtA[i] = 0xa 5882 } 5883 } 5884 return len(dAtA) - i, nil 5885 } 5886 5887 func (m *ModifyAdminsResponse) Marshal() (dAtA []byte, err error) { 5888 size := m.Size() 5889 dAtA = make([]byte, size) 5890 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5891 if err != nil { 5892 return nil, err 5893 } 5894 return dAtA[:n], nil 5895 } 5896 5897 func (m *ModifyAdminsResponse) MarshalTo(dAtA []byte) (int, error) { 5898 size := m.Size() 5899 return m.MarshalToSizedBuffer(dAtA[:size]) 5900 } 5901 5902 func (m *ModifyAdminsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5903 i := len(dAtA) 5904 _ = i 5905 var l int 5906 _ = l 5907 if m.XXX_unrecognized != nil { 5908 i -= len(m.XXX_unrecognized) 5909 copy(dAtA[i:], m.XXX_unrecognized) 5910 } 5911 return len(dAtA) - i, nil 5912 } 5913 5914 func (m *OTPInfo) Marshal() (dAtA []byte, err error) { 5915 size := m.Size() 5916 dAtA = make([]byte, size) 5917 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5918 if err != nil { 5919 return nil, err 5920 } 5921 return dAtA[:n], nil 5922 } 5923 5924 func (m *OTPInfo) MarshalTo(dAtA []byte) (int, error) { 5925 size := m.Size() 5926 return m.MarshalToSizedBuffer(dAtA[:size]) 5927 } 5928 5929 func (m *OTPInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5930 i := len(dAtA) 5931 _ = i 5932 var l int 5933 _ = l 5934 if m.XXX_unrecognized != nil { 5935 i -= len(m.XXX_unrecognized) 5936 copy(dAtA[i:], m.XXX_unrecognized) 5937 } 5938 if m.SessionExpiration != nil { 5939 { 5940 size, err := m.SessionExpiration.MarshalToSizedBuffer(dAtA[:i]) 5941 if err != nil { 5942 return 0, err 5943 } 5944 i -= size 5945 i = encodeVarintAuth(dAtA, i, uint64(size)) 5946 } 5947 i-- 5948 dAtA[i] = 0x12 5949 } 5950 if len(m.Subject) > 0 { 5951 i -= len(m.Subject) 5952 copy(dAtA[i:], m.Subject) 5953 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 5954 i-- 5955 dAtA[i] = 0xa 5956 } 5957 return len(dAtA) - i, nil 5958 } 5959 5960 func (m *TokenInfo) Marshal() (dAtA []byte, err error) { 5961 size := m.Size() 5962 dAtA = make([]byte, size) 5963 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5964 if err != nil { 5965 return nil, err 5966 } 5967 return dAtA[:n], nil 5968 } 5969 5970 func (m *TokenInfo) MarshalTo(dAtA []byte) (int, error) { 5971 size := m.Size() 5972 return m.MarshalToSizedBuffer(dAtA[:size]) 5973 } 5974 5975 func (m *TokenInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5976 i := len(dAtA) 5977 _ = i 5978 var l int 5979 _ = l 5980 if m.XXX_unrecognized != nil { 5981 i -= len(m.XXX_unrecognized) 5982 copy(dAtA[i:], m.XXX_unrecognized) 5983 } 5984 if m.Source != 0 { 5985 i = encodeVarintAuth(dAtA, i, uint64(m.Source)) 5986 i-- 5987 dAtA[i] = 0x10 5988 } 5989 if len(m.Subject) > 0 { 5990 i -= len(m.Subject) 5991 copy(dAtA[i:], m.Subject) 5992 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 5993 i-- 5994 dAtA[i] = 0xa 5995 } 5996 return len(dAtA) - i, nil 5997 } 5998 5999 func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error) { 6000 size := m.Size() 6001 dAtA = make([]byte, size) 6002 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6003 if err != nil { 6004 return nil, err 6005 } 6006 return dAtA[:n], nil 6007 } 6008 6009 func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error) { 6010 size := m.Size() 6011 return m.MarshalToSizedBuffer(dAtA[:size]) 6012 } 6013 6014 func (m *AuthenticateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6015 i := len(dAtA) 6016 _ = i 6017 var l int 6018 _ = l 6019 if m.XXX_unrecognized != nil { 6020 i -= len(m.XXX_unrecognized) 6021 copy(dAtA[i:], m.XXX_unrecognized) 6022 } 6023 if len(m.IdToken) > 0 { 6024 i -= len(m.IdToken) 6025 copy(dAtA[i:], m.IdToken) 6026 i = encodeVarintAuth(dAtA, i, uint64(len(m.IdToken))) 6027 i-- 6028 dAtA[i] = 0x22 6029 } 6030 if len(m.OIDCState) > 0 { 6031 i -= len(m.OIDCState) 6032 copy(dAtA[i:], m.OIDCState) 6033 i = encodeVarintAuth(dAtA, i, uint64(len(m.OIDCState))) 6034 i-- 6035 dAtA[i] = 0x1a 6036 } 6037 if len(m.OneTimePassword) > 0 { 6038 i -= len(m.OneTimePassword) 6039 copy(dAtA[i:], m.OneTimePassword) 6040 i = encodeVarintAuth(dAtA, i, uint64(len(m.OneTimePassword))) 6041 i-- 6042 dAtA[i] = 0x12 6043 } 6044 if len(m.GitHubToken) > 0 { 6045 i -= len(m.GitHubToken) 6046 copy(dAtA[i:], m.GitHubToken) 6047 i = encodeVarintAuth(dAtA, i, uint64(len(m.GitHubToken))) 6048 i-- 6049 dAtA[i] = 0xa 6050 } 6051 return len(dAtA) - i, nil 6052 } 6053 6054 func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error) { 6055 size := m.Size() 6056 dAtA = make([]byte, size) 6057 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6058 if err != nil { 6059 return nil, err 6060 } 6061 return dAtA[:n], nil 6062 } 6063 6064 func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error) { 6065 size := m.Size() 6066 return m.MarshalToSizedBuffer(dAtA[:size]) 6067 } 6068 6069 func (m *AuthenticateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6070 i := len(dAtA) 6071 _ = i 6072 var l int 6073 _ = l 6074 if m.XXX_unrecognized != nil { 6075 i -= len(m.XXX_unrecognized) 6076 copy(dAtA[i:], m.XXX_unrecognized) 6077 } 6078 if len(m.PachToken) > 0 { 6079 i -= len(m.PachToken) 6080 copy(dAtA[i:], m.PachToken) 6081 i = encodeVarintAuth(dAtA, i, uint64(len(m.PachToken))) 6082 i-- 6083 dAtA[i] = 0xa 6084 } 6085 return len(dAtA) - i, nil 6086 } 6087 6088 func (m *WhoAmIRequest) Marshal() (dAtA []byte, err error) { 6089 size := m.Size() 6090 dAtA = make([]byte, size) 6091 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6092 if err != nil { 6093 return nil, err 6094 } 6095 return dAtA[:n], nil 6096 } 6097 6098 func (m *WhoAmIRequest) MarshalTo(dAtA []byte) (int, error) { 6099 size := m.Size() 6100 return m.MarshalToSizedBuffer(dAtA[:size]) 6101 } 6102 6103 func (m *WhoAmIRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6104 i := len(dAtA) 6105 _ = i 6106 var l int 6107 _ = l 6108 if m.XXX_unrecognized != nil { 6109 i -= len(m.XXX_unrecognized) 6110 copy(dAtA[i:], m.XXX_unrecognized) 6111 } 6112 return len(dAtA) - i, nil 6113 } 6114 6115 func (m *WhoAmIResponse) Marshal() (dAtA []byte, err error) { 6116 size := m.Size() 6117 dAtA = make([]byte, size) 6118 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6119 if err != nil { 6120 return nil, err 6121 } 6122 return dAtA[:n], nil 6123 } 6124 6125 func (m *WhoAmIResponse) MarshalTo(dAtA []byte) (int, error) { 6126 size := m.Size() 6127 return m.MarshalToSizedBuffer(dAtA[:size]) 6128 } 6129 6130 func (m *WhoAmIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6131 i := len(dAtA) 6132 _ = i 6133 var l int 6134 _ = l 6135 if m.XXX_unrecognized != nil { 6136 i -= len(m.XXX_unrecognized) 6137 copy(dAtA[i:], m.XXX_unrecognized) 6138 } 6139 if m.ClusterRoles != nil { 6140 { 6141 size, err := m.ClusterRoles.MarshalToSizedBuffer(dAtA[:i]) 6142 if err != nil { 6143 return 0, err 6144 } 6145 i -= size 6146 i = encodeVarintAuth(dAtA, i, uint64(size)) 6147 } 6148 i-- 6149 dAtA[i] = 0x22 6150 } 6151 if m.TTL != 0 { 6152 i = encodeVarintAuth(dAtA, i, uint64(m.TTL)) 6153 i-- 6154 dAtA[i] = 0x18 6155 } 6156 if m.IsAdmin { 6157 i-- 6158 if m.IsAdmin { 6159 dAtA[i] = 1 6160 } else { 6161 dAtA[i] = 0 6162 } 6163 i-- 6164 dAtA[i] = 0x10 6165 } 6166 if len(m.Username) > 0 { 6167 i -= len(m.Username) 6168 copy(dAtA[i:], m.Username) 6169 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 6170 i-- 6171 dAtA[i] = 0xa 6172 } 6173 return len(dAtA) - i, nil 6174 } 6175 6176 func (m *ACL) Marshal() (dAtA []byte, err error) { 6177 size := m.Size() 6178 dAtA = make([]byte, size) 6179 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6180 if err != nil { 6181 return nil, err 6182 } 6183 return dAtA[:n], nil 6184 } 6185 6186 func (m *ACL) MarshalTo(dAtA []byte) (int, error) { 6187 size := m.Size() 6188 return m.MarshalToSizedBuffer(dAtA[:size]) 6189 } 6190 6191 func (m *ACL) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6192 i := len(dAtA) 6193 _ = i 6194 var l int 6195 _ = l 6196 if m.XXX_unrecognized != nil { 6197 i -= len(m.XXX_unrecognized) 6198 copy(dAtA[i:], m.XXX_unrecognized) 6199 } 6200 if len(m.Entries) > 0 { 6201 for k := range m.Entries { 6202 v := m.Entries[k] 6203 baseI := i 6204 i = encodeVarintAuth(dAtA, i, uint64(v)) 6205 i-- 6206 dAtA[i] = 0x10 6207 i -= len(k) 6208 copy(dAtA[i:], k) 6209 i = encodeVarintAuth(dAtA, i, uint64(len(k))) 6210 i-- 6211 dAtA[i] = 0xa 6212 i = encodeVarintAuth(dAtA, i, uint64(baseI-i)) 6213 i-- 6214 dAtA[i] = 0xa 6215 } 6216 } 6217 return len(dAtA) - i, nil 6218 } 6219 6220 func (m *Users) Marshal() (dAtA []byte, err error) { 6221 size := m.Size() 6222 dAtA = make([]byte, size) 6223 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6224 if err != nil { 6225 return nil, err 6226 } 6227 return dAtA[:n], nil 6228 } 6229 6230 func (m *Users) MarshalTo(dAtA []byte) (int, error) { 6231 size := m.Size() 6232 return m.MarshalToSizedBuffer(dAtA[:size]) 6233 } 6234 6235 func (m *Users) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6236 i := len(dAtA) 6237 _ = i 6238 var l int 6239 _ = l 6240 if m.XXX_unrecognized != nil { 6241 i -= len(m.XXX_unrecognized) 6242 copy(dAtA[i:], m.XXX_unrecognized) 6243 } 6244 if len(m.Usernames) > 0 { 6245 for k := range m.Usernames { 6246 v := m.Usernames[k] 6247 baseI := i 6248 i-- 6249 if v { 6250 dAtA[i] = 1 6251 } else { 6252 dAtA[i] = 0 6253 } 6254 i-- 6255 dAtA[i] = 0x10 6256 i -= len(k) 6257 copy(dAtA[i:], k) 6258 i = encodeVarintAuth(dAtA, i, uint64(len(k))) 6259 i-- 6260 dAtA[i] = 0xa 6261 i = encodeVarintAuth(dAtA, i, uint64(baseI-i)) 6262 i-- 6263 dAtA[i] = 0xa 6264 } 6265 } 6266 return len(dAtA) - i, nil 6267 } 6268 6269 func (m *Groups) Marshal() (dAtA []byte, err error) { 6270 size := m.Size() 6271 dAtA = make([]byte, size) 6272 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6273 if err != nil { 6274 return nil, err 6275 } 6276 return dAtA[:n], nil 6277 } 6278 6279 func (m *Groups) MarshalTo(dAtA []byte) (int, error) { 6280 size := m.Size() 6281 return m.MarshalToSizedBuffer(dAtA[:size]) 6282 } 6283 6284 func (m *Groups) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6285 i := len(dAtA) 6286 _ = i 6287 var l int 6288 _ = l 6289 if m.XXX_unrecognized != nil { 6290 i -= len(m.XXX_unrecognized) 6291 copy(dAtA[i:], m.XXX_unrecognized) 6292 } 6293 if len(m.Groups) > 0 { 6294 for k := range m.Groups { 6295 v := m.Groups[k] 6296 baseI := i 6297 i-- 6298 if v { 6299 dAtA[i] = 1 6300 } else { 6301 dAtA[i] = 0 6302 } 6303 i-- 6304 dAtA[i] = 0x10 6305 i -= len(k) 6306 copy(dAtA[i:], k) 6307 i = encodeVarintAuth(dAtA, i, uint64(len(k))) 6308 i-- 6309 dAtA[i] = 0xa 6310 i = encodeVarintAuth(dAtA, i, uint64(baseI-i)) 6311 i-- 6312 dAtA[i] = 0xa 6313 } 6314 } 6315 return len(dAtA) - i, nil 6316 } 6317 6318 func (m *AuthorizeRequest) Marshal() (dAtA []byte, err error) { 6319 size := m.Size() 6320 dAtA = make([]byte, size) 6321 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6322 if err != nil { 6323 return nil, err 6324 } 6325 return dAtA[:n], nil 6326 } 6327 6328 func (m *AuthorizeRequest) MarshalTo(dAtA []byte) (int, error) { 6329 size := m.Size() 6330 return m.MarshalToSizedBuffer(dAtA[:size]) 6331 } 6332 6333 func (m *AuthorizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6334 i := len(dAtA) 6335 _ = i 6336 var l int 6337 _ = l 6338 if m.XXX_unrecognized != nil { 6339 i -= len(m.XXX_unrecognized) 6340 copy(dAtA[i:], m.XXX_unrecognized) 6341 } 6342 if m.Scope != 0 { 6343 i = encodeVarintAuth(dAtA, i, uint64(m.Scope)) 6344 i-- 6345 dAtA[i] = 0x10 6346 } 6347 if len(m.Repo) > 0 { 6348 i -= len(m.Repo) 6349 copy(dAtA[i:], m.Repo) 6350 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 6351 i-- 6352 dAtA[i] = 0xa 6353 } 6354 return len(dAtA) - i, nil 6355 } 6356 6357 func (m *AuthorizeResponse) Marshal() (dAtA []byte, err error) { 6358 size := m.Size() 6359 dAtA = make([]byte, size) 6360 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6361 if err != nil { 6362 return nil, err 6363 } 6364 return dAtA[:n], nil 6365 } 6366 6367 func (m *AuthorizeResponse) MarshalTo(dAtA []byte) (int, error) { 6368 size := m.Size() 6369 return m.MarshalToSizedBuffer(dAtA[:size]) 6370 } 6371 6372 func (m *AuthorizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6373 i := len(dAtA) 6374 _ = i 6375 var l int 6376 _ = l 6377 if m.XXX_unrecognized != nil { 6378 i -= len(m.XXX_unrecognized) 6379 copy(dAtA[i:], m.XXX_unrecognized) 6380 } 6381 if m.Authorized { 6382 i-- 6383 if m.Authorized { 6384 dAtA[i] = 1 6385 } else { 6386 dAtA[i] = 0 6387 } 6388 i-- 6389 dAtA[i] = 0x8 6390 } 6391 return len(dAtA) - i, nil 6392 } 6393 6394 func (m *GetScopeRequest) Marshal() (dAtA []byte, err error) { 6395 size := m.Size() 6396 dAtA = make([]byte, size) 6397 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6398 if err != nil { 6399 return nil, err 6400 } 6401 return dAtA[:n], nil 6402 } 6403 6404 func (m *GetScopeRequest) MarshalTo(dAtA []byte) (int, error) { 6405 size := m.Size() 6406 return m.MarshalToSizedBuffer(dAtA[:size]) 6407 } 6408 6409 func (m *GetScopeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6410 i := len(dAtA) 6411 _ = i 6412 var l int 6413 _ = l 6414 if m.XXX_unrecognized != nil { 6415 i -= len(m.XXX_unrecognized) 6416 copy(dAtA[i:], m.XXX_unrecognized) 6417 } 6418 if len(m.Repos) > 0 { 6419 for iNdEx := len(m.Repos) - 1; iNdEx >= 0; iNdEx-- { 6420 i -= len(m.Repos[iNdEx]) 6421 copy(dAtA[i:], m.Repos[iNdEx]) 6422 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repos[iNdEx]))) 6423 i-- 6424 dAtA[i] = 0x12 6425 } 6426 } 6427 if len(m.Username) > 0 { 6428 i -= len(m.Username) 6429 copy(dAtA[i:], m.Username) 6430 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 6431 i-- 6432 dAtA[i] = 0xa 6433 } 6434 return len(dAtA) - i, nil 6435 } 6436 6437 func (m *GetScopeResponse) Marshal() (dAtA []byte, err error) { 6438 size := m.Size() 6439 dAtA = make([]byte, size) 6440 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6441 if err != nil { 6442 return nil, err 6443 } 6444 return dAtA[:n], nil 6445 } 6446 6447 func (m *GetScopeResponse) MarshalTo(dAtA []byte) (int, error) { 6448 size := m.Size() 6449 return m.MarshalToSizedBuffer(dAtA[:size]) 6450 } 6451 6452 func (m *GetScopeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6453 i := len(dAtA) 6454 _ = i 6455 var l int 6456 _ = l 6457 if m.XXX_unrecognized != nil { 6458 i -= len(m.XXX_unrecognized) 6459 copy(dAtA[i:], m.XXX_unrecognized) 6460 } 6461 if len(m.Scopes) > 0 { 6462 dAtA14 := make([]byte, len(m.Scopes)*10) 6463 var j13 int 6464 for _, num := range m.Scopes { 6465 for num >= 1<<7 { 6466 dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) 6467 num >>= 7 6468 j13++ 6469 } 6470 dAtA14[j13] = uint8(num) 6471 j13++ 6472 } 6473 i -= j13 6474 copy(dAtA[i:], dAtA14[:j13]) 6475 i = encodeVarintAuth(dAtA, i, uint64(j13)) 6476 i-- 6477 dAtA[i] = 0xa 6478 } 6479 return len(dAtA) - i, nil 6480 } 6481 6482 func (m *SetScopeRequest) Marshal() (dAtA []byte, err error) { 6483 size := m.Size() 6484 dAtA = make([]byte, size) 6485 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6486 if err != nil { 6487 return nil, err 6488 } 6489 return dAtA[:n], nil 6490 } 6491 6492 func (m *SetScopeRequest) MarshalTo(dAtA []byte) (int, error) { 6493 size := m.Size() 6494 return m.MarshalToSizedBuffer(dAtA[:size]) 6495 } 6496 6497 func (m *SetScopeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6498 i := len(dAtA) 6499 _ = i 6500 var l int 6501 _ = l 6502 if m.XXX_unrecognized != nil { 6503 i -= len(m.XXX_unrecognized) 6504 copy(dAtA[i:], m.XXX_unrecognized) 6505 } 6506 if m.Scope != 0 { 6507 i = encodeVarintAuth(dAtA, i, uint64(m.Scope)) 6508 i-- 6509 dAtA[i] = 0x18 6510 } 6511 if len(m.Repo) > 0 { 6512 i -= len(m.Repo) 6513 copy(dAtA[i:], m.Repo) 6514 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 6515 i-- 6516 dAtA[i] = 0x12 6517 } 6518 if len(m.Username) > 0 { 6519 i -= len(m.Username) 6520 copy(dAtA[i:], m.Username) 6521 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 6522 i-- 6523 dAtA[i] = 0xa 6524 } 6525 return len(dAtA) - i, nil 6526 } 6527 6528 func (m *SetScopeResponse) Marshal() (dAtA []byte, err error) { 6529 size := m.Size() 6530 dAtA = make([]byte, size) 6531 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6532 if err != nil { 6533 return nil, err 6534 } 6535 return dAtA[:n], nil 6536 } 6537 6538 func (m *SetScopeResponse) MarshalTo(dAtA []byte) (int, error) { 6539 size := m.Size() 6540 return m.MarshalToSizedBuffer(dAtA[:size]) 6541 } 6542 6543 func (m *SetScopeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6544 i := len(dAtA) 6545 _ = i 6546 var l int 6547 _ = l 6548 if m.XXX_unrecognized != nil { 6549 i -= len(m.XXX_unrecognized) 6550 copy(dAtA[i:], m.XXX_unrecognized) 6551 } 6552 return len(dAtA) - i, nil 6553 } 6554 6555 func (m *GetACLRequest) Marshal() (dAtA []byte, err error) { 6556 size := m.Size() 6557 dAtA = make([]byte, size) 6558 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6559 if err != nil { 6560 return nil, err 6561 } 6562 return dAtA[:n], nil 6563 } 6564 6565 func (m *GetACLRequest) MarshalTo(dAtA []byte) (int, error) { 6566 size := m.Size() 6567 return m.MarshalToSizedBuffer(dAtA[:size]) 6568 } 6569 6570 func (m *GetACLRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6571 i := len(dAtA) 6572 _ = i 6573 var l int 6574 _ = l 6575 if m.XXX_unrecognized != nil { 6576 i -= len(m.XXX_unrecognized) 6577 copy(dAtA[i:], m.XXX_unrecognized) 6578 } 6579 if len(m.Repo) > 0 { 6580 i -= len(m.Repo) 6581 copy(dAtA[i:], m.Repo) 6582 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 6583 i-- 6584 dAtA[i] = 0xa 6585 } 6586 return len(dAtA) - i, nil 6587 } 6588 6589 func (m *ACLEntry) Marshal() (dAtA []byte, err error) { 6590 size := m.Size() 6591 dAtA = make([]byte, size) 6592 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6593 if err != nil { 6594 return nil, err 6595 } 6596 return dAtA[:n], nil 6597 } 6598 6599 func (m *ACLEntry) MarshalTo(dAtA []byte) (int, error) { 6600 size := m.Size() 6601 return m.MarshalToSizedBuffer(dAtA[:size]) 6602 } 6603 6604 func (m *ACLEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6605 i := len(dAtA) 6606 _ = i 6607 var l int 6608 _ = l 6609 if m.XXX_unrecognized != nil { 6610 i -= len(m.XXX_unrecognized) 6611 copy(dAtA[i:], m.XXX_unrecognized) 6612 } 6613 if m.Scope != 0 { 6614 i = encodeVarintAuth(dAtA, i, uint64(m.Scope)) 6615 i-- 6616 dAtA[i] = 0x10 6617 } 6618 if len(m.Username) > 0 { 6619 i -= len(m.Username) 6620 copy(dAtA[i:], m.Username) 6621 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 6622 i-- 6623 dAtA[i] = 0xa 6624 } 6625 return len(dAtA) - i, nil 6626 } 6627 6628 func (m *GetACLResponse) Marshal() (dAtA []byte, err error) { 6629 size := m.Size() 6630 dAtA = make([]byte, size) 6631 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6632 if err != nil { 6633 return nil, err 6634 } 6635 return dAtA[:n], nil 6636 } 6637 6638 func (m *GetACLResponse) MarshalTo(dAtA []byte) (int, error) { 6639 size := m.Size() 6640 return m.MarshalToSizedBuffer(dAtA[:size]) 6641 } 6642 6643 func (m *GetACLResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6644 i := len(dAtA) 6645 _ = i 6646 var l int 6647 _ = l 6648 if m.XXX_unrecognized != nil { 6649 i -= len(m.XXX_unrecognized) 6650 copy(dAtA[i:], m.XXX_unrecognized) 6651 } 6652 if len(m.RobotEntries) > 0 { 6653 for iNdEx := len(m.RobotEntries) - 1; iNdEx >= 0; iNdEx-- { 6654 { 6655 size, err := m.RobotEntries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6656 if err != nil { 6657 return 0, err 6658 } 6659 i -= size 6660 i = encodeVarintAuth(dAtA, i, uint64(size)) 6661 } 6662 i-- 6663 dAtA[i] = 0x12 6664 } 6665 } 6666 if len(m.Entries) > 0 { 6667 for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { 6668 { 6669 size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6670 if err != nil { 6671 return 0, err 6672 } 6673 i -= size 6674 i = encodeVarintAuth(dAtA, i, uint64(size)) 6675 } 6676 i-- 6677 dAtA[i] = 0xa 6678 } 6679 } 6680 return len(dAtA) - i, nil 6681 } 6682 6683 func (m *SetACLRequest) Marshal() (dAtA []byte, err error) { 6684 size := m.Size() 6685 dAtA = make([]byte, size) 6686 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6687 if err != nil { 6688 return nil, err 6689 } 6690 return dAtA[:n], nil 6691 } 6692 6693 func (m *SetACLRequest) MarshalTo(dAtA []byte) (int, error) { 6694 size := m.Size() 6695 return m.MarshalToSizedBuffer(dAtA[:size]) 6696 } 6697 6698 func (m *SetACLRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6699 i := len(dAtA) 6700 _ = i 6701 var l int 6702 _ = l 6703 if m.XXX_unrecognized != nil { 6704 i -= len(m.XXX_unrecognized) 6705 copy(dAtA[i:], m.XXX_unrecognized) 6706 } 6707 if len(m.Entries) > 0 { 6708 for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { 6709 { 6710 size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 6711 if err != nil { 6712 return 0, err 6713 } 6714 i -= size 6715 i = encodeVarintAuth(dAtA, i, uint64(size)) 6716 } 6717 i-- 6718 dAtA[i] = 0x12 6719 } 6720 } 6721 if len(m.Repo) > 0 { 6722 i -= len(m.Repo) 6723 copy(dAtA[i:], m.Repo) 6724 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 6725 i-- 6726 dAtA[i] = 0xa 6727 } 6728 return len(dAtA) - i, nil 6729 } 6730 6731 func (m *SetACLResponse) Marshal() (dAtA []byte, err error) { 6732 size := m.Size() 6733 dAtA = make([]byte, size) 6734 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6735 if err != nil { 6736 return nil, err 6737 } 6738 return dAtA[:n], nil 6739 } 6740 6741 func (m *SetACLResponse) MarshalTo(dAtA []byte) (int, error) { 6742 size := m.Size() 6743 return m.MarshalToSizedBuffer(dAtA[:size]) 6744 } 6745 6746 func (m *SetACLResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6747 i := len(dAtA) 6748 _ = i 6749 var l int 6750 _ = l 6751 if m.XXX_unrecognized != nil { 6752 i -= len(m.XXX_unrecognized) 6753 copy(dAtA[i:], m.XXX_unrecognized) 6754 } 6755 return len(dAtA) - i, nil 6756 } 6757 6758 func (m *SessionInfo) Marshal() (dAtA []byte, err error) { 6759 size := m.Size() 6760 dAtA = make([]byte, size) 6761 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6762 if err != nil { 6763 return nil, err 6764 } 6765 return dAtA[:n], nil 6766 } 6767 6768 func (m *SessionInfo) MarshalTo(dAtA []byte) (int, error) { 6769 size := m.Size() 6770 return m.MarshalToSizedBuffer(dAtA[:size]) 6771 } 6772 6773 func (m *SessionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6774 i := len(dAtA) 6775 _ = i 6776 var l int 6777 _ = l 6778 if m.XXX_unrecognized != nil { 6779 i -= len(m.XXX_unrecognized) 6780 copy(dAtA[i:], m.XXX_unrecognized) 6781 } 6782 if m.ConversionErr { 6783 i-- 6784 if m.ConversionErr { 6785 dAtA[i] = 1 6786 } else { 6787 dAtA[i] = 0 6788 } 6789 i-- 6790 dAtA[i] = 0x18 6791 } 6792 if len(m.Email) > 0 { 6793 i -= len(m.Email) 6794 copy(dAtA[i:], m.Email) 6795 i = encodeVarintAuth(dAtA, i, uint64(len(m.Email))) 6796 i-- 6797 dAtA[i] = 0x12 6798 } 6799 if len(m.Nonce) > 0 { 6800 i -= len(m.Nonce) 6801 copy(dAtA[i:], m.Nonce) 6802 i = encodeVarintAuth(dAtA, i, uint64(len(m.Nonce))) 6803 i-- 6804 dAtA[i] = 0xa 6805 } 6806 return len(dAtA) - i, nil 6807 } 6808 6809 func (m *GetOIDCLoginRequest) Marshal() (dAtA []byte, err error) { 6810 size := m.Size() 6811 dAtA = make([]byte, size) 6812 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6813 if err != nil { 6814 return nil, err 6815 } 6816 return dAtA[:n], nil 6817 } 6818 6819 func (m *GetOIDCLoginRequest) MarshalTo(dAtA []byte) (int, error) { 6820 size := m.Size() 6821 return m.MarshalToSizedBuffer(dAtA[:size]) 6822 } 6823 6824 func (m *GetOIDCLoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6825 i := len(dAtA) 6826 _ = i 6827 var l int 6828 _ = l 6829 if m.XXX_unrecognized != nil { 6830 i -= len(m.XXX_unrecognized) 6831 copy(dAtA[i:], m.XXX_unrecognized) 6832 } 6833 return len(dAtA) - i, nil 6834 } 6835 6836 func (m *GetOIDCLoginResponse) Marshal() (dAtA []byte, err error) { 6837 size := m.Size() 6838 dAtA = make([]byte, size) 6839 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6840 if err != nil { 6841 return nil, err 6842 } 6843 return dAtA[:n], nil 6844 } 6845 6846 func (m *GetOIDCLoginResponse) MarshalTo(dAtA []byte) (int, error) { 6847 size := m.Size() 6848 return m.MarshalToSizedBuffer(dAtA[:size]) 6849 } 6850 6851 func (m *GetOIDCLoginResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6852 i := len(dAtA) 6853 _ = i 6854 var l int 6855 _ = l 6856 if m.XXX_unrecognized != nil { 6857 i -= len(m.XXX_unrecognized) 6858 copy(dAtA[i:], m.XXX_unrecognized) 6859 } 6860 if len(m.State) > 0 { 6861 i -= len(m.State) 6862 copy(dAtA[i:], m.State) 6863 i = encodeVarintAuth(dAtA, i, uint64(len(m.State))) 6864 i-- 6865 dAtA[i] = 0x12 6866 } 6867 if len(m.LoginURL) > 0 { 6868 i -= len(m.LoginURL) 6869 copy(dAtA[i:], m.LoginURL) 6870 i = encodeVarintAuth(dAtA, i, uint64(len(m.LoginURL))) 6871 i-- 6872 dAtA[i] = 0xa 6873 } 6874 return len(dAtA) - i, nil 6875 } 6876 6877 func (m *GetAuthTokenRequest) Marshal() (dAtA []byte, err error) { 6878 size := m.Size() 6879 dAtA = make([]byte, size) 6880 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6881 if err != nil { 6882 return nil, err 6883 } 6884 return dAtA[:n], nil 6885 } 6886 6887 func (m *GetAuthTokenRequest) MarshalTo(dAtA []byte) (int, error) { 6888 size := m.Size() 6889 return m.MarshalToSizedBuffer(dAtA[:size]) 6890 } 6891 6892 func (m *GetAuthTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6893 i := len(dAtA) 6894 _ = i 6895 var l int 6896 _ = l 6897 if m.XXX_unrecognized != nil { 6898 i -= len(m.XXX_unrecognized) 6899 copy(dAtA[i:], m.XXX_unrecognized) 6900 } 6901 if m.TTL != 0 { 6902 i = encodeVarintAuth(dAtA, i, uint64(m.TTL)) 6903 i-- 6904 dAtA[i] = 0x10 6905 } 6906 if len(m.Subject) > 0 { 6907 i -= len(m.Subject) 6908 copy(dAtA[i:], m.Subject) 6909 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 6910 i-- 6911 dAtA[i] = 0xa 6912 } 6913 return len(dAtA) - i, nil 6914 } 6915 6916 func (m *GetAuthTokenResponse) Marshal() (dAtA []byte, err error) { 6917 size := m.Size() 6918 dAtA = make([]byte, size) 6919 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6920 if err != nil { 6921 return nil, err 6922 } 6923 return dAtA[:n], nil 6924 } 6925 6926 func (m *GetAuthTokenResponse) MarshalTo(dAtA []byte) (int, error) { 6927 size := m.Size() 6928 return m.MarshalToSizedBuffer(dAtA[:size]) 6929 } 6930 6931 func (m *GetAuthTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6932 i := len(dAtA) 6933 _ = i 6934 var l int 6935 _ = l 6936 if m.XXX_unrecognized != nil { 6937 i -= len(m.XXX_unrecognized) 6938 copy(dAtA[i:], m.XXX_unrecognized) 6939 } 6940 if len(m.Subject) > 0 { 6941 i -= len(m.Subject) 6942 copy(dAtA[i:], m.Subject) 6943 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 6944 i-- 6945 dAtA[i] = 0x12 6946 } 6947 if len(m.Token) > 0 { 6948 i -= len(m.Token) 6949 copy(dAtA[i:], m.Token) 6950 i = encodeVarintAuth(dAtA, i, uint64(len(m.Token))) 6951 i-- 6952 dAtA[i] = 0xa 6953 } 6954 return len(dAtA) - i, nil 6955 } 6956 6957 func (m *ExtendAuthTokenRequest) Marshal() (dAtA []byte, err error) { 6958 size := m.Size() 6959 dAtA = make([]byte, size) 6960 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 6961 if err != nil { 6962 return nil, err 6963 } 6964 return dAtA[:n], nil 6965 } 6966 6967 func (m *ExtendAuthTokenRequest) MarshalTo(dAtA []byte) (int, error) { 6968 size := m.Size() 6969 return m.MarshalToSizedBuffer(dAtA[:size]) 6970 } 6971 6972 func (m *ExtendAuthTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 6973 i := len(dAtA) 6974 _ = i 6975 var l int 6976 _ = l 6977 if m.XXX_unrecognized != nil { 6978 i -= len(m.XXX_unrecognized) 6979 copy(dAtA[i:], m.XXX_unrecognized) 6980 } 6981 if m.TTL != 0 { 6982 i = encodeVarintAuth(dAtA, i, uint64(m.TTL)) 6983 i-- 6984 dAtA[i] = 0x10 6985 } 6986 if len(m.Token) > 0 { 6987 i -= len(m.Token) 6988 copy(dAtA[i:], m.Token) 6989 i = encodeVarintAuth(dAtA, i, uint64(len(m.Token))) 6990 i-- 6991 dAtA[i] = 0xa 6992 } 6993 return len(dAtA) - i, nil 6994 } 6995 6996 func (m *ExtendAuthTokenResponse) Marshal() (dAtA []byte, err error) { 6997 size := m.Size() 6998 dAtA = make([]byte, size) 6999 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7000 if err != nil { 7001 return nil, err 7002 } 7003 return dAtA[:n], nil 7004 } 7005 7006 func (m *ExtendAuthTokenResponse) MarshalTo(dAtA []byte) (int, error) { 7007 size := m.Size() 7008 return m.MarshalToSizedBuffer(dAtA[:size]) 7009 } 7010 7011 func (m *ExtendAuthTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7012 i := len(dAtA) 7013 _ = i 7014 var l int 7015 _ = l 7016 if m.XXX_unrecognized != nil { 7017 i -= len(m.XXX_unrecognized) 7018 copy(dAtA[i:], m.XXX_unrecognized) 7019 } 7020 return len(dAtA) - i, nil 7021 } 7022 7023 func (m *RevokeAuthTokenRequest) Marshal() (dAtA []byte, err error) { 7024 size := m.Size() 7025 dAtA = make([]byte, size) 7026 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7027 if err != nil { 7028 return nil, err 7029 } 7030 return dAtA[:n], nil 7031 } 7032 7033 func (m *RevokeAuthTokenRequest) MarshalTo(dAtA []byte) (int, error) { 7034 size := m.Size() 7035 return m.MarshalToSizedBuffer(dAtA[:size]) 7036 } 7037 7038 func (m *RevokeAuthTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7039 i := len(dAtA) 7040 _ = i 7041 var l int 7042 _ = l 7043 if m.XXX_unrecognized != nil { 7044 i -= len(m.XXX_unrecognized) 7045 copy(dAtA[i:], m.XXX_unrecognized) 7046 } 7047 if len(m.Token) > 0 { 7048 i -= len(m.Token) 7049 copy(dAtA[i:], m.Token) 7050 i = encodeVarintAuth(dAtA, i, uint64(len(m.Token))) 7051 i-- 7052 dAtA[i] = 0xa 7053 } 7054 return len(dAtA) - i, nil 7055 } 7056 7057 func (m *RevokeAuthTokenResponse) Marshal() (dAtA []byte, err error) { 7058 size := m.Size() 7059 dAtA = make([]byte, size) 7060 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7061 if err != nil { 7062 return nil, err 7063 } 7064 return dAtA[:n], nil 7065 } 7066 7067 func (m *RevokeAuthTokenResponse) MarshalTo(dAtA []byte) (int, error) { 7068 size := m.Size() 7069 return m.MarshalToSizedBuffer(dAtA[:size]) 7070 } 7071 7072 func (m *RevokeAuthTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7073 i := len(dAtA) 7074 _ = i 7075 var l int 7076 _ = l 7077 if m.XXX_unrecognized != nil { 7078 i -= len(m.XXX_unrecognized) 7079 copy(dAtA[i:], m.XXX_unrecognized) 7080 } 7081 return len(dAtA) - i, nil 7082 } 7083 7084 func (m *SetGroupsForUserRequest) Marshal() (dAtA []byte, err error) { 7085 size := m.Size() 7086 dAtA = make([]byte, size) 7087 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7088 if err != nil { 7089 return nil, err 7090 } 7091 return dAtA[:n], nil 7092 } 7093 7094 func (m *SetGroupsForUserRequest) MarshalTo(dAtA []byte) (int, error) { 7095 size := m.Size() 7096 return m.MarshalToSizedBuffer(dAtA[:size]) 7097 } 7098 7099 func (m *SetGroupsForUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7100 i := len(dAtA) 7101 _ = i 7102 var l int 7103 _ = l 7104 if m.XXX_unrecognized != nil { 7105 i -= len(m.XXX_unrecognized) 7106 copy(dAtA[i:], m.XXX_unrecognized) 7107 } 7108 if len(m.Groups) > 0 { 7109 for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { 7110 i -= len(m.Groups[iNdEx]) 7111 copy(dAtA[i:], m.Groups[iNdEx]) 7112 i = encodeVarintAuth(dAtA, i, uint64(len(m.Groups[iNdEx]))) 7113 i-- 7114 dAtA[i] = 0x12 7115 } 7116 } 7117 if len(m.Username) > 0 { 7118 i -= len(m.Username) 7119 copy(dAtA[i:], m.Username) 7120 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 7121 i-- 7122 dAtA[i] = 0xa 7123 } 7124 return len(dAtA) - i, nil 7125 } 7126 7127 func (m *SetGroupsForUserResponse) Marshal() (dAtA []byte, err error) { 7128 size := m.Size() 7129 dAtA = make([]byte, size) 7130 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7131 if err != nil { 7132 return nil, err 7133 } 7134 return dAtA[:n], nil 7135 } 7136 7137 func (m *SetGroupsForUserResponse) MarshalTo(dAtA []byte) (int, error) { 7138 size := m.Size() 7139 return m.MarshalToSizedBuffer(dAtA[:size]) 7140 } 7141 7142 func (m *SetGroupsForUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7143 i := len(dAtA) 7144 _ = i 7145 var l int 7146 _ = l 7147 if m.XXX_unrecognized != nil { 7148 i -= len(m.XXX_unrecognized) 7149 copy(dAtA[i:], m.XXX_unrecognized) 7150 } 7151 return len(dAtA) - i, nil 7152 } 7153 7154 func (m *ModifyMembersRequest) Marshal() (dAtA []byte, err error) { 7155 size := m.Size() 7156 dAtA = make([]byte, size) 7157 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7158 if err != nil { 7159 return nil, err 7160 } 7161 return dAtA[:n], nil 7162 } 7163 7164 func (m *ModifyMembersRequest) MarshalTo(dAtA []byte) (int, error) { 7165 size := m.Size() 7166 return m.MarshalToSizedBuffer(dAtA[:size]) 7167 } 7168 7169 func (m *ModifyMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7170 i := len(dAtA) 7171 _ = i 7172 var l int 7173 _ = l 7174 if m.XXX_unrecognized != nil { 7175 i -= len(m.XXX_unrecognized) 7176 copy(dAtA[i:], m.XXX_unrecognized) 7177 } 7178 if len(m.Remove) > 0 { 7179 for iNdEx := len(m.Remove) - 1; iNdEx >= 0; iNdEx-- { 7180 i -= len(m.Remove[iNdEx]) 7181 copy(dAtA[i:], m.Remove[iNdEx]) 7182 i = encodeVarintAuth(dAtA, i, uint64(len(m.Remove[iNdEx]))) 7183 i-- 7184 dAtA[i] = 0x1a 7185 } 7186 } 7187 if len(m.Add) > 0 { 7188 for iNdEx := len(m.Add) - 1; iNdEx >= 0; iNdEx-- { 7189 i -= len(m.Add[iNdEx]) 7190 copy(dAtA[i:], m.Add[iNdEx]) 7191 i = encodeVarintAuth(dAtA, i, uint64(len(m.Add[iNdEx]))) 7192 i-- 7193 dAtA[i] = 0x12 7194 } 7195 } 7196 if len(m.Group) > 0 { 7197 i -= len(m.Group) 7198 copy(dAtA[i:], m.Group) 7199 i = encodeVarintAuth(dAtA, i, uint64(len(m.Group))) 7200 i-- 7201 dAtA[i] = 0xa 7202 } 7203 return len(dAtA) - i, nil 7204 } 7205 7206 func (m *ModifyMembersResponse) Marshal() (dAtA []byte, err error) { 7207 size := m.Size() 7208 dAtA = make([]byte, size) 7209 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7210 if err != nil { 7211 return nil, err 7212 } 7213 return dAtA[:n], nil 7214 } 7215 7216 func (m *ModifyMembersResponse) MarshalTo(dAtA []byte) (int, error) { 7217 size := m.Size() 7218 return m.MarshalToSizedBuffer(dAtA[:size]) 7219 } 7220 7221 func (m *ModifyMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7222 i := len(dAtA) 7223 _ = i 7224 var l int 7225 _ = l 7226 if m.XXX_unrecognized != nil { 7227 i -= len(m.XXX_unrecognized) 7228 copy(dAtA[i:], m.XXX_unrecognized) 7229 } 7230 return len(dAtA) - i, nil 7231 } 7232 7233 func (m *GetGroupsRequest) Marshal() (dAtA []byte, err error) { 7234 size := m.Size() 7235 dAtA = make([]byte, size) 7236 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7237 if err != nil { 7238 return nil, err 7239 } 7240 return dAtA[:n], nil 7241 } 7242 7243 func (m *GetGroupsRequest) MarshalTo(dAtA []byte) (int, error) { 7244 size := m.Size() 7245 return m.MarshalToSizedBuffer(dAtA[:size]) 7246 } 7247 7248 func (m *GetGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7249 i := len(dAtA) 7250 _ = i 7251 var l int 7252 _ = l 7253 if m.XXX_unrecognized != nil { 7254 i -= len(m.XXX_unrecognized) 7255 copy(dAtA[i:], m.XXX_unrecognized) 7256 } 7257 if len(m.Username) > 0 { 7258 i -= len(m.Username) 7259 copy(dAtA[i:], m.Username) 7260 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 7261 i-- 7262 dAtA[i] = 0xa 7263 } 7264 return len(dAtA) - i, nil 7265 } 7266 7267 func (m *GetGroupsResponse) Marshal() (dAtA []byte, err error) { 7268 size := m.Size() 7269 dAtA = make([]byte, size) 7270 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7271 if err != nil { 7272 return nil, err 7273 } 7274 return dAtA[:n], nil 7275 } 7276 7277 func (m *GetGroupsResponse) MarshalTo(dAtA []byte) (int, error) { 7278 size := m.Size() 7279 return m.MarshalToSizedBuffer(dAtA[:size]) 7280 } 7281 7282 func (m *GetGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7283 i := len(dAtA) 7284 _ = i 7285 var l int 7286 _ = l 7287 if m.XXX_unrecognized != nil { 7288 i -= len(m.XXX_unrecognized) 7289 copy(dAtA[i:], m.XXX_unrecognized) 7290 } 7291 if len(m.Groups) > 0 { 7292 for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { 7293 i -= len(m.Groups[iNdEx]) 7294 copy(dAtA[i:], m.Groups[iNdEx]) 7295 i = encodeVarintAuth(dAtA, i, uint64(len(m.Groups[iNdEx]))) 7296 i-- 7297 dAtA[i] = 0xa 7298 } 7299 } 7300 return len(dAtA) - i, nil 7301 } 7302 7303 func (m *GetUsersRequest) Marshal() (dAtA []byte, err error) { 7304 size := m.Size() 7305 dAtA = make([]byte, size) 7306 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7307 if err != nil { 7308 return nil, err 7309 } 7310 return dAtA[:n], nil 7311 } 7312 7313 func (m *GetUsersRequest) MarshalTo(dAtA []byte) (int, error) { 7314 size := m.Size() 7315 return m.MarshalToSizedBuffer(dAtA[:size]) 7316 } 7317 7318 func (m *GetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7319 i := len(dAtA) 7320 _ = i 7321 var l int 7322 _ = l 7323 if m.XXX_unrecognized != nil { 7324 i -= len(m.XXX_unrecognized) 7325 copy(dAtA[i:], m.XXX_unrecognized) 7326 } 7327 if len(m.Group) > 0 { 7328 i -= len(m.Group) 7329 copy(dAtA[i:], m.Group) 7330 i = encodeVarintAuth(dAtA, i, uint64(len(m.Group))) 7331 i-- 7332 dAtA[i] = 0xa 7333 } 7334 return len(dAtA) - i, nil 7335 } 7336 7337 func (m *GetUsersResponse) Marshal() (dAtA []byte, err error) { 7338 size := m.Size() 7339 dAtA = make([]byte, size) 7340 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7341 if err != nil { 7342 return nil, err 7343 } 7344 return dAtA[:n], nil 7345 } 7346 7347 func (m *GetUsersResponse) MarshalTo(dAtA []byte) (int, error) { 7348 size := m.Size() 7349 return m.MarshalToSizedBuffer(dAtA[:size]) 7350 } 7351 7352 func (m *GetUsersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7353 i := len(dAtA) 7354 _ = i 7355 var l int 7356 _ = l 7357 if m.XXX_unrecognized != nil { 7358 i -= len(m.XXX_unrecognized) 7359 copy(dAtA[i:], m.XXX_unrecognized) 7360 } 7361 if len(m.Usernames) > 0 { 7362 for iNdEx := len(m.Usernames) - 1; iNdEx >= 0; iNdEx-- { 7363 i -= len(m.Usernames[iNdEx]) 7364 copy(dAtA[i:], m.Usernames[iNdEx]) 7365 i = encodeVarintAuth(dAtA, i, uint64(len(m.Usernames[iNdEx]))) 7366 i-- 7367 dAtA[i] = 0xa 7368 } 7369 } 7370 return len(dAtA) - i, nil 7371 } 7372 7373 func (m *GetOneTimePasswordRequest) Marshal() (dAtA []byte, err error) { 7374 size := m.Size() 7375 dAtA = make([]byte, size) 7376 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7377 if err != nil { 7378 return nil, err 7379 } 7380 return dAtA[:n], nil 7381 } 7382 7383 func (m *GetOneTimePasswordRequest) MarshalTo(dAtA []byte) (int, error) { 7384 size := m.Size() 7385 return m.MarshalToSizedBuffer(dAtA[:size]) 7386 } 7387 7388 func (m *GetOneTimePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7389 i := len(dAtA) 7390 _ = i 7391 var l int 7392 _ = l 7393 if m.XXX_unrecognized != nil { 7394 i -= len(m.XXX_unrecognized) 7395 copy(dAtA[i:], m.XXX_unrecognized) 7396 } 7397 if m.TTL != 0 { 7398 i = encodeVarintAuth(dAtA, i, uint64(m.TTL)) 7399 i-- 7400 dAtA[i] = 0x10 7401 } 7402 if len(m.Subject) > 0 { 7403 i -= len(m.Subject) 7404 copy(dAtA[i:], m.Subject) 7405 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 7406 i-- 7407 dAtA[i] = 0xa 7408 } 7409 return len(dAtA) - i, nil 7410 } 7411 7412 func (m *GetOneTimePasswordResponse) Marshal() (dAtA []byte, err error) { 7413 size := m.Size() 7414 dAtA = make([]byte, size) 7415 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7416 if err != nil { 7417 return nil, err 7418 } 7419 return dAtA[:n], nil 7420 } 7421 7422 func (m *GetOneTimePasswordResponse) MarshalTo(dAtA []byte) (int, error) { 7423 size := m.Size() 7424 return m.MarshalToSizedBuffer(dAtA[:size]) 7425 } 7426 7427 func (m *GetOneTimePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7428 i := len(dAtA) 7429 _ = i 7430 var l int 7431 _ = l 7432 if m.XXX_unrecognized != nil { 7433 i -= len(m.XXX_unrecognized) 7434 copy(dAtA[i:], m.XXX_unrecognized) 7435 } 7436 if m.OTPExpiration != nil { 7437 { 7438 size, err := m.OTPExpiration.MarshalToSizedBuffer(dAtA[:i]) 7439 if err != nil { 7440 return 0, err 7441 } 7442 i -= size 7443 i = encodeVarintAuth(dAtA, i, uint64(size)) 7444 } 7445 i-- 7446 dAtA[i] = 0x12 7447 } 7448 if len(m.Code) > 0 { 7449 i -= len(m.Code) 7450 copy(dAtA[i:], m.Code) 7451 i = encodeVarintAuth(dAtA, i, uint64(len(m.Code))) 7452 i-- 7453 dAtA[i] = 0xa 7454 } 7455 return len(dAtA) - i, nil 7456 } 7457 7458 func (m *HashedAuthToken) Marshal() (dAtA []byte, err error) { 7459 size := m.Size() 7460 dAtA = make([]byte, size) 7461 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7462 if err != nil { 7463 return nil, err 7464 } 7465 return dAtA[:n], nil 7466 } 7467 7468 func (m *HashedAuthToken) MarshalTo(dAtA []byte) (int, error) { 7469 size := m.Size() 7470 return m.MarshalToSizedBuffer(dAtA[:size]) 7471 } 7472 7473 func (m *HashedAuthToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7474 i := len(dAtA) 7475 _ = i 7476 var l int 7477 _ = l 7478 if m.XXX_unrecognized != nil { 7479 i -= len(m.XXX_unrecognized) 7480 copy(dAtA[i:], m.XXX_unrecognized) 7481 } 7482 if m.Expiration != nil { 7483 { 7484 size, err := m.Expiration.MarshalToSizedBuffer(dAtA[:i]) 7485 if err != nil { 7486 return 0, err 7487 } 7488 i -= size 7489 i = encodeVarintAuth(dAtA, i, uint64(size)) 7490 } 7491 i-- 7492 dAtA[i] = 0x1a 7493 } 7494 if m.TokenInfo != nil { 7495 { 7496 size, err := m.TokenInfo.MarshalToSizedBuffer(dAtA[:i]) 7497 if err != nil { 7498 return 0, err 7499 } 7500 i -= size 7501 i = encodeVarintAuth(dAtA, i, uint64(size)) 7502 } 7503 i-- 7504 dAtA[i] = 0x12 7505 } 7506 if len(m.HashedToken) > 0 { 7507 i -= len(m.HashedToken) 7508 copy(dAtA[i:], m.HashedToken) 7509 i = encodeVarintAuth(dAtA, i, uint64(len(m.HashedToken))) 7510 i-- 7511 dAtA[i] = 0xa 7512 } 7513 return len(dAtA) - i, nil 7514 } 7515 7516 func (m *ExtractAuthTokensRequest) Marshal() (dAtA []byte, err error) { 7517 size := m.Size() 7518 dAtA = make([]byte, size) 7519 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7520 if err != nil { 7521 return nil, err 7522 } 7523 return dAtA[:n], nil 7524 } 7525 7526 func (m *ExtractAuthTokensRequest) MarshalTo(dAtA []byte) (int, error) { 7527 size := m.Size() 7528 return m.MarshalToSizedBuffer(dAtA[:size]) 7529 } 7530 7531 func (m *ExtractAuthTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7532 i := len(dAtA) 7533 _ = i 7534 var l int 7535 _ = l 7536 if m.XXX_unrecognized != nil { 7537 i -= len(m.XXX_unrecognized) 7538 copy(dAtA[i:], m.XXX_unrecognized) 7539 } 7540 return len(dAtA) - i, nil 7541 } 7542 7543 func (m *ExtractAuthTokensResponse) Marshal() (dAtA []byte, err error) { 7544 size := m.Size() 7545 dAtA = make([]byte, size) 7546 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7547 if err != nil { 7548 return nil, err 7549 } 7550 return dAtA[:n], nil 7551 } 7552 7553 func (m *ExtractAuthTokensResponse) MarshalTo(dAtA []byte) (int, error) { 7554 size := m.Size() 7555 return m.MarshalToSizedBuffer(dAtA[:size]) 7556 } 7557 7558 func (m *ExtractAuthTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7559 i := len(dAtA) 7560 _ = i 7561 var l int 7562 _ = l 7563 if m.XXX_unrecognized != nil { 7564 i -= len(m.XXX_unrecognized) 7565 copy(dAtA[i:], m.XXX_unrecognized) 7566 } 7567 if len(m.Tokens) > 0 { 7568 for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { 7569 { 7570 size, err := m.Tokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 7571 if err != nil { 7572 return 0, err 7573 } 7574 i -= size 7575 i = encodeVarintAuth(dAtA, i, uint64(size)) 7576 } 7577 i-- 7578 dAtA[i] = 0xa 7579 } 7580 } 7581 return len(dAtA) - i, nil 7582 } 7583 7584 func (m *RestoreAuthTokenRequest) Marshal() (dAtA []byte, err error) { 7585 size := m.Size() 7586 dAtA = make([]byte, size) 7587 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7588 if err != nil { 7589 return nil, err 7590 } 7591 return dAtA[:n], nil 7592 } 7593 7594 func (m *RestoreAuthTokenRequest) MarshalTo(dAtA []byte) (int, error) { 7595 size := m.Size() 7596 return m.MarshalToSizedBuffer(dAtA[:size]) 7597 } 7598 7599 func (m *RestoreAuthTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7600 i := len(dAtA) 7601 _ = i 7602 var l int 7603 _ = l 7604 if m.XXX_unrecognized != nil { 7605 i -= len(m.XXX_unrecognized) 7606 copy(dAtA[i:], m.XXX_unrecognized) 7607 } 7608 if m.Token != nil { 7609 { 7610 size, err := m.Token.MarshalToSizedBuffer(dAtA[:i]) 7611 if err != nil { 7612 return 0, err 7613 } 7614 i -= size 7615 i = encodeVarintAuth(dAtA, i, uint64(size)) 7616 } 7617 i-- 7618 dAtA[i] = 0xa 7619 } 7620 return len(dAtA) - i, nil 7621 } 7622 7623 func (m *RestoreAuthTokenResponse) Marshal() (dAtA []byte, err error) { 7624 size := m.Size() 7625 dAtA = make([]byte, size) 7626 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 7627 if err != nil { 7628 return nil, err 7629 } 7630 return dAtA[:n], nil 7631 } 7632 7633 func (m *RestoreAuthTokenResponse) MarshalTo(dAtA []byte) (int, error) { 7634 size := m.Size() 7635 return m.MarshalToSizedBuffer(dAtA[:size]) 7636 } 7637 7638 func (m *RestoreAuthTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 7639 i := len(dAtA) 7640 _ = i 7641 var l int 7642 _ = l 7643 if m.XXX_unrecognized != nil { 7644 i -= len(m.XXX_unrecognized) 7645 copy(dAtA[i:], m.XXX_unrecognized) 7646 } 7647 return len(dAtA) - i, nil 7648 } 7649 7650 func encodeVarintAuth(dAtA []byte, offset int, v uint64) int { 7651 offset -= sovAuth(v) 7652 base := offset 7653 for v >= 1<<7 { 7654 dAtA[offset] = uint8(v&0x7f | 0x80) 7655 v >>= 7 7656 offset++ 7657 } 7658 dAtA[offset] = uint8(v) 7659 return base 7660 } 7661 func (m *ActivateRequest) Size() (n int) { 7662 if m == nil { 7663 return 0 7664 } 7665 var l int 7666 _ = l 7667 l = len(m.GitHubToken) 7668 if l > 0 { 7669 n += 1 + l + sovAuth(uint64(l)) 7670 } 7671 l = len(m.Subject) 7672 if l > 0 { 7673 n += 1 + l + sovAuth(uint64(l)) 7674 } 7675 l = len(m.RootToken) 7676 if l > 0 { 7677 n += 1 + l + sovAuth(uint64(l)) 7678 } 7679 if m.XXX_unrecognized != nil { 7680 n += len(m.XXX_unrecognized) 7681 } 7682 return n 7683 } 7684 7685 func (m *ActivateResponse) Size() (n int) { 7686 if m == nil { 7687 return 0 7688 } 7689 var l int 7690 _ = l 7691 l = len(m.PachToken) 7692 if l > 0 { 7693 n += 1 + l + sovAuth(uint64(l)) 7694 } 7695 if m.XXX_unrecognized != nil { 7696 n += len(m.XXX_unrecognized) 7697 } 7698 return n 7699 } 7700 7701 func (m *DeactivateRequest) Size() (n int) { 7702 if m == nil { 7703 return 0 7704 } 7705 var l int 7706 _ = l 7707 if m.XXX_unrecognized != nil { 7708 n += len(m.XXX_unrecognized) 7709 } 7710 return n 7711 } 7712 7713 func (m *DeactivateResponse) Size() (n int) { 7714 if m == nil { 7715 return 0 7716 } 7717 var l int 7718 _ = l 7719 if m.XXX_unrecognized != nil { 7720 n += len(m.XXX_unrecognized) 7721 } 7722 return n 7723 } 7724 7725 func (m *IDProvider) Size() (n int) { 7726 if m == nil { 7727 return 0 7728 } 7729 var l int 7730 _ = l 7731 l = len(m.Name) 7732 if l > 0 { 7733 n += 1 + l + sovAuth(uint64(l)) 7734 } 7735 l = len(m.Description) 7736 if l > 0 { 7737 n += 1 + l + sovAuth(uint64(l)) 7738 } 7739 if m.SAML != nil { 7740 l = m.SAML.Size() 7741 n += 1 + l + sovAuth(uint64(l)) 7742 } 7743 if m.GitHub != nil { 7744 l = m.GitHub.Size() 7745 n += 1 + l + sovAuth(uint64(l)) 7746 } 7747 if m.OIDC != nil { 7748 l = m.OIDC.Size() 7749 n += 1 + l + sovAuth(uint64(l)) 7750 } 7751 if m.XXX_unrecognized != nil { 7752 n += len(m.XXX_unrecognized) 7753 } 7754 return n 7755 } 7756 7757 func (m *IDProvider_SAMLOptions) Size() (n int) { 7758 if m == nil { 7759 return 0 7760 } 7761 var l int 7762 _ = l 7763 l = len(m.MetadataURL) 7764 if l > 0 { 7765 n += 1 + l + sovAuth(uint64(l)) 7766 } 7767 l = len(m.MetadataXML) 7768 if l > 0 { 7769 n += 1 + l + sovAuth(uint64(l)) 7770 } 7771 l = len(m.GroupAttribute) 7772 if l > 0 { 7773 n += 1 + l + sovAuth(uint64(l)) 7774 } 7775 if m.XXX_unrecognized != nil { 7776 n += len(m.XXX_unrecognized) 7777 } 7778 return n 7779 } 7780 7781 func (m *IDProvider_OIDCOptions) Size() (n int) { 7782 if m == nil { 7783 return 0 7784 } 7785 var l int 7786 _ = l 7787 l = len(m.Issuer) 7788 if l > 0 { 7789 n += 1 + l + sovAuth(uint64(l)) 7790 } 7791 l = len(m.ClientID) 7792 if l > 0 { 7793 n += 1 + l + sovAuth(uint64(l)) 7794 } 7795 l = len(m.ClientSecret) 7796 if l > 0 { 7797 n += 1 + l + sovAuth(uint64(l)) 7798 } 7799 l = len(m.RedirectURI) 7800 if l > 0 { 7801 n += 1 + l + sovAuth(uint64(l)) 7802 } 7803 if len(m.AdditionalScopes) > 0 { 7804 for _, s := range m.AdditionalScopes { 7805 l = len(s) 7806 n += 1 + l + sovAuth(uint64(l)) 7807 } 7808 } 7809 if m.IgnoreEmailVerified { 7810 n += 2 7811 } 7812 if m.XXX_unrecognized != nil { 7813 n += len(m.XXX_unrecognized) 7814 } 7815 return n 7816 } 7817 7818 func (m *IDProvider_GitHubOptions) Size() (n int) { 7819 if m == nil { 7820 return 0 7821 } 7822 var l int 7823 _ = l 7824 if m.XXX_unrecognized != nil { 7825 n += len(m.XXX_unrecognized) 7826 } 7827 return n 7828 } 7829 7830 func (m *AuthConfig) Size() (n int) { 7831 if m == nil { 7832 return 0 7833 } 7834 var l int 7835 _ = l 7836 if m.LiveConfigVersion != 0 { 7837 n += 1 + sovAuth(uint64(m.LiveConfigVersion)) 7838 } 7839 if len(m.IDProviders) > 0 { 7840 for _, e := range m.IDProviders { 7841 l = e.Size() 7842 n += 1 + l + sovAuth(uint64(l)) 7843 } 7844 } 7845 if m.SAMLServiceOptions != nil { 7846 l = m.SAMLServiceOptions.Size() 7847 n += 1 + l + sovAuth(uint64(l)) 7848 } 7849 if m.XXX_unrecognized != nil { 7850 n += len(m.XXX_unrecognized) 7851 } 7852 return n 7853 } 7854 7855 func (m *AuthConfig_SAMLServiceOptions) Size() (n int) { 7856 if m == nil { 7857 return 0 7858 } 7859 var l int 7860 _ = l 7861 l = len(m.ACSURL) 7862 if l > 0 { 7863 n += 1 + l + sovAuth(uint64(l)) 7864 } 7865 l = len(m.MetadataURL) 7866 if l > 0 { 7867 n += 1 + l + sovAuth(uint64(l)) 7868 } 7869 l = len(m.DashURL) 7870 if l > 0 { 7871 n += 1 + l + sovAuth(uint64(l)) 7872 } 7873 l = len(m.SessionDuration) 7874 if l > 0 { 7875 n += 1 + l + sovAuth(uint64(l)) 7876 } 7877 if m.DebugLogging { 7878 n += 2 7879 } 7880 if m.XXX_unrecognized != nil { 7881 n += len(m.XXX_unrecognized) 7882 } 7883 return n 7884 } 7885 7886 func (m *GetConfigurationRequest) Size() (n int) { 7887 if m == nil { 7888 return 0 7889 } 7890 var l int 7891 _ = l 7892 if m.XXX_unrecognized != nil { 7893 n += len(m.XXX_unrecognized) 7894 } 7895 return n 7896 } 7897 7898 func (m *GetConfigurationResponse) Size() (n int) { 7899 if m == nil { 7900 return 0 7901 } 7902 var l int 7903 _ = l 7904 if m.Configuration != nil { 7905 l = m.Configuration.Size() 7906 n += 1 + l + sovAuth(uint64(l)) 7907 } 7908 if m.XXX_unrecognized != nil { 7909 n += len(m.XXX_unrecognized) 7910 } 7911 return n 7912 } 7913 7914 func (m *SetConfigurationRequest) Size() (n int) { 7915 if m == nil { 7916 return 0 7917 } 7918 var l int 7919 _ = l 7920 if m.Configuration != nil { 7921 l = m.Configuration.Size() 7922 n += 1 + l + sovAuth(uint64(l)) 7923 } 7924 if m.XXX_unrecognized != nil { 7925 n += len(m.XXX_unrecognized) 7926 } 7927 return n 7928 } 7929 7930 func (m *SetConfigurationResponse) Size() (n int) { 7931 if m == nil { 7932 return 0 7933 } 7934 var l int 7935 _ = l 7936 if m.XXX_unrecognized != nil { 7937 n += len(m.XXX_unrecognized) 7938 } 7939 return n 7940 } 7941 7942 func (m *ClusterRoles) Size() (n int) { 7943 if m == nil { 7944 return 0 7945 } 7946 var l int 7947 _ = l 7948 if len(m.Roles) > 0 { 7949 l = 0 7950 for _, e := range m.Roles { 7951 l += sovAuth(uint64(e)) 7952 } 7953 n += 1 + sovAuth(uint64(l)) + l 7954 } 7955 if m.XXX_unrecognized != nil { 7956 n += len(m.XXX_unrecognized) 7957 } 7958 return n 7959 } 7960 7961 func (m *GetClusterRoleBindingsRequest) Size() (n int) { 7962 if m == nil { 7963 return 0 7964 } 7965 var l int 7966 _ = l 7967 if m.XXX_unrecognized != nil { 7968 n += len(m.XXX_unrecognized) 7969 } 7970 return n 7971 } 7972 7973 func (m *GetClusterRoleBindingsResponse) Size() (n int) { 7974 if m == nil { 7975 return 0 7976 } 7977 var l int 7978 _ = l 7979 if len(m.Bindings) > 0 { 7980 for k, v := range m.Bindings { 7981 _ = k 7982 _ = v 7983 l = 0 7984 if v != nil { 7985 l = v.Size() 7986 l += 1 + sovAuth(uint64(l)) 7987 } 7988 mapEntrySize := 1 + len(k) + sovAuth(uint64(len(k))) + l 7989 n += mapEntrySize + 1 + sovAuth(uint64(mapEntrySize)) 7990 } 7991 } 7992 if m.XXX_unrecognized != nil { 7993 n += len(m.XXX_unrecognized) 7994 } 7995 return n 7996 } 7997 7998 func (m *ModifyClusterRoleBindingRequest) Size() (n int) { 7999 if m == nil { 8000 return 0 8001 } 8002 var l int 8003 _ = l 8004 l = len(m.Principal) 8005 if l > 0 { 8006 n += 1 + l + sovAuth(uint64(l)) 8007 } 8008 if m.Roles != nil { 8009 l = m.Roles.Size() 8010 n += 1 + l + sovAuth(uint64(l)) 8011 } 8012 if m.XXX_unrecognized != nil { 8013 n += len(m.XXX_unrecognized) 8014 } 8015 return n 8016 } 8017 8018 func (m *ModifyClusterRoleBindingResponse) Size() (n int) { 8019 if m == nil { 8020 return 0 8021 } 8022 var l int 8023 _ = l 8024 if m.XXX_unrecognized != nil { 8025 n += len(m.XXX_unrecognized) 8026 } 8027 return n 8028 } 8029 8030 func (m *GetAdminsRequest) Size() (n int) { 8031 if m == nil { 8032 return 0 8033 } 8034 var l int 8035 _ = l 8036 if m.XXX_unrecognized != nil { 8037 n += len(m.XXX_unrecognized) 8038 } 8039 return n 8040 } 8041 8042 func (m *GetAdminsResponse) Size() (n int) { 8043 if m == nil { 8044 return 0 8045 } 8046 var l int 8047 _ = l 8048 if len(m.Admins) > 0 { 8049 for _, s := range m.Admins { 8050 l = len(s) 8051 n += 1 + l + sovAuth(uint64(l)) 8052 } 8053 } 8054 if m.XXX_unrecognized != nil { 8055 n += len(m.XXX_unrecognized) 8056 } 8057 return n 8058 } 8059 8060 func (m *ModifyAdminsRequest) Size() (n int) { 8061 if m == nil { 8062 return 0 8063 } 8064 var l int 8065 _ = l 8066 if len(m.Add) > 0 { 8067 for _, s := range m.Add { 8068 l = len(s) 8069 n += 1 + l + sovAuth(uint64(l)) 8070 } 8071 } 8072 if len(m.Remove) > 0 { 8073 for _, s := range m.Remove { 8074 l = len(s) 8075 n += 1 + l + sovAuth(uint64(l)) 8076 } 8077 } 8078 if m.XXX_unrecognized != nil { 8079 n += len(m.XXX_unrecognized) 8080 } 8081 return n 8082 } 8083 8084 func (m *ModifyAdminsResponse) Size() (n int) { 8085 if m == nil { 8086 return 0 8087 } 8088 var l int 8089 _ = l 8090 if m.XXX_unrecognized != nil { 8091 n += len(m.XXX_unrecognized) 8092 } 8093 return n 8094 } 8095 8096 func (m *OTPInfo) Size() (n int) { 8097 if m == nil { 8098 return 0 8099 } 8100 var l int 8101 _ = l 8102 l = len(m.Subject) 8103 if l > 0 { 8104 n += 1 + l + sovAuth(uint64(l)) 8105 } 8106 if m.SessionExpiration != nil { 8107 l = m.SessionExpiration.Size() 8108 n += 1 + l + sovAuth(uint64(l)) 8109 } 8110 if m.XXX_unrecognized != nil { 8111 n += len(m.XXX_unrecognized) 8112 } 8113 return n 8114 } 8115 8116 func (m *TokenInfo) Size() (n int) { 8117 if m == nil { 8118 return 0 8119 } 8120 var l int 8121 _ = l 8122 l = len(m.Subject) 8123 if l > 0 { 8124 n += 1 + l + sovAuth(uint64(l)) 8125 } 8126 if m.Source != 0 { 8127 n += 1 + sovAuth(uint64(m.Source)) 8128 } 8129 if m.XXX_unrecognized != nil { 8130 n += len(m.XXX_unrecognized) 8131 } 8132 return n 8133 } 8134 8135 func (m *AuthenticateRequest) Size() (n int) { 8136 if m == nil { 8137 return 0 8138 } 8139 var l int 8140 _ = l 8141 l = len(m.GitHubToken) 8142 if l > 0 { 8143 n += 1 + l + sovAuth(uint64(l)) 8144 } 8145 l = len(m.OneTimePassword) 8146 if l > 0 { 8147 n += 1 + l + sovAuth(uint64(l)) 8148 } 8149 l = len(m.OIDCState) 8150 if l > 0 { 8151 n += 1 + l + sovAuth(uint64(l)) 8152 } 8153 l = len(m.IdToken) 8154 if l > 0 { 8155 n += 1 + l + sovAuth(uint64(l)) 8156 } 8157 if m.XXX_unrecognized != nil { 8158 n += len(m.XXX_unrecognized) 8159 } 8160 return n 8161 } 8162 8163 func (m *AuthenticateResponse) Size() (n int) { 8164 if m == nil { 8165 return 0 8166 } 8167 var l int 8168 _ = l 8169 l = len(m.PachToken) 8170 if l > 0 { 8171 n += 1 + l + sovAuth(uint64(l)) 8172 } 8173 if m.XXX_unrecognized != nil { 8174 n += len(m.XXX_unrecognized) 8175 } 8176 return n 8177 } 8178 8179 func (m *WhoAmIRequest) Size() (n int) { 8180 if m == nil { 8181 return 0 8182 } 8183 var l int 8184 _ = l 8185 if m.XXX_unrecognized != nil { 8186 n += len(m.XXX_unrecognized) 8187 } 8188 return n 8189 } 8190 8191 func (m *WhoAmIResponse) Size() (n int) { 8192 if m == nil { 8193 return 0 8194 } 8195 var l int 8196 _ = l 8197 l = len(m.Username) 8198 if l > 0 { 8199 n += 1 + l + sovAuth(uint64(l)) 8200 } 8201 if m.IsAdmin { 8202 n += 2 8203 } 8204 if m.TTL != 0 { 8205 n += 1 + sovAuth(uint64(m.TTL)) 8206 } 8207 if m.ClusterRoles != nil { 8208 l = m.ClusterRoles.Size() 8209 n += 1 + l + sovAuth(uint64(l)) 8210 } 8211 if m.XXX_unrecognized != nil { 8212 n += len(m.XXX_unrecognized) 8213 } 8214 return n 8215 } 8216 8217 func (m *ACL) Size() (n int) { 8218 if m == nil { 8219 return 0 8220 } 8221 var l int 8222 _ = l 8223 if len(m.Entries) > 0 { 8224 for k, v := range m.Entries { 8225 _ = k 8226 _ = v 8227 mapEntrySize := 1 + len(k) + sovAuth(uint64(len(k))) + 1 + sovAuth(uint64(v)) 8228 n += mapEntrySize + 1 + sovAuth(uint64(mapEntrySize)) 8229 } 8230 } 8231 if m.XXX_unrecognized != nil { 8232 n += len(m.XXX_unrecognized) 8233 } 8234 return n 8235 } 8236 8237 func (m *Users) Size() (n int) { 8238 if m == nil { 8239 return 0 8240 } 8241 var l int 8242 _ = l 8243 if len(m.Usernames) > 0 { 8244 for k, v := range m.Usernames { 8245 _ = k 8246 _ = v 8247 mapEntrySize := 1 + len(k) + sovAuth(uint64(len(k))) + 1 + 1 8248 n += mapEntrySize + 1 + sovAuth(uint64(mapEntrySize)) 8249 } 8250 } 8251 if m.XXX_unrecognized != nil { 8252 n += len(m.XXX_unrecognized) 8253 } 8254 return n 8255 } 8256 8257 func (m *Groups) Size() (n int) { 8258 if m == nil { 8259 return 0 8260 } 8261 var l int 8262 _ = l 8263 if len(m.Groups) > 0 { 8264 for k, v := range m.Groups { 8265 _ = k 8266 _ = v 8267 mapEntrySize := 1 + len(k) + sovAuth(uint64(len(k))) + 1 + 1 8268 n += mapEntrySize + 1 + sovAuth(uint64(mapEntrySize)) 8269 } 8270 } 8271 if m.XXX_unrecognized != nil { 8272 n += len(m.XXX_unrecognized) 8273 } 8274 return n 8275 } 8276 8277 func (m *AuthorizeRequest) Size() (n int) { 8278 if m == nil { 8279 return 0 8280 } 8281 var l int 8282 _ = l 8283 l = len(m.Repo) 8284 if l > 0 { 8285 n += 1 + l + sovAuth(uint64(l)) 8286 } 8287 if m.Scope != 0 { 8288 n += 1 + sovAuth(uint64(m.Scope)) 8289 } 8290 if m.XXX_unrecognized != nil { 8291 n += len(m.XXX_unrecognized) 8292 } 8293 return n 8294 } 8295 8296 func (m *AuthorizeResponse) Size() (n int) { 8297 if m == nil { 8298 return 0 8299 } 8300 var l int 8301 _ = l 8302 if m.Authorized { 8303 n += 2 8304 } 8305 if m.XXX_unrecognized != nil { 8306 n += len(m.XXX_unrecognized) 8307 } 8308 return n 8309 } 8310 8311 func (m *GetScopeRequest) Size() (n int) { 8312 if m == nil { 8313 return 0 8314 } 8315 var l int 8316 _ = l 8317 l = len(m.Username) 8318 if l > 0 { 8319 n += 1 + l + sovAuth(uint64(l)) 8320 } 8321 if len(m.Repos) > 0 { 8322 for _, s := range m.Repos { 8323 l = len(s) 8324 n += 1 + l + sovAuth(uint64(l)) 8325 } 8326 } 8327 if m.XXX_unrecognized != nil { 8328 n += len(m.XXX_unrecognized) 8329 } 8330 return n 8331 } 8332 8333 func (m *GetScopeResponse) Size() (n int) { 8334 if m == nil { 8335 return 0 8336 } 8337 var l int 8338 _ = l 8339 if len(m.Scopes) > 0 { 8340 l = 0 8341 for _, e := range m.Scopes { 8342 l += sovAuth(uint64(e)) 8343 } 8344 n += 1 + sovAuth(uint64(l)) + l 8345 } 8346 if m.XXX_unrecognized != nil { 8347 n += len(m.XXX_unrecognized) 8348 } 8349 return n 8350 } 8351 8352 func (m *SetScopeRequest) Size() (n int) { 8353 if m == nil { 8354 return 0 8355 } 8356 var l int 8357 _ = l 8358 l = len(m.Username) 8359 if l > 0 { 8360 n += 1 + l + sovAuth(uint64(l)) 8361 } 8362 l = len(m.Repo) 8363 if l > 0 { 8364 n += 1 + l + sovAuth(uint64(l)) 8365 } 8366 if m.Scope != 0 { 8367 n += 1 + sovAuth(uint64(m.Scope)) 8368 } 8369 if m.XXX_unrecognized != nil { 8370 n += len(m.XXX_unrecognized) 8371 } 8372 return n 8373 } 8374 8375 func (m *SetScopeResponse) Size() (n int) { 8376 if m == nil { 8377 return 0 8378 } 8379 var l int 8380 _ = l 8381 if m.XXX_unrecognized != nil { 8382 n += len(m.XXX_unrecognized) 8383 } 8384 return n 8385 } 8386 8387 func (m *GetACLRequest) Size() (n int) { 8388 if m == nil { 8389 return 0 8390 } 8391 var l int 8392 _ = l 8393 l = len(m.Repo) 8394 if l > 0 { 8395 n += 1 + l + sovAuth(uint64(l)) 8396 } 8397 if m.XXX_unrecognized != nil { 8398 n += len(m.XXX_unrecognized) 8399 } 8400 return n 8401 } 8402 8403 func (m *ACLEntry) Size() (n int) { 8404 if m == nil { 8405 return 0 8406 } 8407 var l int 8408 _ = l 8409 l = len(m.Username) 8410 if l > 0 { 8411 n += 1 + l + sovAuth(uint64(l)) 8412 } 8413 if m.Scope != 0 { 8414 n += 1 + sovAuth(uint64(m.Scope)) 8415 } 8416 if m.XXX_unrecognized != nil { 8417 n += len(m.XXX_unrecognized) 8418 } 8419 return n 8420 } 8421 8422 func (m *GetACLResponse) Size() (n int) { 8423 if m == nil { 8424 return 0 8425 } 8426 var l int 8427 _ = l 8428 if len(m.Entries) > 0 { 8429 for _, e := range m.Entries { 8430 l = e.Size() 8431 n += 1 + l + sovAuth(uint64(l)) 8432 } 8433 } 8434 if len(m.RobotEntries) > 0 { 8435 for _, e := range m.RobotEntries { 8436 l = e.Size() 8437 n += 1 + l + sovAuth(uint64(l)) 8438 } 8439 } 8440 if m.XXX_unrecognized != nil { 8441 n += len(m.XXX_unrecognized) 8442 } 8443 return n 8444 } 8445 8446 func (m *SetACLRequest) Size() (n int) { 8447 if m == nil { 8448 return 0 8449 } 8450 var l int 8451 _ = l 8452 l = len(m.Repo) 8453 if l > 0 { 8454 n += 1 + l + sovAuth(uint64(l)) 8455 } 8456 if len(m.Entries) > 0 { 8457 for _, e := range m.Entries { 8458 l = e.Size() 8459 n += 1 + l + sovAuth(uint64(l)) 8460 } 8461 } 8462 if m.XXX_unrecognized != nil { 8463 n += len(m.XXX_unrecognized) 8464 } 8465 return n 8466 } 8467 8468 func (m *SetACLResponse) Size() (n int) { 8469 if m == nil { 8470 return 0 8471 } 8472 var l int 8473 _ = l 8474 if m.XXX_unrecognized != nil { 8475 n += len(m.XXX_unrecognized) 8476 } 8477 return n 8478 } 8479 8480 func (m *SessionInfo) Size() (n int) { 8481 if m == nil { 8482 return 0 8483 } 8484 var l int 8485 _ = l 8486 l = len(m.Nonce) 8487 if l > 0 { 8488 n += 1 + l + sovAuth(uint64(l)) 8489 } 8490 l = len(m.Email) 8491 if l > 0 { 8492 n += 1 + l + sovAuth(uint64(l)) 8493 } 8494 if m.ConversionErr { 8495 n += 2 8496 } 8497 if m.XXX_unrecognized != nil { 8498 n += len(m.XXX_unrecognized) 8499 } 8500 return n 8501 } 8502 8503 func (m *GetOIDCLoginRequest) Size() (n int) { 8504 if m == nil { 8505 return 0 8506 } 8507 var l int 8508 _ = l 8509 if m.XXX_unrecognized != nil { 8510 n += len(m.XXX_unrecognized) 8511 } 8512 return n 8513 } 8514 8515 func (m *GetOIDCLoginResponse) Size() (n int) { 8516 if m == nil { 8517 return 0 8518 } 8519 var l int 8520 _ = l 8521 l = len(m.LoginURL) 8522 if l > 0 { 8523 n += 1 + l + sovAuth(uint64(l)) 8524 } 8525 l = len(m.State) 8526 if l > 0 { 8527 n += 1 + l + sovAuth(uint64(l)) 8528 } 8529 if m.XXX_unrecognized != nil { 8530 n += len(m.XXX_unrecognized) 8531 } 8532 return n 8533 } 8534 8535 func (m *GetAuthTokenRequest) Size() (n int) { 8536 if m == nil { 8537 return 0 8538 } 8539 var l int 8540 _ = l 8541 l = len(m.Subject) 8542 if l > 0 { 8543 n += 1 + l + sovAuth(uint64(l)) 8544 } 8545 if m.TTL != 0 { 8546 n += 1 + sovAuth(uint64(m.TTL)) 8547 } 8548 if m.XXX_unrecognized != nil { 8549 n += len(m.XXX_unrecognized) 8550 } 8551 return n 8552 } 8553 8554 func (m *GetAuthTokenResponse) Size() (n int) { 8555 if m == nil { 8556 return 0 8557 } 8558 var l int 8559 _ = l 8560 l = len(m.Token) 8561 if l > 0 { 8562 n += 1 + l + sovAuth(uint64(l)) 8563 } 8564 l = len(m.Subject) 8565 if l > 0 { 8566 n += 1 + l + sovAuth(uint64(l)) 8567 } 8568 if m.XXX_unrecognized != nil { 8569 n += len(m.XXX_unrecognized) 8570 } 8571 return n 8572 } 8573 8574 func (m *ExtendAuthTokenRequest) Size() (n int) { 8575 if m == nil { 8576 return 0 8577 } 8578 var l int 8579 _ = l 8580 l = len(m.Token) 8581 if l > 0 { 8582 n += 1 + l + sovAuth(uint64(l)) 8583 } 8584 if m.TTL != 0 { 8585 n += 1 + sovAuth(uint64(m.TTL)) 8586 } 8587 if m.XXX_unrecognized != nil { 8588 n += len(m.XXX_unrecognized) 8589 } 8590 return n 8591 } 8592 8593 func (m *ExtendAuthTokenResponse) Size() (n int) { 8594 if m == nil { 8595 return 0 8596 } 8597 var l int 8598 _ = l 8599 if m.XXX_unrecognized != nil { 8600 n += len(m.XXX_unrecognized) 8601 } 8602 return n 8603 } 8604 8605 func (m *RevokeAuthTokenRequest) Size() (n int) { 8606 if m == nil { 8607 return 0 8608 } 8609 var l int 8610 _ = l 8611 l = len(m.Token) 8612 if l > 0 { 8613 n += 1 + l + sovAuth(uint64(l)) 8614 } 8615 if m.XXX_unrecognized != nil { 8616 n += len(m.XXX_unrecognized) 8617 } 8618 return n 8619 } 8620 8621 func (m *RevokeAuthTokenResponse) Size() (n int) { 8622 if m == nil { 8623 return 0 8624 } 8625 var l int 8626 _ = l 8627 if m.XXX_unrecognized != nil { 8628 n += len(m.XXX_unrecognized) 8629 } 8630 return n 8631 } 8632 8633 func (m *SetGroupsForUserRequest) Size() (n int) { 8634 if m == nil { 8635 return 0 8636 } 8637 var l int 8638 _ = l 8639 l = len(m.Username) 8640 if l > 0 { 8641 n += 1 + l + sovAuth(uint64(l)) 8642 } 8643 if len(m.Groups) > 0 { 8644 for _, s := range m.Groups { 8645 l = len(s) 8646 n += 1 + l + sovAuth(uint64(l)) 8647 } 8648 } 8649 if m.XXX_unrecognized != nil { 8650 n += len(m.XXX_unrecognized) 8651 } 8652 return n 8653 } 8654 8655 func (m *SetGroupsForUserResponse) Size() (n int) { 8656 if m == nil { 8657 return 0 8658 } 8659 var l int 8660 _ = l 8661 if m.XXX_unrecognized != nil { 8662 n += len(m.XXX_unrecognized) 8663 } 8664 return n 8665 } 8666 8667 func (m *ModifyMembersRequest) Size() (n int) { 8668 if m == nil { 8669 return 0 8670 } 8671 var l int 8672 _ = l 8673 l = len(m.Group) 8674 if l > 0 { 8675 n += 1 + l + sovAuth(uint64(l)) 8676 } 8677 if len(m.Add) > 0 { 8678 for _, s := range m.Add { 8679 l = len(s) 8680 n += 1 + l + sovAuth(uint64(l)) 8681 } 8682 } 8683 if len(m.Remove) > 0 { 8684 for _, s := range m.Remove { 8685 l = len(s) 8686 n += 1 + l + sovAuth(uint64(l)) 8687 } 8688 } 8689 if m.XXX_unrecognized != nil { 8690 n += len(m.XXX_unrecognized) 8691 } 8692 return n 8693 } 8694 8695 func (m *ModifyMembersResponse) Size() (n int) { 8696 if m == nil { 8697 return 0 8698 } 8699 var l int 8700 _ = l 8701 if m.XXX_unrecognized != nil { 8702 n += len(m.XXX_unrecognized) 8703 } 8704 return n 8705 } 8706 8707 func (m *GetGroupsRequest) Size() (n int) { 8708 if m == nil { 8709 return 0 8710 } 8711 var l int 8712 _ = l 8713 l = len(m.Username) 8714 if l > 0 { 8715 n += 1 + l + sovAuth(uint64(l)) 8716 } 8717 if m.XXX_unrecognized != nil { 8718 n += len(m.XXX_unrecognized) 8719 } 8720 return n 8721 } 8722 8723 func (m *GetGroupsResponse) Size() (n int) { 8724 if m == nil { 8725 return 0 8726 } 8727 var l int 8728 _ = l 8729 if len(m.Groups) > 0 { 8730 for _, s := range m.Groups { 8731 l = len(s) 8732 n += 1 + l + sovAuth(uint64(l)) 8733 } 8734 } 8735 if m.XXX_unrecognized != nil { 8736 n += len(m.XXX_unrecognized) 8737 } 8738 return n 8739 } 8740 8741 func (m *GetUsersRequest) Size() (n int) { 8742 if m == nil { 8743 return 0 8744 } 8745 var l int 8746 _ = l 8747 l = len(m.Group) 8748 if l > 0 { 8749 n += 1 + l + sovAuth(uint64(l)) 8750 } 8751 if m.XXX_unrecognized != nil { 8752 n += len(m.XXX_unrecognized) 8753 } 8754 return n 8755 } 8756 8757 func (m *GetUsersResponse) Size() (n int) { 8758 if m == nil { 8759 return 0 8760 } 8761 var l int 8762 _ = l 8763 if len(m.Usernames) > 0 { 8764 for _, s := range m.Usernames { 8765 l = len(s) 8766 n += 1 + l + sovAuth(uint64(l)) 8767 } 8768 } 8769 if m.XXX_unrecognized != nil { 8770 n += len(m.XXX_unrecognized) 8771 } 8772 return n 8773 } 8774 8775 func (m *GetOneTimePasswordRequest) Size() (n int) { 8776 if m == nil { 8777 return 0 8778 } 8779 var l int 8780 _ = l 8781 l = len(m.Subject) 8782 if l > 0 { 8783 n += 1 + l + sovAuth(uint64(l)) 8784 } 8785 if m.TTL != 0 { 8786 n += 1 + sovAuth(uint64(m.TTL)) 8787 } 8788 if m.XXX_unrecognized != nil { 8789 n += len(m.XXX_unrecognized) 8790 } 8791 return n 8792 } 8793 8794 func (m *GetOneTimePasswordResponse) Size() (n int) { 8795 if m == nil { 8796 return 0 8797 } 8798 var l int 8799 _ = l 8800 l = len(m.Code) 8801 if l > 0 { 8802 n += 1 + l + sovAuth(uint64(l)) 8803 } 8804 if m.OTPExpiration != nil { 8805 l = m.OTPExpiration.Size() 8806 n += 1 + l + sovAuth(uint64(l)) 8807 } 8808 if m.XXX_unrecognized != nil { 8809 n += len(m.XXX_unrecognized) 8810 } 8811 return n 8812 } 8813 8814 func (m *HashedAuthToken) Size() (n int) { 8815 if m == nil { 8816 return 0 8817 } 8818 var l int 8819 _ = l 8820 l = len(m.HashedToken) 8821 if l > 0 { 8822 n += 1 + l + sovAuth(uint64(l)) 8823 } 8824 if m.TokenInfo != nil { 8825 l = m.TokenInfo.Size() 8826 n += 1 + l + sovAuth(uint64(l)) 8827 } 8828 if m.Expiration != nil { 8829 l = m.Expiration.Size() 8830 n += 1 + l + sovAuth(uint64(l)) 8831 } 8832 if m.XXX_unrecognized != nil { 8833 n += len(m.XXX_unrecognized) 8834 } 8835 return n 8836 } 8837 8838 func (m *ExtractAuthTokensRequest) Size() (n int) { 8839 if m == nil { 8840 return 0 8841 } 8842 var l int 8843 _ = l 8844 if m.XXX_unrecognized != nil { 8845 n += len(m.XXX_unrecognized) 8846 } 8847 return n 8848 } 8849 8850 func (m *ExtractAuthTokensResponse) Size() (n int) { 8851 if m == nil { 8852 return 0 8853 } 8854 var l int 8855 _ = l 8856 if len(m.Tokens) > 0 { 8857 for _, e := range m.Tokens { 8858 l = e.Size() 8859 n += 1 + l + sovAuth(uint64(l)) 8860 } 8861 } 8862 if m.XXX_unrecognized != nil { 8863 n += len(m.XXX_unrecognized) 8864 } 8865 return n 8866 } 8867 8868 func (m *RestoreAuthTokenRequest) Size() (n int) { 8869 if m == nil { 8870 return 0 8871 } 8872 var l int 8873 _ = l 8874 if m.Token != nil { 8875 l = m.Token.Size() 8876 n += 1 + l + sovAuth(uint64(l)) 8877 } 8878 if m.XXX_unrecognized != nil { 8879 n += len(m.XXX_unrecognized) 8880 } 8881 return n 8882 } 8883 8884 func (m *RestoreAuthTokenResponse) Size() (n int) { 8885 if m == nil { 8886 return 0 8887 } 8888 var l int 8889 _ = l 8890 if m.XXX_unrecognized != nil { 8891 n += len(m.XXX_unrecognized) 8892 } 8893 return n 8894 } 8895 8896 func sovAuth(x uint64) (n int) { 8897 return (math_bits.Len64(x|1) + 6) / 7 8898 } 8899 func sozAuth(x uint64) (n int) { 8900 return sovAuth(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 8901 } 8902 func (m *ActivateRequest) Unmarshal(dAtA []byte) error { 8903 l := len(dAtA) 8904 iNdEx := 0 8905 for iNdEx < l { 8906 preIndex := iNdEx 8907 var wire uint64 8908 for shift := uint(0); ; shift += 7 { 8909 if shift >= 64 { 8910 return ErrIntOverflowAuth 8911 } 8912 if iNdEx >= l { 8913 return io.ErrUnexpectedEOF 8914 } 8915 b := dAtA[iNdEx] 8916 iNdEx++ 8917 wire |= uint64(b&0x7F) << shift 8918 if b < 0x80 { 8919 break 8920 } 8921 } 8922 fieldNum := int32(wire >> 3) 8923 wireType := int(wire & 0x7) 8924 if wireType == 4 { 8925 return fmt.Errorf("proto: ActivateRequest: wiretype end group for non-group") 8926 } 8927 if fieldNum <= 0 { 8928 return fmt.Errorf("proto: ActivateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8929 } 8930 switch fieldNum { 8931 case 1: 8932 if wireType != 2 { 8933 return fmt.Errorf("proto: wrong wireType = %d for field GitHubToken", wireType) 8934 } 8935 var stringLen uint64 8936 for shift := uint(0); ; shift += 7 { 8937 if shift >= 64 { 8938 return ErrIntOverflowAuth 8939 } 8940 if iNdEx >= l { 8941 return io.ErrUnexpectedEOF 8942 } 8943 b := dAtA[iNdEx] 8944 iNdEx++ 8945 stringLen |= uint64(b&0x7F) << shift 8946 if b < 0x80 { 8947 break 8948 } 8949 } 8950 intStringLen := int(stringLen) 8951 if intStringLen < 0 { 8952 return ErrInvalidLengthAuth 8953 } 8954 postIndex := iNdEx + intStringLen 8955 if postIndex < 0 { 8956 return ErrInvalidLengthAuth 8957 } 8958 if postIndex > l { 8959 return io.ErrUnexpectedEOF 8960 } 8961 m.GitHubToken = string(dAtA[iNdEx:postIndex]) 8962 iNdEx = postIndex 8963 case 2: 8964 if wireType != 2 { 8965 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 8966 } 8967 var stringLen uint64 8968 for shift := uint(0); ; shift += 7 { 8969 if shift >= 64 { 8970 return ErrIntOverflowAuth 8971 } 8972 if iNdEx >= l { 8973 return io.ErrUnexpectedEOF 8974 } 8975 b := dAtA[iNdEx] 8976 iNdEx++ 8977 stringLen |= uint64(b&0x7F) << shift 8978 if b < 0x80 { 8979 break 8980 } 8981 } 8982 intStringLen := int(stringLen) 8983 if intStringLen < 0 { 8984 return ErrInvalidLengthAuth 8985 } 8986 postIndex := iNdEx + intStringLen 8987 if postIndex < 0 { 8988 return ErrInvalidLengthAuth 8989 } 8990 if postIndex > l { 8991 return io.ErrUnexpectedEOF 8992 } 8993 m.Subject = string(dAtA[iNdEx:postIndex]) 8994 iNdEx = postIndex 8995 case 3: 8996 if wireType != 2 { 8997 return fmt.Errorf("proto: wrong wireType = %d for field RootToken", wireType) 8998 } 8999 var stringLen uint64 9000 for shift := uint(0); ; shift += 7 { 9001 if shift >= 64 { 9002 return ErrIntOverflowAuth 9003 } 9004 if iNdEx >= l { 9005 return io.ErrUnexpectedEOF 9006 } 9007 b := dAtA[iNdEx] 9008 iNdEx++ 9009 stringLen |= uint64(b&0x7F) << shift 9010 if b < 0x80 { 9011 break 9012 } 9013 } 9014 intStringLen := int(stringLen) 9015 if intStringLen < 0 { 9016 return ErrInvalidLengthAuth 9017 } 9018 postIndex := iNdEx + intStringLen 9019 if postIndex < 0 { 9020 return ErrInvalidLengthAuth 9021 } 9022 if postIndex > l { 9023 return io.ErrUnexpectedEOF 9024 } 9025 m.RootToken = string(dAtA[iNdEx:postIndex]) 9026 iNdEx = postIndex 9027 default: 9028 iNdEx = preIndex 9029 skippy, err := skipAuth(dAtA[iNdEx:]) 9030 if err != nil { 9031 return err 9032 } 9033 if (skippy < 0) || (iNdEx+skippy) < 0 { 9034 return ErrInvalidLengthAuth 9035 } 9036 if (iNdEx + skippy) > l { 9037 return io.ErrUnexpectedEOF 9038 } 9039 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9040 iNdEx += skippy 9041 } 9042 } 9043 9044 if iNdEx > l { 9045 return io.ErrUnexpectedEOF 9046 } 9047 return nil 9048 } 9049 func (m *ActivateResponse) Unmarshal(dAtA []byte) error { 9050 l := len(dAtA) 9051 iNdEx := 0 9052 for iNdEx < l { 9053 preIndex := iNdEx 9054 var wire uint64 9055 for shift := uint(0); ; shift += 7 { 9056 if shift >= 64 { 9057 return ErrIntOverflowAuth 9058 } 9059 if iNdEx >= l { 9060 return io.ErrUnexpectedEOF 9061 } 9062 b := dAtA[iNdEx] 9063 iNdEx++ 9064 wire |= uint64(b&0x7F) << shift 9065 if b < 0x80 { 9066 break 9067 } 9068 } 9069 fieldNum := int32(wire >> 3) 9070 wireType := int(wire & 0x7) 9071 if wireType == 4 { 9072 return fmt.Errorf("proto: ActivateResponse: wiretype end group for non-group") 9073 } 9074 if fieldNum <= 0 { 9075 return fmt.Errorf("proto: ActivateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9076 } 9077 switch fieldNum { 9078 case 1: 9079 if wireType != 2 { 9080 return fmt.Errorf("proto: wrong wireType = %d for field PachToken", wireType) 9081 } 9082 var stringLen uint64 9083 for shift := uint(0); ; shift += 7 { 9084 if shift >= 64 { 9085 return ErrIntOverflowAuth 9086 } 9087 if iNdEx >= l { 9088 return io.ErrUnexpectedEOF 9089 } 9090 b := dAtA[iNdEx] 9091 iNdEx++ 9092 stringLen |= uint64(b&0x7F) << shift 9093 if b < 0x80 { 9094 break 9095 } 9096 } 9097 intStringLen := int(stringLen) 9098 if intStringLen < 0 { 9099 return ErrInvalidLengthAuth 9100 } 9101 postIndex := iNdEx + intStringLen 9102 if postIndex < 0 { 9103 return ErrInvalidLengthAuth 9104 } 9105 if postIndex > l { 9106 return io.ErrUnexpectedEOF 9107 } 9108 m.PachToken = string(dAtA[iNdEx:postIndex]) 9109 iNdEx = postIndex 9110 default: 9111 iNdEx = preIndex 9112 skippy, err := skipAuth(dAtA[iNdEx:]) 9113 if err != nil { 9114 return err 9115 } 9116 if (skippy < 0) || (iNdEx+skippy) < 0 { 9117 return ErrInvalidLengthAuth 9118 } 9119 if (iNdEx + skippy) > l { 9120 return io.ErrUnexpectedEOF 9121 } 9122 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9123 iNdEx += skippy 9124 } 9125 } 9126 9127 if iNdEx > l { 9128 return io.ErrUnexpectedEOF 9129 } 9130 return nil 9131 } 9132 func (m *DeactivateRequest) Unmarshal(dAtA []byte) error { 9133 l := len(dAtA) 9134 iNdEx := 0 9135 for iNdEx < l { 9136 preIndex := iNdEx 9137 var wire uint64 9138 for shift := uint(0); ; shift += 7 { 9139 if shift >= 64 { 9140 return ErrIntOverflowAuth 9141 } 9142 if iNdEx >= l { 9143 return io.ErrUnexpectedEOF 9144 } 9145 b := dAtA[iNdEx] 9146 iNdEx++ 9147 wire |= uint64(b&0x7F) << shift 9148 if b < 0x80 { 9149 break 9150 } 9151 } 9152 fieldNum := int32(wire >> 3) 9153 wireType := int(wire & 0x7) 9154 if wireType == 4 { 9155 return fmt.Errorf("proto: DeactivateRequest: wiretype end group for non-group") 9156 } 9157 if fieldNum <= 0 { 9158 return fmt.Errorf("proto: DeactivateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 9159 } 9160 switch fieldNum { 9161 default: 9162 iNdEx = preIndex 9163 skippy, err := skipAuth(dAtA[iNdEx:]) 9164 if err != nil { 9165 return err 9166 } 9167 if (skippy < 0) || (iNdEx+skippy) < 0 { 9168 return ErrInvalidLengthAuth 9169 } 9170 if (iNdEx + skippy) > l { 9171 return io.ErrUnexpectedEOF 9172 } 9173 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9174 iNdEx += skippy 9175 } 9176 } 9177 9178 if iNdEx > l { 9179 return io.ErrUnexpectedEOF 9180 } 9181 return nil 9182 } 9183 func (m *DeactivateResponse) Unmarshal(dAtA []byte) error { 9184 l := len(dAtA) 9185 iNdEx := 0 9186 for iNdEx < l { 9187 preIndex := iNdEx 9188 var wire uint64 9189 for shift := uint(0); ; shift += 7 { 9190 if shift >= 64 { 9191 return ErrIntOverflowAuth 9192 } 9193 if iNdEx >= l { 9194 return io.ErrUnexpectedEOF 9195 } 9196 b := dAtA[iNdEx] 9197 iNdEx++ 9198 wire |= uint64(b&0x7F) << shift 9199 if b < 0x80 { 9200 break 9201 } 9202 } 9203 fieldNum := int32(wire >> 3) 9204 wireType := int(wire & 0x7) 9205 if wireType == 4 { 9206 return fmt.Errorf("proto: DeactivateResponse: wiretype end group for non-group") 9207 } 9208 if fieldNum <= 0 { 9209 return fmt.Errorf("proto: DeactivateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9210 } 9211 switch fieldNum { 9212 default: 9213 iNdEx = preIndex 9214 skippy, err := skipAuth(dAtA[iNdEx:]) 9215 if err != nil { 9216 return err 9217 } 9218 if (skippy < 0) || (iNdEx+skippy) < 0 { 9219 return ErrInvalidLengthAuth 9220 } 9221 if (iNdEx + skippy) > l { 9222 return io.ErrUnexpectedEOF 9223 } 9224 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9225 iNdEx += skippy 9226 } 9227 } 9228 9229 if iNdEx > l { 9230 return io.ErrUnexpectedEOF 9231 } 9232 return nil 9233 } 9234 func (m *IDProvider) Unmarshal(dAtA []byte) error { 9235 l := len(dAtA) 9236 iNdEx := 0 9237 for iNdEx < l { 9238 preIndex := iNdEx 9239 var wire uint64 9240 for shift := uint(0); ; shift += 7 { 9241 if shift >= 64 { 9242 return ErrIntOverflowAuth 9243 } 9244 if iNdEx >= l { 9245 return io.ErrUnexpectedEOF 9246 } 9247 b := dAtA[iNdEx] 9248 iNdEx++ 9249 wire |= uint64(b&0x7F) << shift 9250 if b < 0x80 { 9251 break 9252 } 9253 } 9254 fieldNum := int32(wire >> 3) 9255 wireType := int(wire & 0x7) 9256 if wireType == 4 { 9257 return fmt.Errorf("proto: IDProvider: wiretype end group for non-group") 9258 } 9259 if fieldNum <= 0 { 9260 return fmt.Errorf("proto: IDProvider: illegal tag %d (wire type %d)", fieldNum, wire) 9261 } 9262 switch fieldNum { 9263 case 1: 9264 if wireType != 2 { 9265 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 9266 } 9267 var stringLen uint64 9268 for shift := uint(0); ; shift += 7 { 9269 if shift >= 64 { 9270 return ErrIntOverflowAuth 9271 } 9272 if iNdEx >= l { 9273 return io.ErrUnexpectedEOF 9274 } 9275 b := dAtA[iNdEx] 9276 iNdEx++ 9277 stringLen |= uint64(b&0x7F) << shift 9278 if b < 0x80 { 9279 break 9280 } 9281 } 9282 intStringLen := int(stringLen) 9283 if intStringLen < 0 { 9284 return ErrInvalidLengthAuth 9285 } 9286 postIndex := iNdEx + intStringLen 9287 if postIndex < 0 { 9288 return ErrInvalidLengthAuth 9289 } 9290 if postIndex > l { 9291 return io.ErrUnexpectedEOF 9292 } 9293 m.Name = string(dAtA[iNdEx:postIndex]) 9294 iNdEx = postIndex 9295 case 2: 9296 if wireType != 2 { 9297 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 9298 } 9299 var stringLen uint64 9300 for shift := uint(0); ; shift += 7 { 9301 if shift >= 64 { 9302 return ErrIntOverflowAuth 9303 } 9304 if iNdEx >= l { 9305 return io.ErrUnexpectedEOF 9306 } 9307 b := dAtA[iNdEx] 9308 iNdEx++ 9309 stringLen |= uint64(b&0x7F) << shift 9310 if b < 0x80 { 9311 break 9312 } 9313 } 9314 intStringLen := int(stringLen) 9315 if intStringLen < 0 { 9316 return ErrInvalidLengthAuth 9317 } 9318 postIndex := iNdEx + intStringLen 9319 if postIndex < 0 { 9320 return ErrInvalidLengthAuth 9321 } 9322 if postIndex > l { 9323 return io.ErrUnexpectedEOF 9324 } 9325 m.Description = string(dAtA[iNdEx:postIndex]) 9326 iNdEx = postIndex 9327 case 3: 9328 if wireType != 2 { 9329 return fmt.Errorf("proto: wrong wireType = %d for field SAML", wireType) 9330 } 9331 var msglen int 9332 for shift := uint(0); ; shift += 7 { 9333 if shift >= 64 { 9334 return ErrIntOverflowAuth 9335 } 9336 if iNdEx >= l { 9337 return io.ErrUnexpectedEOF 9338 } 9339 b := dAtA[iNdEx] 9340 iNdEx++ 9341 msglen |= int(b&0x7F) << shift 9342 if b < 0x80 { 9343 break 9344 } 9345 } 9346 if msglen < 0 { 9347 return ErrInvalidLengthAuth 9348 } 9349 postIndex := iNdEx + msglen 9350 if postIndex < 0 { 9351 return ErrInvalidLengthAuth 9352 } 9353 if postIndex > l { 9354 return io.ErrUnexpectedEOF 9355 } 9356 if m.SAML == nil { 9357 m.SAML = &IDProvider_SAMLOptions{} 9358 } 9359 if err := m.SAML.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9360 return err 9361 } 9362 iNdEx = postIndex 9363 case 4: 9364 if wireType != 2 { 9365 return fmt.Errorf("proto: wrong wireType = %d for field GitHub", wireType) 9366 } 9367 var msglen int 9368 for shift := uint(0); ; shift += 7 { 9369 if shift >= 64 { 9370 return ErrIntOverflowAuth 9371 } 9372 if iNdEx >= l { 9373 return io.ErrUnexpectedEOF 9374 } 9375 b := dAtA[iNdEx] 9376 iNdEx++ 9377 msglen |= int(b&0x7F) << shift 9378 if b < 0x80 { 9379 break 9380 } 9381 } 9382 if msglen < 0 { 9383 return ErrInvalidLengthAuth 9384 } 9385 postIndex := iNdEx + msglen 9386 if postIndex < 0 { 9387 return ErrInvalidLengthAuth 9388 } 9389 if postIndex > l { 9390 return io.ErrUnexpectedEOF 9391 } 9392 if m.GitHub == nil { 9393 m.GitHub = &IDProvider_GitHubOptions{} 9394 } 9395 if err := m.GitHub.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9396 return err 9397 } 9398 iNdEx = postIndex 9399 case 5: 9400 if wireType != 2 { 9401 return fmt.Errorf("proto: wrong wireType = %d for field OIDC", wireType) 9402 } 9403 var msglen int 9404 for shift := uint(0); ; shift += 7 { 9405 if shift >= 64 { 9406 return ErrIntOverflowAuth 9407 } 9408 if iNdEx >= l { 9409 return io.ErrUnexpectedEOF 9410 } 9411 b := dAtA[iNdEx] 9412 iNdEx++ 9413 msglen |= int(b&0x7F) << shift 9414 if b < 0x80 { 9415 break 9416 } 9417 } 9418 if msglen < 0 { 9419 return ErrInvalidLengthAuth 9420 } 9421 postIndex := iNdEx + msglen 9422 if postIndex < 0 { 9423 return ErrInvalidLengthAuth 9424 } 9425 if postIndex > l { 9426 return io.ErrUnexpectedEOF 9427 } 9428 if m.OIDC == nil { 9429 m.OIDC = &IDProvider_OIDCOptions{} 9430 } 9431 if err := m.OIDC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9432 return err 9433 } 9434 iNdEx = postIndex 9435 default: 9436 iNdEx = preIndex 9437 skippy, err := skipAuth(dAtA[iNdEx:]) 9438 if err != nil { 9439 return err 9440 } 9441 if (skippy < 0) || (iNdEx+skippy) < 0 { 9442 return ErrInvalidLengthAuth 9443 } 9444 if (iNdEx + skippy) > l { 9445 return io.ErrUnexpectedEOF 9446 } 9447 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9448 iNdEx += skippy 9449 } 9450 } 9451 9452 if iNdEx > l { 9453 return io.ErrUnexpectedEOF 9454 } 9455 return nil 9456 } 9457 func (m *IDProvider_SAMLOptions) Unmarshal(dAtA []byte) error { 9458 l := len(dAtA) 9459 iNdEx := 0 9460 for iNdEx < l { 9461 preIndex := iNdEx 9462 var wire uint64 9463 for shift := uint(0); ; shift += 7 { 9464 if shift >= 64 { 9465 return ErrIntOverflowAuth 9466 } 9467 if iNdEx >= l { 9468 return io.ErrUnexpectedEOF 9469 } 9470 b := dAtA[iNdEx] 9471 iNdEx++ 9472 wire |= uint64(b&0x7F) << shift 9473 if b < 0x80 { 9474 break 9475 } 9476 } 9477 fieldNum := int32(wire >> 3) 9478 wireType := int(wire & 0x7) 9479 if wireType == 4 { 9480 return fmt.Errorf("proto: SAMLOptions: wiretype end group for non-group") 9481 } 9482 if fieldNum <= 0 { 9483 return fmt.Errorf("proto: SAMLOptions: illegal tag %d (wire type %d)", fieldNum, wire) 9484 } 9485 switch fieldNum { 9486 case 1: 9487 if wireType != 2 { 9488 return fmt.Errorf("proto: wrong wireType = %d for field MetadataURL", wireType) 9489 } 9490 var stringLen uint64 9491 for shift := uint(0); ; shift += 7 { 9492 if shift >= 64 { 9493 return ErrIntOverflowAuth 9494 } 9495 if iNdEx >= l { 9496 return io.ErrUnexpectedEOF 9497 } 9498 b := dAtA[iNdEx] 9499 iNdEx++ 9500 stringLen |= uint64(b&0x7F) << shift 9501 if b < 0x80 { 9502 break 9503 } 9504 } 9505 intStringLen := int(stringLen) 9506 if intStringLen < 0 { 9507 return ErrInvalidLengthAuth 9508 } 9509 postIndex := iNdEx + intStringLen 9510 if postIndex < 0 { 9511 return ErrInvalidLengthAuth 9512 } 9513 if postIndex > l { 9514 return io.ErrUnexpectedEOF 9515 } 9516 m.MetadataURL = string(dAtA[iNdEx:postIndex]) 9517 iNdEx = postIndex 9518 case 2: 9519 if wireType != 2 { 9520 return fmt.Errorf("proto: wrong wireType = %d for field MetadataXML", wireType) 9521 } 9522 var byteLen int 9523 for shift := uint(0); ; shift += 7 { 9524 if shift >= 64 { 9525 return ErrIntOverflowAuth 9526 } 9527 if iNdEx >= l { 9528 return io.ErrUnexpectedEOF 9529 } 9530 b := dAtA[iNdEx] 9531 iNdEx++ 9532 byteLen |= int(b&0x7F) << shift 9533 if b < 0x80 { 9534 break 9535 } 9536 } 9537 if byteLen < 0 { 9538 return ErrInvalidLengthAuth 9539 } 9540 postIndex := iNdEx + byteLen 9541 if postIndex < 0 { 9542 return ErrInvalidLengthAuth 9543 } 9544 if postIndex > l { 9545 return io.ErrUnexpectedEOF 9546 } 9547 m.MetadataXML = append(m.MetadataXML[:0], dAtA[iNdEx:postIndex]...) 9548 if m.MetadataXML == nil { 9549 m.MetadataXML = []byte{} 9550 } 9551 iNdEx = postIndex 9552 case 3: 9553 if wireType != 2 { 9554 return fmt.Errorf("proto: wrong wireType = %d for field GroupAttribute", wireType) 9555 } 9556 var stringLen uint64 9557 for shift := uint(0); ; shift += 7 { 9558 if shift >= 64 { 9559 return ErrIntOverflowAuth 9560 } 9561 if iNdEx >= l { 9562 return io.ErrUnexpectedEOF 9563 } 9564 b := dAtA[iNdEx] 9565 iNdEx++ 9566 stringLen |= uint64(b&0x7F) << shift 9567 if b < 0x80 { 9568 break 9569 } 9570 } 9571 intStringLen := int(stringLen) 9572 if intStringLen < 0 { 9573 return ErrInvalidLengthAuth 9574 } 9575 postIndex := iNdEx + intStringLen 9576 if postIndex < 0 { 9577 return ErrInvalidLengthAuth 9578 } 9579 if postIndex > l { 9580 return io.ErrUnexpectedEOF 9581 } 9582 m.GroupAttribute = string(dAtA[iNdEx:postIndex]) 9583 iNdEx = postIndex 9584 default: 9585 iNdEx = preIndex 9586 skippy, err := skipAuth(dAtA[iNdEx:]) 9587 if err != nil { 9588 return err 9589 } 9590 if (skippy < 0) || (iNdEx+skippy) < 0 { 9591 return ErrInvalidLengthAuth 9592 } 9593 if (iNdEx + skippy) > l { 9594 return io.ErrUnexpectedEOF 9595 } 9596 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9597 iNdEx += skippy 9598 } 9599 } 9600 9601 if iNdEx > l { 9602 return io.ErrUnexpectedEOF 9603 } 9604 return nil 9605 } 9606 func (m *IDProvider_OIDCOptions) Unmarshal(dAtA []byte) error { 9607 l := len(dAtA) 9608 iNdEx := 0 9609 for iNdEx < l { 9610 preIndex := iNdEx 9611 var wire uint64 9612 for shift := uint(0); ; shift += 7 { 9613 if shift >= 64 { 9614 return ErrIntOverflowAuth 9615 } 9616 if iNdEx >= l { 9617 return io.ErrUnexpectedEOF 9618 } 9619 b := dAtA[iNdEx] 9620 iNdEx++ 9621 wire |= uint64(b&0x7F) << shift 9622 if b < 0x80 { 9623 break 9624 } 9625 } 9626 fieldNum := int32(wire >> 3) 9627 wireType := int(wire & 0x7) 9628 if wireType == 4 { 9629 return fmt.Errorf("proto: OIDCOptions: wiretype end group for non-group") 9630 } 9631 if fieldNum <= 0 { 9632 return fmt.Errorf("proto: OIDCOptions: illegal tag %d (wire type %d)", fieldNum, wire) 9633 } 9634 switch fieldNum { 9635 case 1: 9636 if wireType != 2 { 9637 return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) 9638 } 9639 var stringLen uint64 9640 for shift := uint(0); ; shift += 7 { 9641 if shift >= 64 { 9642 return ErrIntOverflowAuth 9643 } 9644 if iNdEx >= l { 9645 return io.ErrUnexpectedEOF 9646 } 9647 b := dAtA[iNdEx] 9648 iNdEx++ 9649 stringLen |= uint64(b&0x7F) << shift 9650 if b < 0x80 { 9651 break 9652 } 9653 } 9654 intStringLen := int(stringLen) 9655 if intStringLen < 0 { 9656 return ErrInvalidLengthAuth 9657 } 9658 postIndex := iNdEx + intStringLen 9659 if postIndex < 0 { 9660 return ErrInvalidLengthAuth 9661 } 9662 if postIndex > l { 9663 return io.ErrUnexpectedEOF 9664 } 9665 m.Issuer = string(dAtA[iNdEx:postIndex]) 9666 iNdEx = postIndex 9667 case 2: 9668 if wireType != 2 { 9669 return fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType) 9670 } 9671 var stringLen uint64 9672 for shift := uint(0); ; shift += 7 { 9673 if shift >= 64 { 9674 return ErrIntOverflowAuth 9675 } 9676 if iNdEx >= l { 9677 return io.ErrUnexpectedEOF 9678 } 9679 b := dAtA[iNdEx] 9680 iNdEx++ 9681 stringLen |= uint64(b&0x7F) << shift 9682 if b < 0x80 { 9683 break 9684 } 9685 } 9686 intStringLen := int(stringLen) 9687 if intStringLen < 0 { 9688 return ErrInvalidLengthAuth 9689 } 9690 postIndex := iNdEx + intStringLen 9691 if postIndex < 0 { 9692 return ErrInvalidLengthAuth 9693 } 9694 if postIndex > l { 9695 return io.ErrUnexpectedEOF 9696 } 9697 m.ClientID = string(dAtA[iNdEx:postIndex]) 9698 iNdEx = postIndex 9699 case 3: 9700 if wireType != 2 { 9701 return fmt.Errorf("proto: wrong wireType = %d for field ClientSecret", wireType) 9702 } 9703 var stringLen uint64 9704 for shift := uint(0); ; shift += 7 { 9705 if shift >= 64 { 9706 return ErrIntOverflowAuth 9707 } 9708 if iNdEx >= l { 9709 return io.ErrUnexpectedEOF 9710 } 9711 b := dAtA[iNdEx] 9712 iNdEx++ 9713 stringLen |= uint64(b&0x7F) << shift 9714 if b < 0x80 { 9715 break 9716 } 9717 } 9718 intStringLen := int(stringLen) 9719 if intStringLen < 0 { 9720 return ErrInvalidLengthAuth 9721 } 9722 postIndex := iNdEx + intStringLen 9723 if postIndex < 0 { 9724 return ErrInvalidLengthAuth 9725 } 9726 if postIndex > l { 9727 return io.ErrUnexpectedEOF 9728 } 9729 m.ClientSecret = string(dAtA[iNdEx:postIndex]) 9730 iNdEx = postIndex 9731 case 4: 9732 if wireType != 2 { 9733 return fmt.Errorf("proto: wrong wireType = %d for field RedirectURI", wireType) 9734 } 9735 var stringLen uint64 9736 for shift := uint(0); ; shift += 7 { 9737 if shift >= 64 { 9738 return ErrIntOverflowAuth 9739 } 9740 if iNdEx >= l { 9741 return io.ErrUnexpectedEOF 9742 } 9743 b := dAtA[iNdEx] 9744 iNdEx++ 9745 stringLen |= uint64(b&0x7F) << shift 9746 if b < 0x80 { 9747 break 9748 } 9749 } 9750 intStringLen := int(stringLen) 9751 if intStringLen < 0 { 9752 return ErrInvalidLengthAuth 9753 } 9754 postIndex := iNdEx + intStringLen 9755 if postIndex < 0 { 9756 return ErrInvalidLengthAuth 9757 } 9758 if postIndex > l { 9759 return io.ErrUnexpectedEOF 9760 } 9761 m.RedirectURI = string(dAtA[iNdEx:postIndex]) 9762 iNdEx = postIndex 9763 case 5: 9764 if wireType != 2 { 9765 return fmt.Errorf("proto: wrong wireType = %d for field AdditionalScopes", wireType) 9766 } 9767 var stringLen uint64 9768 for shift := uint(0); ; shift += 7 { 9769 if shift >= 64 { 9770 return ErrIntOverflowAuth 9771 } 9772 if iNdEx >= l { 9773 return io.ErrUnexpectedEOF 9774 } 9775 b := dAtA[iNdEx] 9776 iNdEx++ 9777 stringLen |= uint64(b&0x7F) << shift 9778 if b < 0x80 { 9779 break 9780 } 9781 } 9782 intStringLen := int(stringLen) 9783 if intStringLen < 0 { 9784 return ErrInvalidLengthAuth 9785 } 9786 postIndex := iNdEx + intStringLen 9787 if postIndex < 0 { 9788 return ErrInvalidLengthAuth 9789 } 9790 if postIndex > l { 9791 return io.ErrUnexpectedEOF 9792 } 9793 m.AdditionalScopes = append(m.AdditionalScopes, string(dAtA[iNdEx:postIndex])) 9794 iNdEx = postIndex 9795 case 6: 9796 if wireType != 0 { 9797 return fmt.Errorf("proto: wrong wireType = %d for field IgnoreEmailVerified", wireType) 9798 } 9799 var v int 9800 for shift := uint(0); ; shift += 7 { 9801 if shift >= 64 { 9802 return ErrIntOverflowAuth 9803 } 9804 if iNdEx >= l { 9805 return io.ErrUnexpectedEOF 9806 } 9807 b := dAtA[iNdEx] 9808 iNdEx++ 9809 v |= int(b&0x7F) << shift 9810 if b < 0x80 { 9811 break 9812 } 9813 } 9814 m.IgnoreEmailVerified = bool(v != 0) 9815 default: 9816 iNdEx = preIndex 9817 skippy, err := skipAuth(dAtA[iNdEx:]) 9818 if err != nil { 9819 return err 9820 } 9821 if (skippy < 0) || (iNdEx+skippy) < 0 { 9822 return ErrInvalidLengthAuth 9823 } 9824 if (iNdEx + skippy) > l { 9825 return io.ErrUnexpectedEOF 9826 } 9827 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9828 iNdEx += skippy 9829 } 9830 } 9831 9832 if iNdEx > l { 9833 return io.ErrUnexpectedEOF 9834 } 9835 return nil 9836 } 9837 func (m *IDProvider_GitHubOptions) Unmarshal(dAtA []byte) error { 9838 l := len(dAtA) 9839 iNdEx := 0 9840 for iNdEx < l { 9841 preIndex := iNdEx 9842 var wire uint64 9843 for shift := uint(0); ; shift += 7 { 9844 if shift >= 64 { 9845 return ErrIntOverflowAuth 9846 } 9847 if iNdEx >= l { 9848 return io.ErrUnexpectedEOF 9849 } 9850 b := dAtA[iNdEx] 9851 iNdEx++ 9852 wire |= uint64(b&0x7F) << shift 9853 if b < 0x80 { 9854 break 9855 } 9856 } 9857 fieldNum := int32(wire >> 3) 9858 wireType := int(wire & 0x7) 9859 if wireType == 4 { 9860 return fmt.Errorf("proto: GitHubOptions: wiretype end group for non-group") 9861 } 9862 if fieldNum <= 0 { 9863 return fmt.Errorf("proto: GitHubOptions: illegal tag %d (wire type %d)", fieldNum, wire) 9864 } 9865 switch fieldNum { 9866 default: 9867 iNdEx = preIndex 9868 skippy, err := skipAuth(dAtA[iNdEx:]) 9869 if err != nil { 9870 return err 9871 } 9872 if (skippy < 0) || (iNdEx+skippy) < 0 { 9873 return ErrInvalidLengthAuth 9874 } 9875 if (iNdEx + skippy) > l { 9876 return io.ErrUnexpectedEOF 9877 } 9878 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9879 iNdEx += skippy 9880 } 9881 } 9882 9883 if iNdEx > l { 9884 return io.ErrUnexpectedEOF 9885 } 9886 return nil 9887 } 9888 func (m *AuthConfig) Unmarshal(dAtA []byte) error { 9889 l := len(dAtA) 9890 iNdEx := 0 9891 for iNdEx < l { 9892 preIndex := iNdEx 9893 var wire uint64 9894 for shift := uint(0); ; shift += 7 { 9895 if shift >= 64 { 9896 return ErrIntOverflowAuth 9897 } 9898 if iNdEx >= l { 9899 return io.ErrUnexpectedEOF 9900 } 9901 b := dAtA[iNdEx] 9902 iNdEx++ 9903 wire |= uint64(b&0x7F) << shift 9904 if b < 0x80 { 9905 break 9906 } 9907 } 9908 fieldNum := int32(wire >> 3) 9909 wireType := int(wire & 0x7) 9910 if wireType == 4 { 9911 return fmt.Errorf("proto: AuthConfig: wiretype end group for non-group") 9912 } 9913 if fieldNum <= 0 { 9914 return fmt.Errorf("proto: AuthConfig: illegal tag %d (wire type %d)", fieldNum, wire) 9915 } 9916 switch fieldNum { 9917 case 1: 9918 if wireType != 0 { 9919 return fmt.Errorf("proto: wrong wireType = %d for field LiveConfigVersion", wireType) 9920 } 9921 m.LiveConfigVersion = 0 9922 for shift := uint(0); ; shift += 7 { 9923 if shift >= 64 { 9924 return ErrIntOverflowAuth 9925 } 9926 if iNdEx >= l { 9927 return io.ErrUnexpectedEOF 9928 } 9929 b := dAtA[iNdEx] 9930 iNdEx++ 9931 m.LiveConfigVersion |= int64(b&0x7F) << shift 9932 if b < 0x80 { 9933 break 9934 } 9935 } 9936 case 2: 9937 if wireType != 2 { 9938 return fmt.Errorf("proto: wrong wireType = %d for field IDProviders", wireType) 9939 } 9940 var msglen int 9941 for shift := uint(0); ; shift += 7 { 9942 if shift >= 64 { 9943 return ErrIntOverflowAuth 9944 } 9945 if iNdEx >= l { 9946 return io.ErrUnexpectedEOF 9947 } 9948 b := dAtA[iNdEx] 9949 iNdEx++ 9950 msglen |= int(b&0x7F) << shift 9951 if b < 0x80 { 9952 break 9953 } 9954 } 9955 if msglen < 0 { 9956 return ErrInvalidLengthAuth 9957 } 9958 postIndex := iNdEx + msglen 9959 if postIndex < 0 { 9960 return ErrInvalidLengthAuth 9961 } 9962 if postIndex > l { 9963 return io.ErrUnexpectedEOF 9964 } 9965 m.IDProviders = append(m.IDProviders, &IDProvider{}) 9966 if err := m.IDProviders[len(m.IDProviders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9967 return err 9968 } 9969 iNdEx = postIndex 9970 case 3: 9971 if wireType != 2 { 9972 return fmt.Errorf("proto: wrong wireType = %d for field SAMLServiceOptions", wireType) 9973 } 9974 var msglen int 9975 for shift := uint(0); ; shift += 7 { 9976 if shift >= 64 { 9977 return ErrIntOverflowAuth 9978 } 9979 if iNdEx >= l { 9980 return io.ErrUnexpectedEOF 9981 } 9982 b := dAtA[iNdEx] 9983 iNdEx++ 9984 msglen |= int(b&0x7F) << shift 9985 if b < 0x80 { 9986 break 9987 } 9988 } 9989 if msglen < 0 { 9990 return ErrInvalidLengthAuth 9991 } 9992 postIndex := iNdEx + msglen 9993 if postIndex < 0 { 9994 return ErrInvalidLengthAuth 9995 } 9996 if postIndex > l { 9997 return io.ErrUnexpectedEOF 9998 } 9999 if m.SAMLServiceOptions == nil { 10000 m.SAMLServiceOptions = &AuthConfig_SAMLServiceOptions{} 10001 } 10002 if err := m.SAMLServiceOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10003 return err 10004 } 10005 iNdEx = postIndex 10006 default: 10007 iNdEx = preIndex 10008 skippy, err := skipAuth(dAtA[iNdEx:]) 10009 if err != nil { 10010 return err 10011 } 10012 if (skippy < 0) || (iNdEx+skippy) < 0 { 10013 return ErrInvalidLengthAuth 10014 } 10015 if (iNdEx + skippy) > l { 10016 return io.ErrUnexpectedEOF 10017 } 10018 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10019 iNdEx += skippy 10020 } 10021 } 10022 10023 if iNdEx > l { 10024 return io.ErrUnexpectedEOF 10025 } 10026 return nil 10027 } 10028 func (m *AuthConfig_SAMLServiceOptions) Unmarshal(dAtA []byte) error { 10029 l := len(dAtA) 10030 iNdEx := 0 10031 for iNdEx < l { 10032 preIndex := iNdEx 10033 var wire uint64 10034 for shift := uint(0); ; shift += 7 { 10035 if shift >= 64 { 10036 return ErrIntOverflowAuth 10037 } 10038 if iNdEx >= l { 10039 return io.ErrUnexpectedEOF 10040 } 10041 b := dAtA[iNdEx] 10042 iNdEx++ 10043 wire |= uint64(b&0x7F) << shift 10044 if b < 0x80 { 10045 break 10046 } 10047 } 10048 fieldNum := int32(wire >> 3) 10049 wireType := int(wire & 0x7) 10050 if wireType == 4 { 10051 return fmt.Errorf("proto: SAMLServiceOptions: wiretype end group for non-group") 10052 } 10053 if fieldNum <= 0 { 10054 return fmt.Errorf("proto: SAMLServiceOptions: illegal tag %d (wire type %d)", fieldNum, wire) 10055 } 10056 switch fieldNum { 10057 case 1: 10058 if wireType != 2 { 10059 return fmt.Errorf("proto: wrong wireType = %d for field ACSURL", wireType) 10060 } 10061 var stringLen uint64 10062 for shift := uint(0); ; shift += 7 { 10063 if shift >= 64 { 10064 return ErrIntOverflowAuth 10065 } 10066 if iNdEx >= l { 10067 return io.ErrUnexpectedEOF 10068 } 10069 b := dAtA[iNdEx] 10070 iNdEx++ 10071 stringLen |= uint64(b&0x7F) << shift 10072 if b < 0x80 { 10073 break 10074 } 10075 } 10076 intStringLen := int(stringLen) 10077 if intStringLen < 0 { 10078 return ErrInvalidLengthAuth 10079 } 10080 postIndex := iNdEx + intStringLen 10081 if postIndex < 0 { 10082 return ErrInvalidLengthAuth 10083 } 10084 if postIndex > l { 10085 return io.ErrUnexpectedEOF 10086 } 10087 m.ACSURL = string(dAtA[iNdEx:postIndex]) 10088 iNdEx = postIndex 10089 case 2: 10090 if wireType != 2 { 10091 return fmt.Errorf("proto: wrong wireType = %d for field MetadataURL", wireType) 10092 } 10093 var stringLen uint64 10094 for shift := uint(0); ; shift += 7 { 10095 if shift >= 64 { 10096 return ErrIntOverflowAuth 10097 } 10098 if iNdEx >= l { 10099 return io.ErrUnexpectedEOF 10100 } 10101 b := dAtA[iNdEx] 10102 iNdEx++ 10103 stringLen |= uint64(b&0x7F) << shift 10104 if b < 0x80 { 10105 break 10106 } 10107 } 10108 intStringLen := int(stringLen) 10109 if intStringLen < 0 { 10110 return ErrInvalidLengthAuth 10111 } 10112 postIndex := iNdEx + intStringLen 10113 if postIndex < 0 { 10114 return ErrInvalidLengthAuth 10115 } 10116 if postIndex > l { 10117 return io.ErrUnexpectedEOF 10118 } 10119 m.MetadataURL = string(dAtA[iNdEx:postIndex]) 10120 iNdEx = postIndex 10121 case 3: 10122 if wireType != 2 { 10123 return fmt.Errorf("proto: wrong wireType = %d for field DashURL", wireType) 10124 } 10125 var stringLen uint64 10126 for shift := uint(0); ; shift += 7 { 10127 if shift >= 64 { 10128 return ErrIntOverflowAuth 10129 } 10130 if iNdEx >= l { 10131 return io.ErrUnexpectedEOF 10132 } 10133 b := dAtA[iNdEx] 10134 iNdEx++ 10135 stringLen |= uint64(b&0x7F) << shift 10136 if b < 0x80 { 10137 break 10138 } 10139 } 10140 intStringLen := int(stringLen) 10141 if intStringLen < 0 { 10142 return ErrInvalidLengthAuth 10143 } 10144 postIndex := iNdEx + intStringLen 10145 if postIndex < 0 { 10146 return ErrInvalidLengthAuth 10147 } 10148 if postIndex > l { 10149 return io.ErrUnexpectedEOF 10150 } 10151 m.DashURL = string(dAtA[iNdEx:postIndex]) 10152 iNdEx = postIndex 10153 case 4: 10154 if wireType != 2 { 10155 return fmt.Errorf("proto: wrong wireType = %d for field SessionDuration", wireType) 10156 } 10157 var stringLen uint64 10158 for shift := uint(0); ; shift += 7 { 10159 if shift >= 64 { 10160 return ErrIntOverflowAuth 10161 } 10162 if iNdEx >= l { 10163 return io.ErrUnexpectedEOF 10164 } 10165 b := dAtA[iNdEx] 10166 iNdEx++ 10167 stringLen |= uint64(b&0x7F) << shift 10168 if b < 0x80 { 10169 break 10170 } 10171 } 10172 intStringLen := int(stringLen) 10173 if intStringLen < 0 { 10174 return ErrInvalidLengthAuth 10175 } 10176 postIndex := iNdEx + intStringLen 10177 if postIndex < 0 { 10178 return ErrInvalidLengthAuth 10179 } 10180 if postIndex > l { 10181 return io.ErrUnexpectedEOF 10182 } 10183 m.SessionDuration = string(dAtA[iNdEx:postIndex]) 10184 iNdEx = postIndex 10185 case 5: 10186 if wireType != 0 { 10187 return fmt.Errorf("proto: wrong wireType = %d for field DebugLogging", wireType) 10188 } 10189 var v int 10190 for shift := uint(0); ; shift += 7 { 10191 if shift >= 64 { 10192 return ErrIntOverflowAuth 10193 } 10194 if iNdEx >= l { 10195 return io.ErrUnexpectedEOF 10196 } 10197 b := dAtA[iNdEx] 10198 iNdEx++ 10199 v |= int(b&0x7F) << shift 10200 if b < 0x80 { 10201 break 10202 } 10203 } 10204 m.DebugLogging = bool(v != 0) 10205 default: 10206 iNdEx = preIndex 10207 skippy, err := skipAuth(dAtA[iNdEx:]) 10208 if err != nil { 10209 return err 10210 } 10211 if (skippy < 0) || (iNdEx+skippy) < 0 { 10212 return ErrInvalidLengthAuth 10213 } 10214 if (iNdEx + skippy) > l { 10215 return io.ErrUnexpectedEOF 10216 } 10217 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10218 iNdEx += skippy 10219 } 10220 } 10221 10222 if iNdEx > l { 10223 return io.ErrUnexpectedEOF 10224 } 10225 return nil 10226 } 10227 func (m *GetConfigurationRequest) Unmarshal(dAtA []byte) error { 10228 l := len(dAtA) 10229 iNdEx := 0 10230 for iNdEx < l { 10231 preIndex := iNdEx 10232 var wire uint64 10233 for shift := uint(0); ; shift += 7 { 10234 if shift >= 64 { 10235 return ErrIntOverflowAuth 10236 } 10237 if iNdEx >= l { 10238 return io.ErrUnexpectedEOF 10239 } 10240 b := dAtA[iNdEx] 10241 iNdEx++ 10242 wire |= uint64(b&0x7F) << shift 10243 if b < 0x80 { 10244 break 10245 } 10246 } 10247 fieldNum := int32(wire >> 3) 10248 wireType := int(wire & 0x7) 10249 if wireType == 4 { 10250 return fmt.Errorf("proto: GetConfigurationRequest: wiretype end group for non-group") 10251 } 10252 if fieldNum <= 0 { 10253 return fmt.Errorf("proto: GetConfigurationRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10254 } 10255 switch fieldNum { 10256 default: 10257 iNdEx = preIndex 10258 skippy, err := skipAuth(dAtA[iNdEx:]) 10259 if err != nil { 10260 return err 10261 } 10262 if (skippy < 0) || (iNdEx+skippy) < 0 { 10263 return ErrInvalidLengthAuth 10264 } 10265 if (iNdEx + skippy) > l { 10266 return io.ErrUnexpectedEOF 10267 } 10268 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10269 iNdEx += skippy 10270 } 10271 } 10272 10273 if iNdEx > l { 10274 return io.ErrUnexpectedEOF 10275 } 10276 return nil 10277 } 10278 func (m *GetConfigurationResponse) Unmarshal(dAtA []byte) error { 10279 l := len(dAtA) 10280 iNdEx := 0 10281 for iNdEx < l { 10282 preIndex := iNdEx 10283 var wire uint64 10284 for shift := uint(0); ; shift += 7 { 10285 if shift >= 64 { 10286 return ErrIntOverflowAuth 10287 } 10288 if iNdEx >= l { 10289 return io.ErrUnexpectedEOF 10290 } 10291 b := dAtA[iNdEx] 10292 iNdEx++ 10293 wire |= uint64(b&0x7F) << shift 10294 if b < 0x80 { 10295 break 10296 } 10297 } 10298 fieldNum := int32(wire >> 3) 10299 wireType := int(wire & 0x7) 10300 if wireType == 4 { 10301 return fmt.Errorf("proto: GetConfigurationResponse: wiretype end group for non-group") 10302 } 10303 if fieldNum <= 0 { 10304 return fmt.Errorf("proto: GetConfigurationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10305 } 10306 switch fieldNum { 10307 case 1: 10308 if wireType != 2 { 10309 return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) 10310 } 10311 var msglen int 10312 for shift := uint(0); ; shift += 7 { 10313 if shift >= 64 { 10314 return ErrIntOverflowAuth 10315 } 10316 if iNdEx >= l { 10317 return io.ErrUnexpectedEOF 10318 } 10319 b := dAtA[iNdEx] 10320 iNdEx++ 10321 msglen |= int(b&0x7F) << shift 10322 if b < 0x80 { 10323 break 10324 } 10325 } 10326 if msglen < 0 { 10327 return ErrInvalidLengthAuth 10328 } 10329 postIndex := iNdEx + msglen 10330 if postIndex < 0 { 10331 return ErrInvalidLengthAuth 10332 } 10333 if postIndex > l { 10334 return io.ErrUnexpectedEOF 10335 } 10336 if m.Configuration == nil { 10337 m.Configuration = &AuthConfig{} 10338 } 10339 if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10340 return err 10341 } 10342 iNdEx = postIndex 10343 default: 10344 iNdEx = preIndex 10345 skippy, err := skipAuth(dAtA[iNdEx:]) 10346 if err != nil { 10347 return err 10348 } 10349 if (skippy < 0) || (iNdEx+skippy) < 0 { 10350 return ErrInvalidLengthAuth 10351 } 10352 if (iNdEx + skippy) > l { 10353 return io.ErrUnexpectedEOF 10354 } 10355 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10356 iNdEx += skippy 10357 } 10358 } 10359 10360 if iNdEx > l { 10361 return io.ErrUnexpectedEOF 10362 } 10363 return nil 10364 } 10365 func (m *SetConfigurationRequest) Unmarshal(dAtA []byte) error { 10366 l := len(dAtA) 10367 iNdEx := 0 10368 for iNdEx < l { 10369 preIndex := iNdEx 10370 var wire uint64 10371 for shift := uint(0); ; shift += 7 { 10372 if shift >= 64 { 10373 return ErrIntOverflowAuth 10374 } 10375 if iNdEx >= l { 10376 return io.ErrUnexpectedEOF 10377 } 10378 b := dAtA[iNdEx] 10379 iNdEx++ 10380 wire |= uint64(b&0x7F) << shift 10381 if b < 0x80 { 10382 break 10383 } 10384 } 10385 fieldNum := int32(wire >> 3) 10386 wireType := int(wire & 0x7) 10387 if wireType == 4 { 10388 return fmt.Errorf("proto: SetConfigurationRequest: wiretype end group for non-group") 10389 } 10390 if fieldNum <= 0 { 10391 return fmt.Errorf("proto: SetConfigurationRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10392 } 10393 switch fieldNum { 10394 case 1: 10395 if wireType != 2 { 10396 return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) 10397 } 10398 var msglen int 10399 for shift := uint(0); ; shift += 7 { 10400 if shift >= 64 { 10401 return ErrIntOverflowAuth 10402 } 10403 if iNdEx >= l { 10404 return io.ErrUnexpectedEOF 10405 } 10406 b := dAtA[iNdEx] 10407 iNdEx++ 10408 msglen |= int(b&0x7F) << shift 10409 if b < 0x80 { 10410 break 10411 } 10412 } 10413 if msglen < 0 { 10414 return ErrInvalidLengthAuth 10415 } 10416 postIndex := iNdEx + msglen 10417 if postIndex < 0 { 10418 return ErrInvalidLengthAuth 10419 } 10420 if postIndex > l { 10421 return io.ErrUnexpectedEOF 10422 } 10423 if m.Configuration == nil { 10424 m.Configuration = &AuthConfig{} 10425 } 10426 if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10427 return err 10428 } 10429 iNdEx = postIndex 10430 default: 10431 iNdEx = preIndex 10432 skippy, err := skipAuth(dAtA[iNdEx:]) 10433 if err != nil { 10434 return err 10435 } 10436 if (skippy < 0) || (iNdEx+skippy) < 0 { 10437 return ErrInvalidLengthAuth 10438 } 10439 if (iNdEx + skippy) > l { 10440 return io.ErrUnexpectedEOF 10441 } 10442 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10443 iNdEx += skippy 10444 } 10445 } 10446 10447 if iNdEx > l { 10448 return io.ErrUnexpectedEOF 10449 } 10450 return nil 10451 } 10452 func (m *SetConfigurationResponse) Unmarshal(dAtA []byte) error { 10453 l := len(dAtA) 10454 iNdEx := 0 10455 for iNdEx < l { 10456 preIndex := iNdEx 10457 var wire uint64 10458 for shift := uint(0); ; shift += 7 { 10459 if shift >= 64 { 10460 return ErrIntOverflowAuth 10461 } 10462 if iNdEx >= l { 10463 return io.ErrUnexpectedEOF 10464 } 10465 b := dAtA[iNdEx] 10466 iNdEx++ 10467 wire |= uint64(b&0x7F) << shift 10468 if b < 0x80 { 10469 break 10470 } 10471 } 10472 fieldNum := int32(wire >> 3) 10473 wireType := int(wire & 0x7) 10474 if wireType == 4 { 10475 return fmt.Errorf("proto: SetConfigurationResponse: wiretype end group for non-group") 10476 } 10477 if fieldNum <= 0 { 10478 return fmt.Errorf("proto: SetConfigurationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10479 } 10480 switch fieldNum { 10481 default: 10482 iNdEx = preIndex 10483 skippy, err := skipAuth(dAtA[iNdEx:]) 10484 if err != nil { 10485 return err 10486 } 10487 if (skippy < 0) || (iNdEx+skippy) < 0 { 10488 return ErrInvalidLengthAuth 10489 } 10490 if (iNdEx + skippy) > l { 10491 return io.ErrUnexpectedEOF 10492 } 10493 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10494 iNdEx += skippy 10495 } 10496 } 10497 10498 if iNdEx > l { 10499 return io.ErrUnexpectedEOF 10500 } 10501 return nil 10502 } 10503 func (m *ClusterRoles) Unmarshal(dAtA []byte) error { 10504 l := len(dAtA) 10505 iNdEx := 0 10506 for iNdEx < l { 10507 preIndex := iNdEx 10508 var wire uint64 10509 for shift := uint(0); ; shift += 7 { 10510 if shift >= 64 { 10511 return ErrIntOverflowAuth 10512 } 10513 if iNdEx >= l { 10514 return io.ErrUnexpectedEOF 10515 } 10516 b := dAtA[iNdEx] 10517 iNdEx++ 10518 wire |= uint64(b&0x7F) << shift 10519 if b < 0x80 { 10520 break 10521 } 10522 } 10523 fieldNum := int32(wire >> 3) 10524 wireType := int(wire & 0x7) 10525 if wireType == 4 { 10526 return fmt.Errorf("proto: ClusterRoles: wiretype end group for non-group") 10527 } 10528 if fieldNum <= 0 { 10529 return fmt.Errorf("proto: ClusterRoles: illegal tag %d (wire type %d)", fieldNum, wire) 10530 } 10531 switch fieldNum { 10532 case 1: 10533 if wireType == 0 { 10534 var v ClusterRole 10535 for shift := uint(0); ; shift += 7 { 10536 if shift >= 64 { 10537 return ErrIntOverflowAuth 10538 } 10539 if iNdEx >= l { 10540 return io.ErrUnexpectedEOF 10541 } 10542 b := dAtA[iNdEx] 10543 iNdEx++ 10544 v |= ClusterRole(b&0x7F) << shift 10545 if b < 0x80 { 10546 break 10547 } 10548 } 10549 m.Roles = append(m.Roles, v) 10550 } else if wireType == 2 { 10551 var packedLen int 10552 for shift := uint(0); ; shift += 7 { 10553 if shift >= 64 { 10554 return ErrIntOverflowAuth 10555 } 10556 if iNdEx >= l { 10557 return io.ErrUnexpectedEOF 10558 } 10559 b := dAtA[iNdEx] 10560 iNdEx++ 10561 packedLen |= int(b&0x7F) << shift 10562 if b < 0x80 { 10563 break 10564 } 10565 } 10566 if packedLen < 0 { 10567 return ErrInvalidLengthAuth 10568 } 10569 postIndex := iNdEx + packedLen 10570 if postIndex < 0 { 10571 return ErrInvalidLengthAuth 10572 } 10573 if postIndex > l { 10574 return io.ErrUnexpectedEOF 10575 } 10576 var elementCount int 10577 if elementCount != 0 && len(m.Roles) == 0 { 10578 m.Roles = make([]ClusterRole, 0, elementCount) 10579 } 10580 for iNdEx < postIndex { 10581 var v ClusterRole 10582 for shift := uint(0); ; shift += 7 { 10583 if shift >= 64 { 10584 return ErrIntOverflowAuth 10585 } 10586 if iNdEx >= l { 10587 return io.ErrUnexpectedEOF 10588 } 10589 b := dAtA[iNdEx] 10590 iNdEx++ 10591 v |= ClusterRole(b&0x7F) << shift 10592 if b < 0x80 { 10593 break 10594 } 10595 } 10596 m.Roles = append(m.Roles, v) 10597 } 10598 } else { 10599 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) 10600 } 10601 default: 10602 iNdEx = preIndex 10603 skippy, err := skipAuth(dAtA[iNdEx:]) 10604 if err != nil { 10605 return err 10606 } 10607 if (skippy < 0) || (iNdEx+skippy) < 0 { 10608 return ErrInvalidLengthAuth 10609 } 10610 if (iNdEx + skippy) > l { 10611 return io.ErrUnexpectedEOF 10612 } 10613 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10614 iNdEx += skippy 10615 } 10616 } 10617 10618 if iNdEx > l { 10619 return io.ErrUnexpectedEOF 10620 } 10621 return nil 10622 } 10623 func (m *GetClusterRoleBindingsRequest) Unmarshal(dAtA []byte) error { 10624 l := len(dAtA) 10625 iNdEx := 0 10626 for iNdEx < l { 10627 preIndex := iNdEx 10628 var wire uint64 10629 for shift := uint(0); ; shift += 7 { 10630 if shift >= 64 { 10631 return ErrIntOverflowAuth 10632 } 10633 if iNdEx >= l { 10634 return io.ErrUnexpectedEOF 10635 } 10636 b := dAtA[iNdEx] 10637 iNdEx++ 10638 wire |= uint64(b&0x7F) << shift 10639 if b < 0x80 { 10640 break 10641 } 10642 } 10643 fieldNum := int32(wire >> 3) 10644 wireType := int(wire & 0x7) 10645 if wireType == 4 { 10646 return fmt.Errorf("proto: GetClusterRoleBindingsRequest: wiretype end group for non-group") 10647 } 10648 if fieldNum <= 0 { 10649 return fmt.Errorf("proto: GetClusterRoleBindingsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10650 } 10651 switch fieldNum { 10652 default: 10653 iNdEx = preIndex 10654 skippy, err := skipAuth(dAtA[iNdEx:]) 10655 if err != nil { 10656 return err 10657 } 10658 if (skippy < 0) || (iNdEx+skippy) < 0 { 10659 return ErrInvalidLengthAuth 10660 } 10661 if (iNdEx + skippy) > l { 10662 return io.ErrUnexpectedEOF 10663 } 10664 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10665 iNdEx += skippy 10666 } 10667 } 10668 10669 if iNdEx > l { 10670 return io.ErrUnexpectedEOF 10671 } 10672 return nil 10673 } 10674 func (m *GetClusterRoleBindingsResponse) Unmarshal(dAtA []byte) error { 10675 l := len(dAtA) 10676 iNdEx := 0 10677 for iNdEx < l { 10678 preIndex := iNdEx 10679 var wire uint64 10680 for shift := uint(0); ; shift += 7 { 10681 if shift >= 64 { 10682 return ErrIntOverflowAuth 10683 } 10684 if iNdEx >= l { 10685 return io.ErrUnexpectedEOF 10686 } 10687 b := dAtA[iNdEx] 10688 iNdEx++ 10689 wire |= uint64(b&0x7F) << shift 10690 if b < 0x80 { 10691 break 10692 } 10693 } 10694 fieldNum := int32(wire >> 3) 10695 wireType := int(wire & 0x7) 10696 if wireType == 4 { 10697 return fmt.Errorf("proto: GetClusterRoleBindingsResponse: wiretype end group for non-group") 10698 } 10699 if fieldNum <= 0 { 10700 return fmt.Errorf("proto: GetClusterRoleBindingsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10701 } 10702 switch fieldNum { 10703 case 1: 10704 if wireType != 2 { 10705 return fmt.Errorf("proto: wrong wireType = %d for field Bindings", wireType) 10706 } 10707 var msglen int 10708 for shift := uint(0); ; shift += 7 { 10709 if shift >= 64 { 10710 return ErrIntOverflowAuth 10711 } 10712 if iNdEx >= l { 10713 return io.ErrUnexpectedEOF 10714 } 10715 b := dAtA[iNdEx] 10716 iNdEx++ 10717 msglen |= int(b&0x7F) << shift 10718 if b < 0x80 { 10719 break 10720 } 10721 } 10722 if msglen < 0 { 10723 return ErrInvalidLengthAuth 10724 } 10725 postIndex := iNdEx + msglen 10726 if postIndex < 0 { 10727 return ErrInvalidLengthAuth 10728 } 10729 if postIndex > l { 10730 return io.ErrUnexpectedEOF 10731 } 10732 if m.Bindings == nil { 10733 m.Bindings = make(map[string]*ClusterRoles) 10734 } 10735 var mapkey string 10736 var mapvalue *ClusterRoles 10737 for iNdEx < postIndex { 10738 entryPreIndex := iNdEx 10739 var wire uint64 10740 for shift := uint(0); ; shift += 7 { 10741 if shift >= 64 { 10742 return ErrIntOverflowAuth 10743 } 10744 if iNdEx >= l { 10745 return io.ErrUnexpectedEOF 10746 } 10747 b := dAtA[iNdEx] 10748 iNdEx++ 10749 wire |= uint64(b&0x7F) << shift 10750 if b < 0x80 { 10751 break 10752 } 10753 } 10754 fieldNum := int32(wire >> 3) 10755 if fieldNum == 1 { 10756 var stringLenmapkey uint64 10757 for shift := uint(0); ; shift += 7 { 10758 if shift >= 64 { 10759 return ErrIntOverflowAuth 10760 } 10761 if iNdEx >= l { 10762 return io.ErrUnexpectedEOF 10763 } 10764 b := dAtA[iNdEx] 10765 iNdEx++ 10766 stringLenmapkey |= uint64(b&0x7F) << shift 10767 if b < 0x80 { 10768 break 10769 } 10770 } 10771 intStringLenmapkey := int(stringLenmapkey) 10772 if intStringLenmapkey < 0 { 10773 return ErrInvalidLengthAuth 10774 } 10775 postStringIndexmapkey := iNdEx + intStringLenmapkey 10776 if postStringIndexmapkey < 0 { 10777 return ErrInvalidLengthAuth 10778 } 10779 if postStringIndexmapkey > l { 10780 return io.ErrUnexpectedEOF 10781 } 10782 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 10783 iNdEx = postStringIndexmapkey 10784 } else if fieldNum == 2 { 10785 var mapmsglen int 10786 for shift := uint(0); ; shift += 7 { 10787 if shift >= 64 { 10788 return ErrIntOverflowAuth 10789 } 10790 if iNdEx >= l { 10791 return io.ErrUnexpectedEOF 10792 } 10793 b := dAtA[iNdEx] 10794 iNdEx++ 10795 mapmsglen |= int(b&0x7F) << shift 10796 if b < 0x80 { 10797 break 10798 } 10799 } 10800 if mapmsglen < 0 { 10801 return ErrInvalidLengthAuth 10802 } 10803 postmsgIndex := iNdEx + mapmsglen 10804 if postmsgIndex < 0 { 10805 return ErrInvalidLengthAuth 10806 } 10807 if postmsgIndex > l { 10808 return io.ErrUnexpectedEOF 10809 } 10810 mapvalue = &ClusterRoles{} 10811 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 10812 return err 10813 } 10814 iNdEx = postmsgIndex 10815 } else { 10816 iNdEx = entryPreIndex 10817 skippy, err := skipAuth(dAtA[iNdEx:]) 10818 if err != nil { 10819 return err 10820 } 10821 if (skippy < 0) || (iNdEx+skippy) < 0 { 10822 return ErrInvalidLengthAuth 10823 } 10824 if (iNdEx + skippy) > postIndex { 10825 return io.ErrUnexpectedEOF 10826 } 10827 iNdEx += skippy 10828 } 10829 } 10830 m.Bindings[mapkey] = mapvalue 10831 iNdEx = postIndex 10832 default: 10833 iNdEx = preIndex 10834 skippy, err := skipAuth(dAtA[iNdEx:]) 10835 if err != nil { 10836 return err 10837 } 10838 if (skippy < 0) || (iNdEx+skippy) < 0 { 10839 return ErrInvalidLengthAuth 10840 } 10841 if (iNdEx + skippy) > l { 10842 return io.ErrUnexpectedEOF 10843 } 10844 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10845 iNdEx += skippy 10846 } 10847 } 10848 10849 if iNdEx > l { 10850 return io.ErrUnexpectedEOF 10851 } 10852 return nil 10853 } 10854 func (m *ModifyClusterRoleBindingRequest) Unmarshal(dAtA []byte) error { 10855 l := len(dAtA) 10856 iNdEx := 0 10857 for iNdEx < l { 10858 preIndex := iNdEx 10859 var wire uint64 10860 for shift := uint(0); ; shift += 7 { 10861 if shift >= 64 { 10862 return ErrIntOverflowAuth 10863 } 10864 if iNdEx >= l { 10865 return io.ErrUnexpectedEOF 10866 } 10867 b := dAtA[iNdEx] 10868 iNdEx++ 10869 wire |= uint64(b&0x7F) << shift 10870 if b < 0x80 { 10871 break 10872 } 10873 } 10874 fieldNum := int32(wire >> 3) 10875 wireType := int(wire & 0x7) 10876 if wireType == 4 { 10877 return fmt.Errorf("proto: ModifyClusterRoleBindingRequest: wiretype end group for non-group") 10878 } 10879 if fieldNum <= 0 { 10880 return fmt.Errorf("proto: ModifyClusterRoleBindingRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10881 } 10882 switch fieldNum { 10883 case 1: 10884 if wireType != 2 { 10885 return fmt.Errorf("proto: wrong wireType = %d for field Principal", wireType) 10886 } 10887 var stringLen uint64 10888 for shift := uint(0); ; shift += 7 { 10889 if shift >= 64 { 10890 return ErrIntOverflowAuth 10891 } 10892 if iNdEx >= l { 10893 return io.ErrUnexpectedEOF 10894 } 10895 b := dAtA[iNdEx] 10896 iNdEx++ 10897 stringLen |= uint64(b&0x7F) << shift 10898 if b < 0x80 { 10899 break 10900 } 10901 } 10902 intStringLen := int(stringLen) 10903 if intStringLen < 0 { 10904 return ErrInvalidLengthAuth 10905 } 10906 postIndex := iNdEx + intStringLen 10907 if postIndex < 0 { 10908 return ErrInvalidLengthAuth 10909 } 10910 if postIndex > l { 10911 return io.ErrUnexpectedEOF 10912 } 10913 m.Principal = string(dAtA[iNdEx:postIndex]) 10914 iNdEx = postIndex 10915 case 2: 10916 if wireType != 2 { 10917 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) 10918 } 10919 var msglen int 10920 for shift := uint(0); ; shift += 7 { 10921 if shift >= 64 { 10922 return ErrIntOverflowAuth 10923 } 10924 if iNdEx >= l { 10925 return io.ErrUnexpectedEOF 10926 } 10927 b := dAtA[iNdEx] 10928 iNdEx++ 10929 msglen |= int(b&0x7F) << shift 10930 if b < 0x80 { 10931 break 10932 } 10933 } 10934 if msglen < 0 { 10935 return ErrInvalidLengthAuth 10936 } 10937 postIndex := iNdEx + msglen 10938 if postIndex < 0 { 10939 return ErrInvalidLengthAuth 10940 } 10941 if postIndex > l { 10942 return io.ErrUnexpectedEOF 10943 } 10944 if m.Roles == nil { 10945 m.Roles = &ClusterRoles{} 10946 } 10947 if err := m.Roles.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10948 return err 10949 } 10950 iNdEx = postIndex 10951 default: 10952 iNdEx = preIndex 10953 skippy, err := skipAuth(dAtA[iNdEx:]) 10954 if err != nil { 10955 return err 10956 } 10957 if (skippy < 0) || (iNdEx+skippy) < 0 { 10958 return ErrInvalidLengthAuth 10959 } 10960 if (iNdEx + skippy) > l { 10961 return io.ErrUnexpectedEOF 10962 } 10963 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10964 iNdEx += skippy 10965 } 10966 } 10967 10968 if iNdEx > l { 10969 return io.ErrUnexpectedEOF 10970 } 10971 return nil 10972 } 10973 func (m *ModifyClusterRoleBindingResponse) Unmarshal(dAtA []byte) error { 10974 l := len(dAtA) 10975 iNdEx := 0 10976 for iNdEx < l { 10977 preIndex := iNdEx 10978 var wire uint64 10979 for shift := uint(0); ; shift += 7 { 10980 if shift >= 64 { 10981 return ErrIntOverflowAuth 10982 } 10983 if iNdEx >= l { 10984 return io.ErrUnexpectedEOF 10985 } 10986 b := dAtA[iNdEx] 10987 iNdEx++ 10988 wire |= uint64(b&0x7F) << shift 10989 if b < 0x80 { 10990 break 10991 } 10992 } 10993 fieldNum := int32(wire >> 3) 10994 wireType := int(wire & 0x7) 10995 if wireType == 4 { 10996 return fmt.Errorf("proto: ModifyClusterRoleBindingResponse: wiretype end group for non-group") 10997 } 10998 if fieldNum <= 0 { 10999 return fmt.Errorf("proto: ModifyClusterRoleBindingResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11000 } 11001 switch fieldNum { 11002 default: 11003 iNdEx = preIndex 11004 skippy, err := skipAuth(dAtA[iNdEx:]) 11005 if err != nil { 11006 return err 11007 } 11008 if (skippy < 0) || (iNdEx+skippy) < 0 { 11009 return ErrInvalidLengthAuth 11010 } 11011 if (iNdEx + skippy) > l { 11012 return io.ErrUnexpectedEOF 11013 } 11014 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11015 iNdEx += skippy 11016 } 11017 } 11018 11019 if iNdEx > l { 11020 return io.ErrUnexpectedEOF 11021 } 11022 return nil 11023 } 11024 func (m *GetAdminsRequest) Unmarshal(dAtA []byte) error { 11025 l := len(dAtA) 11026 iNdEx := 0 11027 for iNdEx < l { 11028 preIndex := iNdEx 11029 var wire uint64 11030 for shift := uint(0); ; shift += 7 { 11031 if shift >= 64 { 11032 return ErrIntOverflowAuth 11033 } 11034 if iNdEx >= l { 11035 return io.ErrUnexpectedEOF 11036 } 11037 b := dAtA[iNdEx] 11038 iNdEx++ 11039 wire |= uint64(b&0x7F) << shift 11040 if b < 0x80 { 11041 break 11042 } 11043 } 11044 fieldNum := int32(wire >> 3) 11045 wireType := int(wire & 0x7) 11046 if wireType == 4 { 11047 return fmt.Errorf("proto: GetAdminsRequest: wiretype end group for non-group") 11048 } 11049 if fieldNum <= 0 { 11050 return fmt.Errorf("proto: GetAdminsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11051 } 11052 switch fieldNum { 11053 default: 11054 iNdEx = preIndex 11055 skippy, err := skipAuth(dAtA[iNdEx:]) 11056 if err != nil { 11057 return err 11058 } 11059 if (skippy < 0) || (iNdEx+skippy) < 0 { 11060 return ErrInvalidLengthAuth 11061 } 11062 if (iNdEx + skippy) > l { 11063 return io.ErrUnexpectedEOF 11064 } 11065 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11066 iNdEx += skippy 11067 } 11068 } 11069 11070 if iNdEx > l { 11071 return io.ErrUnexpectedEOF 11072 } 11073 return nil 11074 } 11075 func (m *GetAdminsResponse) Unmarshal(dAtA []byte) error { 11076 l := len(dAtA) 11077 iNdEx := 0 11078 for iNdEx < l { 11079 preIndex := iNdEx 11080 var wire uint64 11081 for shift := uint(0); ; shift += 7 { 11082 if shift >= 64 { 11083 return ErrIntOverflowAuth 11084 } 11085 if iNdEx >= l { 11086 return io.ErrUnexpectedEOF 11087 } 11088 b := dAtA[iNdEx] 11089 iNdEx++ 11090 wire |= uint64(b&0x7F) << shift 11091 if b < 0x80 { 11092 break 11093 } 11094 } 11095 fieldNum := int32(wire >> 3) 11096 wireType := int(wire & 0x7) 11097 if wireType == 4 { 11098 return fmt.Errorf("proto: GetAdminsResponse: wiretype end group for non-group") 11099 } 11100 if fieldNum <= 0 { 11101 return fmt.Errorf("proto: GetAdminsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11102 } 11103 switch fieldNum { 11104 case 1: 11105 if wireType != 2 { 11106 return fmt.Errorf("proto: wrong wireType = %d for field Admins", wireType) 11107 } 11108 var stringLen uint64 11109 for shift := uint(0); ; shift += 7 { 11110 if shift >= 64 { 11111 return ErrIntOverflowAuth 11112 } 11113 if iNdEx >= l { 11114 return io.ErrUnexpectedEOF 11115 } 11116 b := dAtA[iNdEx] 11117 iNdEx++ 11118 stringLen |= uint64(b&0x7F) << shift 11119 if b < 0x80 { 11120 break 11121 } 11122 } 11123 intStringLen := int(stringLen) 11124 if intStringLen < 0 { 11125 return ErrInvalidLengthAuth 11126 } 11127 postIndex := iNdEx + intStringLen 11128 if postIndex < 0 { 11129 return ErrInvalidLengthAuth 11130 } 11131 if postIndex > l { 11132 return io.ErrUnexpectedEOF 11133 } 11134 m.Admins = append(m.Admins, string(dAtA[iNdEx:postIndex])) 11135 iNdEx = postIndex 11136 default: 11137 iNdEx = preIndex 11138 skippy, err := skipAuth(dAtA[iNdEx:]) 11139 if err != nil { 11140 return err 11141 } 11142 if (skippy < 0) || (iNdEx+skippy) < 0 { 11143 return ErrInvalidLengthAuth 11144 } 11145 if (iNdEx + skippy) > l { 11146 return io.ErrUnexpectedEOF 11147 } 11148 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11149 iNdEx += skippy 11150 } 11151 } 11152 11153 if iNdEx > l { 11154 return io.ErrUnexpectedEOF 11155 } 11156 return nil 11157 } 11158 func (m *ModifyAdminsRequest) Unmarshal(dAtA []byte) error { 11159 l := len(dAtA) 11160 iNdEx := 0 11161 for iNdEx < l { 11162 preIndex := iNdEx 11163 var wire uint64 11164 for shift := uint(0); ; shift += 7 { 11165 if shift >= 64 { 11166 return ErrIntOverflowAuth 11167 } 11168 if iNdEx >= l { 11169 return io.ErrUnexpectedEOF 11170 } 11171 b := dAtA[iNdEx] 11172 iNdEx++ 11173 wire |= uint64(b&0x7F) << shift 11174 if b < 0x80 { 11175 break 11176 } 11177 } 11178 fieldNum := int32(wire >> 3) 11179 wireType := int(wire & 0x7) 11180 if wireType == 4 { 11181 return fmt.Errorf("proto: ModifyAdminsRequest: wiretype end group for non-group") 11182 } 11183 if fieldNum <= 0 { 11184 return fmt.Errorf("proto: ModifyAdminsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11185 } 11186 switch fieldNum { 11187 case 1: 11188 if wireType != 2 { 11189 return fmt.Errorf("proto: wrong wireType = %d for field Add", wireType) 11190 } 11191 var stringLen uint64 11192 for shift := uint(0); ; shift += 7 { 11193 if shift >= 64 { 11194 return ErrIntOverflowAuth 11195 } 11196 if iNdEx >= l { 11197 return io.ErrUnexpectedEOF 11198 } 11199 b := dAtA[iNdEx] 11200 iNdEx++ 11201 stringLen |= uint64(b&0x7F) << shift 11202 if b < 0x80 { 11203 break 11204 } 11205 } 11206 intStringLen := int(stringLen) 11207 if intStringLen < 0 { 11208 return ErrInvalidLengthAuth 11209 } 11210 postIndex := iNdEx + intStringLen 11211 if postIndex < 0 { 11212 return ErrInvalidLengthAuth 11213 } 11214 if postIndex > l { 11215 return io.ErrUnexpectedEOF 11216 } 11217 m.Add = append(m.Add, string(dAtA[iNdEx:postIndex])) 11218 iNdEx = postIndex 11219 case 2: 11220 if wireType != 2 { 11221 return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) 11222 } 11223 var stringLen uint64 11224 for shift := uint(0); ; shift += 7 { 11225 if shift >= 64 { 11226 return ErrIntOverflowAuth 11227 } 11228 if iNdEx >= l { 11229 return io.ErrUnexpectedEOF 11230 } 11231 b := dAtA[iNdEx] 11232 iNdEx++ 11233 stringLen |= uint64(b&0x7F) << shift 11234 if b < 0x80 { 11235 break 11236 } 11237 } 11238 intStringLen := int(stringLen) 11239 if intStringLen < 0 { 11240 return ErrInvalidLengthAuth 11241 } 11242 postIndex := iNdEx + intStringLen 11243 if postIndex < 0 { 11244 return ErrInvalidLengthAuth 11245 } 11246 if postIndex > l { 11247 return io.ErrUnexpectedEOF 11248 } 11249 m.Remove = append(m.Remove, string(dAtA[iNdEx:postIndex])) 11250 iNdEx = postIndex 11251 default: 11252 iNdEx = preIndex 11253 skippy, err := skipAuth(dAtA[iNdEx:]) 11254 if err != nil { 11255 return err 11256 } 11257 if (skippy < 0) || (iNdEx+skippy) < 0 { 11258 return ErrInvalidLengthAuth 11259 } 11260 if (iNdEx + skippy) > l { 11261 return io.ErrUnexpectedEOF 11262 } 11263 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11264 iNdEx += skippy 11265 } 11266 } 11267 11268 if iNdEx > l { 11269 return io.ErrUnexpectedEOF 11270 } 11271 return nil 11272 } 11273 func (m *ModifyAdminsResponse) Unmarshal(dAtA []byte) error { 11274 l := len(dAtA) 11275 iNdEx := 0 11276 for iNdEx < l { 11277 preIndex := iNdEx 11278 var wire uint64 11279 for shift := uint(0); ; shift += 7 { 11280 if shift >= 64 { 11281 return ErrIntOverflowAuth 11282 } 11283 if iNdEx >= l { 11284 return io.ErrUnexpectedEOF 11285 } 11286 b := dAtA[iNdEx] 11287 iNdEx++ 11288 wire |= uint64(b&0x7F) << shift 11289 if b < 0x80 { 11290 break 11291 } 11292 } 11293 fieldNum := int32(wire >> 3) 11294 wireType := int(wire & 0x7) 11295 if wireType == 4 { 11296 return fmt.Errorf("proto: ModifyAdminsResponse: wiretype end group for non-group") 11297 } 11298 if fieldNum <= 0 { 11299 return fmt.Errorf("proto: ModifyAdminsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11300 } 11301 switch fieldNum { 11302 default: 11303 iNdEx = preIndex 11304 skippy, err := skipAuth(dAtA[iNdEx:]) 11305 if err != nil { 11306 return err 11307 } 11308 if (skippy < 0) || (iNdEx+skippy) < 0 { 11309 return ErrInvalidLengthAuth 11310 } 11311 if (iNdEx + skippy) > l { 11312 return io.ErrUnexpectedEOF 11313 } 11314 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11315 iNdEx += skippy 11316 } 11317 } 11318 11319 if iNdEx > l { 11320 return io.ErrUnexpectedEOF 11321 } 11322 return nil 11323 } 11324 func (m *OTPInfo) Unmarshal(dAtA []byte) error { 11325 l := len(dAtA) 11326 iNdEx := 0 11327 for iNdEx < l { 11328 preIndex := iNdEx 11329 var wire uint64 11330 for shift := uint(0); ; shift += 7 { 11331 if shift >= 64 { 11332 return ErrIntOverflowAuth 11333 } 11334 if iNdEx >= l { 11335 return io.ErrUnexpectedEOF 11336 } 11337 b := dAtA[iNdEx] 11338 iNdEx++ 11339 wire |= uint64(b&0x7F) << shift 11340 if b < 0x80 { 11341 break 11342 } 11343 } 11344 fieldNum := int32(wire >> 3) 11345 wireType := int(wire & 0x7) 11346 if wireType == 4 { 11347 return fmt.Errorf("proto: OTPInfo: wiretype end group for non-group") 11348 } 11349 if fieldNum <= 0 { 11350 return fmt.Errorf("proto: OTPInfo: illegal tag %d (wire type %d)", fieldNum, wire) 11351 } 11352 switch fieldNum { 11353 case 1: 11354 if wireType != 2 { 11355 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 11356 } 11357 var stringLen uint64 11358 for shift := uint(0); ; shift += 7 { 11359 if shift >= 64 { 11360 return ErrIntOverflowAuth 11361 } 11362 if iNdEx >= l { 11363 return io.ErrUnexpectedEOF 11364 } 11365 b := dAtA[iNdEx] 11366 iNdEx++ 11367 stringLen |= uint64(b&0x7F) << shift 11368 if b < 0x80 { 11369 break 11370 } 11371 } 11372 intStringLen := int(stringLen) 11373 if intStringLen < 0 { 11374 return ErrInvalidLengthAuth 11375 } 11376 postIndex := iNdEx + intStringLen 11377 if postIndex < 0 { 11378 return ErrInvalidLengthAuth 11379 } 11380 if postIndex > l { 11381 return io.ErrUnexpectedEOF 11382 } 11383 m.Subject = string(dAtA[iNdEx:postIndex]) 11384 iNdEx = postIndex 11385 case 2: 11386 if wireType != 2 { 11387 return fmt.Errorf("proto: wrong wireType = %d for field SessionExpiration", wireType) 11388 } 11389 var msglen int 11390 for shift := uint(0); ; shift += 7 { 11391 if shift >= 64 { 11392 return ErrIntOverflowAuth 11393 } 11394 if iNdEx >= l { 11395 return io.ErrUnexpectedEOF 11396 } 11397 b := dAtA[iNdEx] 11398 iNdEx++ 11399 msglen |= int(b&0x7F) << shift 11400 if b < 0x80 { 11401 break 11402 } 11403 } 11404 if msglen < 0 { 11405 return ErrInvalidLengthAuth 11406 } 11407 postIndex := iNdEx + msglen 11408 if postIndex < 0 { 11409 return ErrInvalidLengthAuth 11410 } 11411 if postIndex > l { 11412 return io.ErrUnexpectedEOF 11413 } 11414 if m.SessionExpiration == nil { 11415 m.SessionExpiration = &types.Timestamp{} 11416 } 11417 if err := m.SessionExpiration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11418 return err 11419 } 11420 iNdEx = postIndex 11421 default: 11422 iNdEx = preIndex 11423 skippy, err := skipAuth(dAtA[iNdEx:]) 11424 if err != nil { 11425 return err 11426 } 11427 if (skippy < 0) || (iNdEx+skippy) < 0 { 11428 return ErrInvalidLengthAuth 11429 } 11430 if (iNdEx + skippy) > l { 11431 return io.ErrUnexpectedEOF 11432 } 11433 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11434 iNdEx += skippy 11435 } 11436 } 11437 11438 if iNdEx > l { 11439 return io.ErrUnexpectedEOF 11440 } 11441 return nil 11442 } 11443 func (m *TokenInfo) Unmarshal(dAtA []byte) error { 11444 l := len(dAtA) 11445 iNdEx := 0 11446 for iNdEx < l { 11447 preIndex := iNdEx 11448 var wire uint64 11449 for shift := uint(0); ; shift += 7 { 11450 if shift >= 64 { 11451 return ErrIntOverflowAuth 11452 } 11453 if iNdEx >= l { 11454 return io.ErrUnexpectedEOF 11455 } 11456 b := dAtA[iNdEx] 11457 iNdEx++ 11458 wire |= uint64(b&0x7F) << shift 11459 if b < 0x80 { 11460 break 11461 } 11462 } 11463 fieldNum := int32(wire >> 3) 11464 wireType := int(wire & 0x7) 11465 if wireType == 4 { 11466 return fmt.Errorf("proto: TokenInfo: wiretype end group for non-group") 11467 } 11468 if fieldNum <= 0 { 11469 return fmt.Errorf("proto: TokenInfo: illegal tag %d (wire type %d)", fieldNum, wire) 11470 } 11471 switch fieldNum { 11472 case 1: 11473 if wireType != 2 { 11474 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 11475 } 11476 var stringLen uint64 11477 for shift := uint(0); ; shift += 7 { 11478 if shift >= 64 { 11479 return ErrIntOverflowAuth 11480 } 11481 if iNdEx >= l { 11482 return io.ErrUnexpectedEOF 11483 } 11484 b := dAtA[iNdEx] 11485 iNdEx++ 11486 stringLen |= uint64(b&0x7F) << shift 11487 if b < 0x80 { 11488 break 11489 } 11490 } 11491 intStringLen := int(stringLen) 11492 if intStringLen < 0 { 11493 return ErrInvalidLengthAuth 11494 } 11495 postIndex := iNdEx + intStringLen 11496 if postIndex < 0 { 11497 return ErrInvalidLengthAuth 11498 } 11499 if postIndex > l { 11500 return io.ErrUnexpectedEOF 11501 } 11502 m.Subject = string(dAtA[iNdEx:postIndex]) 11503 iNdEx = postIndex 11504 case 2: 11505 if wireType != 0 { 11506 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 11507 } 11508 m.Source = 0 11509 for shift := uint(0); ; shift += 7 { 11510 if shift >= 64 { 11511 return ErrIntOverflowAuth 11512 } 11513 if iNdEx >= l { 11514 return io.ErrUnexpectedEOF 11515 } 11516 b := dAtA[iNdEx] 11517 iNdEx++ 11518 m.Source |= TokenInfo_TokenSource(b&0x7F) << shift 11519 if b < 0x80 { 11520 break 11521 } 11522 } 11523 default: 11524 iNdEx = preIndex 11525 skippy, err := skipAuth(dAtA[iNdEx:]) 11526 if err != nil { 11527 return err 11528 } 11529 if (skippy < 0) || (iNdEx+skippy) < 0 { 11530 return ErrInvalidLengthAuth 11531 } 11532 if (iNdEx + skippy) > l { 11533 return io.ErrUnexpectedEOF 11534 } 11535 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11536 iNdEx += skippy 11537 } 11538 } 11539 11540 if iNdEx > l { 11541 return io.ErrUnexpectedEOF 11542 } 11543 return nil 11544 } 11545 func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error { 11546 l := len(dAtA) 11547 iNdEx := 0 11548 for iNdEx < l { 11549 preIndex := iNdEx 11550 var wire uint64 11551 for shift := uint(0); ; shift += 7 { 11552 if shift >= 64 { 11553 return ErrIntOverflowAuth 11554 } 11555 if iNdEx >= l { 11556 return io.ErrUnexpectedEOF 11557 } 11558 b := dAtA[iNdEx] 11559 iNdEx++ 11560 wire |= uint64(b&0x7F) << shift 11561 if b < 0x80 { 11562 break 11563 } 11564 } 11565 fieldNum := int32(wire >> 3) 11566 wireType := int(wire & 0x7) 11567 if wireType == 4 { 11568 return fmt.Errorf("proto: AuthenticateRequest: wiretype end group for non-group") 11569 } 11570 if fieldNum <= 0 { 11571 return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11572 } 11573 switch fieldNum { 11574 case 1: 11575 if wireType != 2 { 11576 return fmt.Errorf("proto: wrong wireType = %d for field GitHubToken", wireType) 11577 } 11578 var stringLen uint64 11579 for shift := uint(0); ; shift += 7 { 11580 if shift >= 64 { 11581 return ErrIntOverflowAuth 11582 } 11583 if iNdEx >= l { 11584 return io.ErrUnexpectedEOF 11585 } 11586 b := dAtA[iNdEx] 11587 iNdEx++ 11588 stringLen |= uint64(b&0x7F) << shift 11589 if b < 0x80 { 11590 break 11591 } 11592 } 11593 intStringLen := int(stringLen) 11594 if intStringLen < 0 { 11595 return ErrInvalidLengthAuth 11596 } 11597 postIndex := iNdEx + intStringLen 11598 if postIndex < 0 { 11599 return ErrInvalidLengthAuth 11600 } 11601 if postIndex > l { 11602 return io.ErrUnexpectedEOF 11603 } 11604 m.GitHubToken = string(dAtA[iNdEx:postIndex]) 11605 iNdEx = postIndex 11606 case 2: 11607 if wireType != 2 { 11608 return fmt.Errorf("proto: wrong wireType = %d for field OneTimePassword", wireType) 11609 } 11610 var stringLen uint64 11611 for shift := uint(0); ; shift += 7 { 11612 if shift >= 64 { 11613 return ErrIntOverflowAuth 11614 } 11615 if iNdEx >= l { 11616 return io.ErrUnexpectedEOF 11617 } 11618 b := dAtA[iNdEx] 11619 iNdEx++ 11620 stringLen |= uint64(b&0x7F) << shift 11621 if b < 0x80 { 11622 break 11623 } 11624 } 11625 intStringLen := int(stringLen) 11626 if intStringLen < 0 { 11627 return ErrInvalidLengthAuth 11628 } 11629 postIndex := iNdEx + intStringLen 11630 if postIndex < 0 { 11631 return ErrInvalidLengthAuth 11632 } 11633 if postIndex > l { 11634 return io.ErrUnexpectedEOF 11635 } 11636 m.OneTimePassword = string(dAtA[iNdEx:postIndex]) 11637 iNdEx = postIndex 11638 case 3: 11639 if wireType != 2 { 11640 return fmt.Errorf("proto: wrong wireType = %d for field OIDCState", wireType) 11641 } 11642 var stringLen uint64 11643 for shift := uint(0); ; shift += 7 { 11644 if shift >= 64 { 11645 return ErrIntOverflowAuth 11646 } 11647 if iNdEx >= l { 11648 return io.ErrUnexpectedEOF 11649 } 11650 b := dAtA[iNdEx] 11651 iNdEx++ 11652 stringLen |= uint64(b&0x7F) << shift 11653 if b < 0x80 { 11654 break 11655 } 11656 } 11657 intStringLen := int(stringLen) 11658 if intStringLen < 0 { 11659 return ErrInvalidLengthAuth 11660 } 11661 postIndex := iNdEx + intStringLen 11662 if postIndex < 0 { 11663 return ErrInvalidLengthAuth 11664 } 11665 if postIndex > l { 11666 return io.ErrUnexpectedEOF 11667 } 11668 m.OIDCState = string(dAtA[iNdEx:postIndex]) 11669 iNdEx = postIndex 11670 case 4: 11671 if wireType != 2 { 11672 return fmt.Errorf("proto: wrong wireType = %d for field IdToken", wireType) 11673 } 11674 var stringLen uint64 11675 for shift := uint(0); ; shift += 7 { 11676 if shift >= 64 { 11677 return ErrIntOverflowAuth 11678 } 11679 if iNdEx >= l { 11680 return io.ErrUnexpectedEOF 11681 } 11682 b := dAtA[iNdEx] 11683 iNdEx++ 11684 stringLen |= uint64(b&0x7F) << shift 11685 if b < 0x80 { 11686 break 11687 } 11688 } 11689 intStringLen := int(stringLen) 11690 if intStringLen < 0 { 11691 return ErrInvalidLengthAuth 11692 } 11693 postIndex := iNdEx + intStringLen 11694 if postIndex < 0 { 11695 return ErrInvalidLengthAuth 11696 } 11697 if postIndex > l { 11698 return io.ErrUnexpectedEOF 11699 } 11700 m.IdToken = string(dAtA[iNdEx:postIndex]) 11701 iNdEx = postIndex 11702 default: 11703 iNdEx = preIndex 11704 skippy, err := skipAuth(dAtA[iNdEx:]) 11705 if err != nil { 11706 return err 11707 } 11708 if (skippy < 0) || (iNdEx+skippy) < 0 { 11709 return ErrInvalidLengthAuth 11710 } 11711 if (iNdEx + skippy) > l { 11712 return io.ErrUnexpectedEOF 11713 } 11714 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11715 iNdEx += skippy 11716 } 11717 } 11718 11719 if iNdEx > l { 11720 return io.ErrUnexpectedEOF 11721 } 11722 return nil 11723 } 11724 func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error { 11725 l := len(dAtA) 11726 iNdEx := 0 11727 for iNdEx < l { 11728 preIndex := iNdEx 11729 var wire uint64 11730 for shift := uint(0); ; shift += 7 { 11731 if shift >= 64 { 11732 return ErrIntOverflowAuth 11733 } 11734 if iNdEx >= l { 11735 return io.ErrUnexpectedEOF 11736 } 11737 b := dAtA[iNdEx] 11738 iNdEx++ 11739 wire |= uint64(b&0x7F) << shift 11740 if b < 0x80 { 11741 break 11742 } 11743 } 11744 fieldNum := int32(wire >> 3) 11745 wireType := int(wire & 0x7) 11746 if wireType == 4 { 11747 return fmt.Errorf("proto: AuthenticateResponse: wiretype end group for non-group") 11748 } 11749 if fieldNum <= 0 { 11750 return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11751 } 11752 switch fieldNum { 11753 case 1: 11754 if wireType != 2 { 11755 return fmt.Errorf("proto: wrong wireType = %d for field PachToken", wireType) 11756 } 11757 var stringLen uint64 11758 for shift := uint(0); ; shift += 7 { 11759 if shift >= 64 { 11760 return ErrIntOverflowAuth 11761 } 11762 if iNdEx >= l { 11763 return io.ErrUnexpectedEOF 11764 } 11765 b := dAtA[iNdEx] 11766 iNdEx++ 11767 stringLen |= uint64(b&0x7F) << shift 11768 if b < 0x80 { 11769 break 11770 } 11771 } 11772 intStringLen := int(stringLen) 11773 if intStringLen < 0 { 11774 return ErrInvalidLengthAuth 11775 } 11776 postIndex := iNdEx + intStringLen 11777 if postIndex < 0 { 11778 return ErrInvalidLengthAuth 11779 } 11780 if postIndex > l { 11781 return io.ErrUnexpectedEOF 11782 } 11783 m.PachToken = string(dAtA[iNdEx:postIndex]) 11784 iNdEx = postIndex 11785 default: 11786 iNdEx = preIndex 11787 skippy, err := skipAuth(dAtA[iNdEx:]) 11788 if err != nil { 11789 return err 11790 } 11791 if (skippy < 0) || (iNdEx+skippy) < 0 { 11792 return ErrInvalidLengthAuth 11793 } 11794 if (iNdEx + skippy) > l { 11795 return io.ErrUnexpectedEOF 11796 } 11797 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11798 iNdEx += skippy 11799 } 11800 } 11801 11802 if iNdEx > l { 11803 return io.ErrUnexpectedEOF 11804 } 11805 return nil 11806 } 11807 func (m *WhoAmIRequest) Unmarshal(dAtA []byte) error { 11808 l := len(dAtA) 11809 iNdEx := 0 11810 for iNdEx < l { 11811 preIndex := iNdEx 11812 var wire uint64 11813 for shift := uint(0); ; shift += 7 { 11814 if shift >= 64 { 11815 return ErrIntOverflowAuth 11816 } 11817 if iNdEx >= l { 11818 return io.ErrUnexpectedEOF 11819 } 11820 b := dAtA[iNdEx] 11821 iNdEx++ 11822 wire |= uint64(b&0x7F) << shift 11823 if b < 0x80 { 11824 break 11825 } 11826 } 11827 fieldNum := int32(wire >> 3) 11828 wireType := int(wire & 0x7) 11829 if wireType == 4 { 11830 return fmt.Errorf("proto: WhoAmIRequest: wiretype end group for non-group") 11831 } 11832 if fieldNum <= 0 { 11833 return fmt.Errorf("proto: WhoAmIRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11834 } 11835 switch fieldNum { 11836 default: 11837 iNdEx = preIndex 11838 skippy, err := skipAuth(dAtA[iNdEx:]) 11839 if err != nil { 11840 return err 11841 } 11842 if (skippy < 0) || (iNdEx+skippy) < 0 { 11843 return ErrInvalidLengthAuth 11844 } 11845 if (iNdEx + skippy) > l { 11846 return io.ErrUnexpectedEOF 11847 } 11848 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11849 iNdEx += skippy 11850 } 11851 } 11852 11853 if iNdEx > l { 11854 return io.ErrUnexpectedEOF 11855 } 11856 return nil 11857 } 11858 func (m *WhoAmIResponse) Unmarshal(dAtA []byte) error { 11859 l := len(dAtA) 11860 iNdEx := 0 11861 for iNdEx < l { 11862 preIndex := iNdEx 11863 var wire uint64 11864 for shift := uint(0); ; shift += 7 { 11865 if shift >= 64 { 11866 return ErrIntOverflowAuth 11867 } 11868 if iNdEx >= l { 11869 return io.ErrUnexpectedEOF 11870 } 11871 b := dAtA[iNdEx] 11872 iNdEx++ 11873 wire |= uint64(b&0x7F) << shift 11874 if b < 0x80 { 11875 break 11876 } 11877 } 11878 fieldNum := int32(wire >> 3) 11879 wireType := int(wire & 0x7) 11880 if wireType == 4 { 11881 return fmt.Errorf("proto: WhoAmIResponse: wiretype end group for non-group") 11882 } 11883 if fieldNum <= 0 { 11884 return fmt.Errorf("proto: WhoAmIResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11885 } 11886 switch fieldNum { 11887 case 1: 11888 if wireType != 2 { 11889 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 11890 } 11891 var stringLen uint64 11892 for shift := uint(0); ; shift += 7 { 11893 if shift >= 64 { 11894 return ErrIntOverflowAuth 11895 } 11896 if iNdEx >= l { 11897 return io.ErrUnexpectedEOF 11898 } 11899 b := dAtA[iNdEx] 11900 iNdEx++ 11901 stringLen |= uint64(b&0x7F) << shift 11902 if b < 0x80 { 11903 break 11904 } 11905 } 11906 intStringLen := int(stringLen) 11907 if intStringLen < 0 { 11908 return ErrInvalidLengthAuth 11909 } 11910 postIndex := iNdEx + intStringLen 11911 if postIndex < 0 { 11912 return ErrInvalidLengthAuth 11913 } 11914 if postIndex > l { 11915 return io.ErrUnexpectedEOF 11916 } 11917 m.Username = string(dAtA[iNdEx:postIndex]) 11918 iNdEx = postIndex 11919 case 2: 11920 if wireType != 0 { 11921 return fmt.Errorf("proto: wrong wireType = %d for field IsAdmin", wireType) 11922 } 11923 var v int 11924 for shift := uint(0); ; shift += 7 { 11925 if shift >= 64 { 11926 return ErrIntOverflowAuth 11927 } 11928 if iNdEx >= l { 11929 return io.ErrUnexpectedEOF 11930 } 11931 b := dAtA[iNdEx] 11932 iNdEx++ 11933 v |= int(b&0x7F) << shift 11934 if b < 0x80 { 11935 break 11936 } 11937 } 11938 m.IsAdmin = bool(v != 0) 11939 case 3: 11940 if wireType != 0 { 11941 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) 11942 } 11943 m.TTL = 0 11944 for shift := uint(0); ; shift += 7 { 11945 if shift >= 64 { 11946 return ErrIntOverflowAuth 11947 } 11948 if iNdEx >= l { 11949 return io.ErrUnexpectedEOF 11950 } 11951 b := dAtA[iNdEx] 11952 iNdEx++ 11953 m.TTL |= int64(b&0x7F) << shift 11954 if b < 0x80 { 11955 break 11956 } 11957 } 11958 case 4: 11959 if wireType != 2 { 11960 return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoles", wireType) 11961 } 11962 var msglen int 11963 for shift := uint(0); ; shift += 7 { 11964 if shift >= 64 { 11965 return ErrIntOverflowAuth 11966 } 11967 if iNdEx >= l { 11968 return io.ErrUnexpectedEOF 11969 } 11970 b := dAtA[iNdEx] 11971 iNdEx++ 11972 msglen |= int(b&0x7F) << shift 11973 if b < 0x80 { 11974 break 11975 } 11976 } 11977 if msglen < 0 { 11978 return ErrInvalidLengthAuth 11979 } 11980 postIndex := iNdEx + msglen 11981 if postIndex < 0 { 11982 return ErrInvalidLengthAuth 11983 } 11984 if postIndex > l { 11985 return io.ErrUnexpectedEOF 11986 } 11987 if m.ClusterRoles == nil { 11988 m.ClusterRoles = &ClusterRoles{} 11989 } 11990 if err := m.ClusterRoles.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 11991 return err 11992 } 11993 iNdEx = postIndex 11994 default: 11995 iNdEx = preIndex 11996 skippy, err := skipAuth(dAtA[iNdEx:]) 11997 if err != nil { 11998 return err 11999 } 12000 if (skippy < 0) || (iNdEx+skippy) < 0 { 12001 return ErrInvalidLengthAuth 12002 } 12003 if (iNdEx + skippy) > l { 12004 return io.ErrUnexpectedEOF 12005 } 12006 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12007 iNdEx += skippy 12008 } 12009 } 12010 12011 if iNdEx > l { 12012 return io.ErrUnexpectedEOF 12013 } 12014 return nil 12015 } 12016 func (m *ACL) Unmarshal(dAtA []byte) error { 12017 l := len(dAtA) 12018 iNdEx := 0 12019 for iNdEx < l { 12020 preIndex := iNdEx 12021 var wire uint64 12022 for shift := uint(0); ; shift += 7 { 12023 if shift >= 64 { 12024 return ErrIntOverflowAuth 12025 } 12026 if iNdEx >= l { 12027 return io.ErrUnexpectedEOF 12028 } 12029 b := dAtA[iNdEx] 12030 iNdEx++ 12031 wire |= uint64(b&0x7F) << shift 12032 if b < 0x80 { 12033 break 12034 } 12035 } 12036 fieldNum := int32(wire >> 3) 12037 wireType := int(wire & 0x7) 12038 if wireType == 4 { 12039 return fmt.Errorf("proto: ACL: wiretype end group for non-group") 12040 } 12041 if fieldNum <= 0 { 12042 return fmt.Errorf("proto: ACL: illegal tag %d (wire type %d)", fieldNum, wire) 12043 } 12044 switch fieldNum { 12045 case 1: 12046 if wireType != 2 { 12047 return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) 12048 } 12049 var msglen int 12050 for shift := uint(0); ; shift += 7 { 12051 if shift >= 64 { 12052 return ErrIntOverflowAuth 12053 } 12054 if iNdEx >= l { 12055 return io.ErrUnexpectedEOF 12056 } 12057 b := dAtA[iNdEx] 12058 iNdEx++ 12059 msglen |= int(b&0x7F) << shift 12060 if b < 0x80 { 12061 break 12062 } 12063 } 12064 if msglen < 0 { 12065 return ErrInvalidLengthAuth 12066 } 12067 postIndex := iNdEx + msglen 12068 if postIndex < 0 { 12069 return ErrInvalidLengthAuth 12070 } 12071 if postIndex > l { 12072 return io.ErrUnexpectedEOF 12073 } 12074 if m.Entries == nil { 12075 m.Entries = make(map[string]Scope) 12076 } 12077 var mapkey string 12078 var mapvalue Scope 12079 for iNdEx < postIndex { 12080 entryPreIndex := iNdEx 12081 var wire uint64 12082 for shift := uint(0); ; shift += 7 { 12083 if shift >= 64 { 12084 return ErrIntOverflowAuth 12085 } 12086 if iNdEx >= l { 12087 return io.ErrUnexpectedEOF 12088 } 12089 b := dAtA[iNdEx] 12090 iNdEx++ 12091 wire |= uint64(b&0x7F) << shift 12092 if b < 0x80 { 12093 break 12094 } 12095 } 12096 fieldNum := int32(wire >> 3) 12097 if fieldNum == 1 { 12098 var stringLenmapkey uint64 12099 for shift := uint(0); ; shift += 7 { 12100 if shift >= 64 { 12101 return ErrIntOverflowAuth 12102 } 12103 if iNdEx >= l { 12104 return io.ErrUnexpectedEOF 12105 } 12106 b := dAtA[iNdEx] 12107 iNdEx++ 12108 stringLenmapkey |= uint64(b&0x7F) << shift 12109 if b < 0x80 { 12110 break 12111 } 12112 } 12113 intStringLenmapkey := int(stringLenmapkey) 12114 if intStringLenmapkey < 0 { 12115 return ErrInvalidLengthAuth 12116 } 12117 postStringIndexmapkey := iNdEx + intStringLenmapkey 12118 if postStringIndexmapkey < 0 { 12119 return ErrInvalidLengthAuth 12120 } 12121 if postStringIndexmapkey > l { 12122 return io.ErrUnexpectedEOF 12123 } 12124 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 12125 iNdEx = postStringIndexmapkey 12126 } else if fieldNum == 2 { 12127 for shift := uint(0); ; shift += 7 { 12128 if shift >= 64 { 12129 return ErrIntOverflowAuth 12130 } 12131 if iNdEx >= l { 12132 return io.ErrUnexpectedEOF 12133 } 12134 b := dAtA[iNdEx] 12135 iNdEx++ 12136 mapvalue |= Scope(b&0x7F) << shift 12137 if b < 0x80 { 12138 break 12139 } 12140 } 12141 } else { 12142 iNdEx = entryPreIndex 12143 skippy, err := skipAuth(dAtA[iNdEx:]) 12144 if err != nil { 12145 return err 12146 } 12147 if (skippy < 0) || (iNdEx+skippy) < 0 { 12148 return ErrInvalidLengthAuth 12149 } 12150 if (iNdEx + skippy) > postIndex { 12151 return io.ErrUnexpectedEOF 12152 } 12153 iNdEx += skippy 12154 } 12155 } 12156 m.Entries[mapkey] = mapvalue 12157 iNdEx = postIndex 12158 default: 12159 iNdEx = preIndex 12160 skippy, err := skipAuth(dAtA[iNdEx:]) 12161 if err != nil { 12162 return err 12163 } 12164 if (skippy < 0) || (iNdEx+skippy) < 0 { 12165 return ErrInvalidLengthAuth 12166 } 12167 if (iNdEx + skippy) > l { 12168 return io.ErrUnexpectedEOF 12169 } 12170 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12171 iNdEx += skippy 12172 } 12173 } 12174 12175 if iNdEx > l { 12176 return io.ErrUnexpectedEOF 12177 } 12178 return nil 12179 } 12180 func (m *Users) Unmarshal(dAtA []byte) error { 12181 l := len(dAtA) 12182 iNdEx := 0 12183 for iNdEx < l { 12184 preIndex := iNdEx 12185 var wire uint64 12186 for shift := uint(0); ; shift += 7 { 12187 if shift >= 64 { 12188 return ErrIntOverflowAuth 12189 } 12190 if iNdEx >= l { 12191 return io.ErrUnexpectedEOF 12192 } 12193 b := dAtA[iNdEx] 12194 iNdEx++ 12195 wire |= uint64(b&0x7F) << shift 12196 if b < 0x80 { 12197 break 12198 } 12199 } 12200 fieldNum := int32(wire >> 3) 12201 wireType := int(wire & 0x7) 12202 if wireType == 4 { 12203 return fmt.Errorf("proto: Users: wiretype end group for non-group") 12204 } 12205 if fieldNum <= 0 { 12206 return fmt.Errorf("proto: Users: illegal tag %d (wire type %d)", fieldNum, wire) 12207 } 12208 switch fieldNum { 12209 case 1: 12210 if wireType != 2 { 12211 return fmt.Errorf("proto: wrong wireType = %d for field Usernames", wireType) 12212 } 12213 var msglen int 12214 for shift := uint(0); ; shift += 7 { 12215 if shift >= 64 { 12216 return ErrIntOverflowAuth 12217 } 12218 if iNdEx >= l { 12219 return io.ErrUnexpectedEOF 12220 } 12221 b := dAtA[iNdEx] 12222 iNdEx++ 12223 msglen |= int(b&0x7F) << shift 12224 if b < 0x80 { 12225 break 12226 } 12227 } 12228 if msglen < 0 { 12229 return ErrInvalidLengthAuth 12230 } 12231 postIndex := iNdEx + msglen 12232 if postIndex < 0 { 12233 return ErrInvalidLengthAuth 12234 } 12235 if postIndex > l { 12236 return io.ErrUnexpectedEOF 12237 } 12238 if m.Usernames == nil { 12239 m.Usernames = make(map[string]bool) 12240 } 12241 var mapkey string 12242 var mapvalue bool 12243 for iNdEx < postIndex { 12244 entryPreIndex := iNdEx 12245 var wire uint64 12246 for shift := uint(0); ; shift += 7 { 12247 if shift >= 64 { 12248 return ErrIntOverflowAuth 12249 } 12250 if iNdEx >= l { 12251 return io.ErrUnexpectedEOF 12252 } 12253 b := dAtA[iNdEx] 12254 iNdEx++ 12255 wire |= uint64(b&0x7F) << shift 12256 if b < 0x80 { 12257 break 12258 } 12259 } 12260 fieldNum := int32(wire >> 3) 12261 if fieldNum == 1 { 12262 var stringLenmapkey uint64 12263 for shift := uint(0); ; shift += 7 { 12264 if shift >= 64 { 12265 return ErrIntOverflowAuth 12266 } 12267 if iNdEx >= l { 12268 return io.ErrUnexpectedEOF 12269 } 12270 b := dAtA[iNdEx] 12271 iNdEx++ 12272 stringLenmapkey |= uint64(b&0x7F) << shift 12273 if b < 0x80 { 12274 break 12275 } 12276 } 12277 intStringLenmapkey := int(stringLenmapkey) 12278 if intStringLenmapkey < 0 { 12279 return ErrInvalidLengthAuth 12280 } 12281 postStringIndexmapkey := iNdEx + intStringLenmapkey 12282 if postStringIndexmapkey < 0 { 12283 return ErrInvalidLengthAuth 12284 } 12285 if postStringIndexmapkey > l { 12286 return io.ErrUnexpectedEOF 12287 } 12288 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 12289 iNdEx = postStringIndexmapkey 12290 } else if fieldNum == 2 { 12291 var mapvaluetemp int 12292 for shift := uint(0); ; shift += 7 { 12293 if shift >= 64 { 12294 return ErrIntOverflowAuth 12295 } 12296 if iNdEx >= l { 12297 return io.ErrUnexpectedEOF 12298 } 12299 b := dAtA[iNdEx] 12300 iNdEx++ 12301 mapvaluetemp |= int(b&0x7F) << shift 12302 if b < 0x80 { 12303 break 12304 } 12305 } 12306 mapvalue = bool(mapvaluetemp != 0) 12307 } else { 12308 iNdEx = entryPreIndex 12309 skippy, err := skipAuth(dAtA[iNdEx:]) 12310 if err != nil { 12311 return err 12312 } 12313 if (skippy < 0) || (iNdEx+skippy) < 0 { 12314 return ErrInvalidLengthAuth 12315 } 12316 if (iNdEx + skippy) > postIndex { 12317 return io.ErrUnexpectedEOF 12318 } 12319 iNdEx += skippy 12320 } 12321 } 12322 m.Usernames[mapkey] = mapvalue 12323 iNdEx = postIndex 12324 default: 12325 iNdEx = preIndex 12326 skippy, err := skipAuth(dAtA[iNdEx:]) 12327 if err != nil { 12328 return err 12329 } 12330 if (skippy < 0) || (iNdEx+skippy) < 0 { 12331 return ErrInvalidLengthAuth 12332 } 12333 if (iNdEx + skippy) > l { 12334 return io.ErrUnexpectedEOF 12335 } 12336 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12337 iNdEx += skippy 12338 } 12339 } 12340 12341 if iNdEx > l { 12342 return io.ErrUnexpectedEOF 12343 } 12344 return nil 12345 } 12346 func (m *Groups) Unmarshal(dAtA []byte) error { 12347 l := len(dAtA) 12348 iNdEx := 0 12349 for iNdEx < l { 12350 preIndex := iNdEx 12351 var wire uint64 12352 for shift := uint(0); ; shift += 7 { 12353 if shift >= 64 { 12354 return ErrIntOverflowAuth 12355 } 12356 if iNdEx >= l { 12357 return io.ErrUnexpectedEOF 12358 } 12359 b := dAtA[iNdEx] 12360 iNdEx++ 12361 wire |= uint64(b&0x7F) << shift 12362 if b < 0x80 { 12363 break 12364 } 12365 } 12366 fieldNum := int32(wire >> 3) 12367 wireType := int(wire & 0x7) 12368 if wireType == 4 { 12369 return fmt.Errorf("proto: Groups: wiretype end group for non-group") 12370 } 12371 if fieldNum <= 0 { 12372 return fmt.Errorf("proto: Groups: illegal tag %d (wire type %d)", fieldNum, wire) 12373 } 12374 switch fieldNum { 12375 case 1: 12376 if wireType != 2 { 12377 return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) 12378 } 12379 var msglen int 12380 for shift := uint(0); ; shift += 7 { 12381 if shift >= 64 { 12382 return ErrIntOverflowAuth 12383 } 12384 if iNdEx >= l { 12385 return io.ErrUnexpectedEOF 12386 } 12387 b := dAtA[iNdEx] 12388 iNdEx++ 12389 msglen |= int(b&0x7F) << shift 12390 if b < 0x80 { 12391 break 12392 } 12393 } 12394 if msglen < 0 { 12395 return ErrInvalidLengthAuth 12396 } 12397 postIndex := iNdEx + msglen 12398 if postIndex < 0 { 12399 return ErrInvalidLengthAuth 12400 } 12401 if postIndex > l { 12402 return io.ErrUnexpectedEOF 12403 } 12404 if m.Groups == nil { 12405 m.Groups = make(map[string]bool) 12406 } 12407 var mapkey string 12408 var mapvalue bool 12409 for iNdEx < postIndex { 12410 entryPreIndex := iNdEx 12411 var wire uint64 12412 for shift := uint(0); ; shift += 7 { 12413 if shift >= 64 { 12414 return ErrIntOverflowAuth 12415 } 12416 if iNdEx >= l { 12417 return io.ErrUnexpectedEOF 12418 } 12419 b := dAtA[iNdEx] 12420 iNdEx++ 12421 wire |= uint64(b&0x7F) << shift 12422 if b < 0x80 { 12423 break 12424 } 12425 } 12426 fieldNum := int32(wire >> 3) 12427 if fieldNum == 1 { 12428 var stringLenmapkey uint64 12429 for shift := uint(0); ; shift += 7 { 12430 if shift >= 64 { 12431 return ErrIntOverflowAuth 12432 } 12433 if iNdEx >= l { 12434 return io.ErrUnexpectedEOF 12435 } 12436 b := dAtA[iNdEx] 12437 iNdEx++ 12438 stringLenmapkey |= uint64(b&0x7F) << shift 12439 if b < 0x80 { 12440 break 12441 } 12442 } 12443 intStringLenmapkey := int(stringLenmapkey) 12444 if intStringLenmapkey < 0 { 12445 return ErrInvalidLengthAuth 12446 } 12447 postStringIndexmapkey := iNdEx + intStringLenmapkey 12448 if postStringIndexmapkey < 0 { 12449 return ErrInvalidLengthAuth 12450 } 12451 if postStringIndexmapkey > l { 12452 return io.ErrUnexpectedEOF 12453 } 12454 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 12455 iNdEx = postStringIndexmapkey 12456 } else if fieldNum == 2 { 12457 var mapvaluetemp int 12458 for shift := uint(0); ; shift += 7 { 12459 if shift >= 64 { 12460 return ErrIntOverflowAuth 12461 } 12462 if iNdEx >= l { 12463 return io.ErrUnexpectedEOF 12464 } 12465 b := dAtA[iNdEx] 12466 iNdEx++ 12467 mapvaluetemp |= int(b&0x7F) << shift 12468 if b < 0x80 { 12469 break 12470 } 12471 } 12472 mapvalue = bool(mapvaluetemp != 0) 12473 } else { 12474 iNdEx = entryPreIndex 12475 skippy, err := skipAuth(dAtA[iNdEx:]) 12476 if err != nil { 12477 return err 12478 } 12479 if (skippy < 0) || (iNdEx+skippy) < 0 { 12480 return ErrInvalidLengthAuth 12481 } 12482 if (iNdEx + skippy) > postIndex { 12483 return io.ErrUnexpectedEOF 12484 } 12485 iNdEx += skippy 12486 } 12487 } 12488 m.Groups[mapkey] = mapvalue 12489 iNdEx = postIndex 12490 default: 12491 iNdEx = preIndex 12492 skippy, err := skipAuth(dAtA[iNdEx:]) 12493 if err != nil { 12494 return err 12495 } 12496 if (skippy < 0) || (iNdEx+skippy) < 0 { 12497 return ErrInvalidLengthAuth 12498 } 12499 if (iNdEx + skippy) > l { 12500 return io.ErrUnexpectedEOF 12501 } 12502 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12503 iNdEx += skippy 12504 } 12505 } 12506 12507 if iNdEx > l { 12508 return io.ErrUnexpectedEOF 12509 } 12510 return nil 12511 } 12512 func (m *AuthorizeRequest) Unmarshal(dAtA []byte) error { 12513 l := len(dAtA) 12514 iNdEx := 0 12515 for iNdEx < l { 12516 preIndex := iNdEx 12517 var wire uint64 12518 for shift := uint(0); ; shift += 7 { 12519 if shift >= 64 { 12520 return ErrIntOverflowAuth 12521 } 12522 if iNdEx >= l { 12523 return io.ErrUnexpectedEOF 12524 } 12525 b := dAtA[iNdEx] 12526 iNdEx++ 12527 wire |= uint64(b&0x7F) << shift 12528 if b < 0x80 { 12529 break 12530 } 12531 } 12532 fieldNum := int32(wire >> 3) 12533 wireType := int(wire & 0x7) 12534 if wireType == 4 { 12535 return fmt.Errorf("proto: AuthorizeRequest: wiretype end group for non-group") 12536 } 12537 if fieldNum <= 0 { 12538 return fmt.Errorf("proto: AuthorizeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 12539 } 12540 switch fieldNum { 12541 case 1: 12542 if wireType != 2 { 12543 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 12544 } 12545 var stringLen uint64 12546 for shift := uint(0); ; shift += 7 { 12547 if shift >= 64 { 12548 return ErrIntOverflowAuth 12549 } 12550 if iNdEx >= l { 12551 return io.ErrUnexpectedEOF 12552 } 12553 b := dAtA[iNdEx] 12554 iNdEx++ 12555 stringLen |= uint64(b&0x7F) << shift 12556 if b < 0x80 { 12557 break 12558 } 12559 } 12560 intStringLen := int(stringLen) 12561 if intStringLen < 0 { 12562 return ErrInvalidLengthAuth 12563 } 12564 postIndex := iNdEx + intStringLen 12565 if postIndex < 0 { 12566 return ErrInvalidLengthAuth 12567 } 12568 if postIndex > l { 12569 return io.ErrUnexpectedEOF 12570 } 12571 m.Repo = string(dAtA[iNdEx:postIndex]) 12572 iNdEx = postIndex 12573 case 2: 12574 if wireType != 0 { 12575 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) 12576 } 12577 m.Scope = 0 12578 for shift := uint(0); ; shift += 7 { 12579 if shift >= 64 { 12580 return ErrIntOverflowAuth 12581 } 12582 if iNdEx >= l { 12583 return io.ErrUnexpectedEOF 12584 } 12585 b := dAtA[iNdEx] 12586 iNdEx++ 12587 m.Scope |= Scope(b&0x7F) << shift 12588 if b < 0x80 { 12589 break 12590 } 12591 } 12592 default: 12593 iNdEx = preIndex 12594 skippy, err := skipAuth(dAtA[iNdEx:]) 12595 if err != nil { 12596 return err 12597 } 12598 if (skippy < 0) || (iNdEx+skippy) < 0 { 12599 return ErrInvalidLengthAuth 12600 } 12601 if (iNdEx + skippy) > l { 12602 return io.ErrUnexpectedEOF 12603 } 12604 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12605 iNdEx += skippy 12606 } 12607 } 12608 12609 if iNdEx > l { 12610 return io.ErrUnexpectedEOF 12611 } 12612 return nil 12613 } 12614 func (m *AuthorizeResponse) Unmarshal(dAtA []byte) error { 12615 l := len(dAtA) 12616 iNdEx := 0 12617 for iNdEx < l { 12618 preIndex := iNdEx 12619 var wire uint64 12620 for shift := uint(0); ; shift += 7 { 12621 if shift >= 64 { 12622 return ErrIntOverflowAuth 12623 } 12624 if iNdEx >= l { 12625 return io.ErrUnexpectedEOF 12626 } 12627 b := dAtA[iNdEx] 12628 iNdEx++ 12629 wire |= uint64(b&0x7F) << shift 12630 if b < 0x80 { 12631 break 12632 } 12633 } 12634 fieldNum := int32(wire >> 3) 12635 wireType := int(wire & 0x7) 12636 if wireType == 4 { 12637 return fmt.Errorf("proto: AuthorizeResponse: wiretype end group for non-group") 12638 } 12639 if fieldNum <= 0 { 12640 return fmt.Errorf("proto: AuthorizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 12641 } 12642 switch fieldNum { 12643 case 1: 12644 if wireType != 0 { 12645 return fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) 12646 } 12647 var v int 12648 for shift := uint(0); ; shift += 7 { 12649 if shift >= 64 { 12650 return ErrIntOverflowAuth 12651 } 12652 if iNdEx >= l { 12653 return io.ErrUnexpectedEOF 12654 } 12655 b := dAtA[iNdEx] 12656 iNdEx++ 12657 v |= int(b&0x7F) << shift 12658 if b < 0x80 { 12659 break 12660 } 12661 } 12662 m.Authorized = bool(v != 0) 12663 default: 12664 iNdEx = preIndex 12665 skippy, err := skipAuth(dAtA[iNdEx:]) 12666 if err != nil { 12667 return err 12668 } 12669 if (skippy < 0) || (iNdEx+skippy) < 0 { 12670 return ErrInvalidLengthAuth 12671 } 12672 if (iNdEx + skippy) > l { 12673 return io.ErrUnexpectedEOF 12674 } 12675 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12676 iNdEx += skippy 12677 } 12678 } 12679 12680 if iNdEx > l { 12681 return io.ErrUnexpectedEOF 12682 } 12683 return nil 12684 } 12685 func (m *GetScopeRequest) Unmarshal(dAtA []byte) error { 12686 l := len(dAtA) 12687 iNdEx := 0 12688 for iNdEx < l { 12689 preIndex := iNdEx 12690 var wire uint64 12691 for shift := uint(0); ; shift += 7 { 12692 if shift >= 64 { 12693 return ErrIntOverflowAuth 12694 } 12695 if iNdEx >= l { 12696 return io.ErrUnexpectedEOF 12697 } 12698 b := dAtA[iNdEx] 12699 iNdEx++ 12700 wire |= uint64(b&0x7F) << shift 12701 if b < 0x80 { 12702 break 12703 } 12704 } 12705 fieldNum := int32(wire >> 3) 12706 wireType := int(wire & 0x7) 12707 if wireType == 4 { 12708 return fmt.Errorf("proto: GetScopeRequest: wiretype end group for non-group") 12709 } 12710 if fieldNum <= 0 { 12711 return fmt.Errorf("proto: GetScopeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 12712 } 12713 switch fieldNum { 12714 case 1: 12715 if wireType != 2 { 12716 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 12717 } 12718 var stringLen uint64 12719 for shift := uint(0); ; shift += 7 { 12720 if shift >= 64 { 12721 return ErrIntOverflowAuth 12722 } 12723 if iNdEx >= l { 12724 return io.ErrUnexpectedEOF 12725 } 12726 b := dAtA[iNdEx] 12727 iNdEx++ 12728 stringLen |= uint64(b&0x7F) << shift 12729 if b < 0x80 { 12730 break 12731 } 12732 } 12733 intStringLen := int(stringLen) 12734 if intStringLen < 0 { 12735 return ErrInvalidLengthAuth 12736 } 12737 postIndex := iNdEx + intStringLen 12738 if postIndex < 0 { 12739 return ErrInvalidLengthAuth 12740 } 12741 if postIndex > l { 12742 return io.ErrUnexpectedEOF 12743 } 12744 m.Username = string(dAtA[iNdEx:postIndex]) 12745 iNdEx = postIndex 12746 case 2: 12747 if wireType != 2 { 12748 return fmt.Errorf("proto: wrong wireType = %d for field Repos", wireType) 12749 } 12750 var stringLen uint64 12751 for shift := uint(0); ; shift += 7 { 12752 if shift >= 64 { 12753 return ErrIntOverflowAuth 12754 } 12755 if iNdEx >= l { 12756 return io.ErrUnexpectedEOF 12757 } 12758 b := dAtA[iNdEx] 12759 iNdEx++ 12760 stringLen |= uint64(b&0x7F) << shift 12761 if b < 0x80 { 12762 break 12763 } 12764 } 12765 intStringLen := int(stringLen) 12766 if intStringLen < 0 { 12767 return ErrInvalidLengthAuth 12768 } 12769 postIndex := iNdEx + intStringLen 12770 if postIndex < 0 { 12771 return ErrInvalidLengthAuth 12772 } 12773 if postIndex > l { 12774 return io.ErrUnexpectedEOF 12775 } 12776 m.Repos = append(m.Repos, string(dAtA[iNdEx:postIndex])) 12777 iNdEx = postIndex 12778 default: 12779 iNdEx = preIndex 12780 skippy, err := skipAuth(dAtA[iNdEx:]) 12781 if err != nil { 12782 return err 12783 } 12784 if (skippy < 0) || (iNdEx+skippy) < 0 { 12785 return ErrInvalidLengthAuth 12786 } 12787 if (iNdEx + skippy) > l { 12788 return io.ErrUnexpectedEOF 12789 } 12790 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12791 iNdEx += skippy 12792 } 12793 } 12794 12795 if iNdEx > l { 12796 return io.ErrUnexpectedEOF 12797 } 12798 return nil 12799 } 12800 func (m *GetScopeResponse) Unmarshal(dAtA []byte) error { 12801 l := len(dAtA) 12802 iNdEx := 0 12803 for iNdEx < l { 12804 preIndex := iNdEx 12805 var wire uint64 12806 for shift := uint(0); ; shift += 7 { 12807 if shift >= 64 { 12808 return ErrIntOverflowAuth 12809 } 12810 if iNdEx >= l { 12811 return io.ErrUnexpectedEOF 12812 } 12813 b := dAtA[iNdEx] 12814 iNdEx++ 12815 wire |= uint64(b&0x7F) << shift 12816 if b < 0x80 { 12817 break 12818 } 12819 } 12820 fieldNum := int32(wire >> 3) 12821 wireType := int(wire & 0x7) 12822 if wireType == 4 { 12823 return fmt.Errorf("proto: GetScopeResponse: wiretype end group for non-group") 12824 } 12825 if fieldNum <= 0 { 12826 return fmt.Errorf("proto: GetScopeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 12827 } 12828 switch fieldNum { 12829 case 1: 12830 if wireType == 0 { 12831 var v Scope 12832 for shift := uint(0); ; shift += 7 { 12833 if shift >= 64 { 12834 return ErrIntOverflowAuth 12835 } 12836 if iNdEx >= l { 12837 return io.ErrUnexpectedEOF 12838 } 12839 b := dAtA[iNdEx] 12840 iNdEx++ 12841 v |= Scope(b&0x7F) << shift 12842 if b < 0x80 { 12843 break 12844 } 12845 } 12846 m.Scopes = append(m.Scopes, v) 12847 } else if wireType == 2 { 12848 var packedLen int 12849 for shift := uint(0); ; shift += 7 { 12850 if shift >= 64 { 12851 return ErrIntOverflowAuth 12852 } 12853 if iNdEx >= l { 12854 return io.ErrUnexpectedEOF 12855 } 12856 b := dAtA[iNdEx] 12857 iNdEx++ 12858 packedLen |= int(b&0x7F) << shift 12859 if b < 0x80 { 12860 break 12861 } 12862 } 12863 if packedLen < 0 { 12864 return ErrInvalidLengthAuth 12865 } 12866 postIndex := iNdEx + packedLen 12867 if postIndex < 0 { 12868 return ErrInvalidLengthAuth 12869 } 12870 if postIndex > l { 12871 return io.ErrUnexpectedEOF 12872 } 12873 var elementCount int 12874 if elementCount != 0 && len(m.Scopes) == 0 { 12875 m.Scopes = make([]Scope, 0, elementCount) 12876 } 12877 for iNdEx < postIndex { 12878 var v Scope 12879 for shift := uint(0); ; shift += 7 { 12880 if shift >= 64 { 12881 return ErrIntOverflowAuth 12882 } 12883 if iNdEx >= l { 12884 return io.ErrUnexpectedEOF 12885 } 12886 b := dAtA[iNdEx] 12887 iNdEx++ 12888 v |= Scope(b&0x7F) << shift 12889 if b < 0x80 { 12890 break 12891 } 12892 } 12893 m.Scopes = append(m.Scopes, v) 12894 } 12895 } else { 12896 return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) 12897 } 12898 default: 12899 iNdEx = preIndex 12900 skippy, err := skipAuth(dAtA[iNdEx:]) 12901 if err != nil { 12902 return err 12903 } 12904 if (skippy < 0) || (iNdEx+skippy) < 0 { 12905 return ErrInvalidLengthAuth 12906 } 12907 if (iNdEx + skippy) > l { 12908 return io.ErrUnexpectedEOF 12909 } 12910 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 12911 iNdEx += skippy 12912 } 12913 } 12914 12915 if iNdEx > l { 12916 return io.ErrUnexpectedEOF 12917 } 12918 return nil 12919 } 12920 func (m *SetScopeRequest) Unmarshal(dAtA []byte) error { 12921 l := len(dAtA) 12922 iNdEx := 0 12923 for iNdEx < l { 12924 preIndex := iNdEx 12925 var wire uint64 12926 for shift := uint(0); ; shift += 7 { 12927 if shift >= 64 { 12928 return ErrIntOverflowAuth 12929 } 12930 if iNdEx >= l { 12931 return io.ErrUnexpectedEOF 12932 } 12933 b := dAtA[iNdEx] 12934 iNdEx++ 12935 wire |= uint64(b&0x7F) << shift 12936 if b < 0x80 { 12937 break 12938 } 12939 } 12940 fieldNum := int32(wire >> 3) 12941 wireType := int(wire & 0x7) 12942 if wireType == 4 { 12943 return fmt.Errorf("proto: SetScopeRequest: wiretype end group for non-group") 12944 } 12945 if fieldNum <= 0 { 12946 return fmt.Errorf("proto: SetScopeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 12947 } 12948 switch fieldNum { 12949 case 1: 12950 if wireType != 2 { 12951 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 12952 } 12953 var stringLen uint64 12954 for shift := uint(0); ; shift += 7 { 12955 if shift >= 64 { 12956 return ErrIntOverflowAuth 12957 } 12958 if iNdEx >= l { 12959 return io.ErrUnexpectedEOF 12960 } 12961 b := dAtA[iNdEx] 12962 iNdEx++ 12963 stringLen |= uint64(b&0x7F) << shift 12964 if b < 0x80 { 12965 break 12966 } 12967 } 12968 intStringLen := int(stringLen) 12969 if intStringLen < 0 { 12970 return ErrInvalidLengthAuth 12971 } 12972 postIndex := iNdEx + intStringLen 12973 if postIndex < 0 { 12974 return ErrInvalidLengthAuth 12975 } 12976 if postIndex > l { 12977 return io.ErrUnexpectedEOF 12978 } 12979 m.Username = string(dAtA[iNdEx:postIndex]) 12980 iNdEx = postIndex 12981 case 2: 12982 if wireType != 2 { 12983 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 12984 } 12985 var stringLen uint64 12986 for shift := uint(0); ; shift += 7 { 12987 if shift >= 64 { 12988 return ErrIntOverflowAuth 12989 } 12990 if iNdEx >= l { 12991 return io.ErrUnexpectedEOF 12992 } 12993 b := dAtA[iNdEx] 12994 iNdEx++ 12995 stringLen |= uint64(b&0x7F) << shift 12996 if b < 0x80 { 12997 break 12998 } 12999 } 13000 intStringLen := int(stringLen) 13001 if intStringLen < 0 { 13002 return ErrInvalidLengthAuth 13003 } 13004 postIndex := iNdEx + intStringLen 13005 if postIndex < 0 { 13006 return ErrInvalidLengthAuth 13007 } 13008 if postIndex > l { 13009 return io.ErrUnexpectedEOF 13010 } 13011 m.Repo = string(dAtA[iNdEx:postIndex]) 13012 iNdEx = postIndex 13013 case 3: 13014 if wireType != 0 { 13015 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) 13016 } 13017 m.Scope = 0 13018 for shift := uint(0); ; shift += 7 { 13019 if shift >= 64 { 13020 return ErrIntOverflowAuth 13021 } 13022 if iNdEx >= l { 13023 return io.ErrUnexpectedEOF 13024 } 13025 b := dAtA[iNdEx] 13026 iNdEx++ 13027 m.Scope |= Scope(b&0x7F) << shift 13028 if b < 0x80 { 13029 break 13030 } 13031 } 13032 default: 13033 iNdEx = preIndex 13034 skippy, err := skipAuth(dAtA[iNdEx:]) 13035 if err != nil { 13036 return err 13037 } 13038 if (skippy < 0) || (iNdEx+skippy) < 0 { 13039 return ErrInvalidLengthAuth 13040 } 13041 if (iNdEx + skippy) > l { 13042 return io.ErrUnexpectedEOF 13043 } 13044 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13045 iNdEx += skippy 13046 } 13047 } 13048 13049 if iNdEx > l { 13050 return io.ErrUnexpectedEOF 13051 } 13052 return nil 13053 } 13054 func (m *SetScopeResponse) Unmarshal(dAtA []byte) error { 13055 l := len(dAtA) 13056 iNdEx := 0 13057 for iNdEx < l { 13058 preIndex := iNdEx 13059 var wire uint64 13060 for shift := uint(0); ; shift += 7 { 13061 if shift >= 64 { 13062 return ErrIntOverflowAuth 13063 } 13064 if iNdEx >= l { 13065 return io.ErrUnexpectedEOF 13066 } 13067 b := dAtA[iNdEx] 13068 iNdEx++ 13069 wire |= uint64(b&0x7F) << shift 13070 if b < 0x80 { 13071 break 13072 } 13073 } 13074 fieldNum := int32(wire >> 3) 13075 wireType := int(wire & 0x7) 13076 if wireType == 4 { 13077 return fmt.Errorf("proto: SetScopeResponse: wiretype end group for non-group") 13078 } 13079 if fieldNum <= 0 { 13080 return fmt.Errorf("proto: SetScopeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 13081 } 13082 switch fieldNum { 13083 default: 13084 iNdEx = preIndex 13085 skippy, err := skipAuth(dAtA[iNdEx:]) 13086 if err != nil { 13087 return err 13088 } 13089 if (skippy < 0) || (iNdEx+skippy) < 0 { 13090 return ErrInvalidLengthAuth 13091 } 13092 if (iNdEx + skippy) > l { 13093 return io.ErrUnexpectedEOF 13094 } 13095 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13096 iNdEx += skippy 13097 } 13098 } 13099 13100 if iNdEx > l { 13101 return io.ErrUnexpectedEOF 13102 } 13103 return nil 13104 } 13105 func (m *GetACLRequest) Unmarshal(dAtA []byte) error { 13106 l := len(dAtA) 13107 iNdEx := 0 13108 for iNdEx < l { 13109 preIndex := iNdEx 13110 var wire uint64 13111 for shift := uint(0); ; shift += 7 { 13112 if shift >= 64 { 13113 return ErrIntOverflowAuth 13114 } 13115 if iNdEx >= l { 13116 return io.ErrUnexpectedEOF 13117 } 13118 b := dAtA[iNdEx] 13119 iNdEx++ 13120 wire |= uint64(b&0x7F) << shift 13121 if b < 0x80 { 13122 break 13123 } 13124 } 13125 fieldNum := int32(wire >> 3) 13126 wireType := int(wire & 0x7) 13127 if wireType == 4 { 13128 return fmt.Errorf("proto: GetACLRequest: wiretype end group for non-group") 13129 } 13130 if fieldNum <= 0 { 13131 return fmt.Errorf("proto: GetACLRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13132 } 13133 switch fieldNum { 13134 case 1: 13135 if wireType != 2 { 13136 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 13137 } 13138 var stringLen uint64 13139 for shift := uint(0); ; shift += 7 { 13140 if shift >= 64 { 13141 return ErrIntOverflowAuth 13142 } 13143 if iNdEx >= l { 13144 return io.ErrUnexpectedEOF 13145 } 13146 b := dAtA[iNdEx] 13147 iNdEx++ 13148 stringLen |= uint64(b&0x7F) << shift 13149 if b < 0x80 { 13150 break 13151 } 13152 } 13153 intStringLen := int(stringLen) 13154 if intStringLen < 0 { 13155 return ErrInvalidLengthAuth 13156 } 13157 postIndex := iNdEx + intStringLen 13158 if postIndex < 0 { 13159 return ErrInvalidLengthAuth 13160 } 13161 if postIndex > l { 13162 return io.ErrUnexpectedEOF 13163 } 13164 m.Repo = string(dAtA[iNdEx:postIndex]) 13165 iNdEx = postIndex 13166 default: 13167 iNdEx = preIndex 13168 skippy, err := skipAuth(dAtA[iNdEx:]) 13169 if err != nil { 13170 return err 13171 } 13172 if (skippy < 0) || (iNdEx+skippy) < 0 { 13173 return ErrInvalidLengthAuth 13174 } 13175 if (iNdEx + skippy) > l { 13176 return io.ErrUnexpectedEOF 13177 } 13178 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13179 iNdEx += skippy 13180 } 13181 } 13182 13183 if iNdEx > l { 13184 return io.ErrUnexpectedEOF 13185 } 13186 return nil 13187 } 13188 func (m *ACLEntry) Unmarshal(dAtA []byte) error { 13189 l := len(dAtA) 13190 iNdEx := 0 13191 for iNdEx < l { 13192 preIndex := iNdEx 13193 var wire uint64 13194 for shift := uint(0); ; shift += 7 { 13195 if shift >= 64 { 13196 return ErrIntOverflowAuth 13197 } 13198 if iNdEx >= l { 13199 return io.ErrUnexpectedEOF 13200 } 13201 b := dAtA[iNdEx] 13202 iNdEx++ 13203 wire |= uint64(b&0x7F) << shift 13204 if b < 0x80 { 13205 break 13206 } 13207 } 13208 fieldNum := int32(wire >> 3) 13209 wireType := int(wire & 0x7) 13210 if wireType == 4 { 13211 return fmt.Errorf("proto: ACLEntry: wiretype end group for non-group") 13212 } 13213 if fieldNum <= 0 { 13214 return fmt.Errorf("proto: ACLEntry: illegal tag %d (wire type %d)", fieldNum, wire) 13215 } 13216 switch fieldNum { 13217 case 1: 13218 if wireType != 2 { 13219 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 13220 } 13221 var stringLen uint64 13222 for shift := uint(0); ; shift += 7 { 13223 if shift >= 64 { 13224 return ErrIntOverflowAuth 13225 } 13226 if iNdEx >= l { 13227 return io.ErrUnexpectedEOF 13228 } 13229 b := dAtA[iNdEx] 13230 iNdEx++ 13231 stringLen |= uint64(b&0x7F) << shift 13232 if b < 0x80 { 13233 break 13234 } 13235 } 13236 intStringLen := int(stringLen) 13237 if intStringLen < 0 { 13238 return ErrInvalidLengthAuth 13239 } 13240 postIndex := iNdEx + intStringLen 13241 if postIndex < 0 { 13242 return ErrInvalidLengthAuth 13243 } 13244 if postIndex > l { 13245 return io.ErrUnexpectedEOF 13246 } 13247 m.Username = string(dAtA[iNdEx:postIndex]) 13248 iNdEx = postIndex 13249 case 2: 13250 if wireType != 0 { 13251 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) 13252 } 13253 m.Scope = 0 13254 for shift := uint(0); ; shift += 7 { 13255 if shift >= 64 { 13256 return ErrIntOverflowAuth 13257 } 13258 if iNdEx >= l { 13259 return io.ErrUnexpectedEOF 13260 } 13261 b := dAtA[iNdEx] 13262 iNdEx++ 13263 m.Scope |= Scope(b&0x7F) << shift 13264 if b < 0x80 { 13265 break 13266 } 13267 } 13268 default: 13269 iNdEx = preIndex 13270 skippy, err := skipAuth(dAtA[iNdEx:]) 13271 if err != nil { 13272 return err 13273 } 13274 if (skippy < 0) || (iNdEx+skippy) < 0 { 13275 return ErrInvalidLengthAuth 13276 } 13277 if (iNdEx + skippy) > l { 13278 return io.ErrUnexpectedEOF 13279 } 13280 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13281 iNdEx += skippy 13282 } 13283 } 13284 13285 if iNdEx > l { 13286 return io.ErrUnexpectedEOF 13287 } 13288 return nil 13289 } 13290 func (m *GetACLResponse) Unmarshal(dAtA []byte) error { 13291 l := len(dAtA) 13292 iNdEx := 0 13293 for iNdEx < l { 13294 preIndex := iNdEx 13295 var wire uint64 13296 for shift := uint(0); ; shift += 7 { 13297 if shift >= 64 { 13298 return ErrIntOverflowAuth 13299 } 13300 if iNdEx >= l { 13301 return io.ErrUnexpectedEOF 13302 } 13303 b := dAtA[iNdEx] 13304 iNdEx++ 13305 wire |= uint64(b&0x7F) << shift 13306 if b < 0x80 { 13307 break 13308 } 13309 } 13310 fieldNum := int32(wire >> 3) 13311 wireType := int(wire & 0x7) 13312 if wireType == 4 { 13313 return fmt.Errorf("proto: GetACLResponse: wiretype end group for non-group") 13314 } 13315 if fieldNum <= 0 { 13316 return fmt.Errorf("proto: GetACLResponse: illegal tag %d (wire type %d)", fieldNum, wire) 13317 } 13318 switch fieldNum { 13319 case 1: 13320 if wireType != 2 { 13321 return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) 13322 } 13323 var msglen int 13324 for shift := uint(0); ; shift += 7 { 13325 if shift >= 64 { 13326 return ErrIntOverflowAuth 13327 } 13328 if iNdEx >= l { 13329 return io.ErrUnexpectedEOF 13330 } 13331 b := dAtA[iNdEx] 13332 iNdEx++ 13333 msglen |= int(b&0x7F) << shift 13334 if b < 0x80 { 13335 break 13336 } 13337 } 13338 if msglen < 0 { 13339 return ErrInvalidLengthAuth 13340 } 13341 postIndex := iNdEx + msglen 13342 if postIndex < 0 { 13343 return ErrInvalidLengthAuth 13344 } 13345 if postIndex > l { 13346 return io.ErrUnexpectedEOF 13347 } 13348 m.Entries = append(m.Entries, &ACLEntry{}) 13349 if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13350 return err 13351 } 13352 iNdEx = postIndex 13353 case 2: 13354 if wireType != 2 { 13355 return fmt.Errorf("proto: wrong wireType = %d for field RobotEntries", wireType) 13356 } 13357 var msglen int 13358 for shift := uint(0); ; shift += 7 { 13359 if shift >= 64 { 13360 return ErrIntOverflowAuth 13361 } 13362 if iNdEx >= l { 13363 return io.ErrUnexpectedEOF 13364 } 13365 b := dAtA[iNdEx] 13366 iNdEx++ 13367 msglen |= int(b&0x7F) << shift 13368 if b < 0x80 { 13369 break 13370 } 13371 } 13372 if msglen < 0 { 13373 return ErrInvalidLengthAuth 13374 } 13375 postIndex := iNdEx + msglen 13376 if postIndex < 0 { 13377 return ErrInvalidLengthAuth 13378 } 13379 if postIndex > l { 13380 return io.ErrUnexpectedEOF 13381 } 13382 m.RobotEntries = append(m.RobotEntries, &ACLEntry{}) 13383 if err := m.RobotEntries[len(m.RobotEntries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13384 return err 13385 } 13386 iNdEx = postIndex 13387 default: 13388 iNdEx = preIndex 13389 skippy, err := skipAuth(dAtA[iNdEx:]) 13390 if err != nil { 13391 return err 13392 } 13393 if (skippy < 0) || (iNdEx+skippy) < 0 { 13394 return ErrInvalidLengthAuth 13395 } 13396 if (iNdEx + skippy) > l { 13397 return io.ErrUnexpectedEOF 13398 } 13399 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13400 iNdEx += skippy 13401 } 13402 } 13403 13404 if iNdEx > l { 13405 return io.ErrUnexpectedEOF 13406 } 13407 return nil 13408 } 13409 func (m *SetACLRequest) Unmarshal(dAtA []byte) error { 13410 l := len(dAtA) 13411 iNdEx := 0 13412 for iNdEx < l { 13413 preIndex := iNdEx 13414 var wire uint64 13415 for shift := uint(0); ; shift += 7 { 13416 if shift >= 64 { 13417 return ErrIntOverflowAuth 13418 } 13419 if iNdEx >= l { 13420 return io.ErrUnexpectedEOF 13421 } 13422 b := dAtA[iNdEx] 13423 iNdEx++ 13424 wire |= uint64(b&0x7F) << shift 13425 if b < 0x80 { 13426 break 13427 } 13428 } 13429 fieldNum := int32(wire >> 3) 13430 wireType := int(wire & 0x7) 13431 if wireType == 4 { 13432 return fmt.Errorf("proto: SetACLRequest: wiretype end group for non-group") 13433 } 13434 if fieldNum <= 0 { 13435 return fmt.Errorf("proto: SetACLRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13436 } 13437 switch fieldNum { 13438 case 1: 13439 if wireType != 2 { 13440 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 13441 } 13442 var stringLen uint64 13443 for shift := uint(0); ; shift += 7 { 13444 if shift >= 64 { 13445 return ErrIntOverflowAuth 13446 } 13447 if iNdEx >= l { 13448 return io.ErrUnexpectedEOF 13449 } 13450 b := dAtA[iNdEx] 13451 iNdEx++ 13452 stringLen |= uint64(b&0x7F) << shift 13453 if b < 0x80 { 13454 break 13455 } 13456 } 13457 intStringLen := int(stringLen) 13458 if intStringLen < 0 { 13459 return ErrInvalidLengthAuth 13460 } 13461 postIndex := iNdEx + intStringLen 13462 if postIndex < 0 { 13463 return ErrInvalidLengthAuth 13464 } 13465 if postIndex > l { 13466 return io.ErrUnexpectedEOF 13467 } 13468 m.Repo = string(dAtA[iNdEx:postIndex]) 13469 iNdEx = postIndex 13470 case 2: 13471 if wireType != 2 { 13472 return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) 13473 } 13474 var msglen int 13475 for shift := uint(0); ; shift += 7 { 13476 if shift >= 64 { 13477 return ErrIntOverflowAuth 13478 } 13479 if iNdEx >= l { 13480 return io.ErrUnexpectedEOF 13481 } 13482 b := dAtA[iNdEx] 13483 iNdEx++ 13484 msglen |= int(b&0x7F) << shift 13485 if b < 0x80 { 13486 break 13487 } 13488 } 13489 if msglen < 0 { 13490 return ErrInvalidLengthAuth 13491 } 13492 postIndex := iNdEx + msglen 13493 if postIndex < 0 { 13494 return ErrInvalidLengthAuth 13495 } 13496 if postIndex > l { 13497 return io.ErrUnexpectedEOF 13498 } 13499 m.Entries = append(m.Entries, &ACLEntry{}) 13500 if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 13501 return err 13502 } 13503 iNdEx = postIndex 13504 default: 13505 iNdEx = preIndex 13506 skippy, err := skipAuth(dAtA[iNdEx:]) 13507 if err != nil { 13508 return err 13509 } 13510 if (skippy < 0) || (iNdEx+skippy) < 0 { 13511 return ErrInvalidLengthAuth 13512 } 13513 if (iNdEx + skippy) > l { 13514 return io.ErrUnexpectedEOF 13515 } 13516 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13517 iNdEx += skippy 13518 } 13519 } 13520 13521 if iNdEx > l { 13522 return io.ErrUnexpectedEOF 13523 } 13524 return nil 13525 } 13526 func (m *SetACLResponse) Unmarshal(dAtA []byte) error { 13527 l := len(dAtA) 13528 iNdEx := 0 13529 for iNdEx < l { 13530 preIndex := iNdEx 13531 var wire uint64 13532 for shift := uint(0); ; shift += 7 { 13533 if shift >= 64 { 13534 return ErrIntOverflowAuth 13535 } 13536 if iNdEx >= l { 13537 return io.ErrUnexpectedEOF 13538 } 13539 b := dAtA[iNdEx] 13540 iNdEx++ 13541 wire |= uint64(b&0x7F) << shift 13542 if b < 0x80 { 13543 break 13544 } 13545 } 13546 fieldNum := int32(wire >> 3) 13547 wireType := int(wire & 0x7) 13548 if wireType == 4 { 13549 return fmt.Errorf("proto: SetACLResponse: wiretype end group for non-group") 13550 } 13551 if fieldNum <= 0 { 13552 return fmt.Errorf("proto: SetACLResponse: illegal tag %d (wire type %d)", fieldNum, wire) 13553 } 13554 switch fieldNum { 13555 default: 13556 iNdEx = preIndex 13557 skippy, err := skipAuth(dAtA[iNdEx:]) 13558 if err != nil { 13559 return err 13560 } 13561 if (skippy < 0) || (iNdEx+skippy) < 0 { 13562 return ErrInvalidLengthAuth 13563 } 13564 if (iNdEx + skippy) > l { 13565 return io.ErrUnexpectedEOF 13566 } 13567 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13568 iNdEx += skippy 13569 } 13570 } 13571 13572 if iNdEx > l { 13573 return io.ErrUnexpectedEOF 13574 } 13575 return nil 13576 } 13577 func (m *SessionInfo) Unmarshal(dAtA []byte) error { 13578 l := len(dAtA) 13579 iNdEx := 0 13580 for iNdEx < l { 13581 preIndex := iNdEx 13582 var wire uint64 13583 for shift := uint(0); ; shift += 7 { 13584 if shift >= 64 { 13585 return ErrIntOverflowAuth 13586 } 13587 if iNdEx >= l { 13588 return io.ErrUnexpectedEOF 13589 } 13590 b := dAtA[iNdEx] 13591 iNdEx++ 13592 wire |= uint64(b&0x7F) << shift 13593 if b < 0x80 { 13594 break 13595 } 13596 } 13597 fieldNum := int32(wire >> 3) 13598 wireType := int(wire & 0x7) 13599 if wireType == 4 { 13600 return fmt.Errorf("proto: SessionInfo: wiretype end group for non-group") 13601 } 13602 if fieldNum <= 0 { 13603 return fmt.Errorf("proto: SessionInfo: illegal tag %d (wire type %d)", fieldNum, wire) 13604 } 13605 switch fieldNum { 13606 case 1: 13607 if wireType != 2 { 13608 return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) 13609 } 13610 var stringLen uint64 13611 for shift := uint(0); ; shift += 7 { 13612 if shift >= 64 { 13613 return ErrIntOverflowAuth 13614 } 13615 if iNdEx >= l { 13616 return io.ErrUnexpectedEOF 13617 } 13618 b := dAtA[iNdEx] 13619 iNdEx++ 13620 stringLen |= uint64(b&0x7F) << shift 13621 if b < 0x80 { 13622 break 13623 } 13624 } 13625 intStringLen := int(stringLen) 13626 if intStringLen < 0 { 13627 return ErrInvalidLengthAuth 13628 } 13629 postIndex := iNdEx + intStringLen 13630 if postIndex < 0 { 13631 return ErrInvalidLengthAuth 13632 } 13633 if postIndex > l { 13634 return io.ErrUnexpectedEOF 13635 } 13636 m.Nonce = string(dAtA[iNdEx:postIndex]) 13637 iNdEx = postIndex 13638 case 2: 13639 if wireType != 2 { 13640 return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType) 13641 } 13642 var stringLen uint64 13643 for shift := uint(0); ; shift += 7 { 13644 if shift >= 64 { 13645 return ErrIntOverflowAuth 13646 } 13647 if iNdEx >= l { 13648 return io.ErrUnexpectedEOF 13649 } 13650 b := dAtA[iNdEx] 13651 iNdEx++ 13652 stringLen |= uint64(b&0x7F) << shift 13653 if b < 0x80 { 13654 break 13655 } 13656 } 13657 intStringLen := int(stringLen) 13658 if intStringLen < 0 { 13659 return ErrInvalidLengthAuth 13660 } 13661 postIndex := iNdEx + intStringLen 13662 if postIndex < 0 { 13663 return ErrInvalidLengthAuth 13664 } 13665 if postIndex > l { 13666 return io.ErrUnexpectedEOF 13667 } 13668 m.Email = string(dAtA[iNdEx:postIndex]) 13669 iNdEx = postIndex 13670 case 3: 13671 if wireType != 0 { 13672 return fmt.Errorf("proto: wrong wireType = %d for field ConversionErr", wireType) 13673 } 13674 var v int 13675 for shift := uint(0); ; shift += 7 { 13676 if shift >= 64 { 13677 return ErrIntOverflowAuth 13678 } 13679 if iNdEx >= l { 13680 return io.ErrUnexpectedEOF 13681 } 13682 b := dAtA[iNdEx] 13683 iNdEx++ 13684 v |= int(b&0x7F) << shift 13685 if b < 0x80 { 13686 break 13687 } 13688 } 13689 m.ConversionErr = bool(v != 0) 13690 default: 13691 iNdEx = preIndex 13692 skippy, err := skipAuth(dAtA[iNdEx:]) 13693 if err != nil { 13694 return err 13695 } 13696 if (skippy < 0) || (iNdEx+skippy) < 0 { 13697 return ErrInvalidLengthAuth 13698 } 13699 if (iNdEx + skippy) > l { 13700 return io.ErrUnexpectedEOF 13701 } 13702 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13703 iNdEx += skippy 13704 } 13705 } 13706 13707 if iNdEx > l { 13708 return io.ErrUnexpectedEOF 13709 } 13710 return nil 13711 } 13712 func (m *GetOIDCLoginRequest) Unmarshal(dAtA []byte) error { 13713 l := len(dAtA) 13714 iNdEx := 0 13715 for iNdEx < l { 13716 preIndex := iNdEx 13717 var wire uint64 13718 for shift := uint(0); ; shift += 7 { 13719 if shift >= 64 { 13720 return ErrIntOverflowAuth 13721 } 13722 if iNdEx >= l { 13723 return io.ErrUnexpectedEOF 13724 } 13725 b := dAtA[iNdEx] 13726 iNdEx++ 13727 wire |= uint64(b&0x7F) << shift 13728 if b < 0x80 { 13729 break 13730 } 13731 } 13732 fieldNum := int32(wire >> 3) 13733 wireType := int(wire & 0x7) 13734 if wireType == 4 { 13735 return fmt.Errorf("proto: GetOIDCLoginRequest: wiretype end group for non-group") 13736 } 13737 if fieldNum <= 0 { 13738 return fmt.Errorf("proto: GetOIDCLoginRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13739 } 13740 switch fieldNum { 13741 default: 13742 iNdEx = preIndex 13743 skippy, err := skipAuth(dAtA[iNdEx:]) 13744 if err != nil { 13745 return err 13746 } 13747 if (skippy < 0) || (iNdEx+skippy) < 0 { 13748 return ErrInvalidLengthAuth 13749 } 13750 if (iNdEx + skippy) > l { 13751 return io.ErrUnexpectedEOF 13752 } 13753 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13754 iNdEx += skippy 13755 } 13756 } 13757 13758 if iNdEx > l { 13759 return io.ErrUnexpectedEOF 13760 } 13761 return nil 13762 } 13763 func (m *GetOIDCLoginResponse) Unmarshal(dAtA []byte) error { 13764 l := len(dAtA) 13765 iNdEx := 0 13766 for iNdEx < l { 13767 preIndex := iNdEx 13768 var wire uint64 13769 for shift := uint(0); ; shift += 7 { 13770 if shift >= 64 { 13771 return ErrIntOverflowAuth 13772 } 13773 if iNdEx >= l { 13774 return io.ErrUnexpectedEOF 13775 } 13776 b := dAtA[iNdEx] 13777 iNdEx++ 13778 wire |= uint64(b&0x7F) << shift 13779 if b < 0x80 { 13780 break 13781 } 13782 } 13783 fieldNum := int32(wire >> 3) 13784 wireType := int(wire & 0x7) 13785 if wireType == 4 { 13786 return fmt.Errorf("proto: GetOIDCLoginResponse: wiretype end group for non-group") 13787 } 13788 if fieldNum <= 0 { 13789 return fmt.Errorf("proto: GetOIDCLoginResponse: illegal tag %d (wire type %d)", fieldNum, wire) 13790 } 13791 switch fieldNum { 13792 case 1: 13793 if wireType != 2 { 13794 return fmt.Errorf("proto: wrong wireType = %d for field LoginURL", wireType) 13795 } 13796 var stringLen uint64 13797 for shift := uint(0); ; shift += 7 { 13798 if shift >= 64 { 13799 return ErrIntOverflowAuth 13800 } 13801 if iNdEx >= l { 13802 return io.ErrUnexpectedEOF 13803 } 13804 b := dAtA[iNdEx] 13805 iNdEx++ 13806 stringLen |= uint64(b&0x7F) << shift 13807 if b < 0x80 { 13808 break 13809 } 13810 } 13811 intStringLen := int(stringLen) 13812 if intStringLen < 0 { 13813 return ErrInvalidLengthAuth 13814 } 13815 postIndex := iNdEx + intStringLen 13816 if postIndex < 0 { 13817 return ErrInvalidLengthAuth 13818 } 13819 if postIndex > l { 13820 return io.ErrUnexpectedEOF 13821 } 13822 m.LoginURL = string(dAtA[iNdEx:postIndex]) 13823 iNdEx = postIndex 13824 case 2: 13825 if wireType != 2 { 13826 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 13827 } 13828 var stringLen uint64 13829 for shift := uint(0); ; shift += 7 { 13830 if shift >= 64 { 13831 return ErrIntOverflowAuth 13832 } 13833 if iNdEx >= l { 13834 return io.ErrUnexpectedEOF 13835 } 13836 b := dAtA[iNdEx] 13837 iNdEx++ 13838 stringLen |= uint64(b&0x7F) << shift 13839 if b < 0x80 { 13840 break 13841 } 13842 } 13843 intStringLen := int(stringLen) 13844 if intStringLen < 0 { 13845 return ErrInvalidLengthAuth 13846 } 13847 postIndex := iNdEx + intStringLen 13848 if postIndex < 0 { 13849 return ErrInvalidLengthAuth 13850 } 13851 if postIndex > l { 13852 return io.ErrUnexpectedEOF 13853 } 13854 m.State = string(dAtA[iNdEx:postIndex]) 13855 iNdEx = postIndex 13856 default: 13857 iNdEx = preIndex 13858 skippy, err := skipAuth(dAtA[iNdEx:]) 13859 if err != nil { 13860 return err 13861 } 13862 if (skippy < 0) || (iNdEx+skippy) < 0 { 13863 return ErrInvalidLengthAuth 13864 } 13865 if (iNdEx + skippy) > l { 13866 return io.ErrUnexpectedEOF 13867 } 13868 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13869 iNdEx += skippy 13870 } 13871 } 13872 13873 if iNdEx > l { 13874 return io.ErrUnexpectedEOF 13875 } 13876 return nil 13877 } 13878 func (m *GetAuthTokenRequest) Unmarshal(dAtA []byte) error { 13879 l := len(dAtA) 13880 iNdEx := 0 13881 for iNdEx < l { 13882 preIndex := iNdEx 13883 var wire uint64 13884 for shift := uint(0); ; shift += 7 { 13885 if shift >= 64 { 13886 return ErrIntOverflowAuth 13887 } 13888 if iNdEx >= l { 13889 return io.ErrUnexpectedEOF 13890 } 13891 b := dAtA[iNdEx] 13892 iNdEx++ 13893 wire |= uint64(b&0x7F) << shift 13894 if b < 0x80 { 13895 break 13896 } 13897 } 13898 fieldNum := int32(wire >> 3) 13899 wireType := int(wire & 0x7) 13900 if wireType == 4 { 13901 return fmt.Errorf("proto: GetAuthTokenRequest: wiretype end group for non-group") 13902 } 13903 if fieldNum <= 0 { 13904 return fmt.Errorf("proto: GetAuthTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 13905 } 13906 switch fieldNum { 13907 case 1: 13908 if wireType != 2 { 13909 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 13910 } 13911 var stringLen uint64 13912 for shift := uint(0); ; shift += 7 { 13913 if shift >= 64 { 13914 return ErrIntOverflowAuth 13915 } 13916 if iNdEx >= l { 13917 return io.ErrUnexpectedEOF 13918 } 13919 b := dAtA[iNdEx] 13920 iNdEx++ 13921 stringLen |= uint64(b&0x7F) << shift 13922 if b < 0x80 { 13923 break 13924 } 13925 } 13926 intStringLen := int(stringLen) 13927 if intStringLen < 0 { 13928 return ErrInvalidLengthAuth 13929 } 13930 postIndex := iNdEx + intStringLen 13931 if postIndex < 0 { 13932 return ErrInvalidLengthAuth 13933 } 13934 if postIndex > l { 13935 return io.ErrUnexpectedEOF 13936 } 13937 m.Subject = string(dAtA[iNdEx:postIndex]) 13938 iNdEx = postIndex 13939 case 2: 13940 if wireType != 0 { 13941 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) 13942 } 13943 m.TTL = 0 13944 for shift := uint(0); ; shift += 7 { 13945 if shift >= 64 { 13946 return ErrIntOverflowAuth 13947 } 13948 if iNdEx >= l { 13949 return io.ErrUnexpectedEOF 13950 } 13951 b := dAtA[iNdEx] 13952 iNdEx++ 13953 m.TTL |= int64(b&0x7F) << shift 13954 if b < 0x80 { 13955 break 13956 } 13957 } 13958 default: 13959 iNdEx = preIndex 13960 skippy, err := skipAuth(dAtA[iNdEx:]) 13961 if err != nil { 13962 return err 13963 } 13964 if (skippy < 0) || (iNdEx+skippy) < 0 { 13965 return ErrInvalidLengthAuth 13966 } 13967 if (iNdEx + skippy) > l { 13968 return io.ErrUnexpectedEOF 13969 } 13970 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 13971 iNdEx += skippy 13972 } 13973 } 13974 13975 if iNdEx > l { 13976 return io.ErrUnexpectedEOF 13977 } 13978 return nil 13979 } 13980 func (m *GetAuthTokenResponse) Unmarshal(dAtA []byte) error { 13981 l := len(dAtA) 13982 iNdEx := 0 13983 for iNdEx < l { 13984 preIndex := iNdEx 13985 var wire uint64 13986 for shift := uint(0); ; shift += 7 { 13987 if shift >= 64 { 13988 return ErrIntOverflowAuth 13989 } 13990 if iNdEx >= l { 13991 return io.ErrUnexpectedEOF 13992 } 13993 b := dAtA[iNdEx] 13994 iNdEx++ 13995 wire |= uint64(b&0x7F) << shift 13996 if b < 0x80 { 13997 break 13998 } 13999 } 14000 fieldNum := int32(wire >> 3) 14001 wireType := int(wire & 0x7) 14002 if wireType == 4 { 14003 return fmt.Errorf("proto: GetAuthTokenResponse: wiretype end group for non-group") 14004 } 14005 if fieldNum <= 0 { 14006 return fmt.Errorf("proto: GetAuthTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14007 } 14008 switch fieldNum { 14009 case 1: 14010 if wireType != 2 { 14011 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 14012 } 14013 var stringLen uint64 14014 for shift := uint(0); ; shift += 7 { 14015 if shift >= 64 { 14016 return ErrIntOverflowAuth 14017 } 14018 if iNdEx >= l { 14019 return io.ErrUnexpectedEOF 14020 } 14021 b := dAtA[iNdEx] 14022 iNdEx++ 14023 stringLen |= uint64(b&0x7F) << shift 14024 if b < 0x80 { 14025 break 14026 } 14027 } 14028 intStringLen := int(stringLen) 14029 if intStringLen < 0 { 14030 return ErrInvalidLengthAuth 14031 } 14032 postIndex := iNdEx + intStringLen 14033 if postIndex < 0 { 14034 return ErrInvalidLengthAuth 14035 } 14036 if postIndex > l { 14037 return io.ErrUnexpectedEOF 14038 } 14039 m.Token = string(dAtA[iNdEx:postIndex]) 14040 iNdEx = postIndex 14041 case 2: 14042 if wireType != 2 { 14043 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 14044 } 14045 var stringLen uint64 14046 for shift := uint(0); ; shift += 7 { 14047 if shift >= 64 { 14048 return ErrIntOverflowAuth 14049 } 14050 if iNdEx >= l { 14051 return io.ErrUnexpectedEOF 14052 } 14053 b := dAtA[iNdEx] 14054 iNdEx++ 14055 stringLen |= uint64(b&0x7F) << shift 14056 if b < 0x80 { 14057 break 14058 } 14059 } 14060 intStringLen := int(stringLen) 14061 if intStringLen < 0 { 14062 return ErrInvalidLengthAuth 14063 } 14064 postIndex := iNdEx + intStringLen 14065 if postIndex < 0 { 14066 return ErrInvalidLengthAuth 14067 } 14068 if postIndex > l { 14069 return io.ErrUnexpectedEOF 14070 } 14071 m.Subject = string(dAtA[iNdEx:postIndex]) 14072 iNdEx = postIndex 14073 default: 14074 iNdEx = preIndex 14075 skippy, err := skipAuth(dAtA[iNdEx:]) 14076 if err != nil { 14077 return err 14078 } 14079 if (skippy < 0) || (iNdEx+skippy) < 0 { 14080 return ErrInvalidLengthAuth 14081 } 14082 if (iNdEx + skippy) > l { 14083 return io.ErrUnexpectedEOF 14084 } 14085 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14086 iNdEx += skippy 14087 } 14088 } 14089 14090 if iNdEx > l { 14091 return io.ErrUnexpectedEOF 14092 } 14093 return nil 14094 } 14095 func (m *ExtendAuthTokenRequest) Unmarshal(dAtA []byte) error { 14096 l := len(dAtA) 14097 iNdEx := 0 14098 for iNdEx < l { 14099 preIndex := iNdEx 14100 var wire uint64 14101 for shift := uint(0); ; shift += 7 { 14102 if shift >= 64 { 14103 return ErrIntOverflowAuth 14104 } 14105 if iNdEx >= l { 14106 return io.ErrUnexpectedEOF 14107 } 14108 b := dAtA[iNdEx] 14109 iNdEx++ 14110 wire |= uint64(b&0x7F) << shift 14111 if b < 0x80 { 14112 break 14113 } 14114 } 14115 fieldNum := int32(wire >> 3) 14116 wireType := int(wire & 0x7) 14117 if wireType == 4 { 14118 return fmt.Errorf("proto: ExtendAuthTokenRequest: wiretype end group for non-group") 14119 } 14120 if fieldNum <= 0 { 14121 return fmt.Errorf("proto: ExtendAuthTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 14122 } 14123 switch fieldNum { 14124 case 1: 14125 if wireType != 2 { 14126 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 14127 } 14128 var stringLen uint64 14129 for shift := uint(0); ; shift += 7 { 14130 if shift >= 64 { 14131 return ErrIntOverflowAuth 14132 } 14133 if iNdEx >= l { 14134 return io.ErrUnexpectedEOF 14135 } 14136 b := dAtA[iNdEx] 14137 iNdEx++ 14138 stringLen |= uint64(b&0x7F) << shift 14139 if b < 0x80 { 14140 break 14141 } 14142 } 14143 intStringLen := int(stringLen) 14144 if intStringLen < 0 { 14145 return ErrInvalidLengthAuth 14146 } 14147 postIndex := iNdEx + intStringLen 14148 if postIndex < 0 { 14149 return ErrInvalidLengthAuth 14150 } 14151 if postIndex > l { 14152 return io.ErrUnexpectedEOF 14153 } 14154 m.Token = string(dAtA[iNdEx:postIndex]) 14155 iNdEx = postIndex 14156 case 2: 14157 if wireType != 0 { 14158 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) 14159 } 14160 m.TTL = 0 14161 for shift := uint(0); ; shift += 7 { 14162 if shift >= 64 { 14163 return ErrIntOverflowAuth 14164 } 14165 if iNdEx >= l { 14166 return io.ErrUnexpectedEOF 14167 } 14168 b := dAtA[iNdEx] 14169 iNdEx++ 14170 m.TTL |= int64(b&0x7F) << shift 14171 if b < 0x80 { 14172 break 14173 } 14174 } 14175 default: 14176 iNdEx = preIndex 14177 skippy, err := skipAuth(dAtA[iNdEx:]) 14178 if err != nil { 14179 return err 14180 } 14181 if (skippy < 0) || (iNdEx+skippy) < 0 { 14182 return ErrInvalidLengthAuth 14183 } 14184 if (iNdEx + skippy) > l { 14185 return io.ErrUnexpectedEOF 14186 } 14187 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14188 iNdEx += skippy 14189 } 14190 } 14191 14192 if iNdEx > l { 14193 return io.ErrUnexpectedEOF 14194 } 14195 return nil 14196 } 14197 func (m *ExtendAuthTokenResponse) Unmarshal(dAtA []byte) error { 14198 l := len(dAtA) 14199 iNdEx := 0 14200 for iNdEx < l { 14201 preIndex := iNdEx 14202 var wire uint64 14203 for shift := uint(0); ; shift += 7 { 14204 if shift >= 64 { 14205 return ErrIntOverflowAuth 14206 } 14207 if iNdEx >= l { 14208 return io.ErrUnexpectedEOF 14209 } 14210 b := dAtA[iNdEx] 14211 iNdEx++ 14212 wire |= uint64(b&0x7F) << shift 14213 if b < 0x80 { 14214 break 14215 } 14216 } 14217 fieldNum := int32(wire >> 3) 14218 wireType := int(wire & 0x7) 14219 if wireType == 4 { 14220 return fmt.Errorf("proto: ExtendAuthTokenResponse: wiretype end group for non-group") 14221 } 14222 if fieldNum <= 0 { 14223 return fmt.Errorf("proto: ExtendAuthTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14224 } 14225 switch fieldNum { 14226 default: 14227 iNdEx = preIndex 14228 skippy, err := skipAuth(dAtA[iNdEx:]) 14229 if err != nil { 14230 return err 14231 } 14232 if (skippy < 0) || (iNdEx+skippy) < 0 { 14233 return ErrInvalidLengthAuth 14234 } 14235 if (iNdEx + skippy) > l { 14236 return io.ErrUnexpectedEOF 14237 } 14238 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14239 iNdEx += skippy 14240 } 14241 } 14242 14243 if iNdEx > l { 14244 return io.ErrUnexpectedEOF 14245 } 14246 return nil 14247 } 14248 func (m *RevokeAuthTokenRequest) Unmarshal(dAtA []byte) error { 14249 l := len(dAtA) 14250 iNdEx := 0 14251 for iNdEx < l { 14252 preIndex := iNdEx 14253 var wire uint64 14254 for shift := uint(0); ; shift += 7 { 14255 if shift >= 64 { 14256 return ErrIntOverflowAuth 14257 } 14258 if iNdEx >= l { 14259 return io.ErrUnexpectedEOF 14260 } 14261 b := dAtA[iNdEx] 14262 iNdEx++ 14263 wire |= uint64(b&0x7F) << shift 14264 if b < 0x80 { 14265 break 14266 } 14267 } 14268 fieldNum := int32(wire >> 3) 14269 wireType := int(wire & 0x7) 14270 if wireType == 4 { 14271 return fmt.Errorf("proto: RevokeAuthTokenRequest: wiretype end group for non-group") 14272 } 14273 if fieldNum <= 0 { 14274 return fmt.Errorf("proto: RevokeAuthTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 14275 } 14276 switch fieldNum { 14277 case 1: 14278 if wireType != 2 { 14279 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 14280 } 14281 var stringLen uint64 14282 for shift := uint(0); ; shift += 7 { 14283 if shift >= 64 { 14284 return ErrIntOverflowAuth 14285 } 14286 if iNdEx >= l { 14287 return io.ErrUnexpectedEOF 14288 } 14289 b := dAtA[iNdEx] 14290 iNdEx++ 14291 stringLen |= uint64(b&0x7F) << shift 14292 if b < 0x80 { 14293 break 14294 } 14295 } 14296 intStringLen := int(stringLen) 14297 if intStringLen < 0 { 14298 return ErrInvalidLengthAuth 14299 } 14300 postIndex := iNdEx + intStringLen 14301 if postIndex < 0 { 14302 return ErrInvalidLengthAuth 14303 } 14304 if postIndex > l { 14305 return io.ErrUnexpectedEOF 14306 } 14307 m.Token = string(dAtA[iNdEx:postIndex]) 14308 iNdEx = postIndex 14309 default: 14310 iNdEx = preIndex 14311 skippy, err := skipAuth(dAtA[iNdEx:]) 14312 if err != nil { 14313 return err 14314 } 14315 if (skippy < 0) || (iNdEx+skippy) < 0 { 14316 return ErrInvalidLengthAuth 14317 } 14318 if (iNdEx + skippy) > l { 14319 return io.ErrUnexpectedEOF 14320 } 14321 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14322 iNdEx += skippy 14323 } 14324 } 14325 14326 if iNdEx > l { 14327 return io.ErrUnexpectedEOF 14328 } 14329 return nil 14330 } 14331 func (m *RevokeAuthTokenResponse) Unmarshal(dAtA []byte) error { 14332 l := len(dAtA) 14333 iNdEx := 0 14334 for iNdEx < l { 14335 preIndex := iNdEx 14336 var wire uint64 14337 for shift := uint(0); ; shift += 7 { 14338 if shift >= 64 { 14339 return ErrIntOverflowAuth 14340 } 14341 if iNdEx >= l { 14342 return io.ErrUnexpectedEOF 14343 } 14344 b := dAtA[iNdEx] 14345 iNdEx++ 14346 wire |= uint64(b&0x7F) << shift 14347 if b < 0x80 { 14348 break 14349 } 14350 } 14351 fieldNum := int32(wire >> 3) 14352 wireType := int(wire & 0x7) 14353 if wireType == 4 { 14354 return fmt.Errorf("proto: RevokeAuthTokenResponse: wiretype end group for non-group") 14355 } 14356 if fieldNum <= 0 { 14357 return fmt.Errorf("proto: RevokeAuthTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14358 } 14359 switch fieldNum { 14360 default: 14361 iNdEx = preIndex 14362 skippy, err := skipAuth(dAtA[iNdEx:]) 14363 if err != nil { 14364 return err 14365 } 14366 if (skippy < 0) || (iNdEx+skippy) < 0 { 14367 return ErrInvalidLengthAuth 14368 } 14369 if (iNdEx + skippy) > l { 14370 return io.ErrUnexpectedEOF 14371 } 14372 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14373 iNdEx += skippy 14374 } 14375 } 14376 14377 if iNdEx > l { 14378 return io.ErrUnexpectedEOF 14379 } 14380 return nil 14381 } 14382 func (m *SetGroupsForUserRequest) Unmarshal(dAtA []byte) error { 14383 l := len(dAtA) 14384 iNdEx := 0 14385 for iNdEx < l { 14386 preIndex := iNdEx 14387 var wire uint64 14388 for shift := uint(0); ; shift += 7 { 14389 if shift >= 64 { 14390 return ErrIntOverflowAuth 14391 } 14392 if iNdEx >= l { 14393 return io.ErrUnexpectedEOF 14394 } 14395 b := dAtA[iNdEx] 14396 iNdEx++ 14397 wire |= uint64(b&0x7F) << shift 14398 if b < 0x80 { 14399 break 14400 } 14401 } 14402 fieldNum := int32(wire >> 3) 14403 wireType := int(wire & 0x7) 14404 if wireType == 4 { 14405 return fmt.Errorf("proto: SetGroupsForUserRequest: wiretype end group for non-group") 14406 } 14407 if fieldNum <= 0 { 14408 return fmt.Errorf("proto: SetGroupsForUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) 14409 } 14410 switch fieldNum { 14411 case 1: 14412 if wireType != 2 { 14413 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 14414 } 14415 var stringLen uint64 14416 for shift := uint(0); ; shift += 7 { 14417 if shift >= 64 { 14418 return ErrIntOverflowAuth 14419 } 14420 if iNdEx >= l { 14421 return io.ErrUnexpectedEOF 14422 } 14423 b := dAtA[iNdEx] 14424 iNdEx++ 14425 stringLen |= uint64(b&0x7F) << shift 14426 if b < 0x80 { 14427 break 14428 } 14429 } 14430 intStringLen := int(stringLen) 14431 if intStringLen < 0 { 14432 return ErrInvalidLengthAuth 14433 } 14434 postIndex := iNdEx + intStringLen 14435 if postIndex < 0 { 14436 return ErrInvalidLengthAuth 14437 } 14438 if postIndex > l { 14439 return io.ErrUnexpectedEOF 14440 } 14441 m.Username = string(dAtA[iNdEx:postIndex]) 14442 iNdEx = postIndex 14443 case 2: 14444 if wireType != 2 { 14445 return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) 14446 } 14447 var stringLen uint64 14448 for shift := uint(0); ; shift += 7 { 14449 if shift >= 64 { 14450 return ErrIntOverflowAuth 14451 } 14452 if iNdEx >= l { 14453 return io.ErrUnexpectedEOF 14454 } 14455 b := dAtA[iNdEx] 14456 iNdEx++ 14457 stringLen |= uint64(b&0x7F) << shift 14458 if b < 0x80 { 14459 break 14460 } 14461 } 14462 intStringLen := int(stringLen) 14463 if intStringLen < 0 { 14464 return ErrInvalidLengthAuth 14465 } 14466 postIndex := iNdEx + intStringLen 14467 if postIndex < 0 { 14468 return ErrInvalidLengthAuth 14469 } 14470 if postIndex > l { 14471 return io.ErrUnexpectedEOF 14472 } 14473 m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) 14474 iNdEx = postIndex 14475 default: 14476 iNdEx = preIndex 14477 skippy, err := skipAuth(dAtA[iNdEx:]) 14478 if err != nil { 14479 return err 14480 } 14481 if (skippy < 0) || (iNdEx+skippy) < 0 { 14482 return ErrInvalidLengthAuth 14483 } 14484 if (iNdEx + skippy) > l { 14485 return io.ErrUnexpectedEOF 14486 } 14487 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14488 iNdEx += skippy 14489 } 14490 } 14491 14492 if iNdEx > l { 14493 return io.ErrUnexpectedEOF 14494 } 14495 return nil 14496 } 14497 func (m *SetGroupsForUserResponse) Unmarshal(dAtA []byte) error { 14498 l := len(dAtA) 14499 iNdEx := 0 14500 for iNdEx < l { 14501 preIndex := iNdEx 14502 var wire uint64 14503 for shift := uint(0); ; shift += 7 { 14504 if shift >= 64 { 14505 return ErrIntOverflowAuth 14506 } 14507 if iNdEx >= l { 14508 return io.ErrUnexpectedEOF 14509 } 14510 b := dAtA[iNdEx] 14511 iNdEx++ 14512 wire |= uint64(b&0x7F) << shift 14513 if b < 0x80 { 14514 break 14515 } 14516 } 14517 fieldNum := int32(wire >> 3) 14518 wireType := int(wire & 0x7) 14519 if wireType == 4 { 14520 return fmt.Errorf("proto: SetGroupsForUserResponse: wiretype end group for non-group") 14521 } 14522 if fieldNum <= 0 { 14523 return fmt.Errorf("proto: SetGroupsForUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14524 } 14525 switch fieldNum { 14526 default: 14527 iNdEx = preIndex 14528 skippy, err := skipAuth(dAtA[iNdEx:]) 14529 if err != nil { 14530 return err 14531 } 14532 if (skippy < 0) || (iNdEx+skippy) < 0 { 14533 return ErrInvalidLengthAuth 14534 } 14535 if (iNdEx + skippy) > l { 14536 return io.ErrUnexpectedEOF 14537 } 14538 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14539 iNdEx += skippy 14540 } 14541 } 14542 14543 if iNdEx > l { 14544 return io.ErrUnexpectedEOF 14545 } 14546 return nil 14547 } 14548 func (m *ModifyMembersRequest) Unmarshal(dAtA []byte) error { 14549 l := len(dAtA) 14550 iNdEx := 0 14551 for iNdEx < l { 14552 preIndex := iNdEx 14553 var wire uint64 14554 for shift := uint(0); ; shift += 7 { 14555 if shift >= 64 { 14556 return ErrIntOverflowAuth 14557 } 14558 if iNdEx >= l { 14559 return io.ErrUnexpectedEOF 14560 } 14561 b := dAtA[iNdEx] 14562 iNdEx++ 14563 wire |= uint64(b&0x7F) << shift 14564 if b < 0x80 { 14565 break 14566 } 14567 } 14568 fieldNum := int32(wire >> 3) 14569 wireType := int(wire & 0x7) 14570 if wireType == 4 { 14571 return fmt.Errorf("proto: ModifyMembersRequest: wiretype end group for non-group") 14572 } 14573 if fieldNum <= 0 { 14574 return fmt.Errorf("proto: ModifyMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 14575 } 14576 switch fieldNum { 14577 case 1: 14578 if wireType != 2 { 14579 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 14580 } 14581 var stringLen uint64 14582 for shift := uint(0); ; shift += 7 { 14583 if shift >= 64 { 14584 return ErrIntOverflowAuth 14585 } 14586 if iNdEx >= l { 14587 return io.ErrUnexpectedEOF 14588 } 14589 b := dAtA[iNdEx] 14590 iNdEx++ 14591 stringLen |= uint64(b&0x7F) << shift 14592 if b < 0x80 { 14593 break 14594 } 14595 } 14596 intStringLen := int(stringLen) 14597 if intStringLen < 0 { 14598 return ErrInvalidLengthAuth 14599 } 14600 postIndex := iNdEx + intStringLen 14601 if postIndex < 0 { 14602 return ErrInvalidLengthAuth 14603 } 14604 if postIndex > l { 14605 return io.ErrUnexpectedEOF 14606 } 14607 m.Group = string(dAtA[iNdEx:postIndex]) 14608 iNdEx = postIndex 14609 case 2: 14610 if wireType != 2 { 14611 return fmt.Errorf("proto: wrong wireType = %d for field Add", wireType) 14612 } 14613 var stringLen uint64 14614 for shift := uint(0); ; shift += 7 { 14615 if shift >= 64 { 14616 return ErrIntOverflowAuth 14617 } 14618 if iNdEx >= l { 14619 return io.ErrUnexpectedEOF 14620 } 14621 b := dAtA[iNdEx] 14622 iNdEx++ 14623 stringLen |= uint64(b&0x7F) << shift 14624 if b < 0x80 { 14625 break 14626 } 14627 } 14628 intStringLen := int(stringLen) 14629 if intStringLen < 0 { 14630 return ErrInvalidLengthAuth 14631 } 14632 postIndex := iNdEx + intStringLen 14633 if postIndex < 0 { 14634 return ErrInvalidLengthAuth 14635 } 14636 if postIndex > l { 14637 return io.ErrUnexpectedEOF 14638 } 14639 m.Add = append(m.Add, string(dAtA[iNdEx:postIndex])) 14640 iNdEx = postIndex 14641 case 3: 14642 if wireType != 2 { 14643 return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) 14644 } 14645 var stringLen uint64 14646 for shift := uint(0); ; shift += 7 { 14647 if shift >= 64 { 14648 return ErrIntOverflowAuth 14649 } 14650 if iNdEx >= l { 14651 return io.ErrUnexpectedEOF 14652 } 14653 b := dAtA[iNdEx] 14654 iNdEx++ 14655 stringLen |= uint64(b&0x7F) << shift 14656 if b < 0x80 { 14657 break 14658 } 14659 } 14660 intStringLen := int(stringLen) 14661 if intStringLen < 0 { 14662 return ErrInvalidLengthAuth 14663 } 14664 postIndex := iNdEx + intStringLen 14665 if postIndex < 0 { 14666 return ErrInvalidLengthAuth 14667 } 14668 if postIndex > l { 14669 return io.ErrUnexpectedEOF 14670 } 14671 m.Remove = append(m.Remove, string(dAtA[iNdEx:postIndex])) 14672 iNdEx = postIndex 14673 default: 14674 iNdEx = preIndex 14675 skippy, err := skipAuth(dAtA[iNdEx:]) 14676 if err != nil { 14677 return err 14678 } 14679 if (skippy < 0) || (iNdEx+skippy) < 0 { 14680 return ErrInvalidLengthAuth 14681 } 14682 if (iNdEx + skippy) > l { 14683 return io.ErrUnexpectedEOF 14684 } 14685 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14686 iNdEx += skippy 14687 } 14688 } 14689 14690 if iNdEx > l { 14691 return io.ErrUnexpectedEOF 14692 } 14693 return nil 14694 } 14695 func (m *ModifyMembersResponse) Unmarshal(dAtA []byte) error { 14696 l := len(dAtA) 14697 iNdEx := 0 14698 for iNdEx < l { 14699 preIndex := iNdEx 14700 var wire uint64 14701 for shift := uint(0); ; shift += 7 { 14702 if shift >= 64 { 14703 return ErrIntOverflowAuth 14704 } 14705 if iNdEx >= l { 14706 return io.ErrUnexpectedEOF 14707 } 14708 b := dAtA[iNdEx] 14709 iNdEx++ 14710 wire |= uint64(b&0x7F) << shift 14711 if b < 0x80 { 14712 break 14713 } 14714 } 14715 fieldNum := int32(wire >> 3) 14716 wireType := int(wire & 0x7) 14717 if wireType == 4 { 14718 return fmt.Errorf("proto: ModifyMembersResponse: wiretype end group for non-group") 14719 } 14720 if fieldNum <= 0 { 14721 return fmt.Errorf("proto: ModifyMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14722 } 14723 switch fieldNum { 14724 default: 14725 iNdEx = preIndex 14726 skippy, err := skipAuth(dAtA[iNdEx:]) 14727 if err != nil { 14728 return err 14729 } 14730 if (skippy < 0) || (iNdEx+skippy) < 0 { 14731 return ErrInvalidLengthAuth 14732 } 14733 if (iNdEx + skippy) > l { 14734 return io.ErrUnexpectedEOF 14735 } 14736 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14737 iNdEx += skippy 14738 } 14739 } 14740 14741 if iNdEx > l { 14742 return io.ErrUnexpectedEOF 14743 } 14744 return nil 14745 } 14746 func (m *GetGroupsRequest) Unmarshal(dAtA []byte) error { 14747 l := len(dAtA) 14748 iNdEx := 0 14749 for iNdEx < l { 14750 preIndex := iNdEx 14751 var wire uint64 14752 for shift := uint(0); ; shift += 7 { 14753 if shift >= 64 { 14754 return ErrIntOverflowAuth 14755 } 14756 if iNdEx >= l { 14757 return io.ErrUnexpectedEOF 14758 } 14759 b := dAtA[iNdEx] 14760 iNdEx++ 14761 wire |= uint64(b&0x7F) << shift 14762 if b < 0x80 { 14763 break 14764 } 14765 } 14766 fieldNum := int32(wire >> 3) 14767 wireType := int(wire & 0x7) 14768 if wireType == 4 { 14769 return fmt.Errorf("proto: GetGroupsRequest: wiretype end group for non-group") 14770 } 14771 if fieldNum <= 0 { 14772 return fmt.Errorf("proto: GetGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 14773 } 14774 switch fieldNum { 14775 case 1: 14776 if wireType != 2 { 14777 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 14778 } 14779 var stringLen uint64 14780 for shift := uint(0); ; shift += 7 { 14781 if shift >= 64 { 14782 return ErrIntOverflowAuth 14783 } 14784 if iNdEx >= l { 14785 return io.ErrUnexpectedEOF 14786 } 14787 b := dAtA[iNdEx] 14788 iNdEx++ 14789 stringLen |= uint64(b&0x7F) << shift 14790 if b < 0x80 { 14791 break 14792 } 14793 } 14794 intStringLen := int(stringLen) 14795 if intStringLen < 0 { 14796 return ErrInvalidLengthAuth 14797 } 14798 postIndex := iNdEx + intStringLen 14799 if postIndex < 0 { 14800 return ErrInvalidLengthAuth 14801 } 14802 if postIndex > l { 14803 return io.ErrUnexpectedEOF 14804 } 14805 m.Username = string(dAtA[iNdEx:postIndex]) 14806 iNdEx = postIndex 14807 default: 14808 iNdEx = preIndex 14809 skippy, err := skipAuth(dAtA[iNdEx:]) 14810 if err != nil { 14811 return err 14812 } 14813 if (skippy < 0) || (iNdEx+skippy) < 0 { 14814 return ErrInvalidLengthAuth 14815 } 14816 if (iNdEx + skippy) > l { 14817 return io.ErrUnexpectedEOF 14818 } 14819 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14820 iNdEx += skippy 14821 } 14822 } 14823 14824 if iNdEx > l { 14825 return io.ErrUnexpectedEOF 14826 } 14827 return nil 14828 } 14829 func (m *GetGroupsResponse) Unmarshal(dAtA []byte) error { 14830 l := len(dAtA) 14831 iNdEx := 0 14832 for iNdEx < l { 14833 preIndex := iNdEx 14834 var wire uint64 14835 for shift := uint(0); ; shift += 7 { 14836 if shift >= 64 { 14837 return ErrIntOverflowAuth 14838 } 14839 if iNdEx >= l { 14840 return io.ErrUnexpectedEOF 14841 } 14842 b := dAtA[iNdEx] 14843 iNdEx++ 14844 wire |= uint64(b&0x7F) << shift 14845 if b < 0x80 { 14846 break 14847 } 14848 } 14849 fieldNum := int32(wire >> 3) 14850 wireType := int(wire & 0x7) 14851 if wireType == 4 { 14852 return fmt.Errorf("proto: GetGroupsResponse: wiretype end group for non-group") 14853 } 14854 if fieldNum <= 0 { 14855 return fmt.Errorf("proto: GetGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 14856 } 14857 switch fieldNum { 14858 case 1: 14859 if wireType != 2 { 14860 return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) 14861 } 14862 var stringLen uint64 14863 for shift := uint(0); ; shift += 7 { 14864 if shift >= 64 { 14865 return ErrIntOverflowAuth 14866 } 14867 if iNdEx >= l { 14868 return io.ErrUnexpectedEOF 14869 } 14870 b := dAtA[iNdEx] 14871 iNdEx++ 14872 stringLen |= uint64(b&0x7F) << shift 14873 if b < 0x80 { 14874 break 14875 } 14876 } 14877 intStringLen := int(stringLen) 14878 if intStringLen < 0 { 14879 return ErrInvalidLengthAuth 14880 } 14881 postIndex := iNdEx + intStringLen 14882 if postIndex < 0 { 14883 return ErrInvalidLengthAuth 14884 } 14885 if postIndex > l { 14886 return io.ErrUnexpectedEOF 14887 } 14888 m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) 14889 iNdEx = postIndex 14890 default: 14891 iNdEx = preIndex 14892 skippy, err := skipAuth(dAtA[iNdEx:]) 14893 if err != nil { 14894 return err 14895 } 14896 if (skippy < 0) || (iNdEx+skippy) < 0 { 14897 return ErrInvalidLengthAuth 14898 } 14899 if (iNdEx + skippy) > l { 14900 return io.ErrUnexpectedEOF 14901 } 14902 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14903 iNdEx += skippy 14904 } 14905 } 14906 14907 if iNdEx > l { 14908 return io.ErrUnexpectedEOF 14909 } 14910 return nil 14911 } 14912 func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { 14913 l := len(dAtA) 14914 iNdEx := 0 14915 for iNdEx < l { 14916 preIndex := iNdEx 14917 var wire uint64 14918 for shift := uint(0); ; shift += 7 { 14919 if shift >= 64 { 14920 return ErrIntOverflowAuth 14921 } 14922 if iNdEx >= l { 14923 return io.ErrUnexpectedEOF 14924 } 14925 b := dAtA[iNdEx] 14926 iNdEx++ 14927 wire |= uint64(b&0x7F) << shift 14928 if b < 0x80 { 14929 break 14930 } 14931 } 14932 fieldNum := int32(wire >> 3) 14933 wireType := int(wire & 0x7) 14934 if wireType == 4 { 14935 return fmt.Errorf("proto: GetUsersRequest: wiretype end group for non-group") 14936 } 14937 if fieldNum <= 0 { 14938 return fmt.Errorf("proto: GetUsersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 14939 } 14940 switch fieldNum { 14941 case 1: 14942 if wireType != 2 { 14943 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 14944 } 14945 var stringLen uint64 14946 for shift := uint(0); ; shift += 7 { 14947 if shift >= 64 { 14948 return ErrIntOverflowAuth 14949 } 14950 if iNdEx >= l { 14951 return io.ErrUnexpectedEOF 14952 } 14953 b := dAtA[iNdEx] 14954 iNdEx++ 14955 stringLen |= uint64(b&0x7F) << shift 14956 if b < 0x80 { 14957 break 14958 } 14959 } 14960 intStringLen := int(stringLen) 14961 if intStringLen < 0 { 14962 return ErrInvalidLengthAuth 14963 } 14964 postIndex := iNdEx + intStringLen 14965 if postIndex < 0 { 14966 return ErrInvalidLengthAuth 14967 } 14968 if postIndex > l { 14969 return io.ErrUnexpectedEOF 14970 } 14971 m.Group = string(dAtA[iNdEx:postIndex]) 14972 iNdEx = postIndex 14973 default: 14974 iNdEx = preIndex 14975 skippy, err := skipAuth(dAtA[iNdEx:]) 14976 if err != nil { 14977 return err 14978 } 14979 if (skippy < 0) || (iNdEx+skippy) < 0 { 14980 return ErrInvalidLengthAuth 14981 } 14982 if (iNdEx + skippy) > l { 14983 return io.ErrUnexpectedEOF 14984 } 14985 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 14986 iNdEx += skippy 14987 } 14988 } 14989 14990 if iNdEx > l { 14991 return io.ErrUnexpectedEOF 14992 } 14993 return nil 14994 } 14995 func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { 14996 l := len(dAtA) 14997 iNdEx := 0 14998 for iNdEx < l { 14999 preIndex := iNdEx 15000 var wire uint64 15001 for shift := uint(0); ; shift += 7 { 15002 if shift >= 64 { 15003 return ErrIntOverflowAuth 15004 } 15005 if iNdEx >= l { 15006 return io.ErrUnexpectedEOF 15007 } 15008 b := dAtA[iNdEx] 15009 iNdEx++ 15010 wire |= uint64(b&0x7F) << shift 15011 if b < 0x80 { 15012 break 15013 } 15014 } 15015 fieldNum := int32(wire >> 3) 15016 wireType := int(wire & 0x7) 15017 if wireType == 4 { 15018 return fmt.Errorf("proto: GetUsersResponse: wiretype end group for non-group") 15019 } 15020 if fieldNum <= 0 { 15021 return fmt.Errorf("proto: GetUsersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 15022 } 15023 switch fieldNum { 15024 case 1: 15025 if wireType != 2 { 15026 return fmt.Errorf("proto: wrong wireType = %d for field Usernames", wireType) 15027 } 15028 var stringLen uint64 15029 for shift := uint(0); ; shift += 7 { 15030 if shift >= 64 { 15031 return ErrIntOverflowAuth 15032 } 15033 if iNdEx >= l { 15034 return io.ErrUnexpectedEOF 15035 } 15036 b := dAtA[iNdEx] 15037 iNdEx++ 15038 stringLen |= uint64(b&0x7F) << shift 15039 if b < 0x80 { 15040 break 15041 } 15042 } 15043 intStringLen := int(stringLen) 15044 if intStringLen < 0 { 15045 return ErrInvalidLengthAuth 15046 } 15047 postIndex := iNdEx + intStringLen 15048 if postIndex < 0 { 15049 return ErrInvalidLengthAuth 15050 } 15051 if postIndex > l { 15052 return io.ErrUnexpectedEOF 15053 } 15054 m.Usernames = append(m.Usernames, string(dAtA[iNdEx:postIndex])) 15055 iNdEx = postIndex 15056 default: 15057 iNdEx = preIndex 15058 skippy, err := skipAuth(dAtA[iNdEx:]) 15059 if err != nil { 15060 return err 15061 } 15062 if (skippy < 0) || (iNdEx+skippy) < 0 { 15063 return ErrInvalidLengthAuth 15064 } 15065 if (iNdEx + skippy) > l { 15066 return io.ErrUnexpectedEOF 15067 } 15068 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15069 iNdEx += skippy 15070 } 15071 } 15072 15073 if iNdEx > l { 15074 return io.ErrUnexpectedEOF 15075 } 15076 return nil 15077 } 15078 func (m *GetOneTimePasswordRequest) Unmarshal(dAtA []byte) error { 15079 l := len(dAtA) 15080 iNdEx := 0 15081 for iNdEx < l { 15082 preIndex := iNdEx 15083 var wire uint64 15084 for shift := uint(0); ; shift += 7 { 15085 if shift >= 64 { 15086 return ErrIntOverflowAuth 15087 } 15088 if iNdEx >= l { 15089 return io.ErrUnexpectedEOF 15090 } 15091 b := dAtA[iNdEx] 15092 iNdEx++ 15093 wire |= uint64(b&0x7F) << shift 15094 if b < 0x80 { 15095 break 15096 } 15097 } 15098 fieldNum := int32(wire >> 3) 15099 wireType := int(wire & 0x7) 15100 if wireType == 4 { 15101 return fmt.Errorf("proto: GetOneTimePasswordRequest: wiretype end group for non-group") 15102 } 15103 if fieldNum <= 0 { 15104 return fmt.Errorf("proto: GetOneTimePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire) 15105 } 15106 switch fieldNum { 15107 case 1: 15108 if wireType != 2 { 15109 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 15110 } 15111 var stringLen uint64 15112 for shift := uint(0); ; shift += 7 { 15113 if shift >= 64 { 15114 return ErrIntOverflowAuth 15115 } 15116 if iNdEx >= l { 15117 return io.ErrUnexpectedEOF 15118 } 15119 b := dAtA[iNdEx] 15120 iNdEx++ 15121 stringLen |= uint64(b&0x7F) << shift 15122 if b < 0x80 { 15123 break 15124 } 15125 } 15126 intStringLen := int(stringLen) 15127 if intStringLen < 0 { 15128 return ErrInvalidLengthAuth 15129 } 15130 postIndex := iNdEx + intStringLen 15131 if postIndex < 0 { 15132 return ErrInvalidLengthAuth 15133 } 15134 if postIndex > l { 15135 return io.ErrUnexpectedEOF 15136 } 15137 m.Subject = string(dAtA[iNdEx:postIndex]) 15138 iNdEx = postIndex 15139 case 2: 15140 if wireType != 0 { 15141 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) 15142 } 15143 m.TTL = 0 15144 for shift := uint(0); ; shift += 7 { 15145 if shift >= 64 { 15146 return ErrIntOverflowAuth 15147 } 15148 if iNdEx >= l { 15149 return io.ErrUnexpectedEOF 15150 } 15151 b := dAtA[iNdEx] 15152 iNdEx++ 15153 m.TTL |= int64(b&0x7F) << shift 15154 if b < 0x80 { 15155 break 15156 } 15157 } 15158 default: 15159 iNdEx = preIndex 15160 skippy, err := skipAuth(dAtA[iNdEx:]) 15161 if err != nil { 15162 return err 15163 } 15164 if (skippy < 0) || (iNdEx+skippy) < 0 { 15165 return ErrInvalidLengthAuth 15166 } 15167 if (iNdEx + skippy) > l { 15168 return io.ErrUnexpectedEOF 15169 } 15170 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15171 iNdEx += skippy 15172 } 15173 } 15174 15175 if iNdEx > l { 15176 return io.ErrUnexpectedEOF 15177 } 15178 return nil 15179 } 15180 func (m *GetOneTimePasswordResponse) Unmarshal(dAtA []byte) error { 15181 l := len(dAtA) 15182 iNdEx := 0 15183 for iNdEx < l { 15184 preIndex := iNdEx 15185 var wire uint64 15186 for shift := uint(0); ; shift += 7 { 15187 if shift >= 64 { 15188 return ErrIntOverflowAuth 15189 } 15190 if iNdEx >= l { 15191 return io.ErrUnexpectedEOF 15192 } 15193 b := dAtA[iNdEx] 15194 iNdEx++ 15195 wire |= uint64(b&0x7F) << shift 15196 if b < 0x80 { 15197 break 15198 } 15199 } 15200 fieldNum := int32(wire >> 3) 15201 wireType := int(wire & 0x7) 15202 if wireType == 4 { 15203 return fmt.Errorf("proto: GetOneTimePasswordResponse: wiretype end group for non-group") 15204 } 15205 if fieldNum <= 0 { 15206 return fmt.Errorf("proto: GetOneTimePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire) 15207 } 15208 switch fieldNum { 15209 case 1: 15210 if wireType != 2 { 15211 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 15212 } 15213 var stringLen uint64 15214 for shift := uint(0); ; shift += 7 { 15215 if shift >= 64 { 15216 return ErrIntOverflowAuth 15217 } 15218 if iNdEx >= l { 15219 return io.ErrUnexpectedEOF 15220 } 15221 b := dAtA[iNdEx] 15222 iNdEx++ 15223 stringLen |= uint64(b&0x7F) << shift 15224 if b < 0x80 { 15225 break 15226 } 15227 } 15228 intStringLen := int(stringLen) 15229 if intStringLen < 0 { 15230 return ErrInvalidLengthAuth 15231 } 15232 postIndex := iNdEx + intStringLen 15233 if postIndex < 0 { 15234 return ErrInvalidLengthAuth 15235 } 15236 if postIndex > l { 15237 return io.ErrUnexpectedEOF 15238 } 15239 m.Code = string(dAtA[iNdEx:postIndex]) 15240 iNdEx = postIndex 15241 case 2: 15242 if wireType != 2 { 15243 return fmt.Errorf("proto: wrong wireType = %d for field OTPExpiration", wireType) 15244 } 15245 var msglen int 15246 for shift := uint(0); ; shift += 7 { 15247 if shift >= 64 { 15248 return ErrIntOverflowAuth 15249 } 15250 if iNdEx >= l { 15251 return io.ErrUnexpectedEOF 15252 } 15253 b := dAtA[iNdEx] 15254 iNdEx++ 15255 msglen |= int(b&0x7F) << shift 15256 if b < 0x80 { 15257 break 15258 } 15259 } 15260 if msglen < 0 { 15261 return ErrInvalidLengthAuth 15262 } 15263 postIndex := iNdEx + msglen 15264 if postIndex < 0 { 15265 return ErrInvalidLengthAuth 15266 } 15267 if postIndex > l { 15268 return io.ErrUnexpectedEOF 15269 } 15270 if m.OTPExpiration == nil { 15271 m.OTPExpiration = &types.Timestamp{} 15272 } 15273 if err := m.OTPExpiration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15274 return err 15275 } 15276 iNdEx = postIndex 15277 default: 15278 iNdEx = preIndex 15279 skippy, err := skipAuth(dAtA[iNdEx:]) 15280 if err != nil { 15281 return err 15282 } 15283 if (skippy < 0) || (iNdEx+skippy) < 0 { 15284 return ErrInvalidLengthAuth 15285 } 15286 if (iNdEx + skippy) > l { 15287 return io.ErrUnexpectedEOF 15288 } 15289 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15290 iNdEx += skippy 15291 } 15292 } 15293 15294 if iNdEx > l { 15295 return io.ErrUnexpectedEOF 15296 } 15297 return nil 15298 } 15299 func (m *HashedAuthToken) Unmarshal(dAtA []byte) error { 15300 l := len(dAtA) 15301 iNdEx := 0 15302 for iNdEx < l { 15303 preIndex := iNdEx 15304 var wire uint64 15305 for shift := uint(0); ; shift += 7 { 15306 if shift >= 64 { 15307 return ErrIntOverflowAuth 15308 } 15309 if iNdEx >= l { 15310 return io.ErrUnexpectedEOF 15311 } 15312 b := dAtA[iNdEx] 15313 iNdEx++ 15314 wire |= uint64(b&0x7F) << shift 15315 if b < 0x80 { 15316 break 15317 } 15318 } 15319 fieldNum := int32(wire >> 3) 15320 wireType := int(wire & 0x7) 15321 if wireType == 4 { 15322 return fmt.Errorf("proto: HashedAuthToken: wiretype end group for non-group") 15323 } 15324 if fieldNum <= 0 { 15325 return fmt.Errorf("proto: HashedAuthToken: illegal tag %d (wire type %d)", fieldNum, wire) 15326 } 15327 switch fieldNum { 15328 case 1: 15329 if wireType != 2 { 15330 return fmt.Errorf("proto: wrong wireType = %d for field HashedToken", wireType) 15331 } 15332 var stringLen uint64 15333 for shift := uint(0); ; shift += 7 { 15334 if shift >= 64 { 15335 return ErrIntOverflowAuth 15336 } 15337 if iNdEx >= l { 15338 return io.ErrUnexpectedEOF 15339 } 15340 b := dAtA[iNdEx] 15341 iNdEx++ 15342 stringLen |= uint64(b&0x7F) << shift 15343 if b < 0x80 { 15344 break 15345 } 15346 } 15347 intStringLen := int(stringLen) 15348 if intStringLen < 0 { 15349 return ErrInvalidLengthAuth 15350 } 15351 postIndex := iNdEx + intStringLen 15352 if postIndex < 0 { 15353 return ErrInvalidLengthAuth 15354 } 15355 if postIndex > l { 15356 return io.ErrUnexpectedEOF 15357 } 15358 m.HashedToken = string(dAtA[iNdEx:postIndex]) 15359 iNdEx = postIndex 15360 case 2: 15361 if wireType != 2 { 15362 return fmt.Errorf("proto: wrong wireType = %d for field TokenInfo", wireType) 15363 } 15364 var msglen int 15365 for shift := uint(0); ; shift += 7 { 15366 if shift >= 64 { 15367 return ErrIntOverflowAuth 15368 } 15369 if iNdEx >= l { 15370 return io.ErrUnexpectedEOF 15371 } 15372 b := dAtA[iNdEx] 15373 iNdEx++ 15374 msglen |= int(b&0x7F) << shift 15375 if b < 0x80 { 15376 break 15377 } 15378 } 15379 if msglen < 0 { 15380 return ErrInvalidLengthAuth 15381 } 15382 postIndex := iNdEx + msglen 15383 if postIndex < 0 { 15384 return ErrInvalidLengthAuth 15385 } 15386 if postIndex > l { 15387 return io.ErrUnexpectedEOF 15388 } 15389 if m.TokenInfo == nil { 15390 m.TokenInfo = &TokenInfo{} 15391 } 15392 if err := m.TokenInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15393 return err 15394 } 15395 iNdEx = postIndex 15396 case 3: 15397 if wireType != 2 { 15398 return fmt.Errorf("proto: wrong wireType = %d for field Expiration", wireType) 15399 } 15400 var msglen int 15401 for shift := uint(0); ; shift += 7 { 15402 if shift >= 64 { 15403 return ErrIntOverflowAuth 15404 } 15405 if iNdEx >= l { 15406 return io.ErrUnexpectedEOF 15407 } 15408 b := dAtA[iNdEx] 15409 iNdEx++ 15410 msglen |= int(b&0x7F) << shift 15411 if b < 0x80 { 15412 break 15413 } 15414 } 15415 if msglen < 0 { 15416 return ErrInvalidLengthAuth 15417 } 15418 postIndex := iNdEx + msglen 15419 if postIndex < 0 { 15420 return ErrInvalidLengthAuth 15421 } 15422 if postIndex > l { 15423 return io.ErrUnexpectedEOF 15424 } 15425 if m.Expiration == nil { 15426 m.Expiration = &types.Timestamp{} 15427 } 15428 if err := m.Expiration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15429 return err 15430 } 15431 iNdEx = postIndex 15432 default: 15433 iNdEx = preIndex 15434 skippy, err := skipAuth(dAtA[iNdEx:]) 15435 if err != nil { 15436 return err 15437 } 15438 if (skippy < 0) || (iNdEx+skippy) < 0 { 15439 return ErrInvalidLengthAuth 15440 } 15441 if (iNdEx + skippy) > l { 15442 return io.ErrUnexpectedEOF 15443 } 15444 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15445 iNdEx += skippy 15446 } 15447 } 15448 15449 if iNdEx > l { 15450 return io.ErrUnexpectedEOF 15451 } 15452 return nil 15453 } 15454 func (m *ExtractAuthTokensRequest) Unmarshal(dAtA []byte) error { 15455 l := len(dAtA) 15456 iNdEx := 0 15457 for iNdEx < l { 15458 preIndex := iNdEx 15459 var wire uint64 15460 for shift := uint(0); ; shift += 7 { 15461 if shift >= 64 { 15462 return ErrIntOverflowAuth 15463 } 15464 if iNdEx >= l { 15465 return io.ErrUnexpectedEOF 15466 } 15467 b := dAtA[iNdEx] 15468 iNdEx++ 15469 wire |= uint64(b&0x7F) << shift 15470 if b < 0x80 { 15471 break 15472 } 15473 } 15474 fieldNum := int32(wire >> 3) 15475 wireType := int(wire & 0x7) 15476 if wireType == 4 { 15477 return fmt.Errorf("proto: ExtractAuthTokensRequest: wiretype end group for non-group") 15478 } 15479 if fieldNum <= 0 { 15480 return fmt.Errorf("proto: ExtractAuthTokensRequest: illegal tag %d (wire type %d)", fieldNum, wire) 15481 } 15482 switch fieldNum { 15483 default: 15484 iNdEx = preIndex 15485 skippy, err := skipAuth(dAtA[iNdEx:]) 15486 if err != nil { 15487 return err 15488 } 15489 if (skippy < 0) || (iNdEx+skippy) < 0 { 15490 return ErrInvalidLengthAuth 15491 } 15492 if (iNdEx + skippy) > l { 15493 return io.ErrUnexpectedEOF 15494 } 15495 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15496 iNdEx += skippy 15497 } 15498 } 15499 15500 if iNdEx > l { 15501 return io.ErrUnexpectedEOF 15502 } 15503 return nil 15504 } 15505 func (m *ExtractAuthTokensResponse) Unmarshal(dAtA []byte) error { 15506 l := len(dAtA) 15507 iNdEx := 0 15508 for iNdEx < l { 15509 preIndex := iNdEx 15510 var wire uint64 15511 for shift := uint(0); ; shift += 7 { 15512 if shift >= 64 { 15513 return ErrIntOverflowAuth 15514 } 15515 if iNdEx >= l { 15516 return io.ErrUnexpectedEOF 15517 } 15518 b := dAtA[iNdEx] 15519 iNdEx++ 15520 wire |= uint64(b&0x7F) << shift 15521 if b < 0x80 { 15522 break 15523 } 15524 } 15525 fieldNum := int32(wire >> 3) 15526 wireType := int(wire & 0x7) 15527 if wireType == 4 { 15528 return fmt.Errorf("proto: ExtractAuthTokensResponse: wiretype end group for non-group") 15529 } 15530 if fieldNum <= 0 { 15531 return fmt.Errorf("proto: ExtractAuthTokensResponse: illegal tag %d (wire type %d)", fieldNum, wire) 15532 } 15533 switch fieldNum { 15534 case 1: 15535 if wireType != 2 { 15536 return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) 15537 } 15538 var msglen int 15539 for shift := uint(0); ; shift += 7 { 15540 if shift >= 64 { 15541 return ErrIntOverflowAuth 15542 } 15543 if iNdEx >= l { 15544 return io.ErrUnexpectedEOF 15545 } 15546 b := dAtA[iNdEx] 15547 iNdEx++ 15548 msglen |= int(b&0x7F) << shift 15549 if b < 0x80 { 15550 break 15551 } 15552 } 15553 if msglen < 0 { 15554 return ErrInvalidLengthAuth 15555 } 15556 postIndex := iNdEx + msglen 15557 if postIndex < 0 { 15558 return ErrInvalidLengthAuth 15559 } 15560 if postIndex > l { 15561 return io.ErrUnexpectedEOF 15562 } 15563 m.Tokens = append(m.Tokens, &HashedAuthToken{}) 15564 if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15565 return err 15566 } 15567 iNdEx = postIndex 15568 default: 15569 iNdEx = preIndex 15570 skippy, err := skipAuth(dAtA[iNdEx:]) 15571 if err != nil { 15572 return err 15573 } 15574 if (skippy < 0) || (iNdEx+skippy) < 0 { 15575 return ErrInvalidLengthAuth 15576 } 15577 if (iNdEx + skippy) > l { 15578 return io.ErrUnexpectedEOF 15579 } 15580 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15581 iNdEx += skippy 15582 } 15583 } 15584 15585 if iNdEx > l { 15586 return io.ErrUnexpectedEOF 15587 } 15588 return nil 15589 } 15590 func (m *RestoreAuthTokenRequest) Unmarshal(dAtA []byte) error { 15591 l := len(dAtA) 15592 iNdEx := 0 15593 for iNdEx < l { 15594 preIndex := iNdEx 15595 var wire uint64 15596 for shift := uint(0); ; shift += 7 { 15597 if shift >= 64 { 15598 return ErrIntOverflowAuth 15599 } 15600 if iNdEx >= l { 15601 return io.ErrUnexpectedEOF 15602 } 15603 b := dAtA[iNdEx] 15604 iNdEx++ 15605 wire |= uint64(b&0x7F) << shift 15606 if b < 0x80 { 15607 break 15608 } 15609 } 15610 fieldNum := int32(wire >> 3) 15611 wireType := int(wire & 0x7) 15612 if wireType == 4 { 15613 return fmt.Errorf("proto: RestoreAuthTokenRequest: wiretype end group for non-group") 15614 } 15615 if fieldNum <= 0 { 15616 return fmt.Errorf("proto: RestoreAuthTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 15617 } 15618 switch fieldNum { 15619 case 1: 15620 if wireType != 2 { 15621 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 15622 } 15623 var msglen int 15624 for shift := uint(0); ; shift += 7 { 15625 if shift >= 64 { 15626 return ErrIntOverflowAuth 15627 } 15628 if iNdEx >= l { 15629 return io.ErrUnexpectedEOF 15630 } 15631 b := dAtA[iNdEx] 15632 iNdEx++ 15633 msglen |= int(b&0x7F) << shift 15634 if b < 0x80 { 15635 break 15636 } 15637 } 15638 if msglen < 0 { 15639 return ErrInvalidLengthAuth 15640 } 15641 postIndex := iNdEx + msglen 15642 if postIndex < 0 { 15643 return ErrInvalidLengthAuth 15644 } 15645 if postIndex > l { 15646 return io.ErrUnexpectedEOF 15647 } 15648 if m.Token == nil { 15649 m.Token = &HashedAuthToken{} 15650 } 15651 if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 15652 return err 15653 } 15654 iNdEx = postIndex 15655 default: 15656 iNdEx = preIndex 15657 skippy, err := skipAuth(dAtA[iNdEx:]) 15658 if err != nil { 15659 return err 15660 } 15661 if (skippy < 0) || (iNdEx+skippy) < 0 { 15662 return ErrInvalidLengthAuth 15663 } 15664 if (iNdEx + skippy) > l { 15665 return io.ErrUnexpectedEOF 15666 } 15667 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15668 iNdEx += skippy 15669 } 15670 } 15671 15672 if iNdEx > l { 15673 return io.ErrUnexpectedEOF 15674 } 15675 return nil 15676 } 15677 func (m *RestoreAuthTokenResponse) Unmarshal(dAtA []byte) error { 15678 l := len(dAtA) 15679 iNdEx := 0 15680 for iNdEx < l { 15681 preIndex := iNdEx 15682 var wire uint64 15683 for shift := uint(0); ; shift += 7 { 15684 if shift >= 64 { 15685 return ErrIntOverflowAuth 15686 } 15687 if iNdEx >= l { 15688 return io.ErrUnexpectedEOF 15689 } 15690 b := dAtA[iNdEx] 15691 iNdEx++ 15692 wire |= uint64(b&0x7F) << shift 15693 if b < 0x80 { 15694 break 15695 } 15696 } 15697 fieldNum := int32(wire >> 3) 15698 wireType := int(wire & 0x7) 15699 if wireType == 4 { 15700 return fmt.Errorf("proto: RestoreAuthTokenResponse: wiretype end group for non-group") 15701 } 15702 if fieldNum <= 0 { 15703 return fmt.Errorf("proto: RestoreAuthTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 15704 } 15705 switch fieldNum { 15706 default: 15707 iNdEx = preIndex 15708 skippy, err := skipAuth(dAtA[iNdEx:]) 15709 if err != nil { 15710 return err 15711 } 15712 if (skippy < 0) || (iNdEx+skippy) < 0 { 15713 return ErrInvalidLengthAuth 15714 } 15715 if (iNdEx + skippy) > l { 15716 return io.ErrUnexpectedEOF 15717 } 15718 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 15719 iNdEx += skippy 15720 } 15721 } 15722 15723 if iNdEx > l { 15724 return io.ErrUnexpectedEOF 15725 } 15726 return nil 15727 } 15728 func skipAuth(dAtA []byte) (n int, err error) { 15729 l := len(dAtA) 15730 iNdEx := 0 15731 depth := 0 15732 for iNdEx < l { 15733 var wire uint64 15734 for shift := uint(0); ; shift += 7 { 15735 if shift >= 64 { 15736 return 0, ErrIntOverflowAuth 15737 } 15738 if iNdEx >= l { 15739 return 0, io.ErrUnexpectedEOF 15740 } 15741 b := dAtA[iNdEx] 15742 iNdEx++ 15743 wire |= (uint64(b) & 0x7F) << shift 15744 if b < 0x80 { 15745 break 15746 } 15747 } 15748 wireType := int(wire & 0x7) 15749 switch wireType { 15750 case 0: 15751 for shift := uint(0); ; shift += 7 { 15752 if shift >= 64 { 15753 return 0, ErrIntOverflowAuth 15754 } 15755 if iNdEx >= l { 15756 return 0, io.ErrUnexpectedEOF 15757 } 15758 iNdEx++ 15759 if dAtA[iNdEx-1] < 0x80 { 15760 break 15761 } 15762 } 15763 case 1: 15764 iNdEx += 8 15765 case 2: 15766 var length int 15767 for shift := uint(0); ; shift += 7 { 15768 if shift >= 64 { 15769 return 0, ErrIntOverflowAuth 15770 } 15771 if iNdEx >= l { 15772 return 0, io.ErrUnexpectedEOF 15773 } 15774 b := dAtA[iNdEx] 15775 iNdEx++ 15776 length |= (int(b) & 0x7F) << shift 15777 if b < 0x80 { 15778 break 15779 } 15780 } 15781 if length < 0 { 15782 return 0, ErrInvalidLengthAuth 15783 } 15784 iNdEx += length 15785 case 3: 15786 depth++ 15787 case 4: 15788 if depth == 0 { 15789 return 0, ErrUnexpectedEndOfGroupAuth 15790 } 15791 depth-- 15792 case 5: 15793 iNdEx += 4 15794 default: 15795 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 15796 } 15797 if iNdEx < 0 { 15798 return 0, ErrInvalidLengthAuth 15799 } 15800 if depth == 0 { 15801 return iNdEx, nil 15802 } 15803 } 15804 return 0, io.ErrUnexpectedEOF 15805 } 15806 15807 var ( 15808 ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") 15809 ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") 15810 ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") 15811 )