github.com/pachyderm/pachyderm@v1.13.4/src/client/admin/v1_7/auth/auth.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: client/admin/v1_7/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 // Scope (actually a "role" in canonical security nomenclature) represents a 32 // rough level of access that a principal has to a repo 33 type Scope int32 34 35 const ( 36 // To remove a user's scope from a repo, set their scope to NONE 37 Scope_NONE Scope = 0 38 Scope_READER Scope = 1 39 Scope_WRITER Scope = 2 40 Scope_OWNER Scope = 3 41 ) 42 43 var Scope_name = map[int32]string{ 44 0: "NONE", 45 1: "READER", 46 2: "WRITER", 47 3: "OWNER", 48 } 49 50 var Scope_value = map[string]int32{ 51 "NONE": 0, 52 "READER": 1, 53 "WRITER": 2, 54 "OWNER": 3, 55 } 56 57 func (x Scope) String() string { 58 return proto.EnumName(Scope_name, int32(x)) 59 } 60 61 func (Scope) EnumDescriptor() ([]byte, []int) { 62 return fileDescriptor_a6dfd6c07e2cd89c, []int{0} 63 } 64 65 type TokenInfo_TokenSource int32 66 67 const ( 68 TokenInfo_INVALID TokenInfo_TokenSource = 0 69 TokenInfo_AUTHENTICATE TokenInfo_TokenSource = 1 70 TokenInfo_GET_TOKEN TokenInfo_TokenSource = 2 71 ) 72 73 var TokenInfo_TokenSource_name = map[int32]string{ 74 0: "INVALID", 75 1: "AUTHENTICATE", 76 2: "GET_TOKEN", 77 } 78 79 var TokenInfo_TokenSource_value = map[string]int32{ 80 "INVALID": 0, 81 "AUTHENTICATE": 1, 82 "GET_TOKEN": 2, 83 } 84 85 func (x TokenInfo_TokenSource) String() string { 86 return proto.EnumName(TokenInfo_TokenSource_name, int32(x)) 87 } 88 89 func (TokenInfo_TokenSource) EnumDescriptor() ([]byte, []int) { 90 return fileDescriptor_a6dfd6c07e2cd89c, []int{15, 0} 91 } 92 93 // ActivateRequest mirrors AuthenticateRequest. The caller is authenticated via 94 // GitHub OAuth, and then promoted to the cluster's first Admin. Afterwards, the 95 // caller can promote other users to Admin and remove themselves 96 type ActivateRequest struct { 97 // If set, Pachyderm will authenticate the caller as this user. 98 // - If set to a github user (i.e. it has a 'github:' prefix or no prefix) 99 // then Pachyderm will confirm that it matches the user associated with 100 // 'github_token' 101 // - If set to a robot user (i.e. it has a 'robot:' prefix), then Pachyderm 102 // will generate a new token for the robot user; this token will be the only 103 // way to administer this cluster until more admins are added. 104 Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` 105 // This is the token returned by GitHub and used to authenticate the caller. 106 // When Pachyderm is deployed locally, setting this value to a given string 107 // will automatically authenticate the caller as a GitHub user whose username 108 // is that string (unless this "looks like" a GitHub access code, in which 109 // case Pachyderm does retrieve the corresponding GitHub username) 110 GitHubToken string `protobuf:"bytes,1,opt,name=github_token,json=githubToken,proto3" json:"github_token,omitempty"` 111 XXX_NoUnkeyedLiteral struct{} `json:"-"` 112 XXX_unrecognized []byte `json:"-"` 113 XXX_sizecache int32 `json:"-"` 114 } 115 116 func (m *ActivateRequest) Reset() { *m = ActivateRequest{} } 117 func (m *ActivateRequest) String() string { return proto.CompactTextString(m) } 118 func (*ActivateRequest) ProtoMessage() {} 119 func (*ActivateRequest) Descriptor() ([]byte, []int) { 120 return fileDescriptor_a6dfd6c07e2cd89c, []int{0} 121 } 122 func (m *ActivateRequest) XXX_Unmarshal(b []byte) error { 123 return m.Unmarshal(b) 124 } 125 func (m *ActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 126 if deterministic { 127 return xxx_messageInfo_ActivateRequest.Marshal(b, m, deterministic) 128 } else { 129 b = b[:cap(b)] 130 n, err := m.MarshalToSizedBuffer(b) 131 if err != nil { 132 return nil, err 133 } 134 return b[:n], nil 135 } 136 } 137 func (m *ActivateRequest) XXX_Merge(src proto.Message) { 138 xxx_messageInfo_ActivateRequest.Merge(m, src) 139 } 140 func (m *ActivateRequest) XXX_Size() int { 141 return m.Size() 142 } 143 func (m *ActivateRequest) XXX_DiscardUnknown() { 144 xxx_messageInfo_ActivateRequest.DiscardUnknown(m) 145 } 146 147 var xxx_messageInfo_ActivateRequest proto.InternalMessageInfo 148 149 func (m *ActivateRequest) GetSubject() string { 150 if m != nil { 151 return m.Subject 152 } 153 return "" 154 } 155 156 func (m *ActivateRequest) GetGitHubToken() string { 157 if m != nil { 158 return m.GitHubToken 159 } 160 return "" 161 } 162 163 type ActivateResponse struct { 164 // pach_token authenticates the caller with Pachyderm (if you want to perform 165 // Pachyderm operations after auth has been activated as themselves, you must 166 // present this token along with your regular request) 167 PachToken string `protobuf:"bytes,1,opt,name=pach_token,json=pachToken,proto3" json:"pach_token,omitempty"` 168 XXX_NoUnkeyedLiteral struct{} `json:"-"` 169 XXX_unrecognized []byte `json:"-"` 170 XXX_sizecache int32 `json:"-"` 171 } 172 173 func (m *ActivateResponse) Reset() { *m = ActivateResponse{} } 174 func (m *ActivateResponse) String() string { return proto.CompactTextString(m) } 175 func (*ActivateResponse) ProtoMessage() {} 176 func (*ActivateResponse) Descriptor() ([]byte, []int) { 177 return fileDescriptor_a6dfd6c07e2cd89c, []int{1} 178 } 179 func (m *ActivateResponse) XXX_Unmarshal(b []byte) error { 180 return m.Unmarshal(b) 181 } 182 func (m *ActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 183 if deterministic { 184 return xxx_messageInfo_ActivateResponse.Marshal(b, m, deterministic) 185 } else { 186 b = b[:cap(b)] 187 n, err := m.MarshalToSizedBuffer(b) 188 if err != nil { 189 return nil, err 190 } 191 return b[:n], nil 192 } 193 } 194 func (m *ActivateResponse) XXX_Merge(src proto.Message) { 195 xxx_messageInfo_ActivateResponse.Merge(m, src) 196 } 197 func (m *ActivateResponse) XXX_Size() int { 198 return m.Size() 199 } 200 func (m *ActivateResponse) XXX_DiscardUnknown() { 201 xxx_messageInfo_ActivateResponse.DiscardUnknown(m) 202 } 203 204 var xxx_messageInfo_ActivateResponse proto.InternalMessageInfo 205 206 func (m *ActivateResponse) GetPachToken() string { 207 if m != nil { 208 return m.PachToken 209 } 210 return "" 211 } 212 213 type DeactivateRequest struct { 214 XXX_NoUnkeyedLiteral struct{} `json:"-"` 215 XXX_unrecognized []byte `json:"-"` 216 XXX_sizecache int32 `json:"-"` 217 } 218 219 func (m *DeactivateRequest) Reset() { *m = DeactivateRequest{} } 220 func (m *DeactivateRequest) String() string { return proto.CompactTextString(m) } 221 func (*DeactivateRequest) ProtoMessage() {} 222 func (*DeactivateRequest) Descriptor() ([]byte, []int) { 223 return fileDescriptor_a6dfd6c07e2cd89c, []int{2} 224 } 225 func (m *DeactivateRequest) XXX_Unmarshal(b []byte) error { 226 return m.Unmarshal(b) 227 } 228 func (m *DeactivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 229 if deterministic { 230 return xxx_messageInfo_DeactivateRequest.Marshal(b, m, deterministic) 231 } else { 232 b = b[:cap(b)] 233 n, err := m.MarshalToSizedBuffer(b) 234 if err != nil { 235 return nil, err 236 } 237 return b[:n], nil 238 } 239 } 240 func (m *DeactivateRequest) XXX_Merge(src proto.Message) { 241 xxx_messageInfo_DeactivateRequest.Merge(m, src) 242 } 243 func (m *DeactivateRequest) XXX_Size() int { 244 return m.Size() 245 } 246 func (m *DeactivateRequest) XXX_DiscardUnknown() { 247 xxx_messageInfo_DeactivateRequest.DiscardUnknown(m) 248 } 249 250 var xxx_messageInfo_DeactivateRequest proto.InternalMessageInfo 251 252 type DeactivateResponse struct { 253 XXX_NoUnkeyedLiteral struct{} `json:"-"` 254 XXX_unrecognized []byte `json:"-"` 255 XXX_sizecache int32 `json:"-"` 256 } 257 258 func (m *DeactivateResponse) Reset() { *m = DeactivateResponse{} } 259 func (m *DeactivateResponse) String() string { return proto.CompactTextString(m) } 260 func (*DeactivateResponse) ProtoMessage() {} 261 func (*DeactivateResponse) Descriptor() ([]byte, []int) { 262 return fileDescriptor_a6dfd6c07e2cd89c, []int{3} 263 } 264 func (m *DeactivateResponse) XXX_Unmarshal(b []byte) error { 265 return m.Unmarshal(b) 266 } 267 func (m *DeactivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 268 if deterministic { 269 return xxx_messageInfo_DeactivateResponse.Marshal(b, m, deterministic) 270 } else { 271 b = b[:cap(b)] 272 n, err := m.MarshalToSizedBuffer(b) 273 if err != nil { 274 return nil, err 275 } 276 return b[:n], nil 277 } 278 } 279 func (m *DeactivateResponse) XXX_Merge(src proto.Message) { 280 xxx_messageInfo_DeactivateResponse.Merge(m, src) 281 } 282 func (m *DeactivateResponse) XXX_Size() int { 283 return m.Size() 284 } 285 func (m *DeactivateResponse) XXX_DiscardUnknown() { 286 xxx_messageInfo_DeactivateResponse.DiscardUnknown(m) 287 } 288 289 var xxx_messageInfo_DeactivateResponse proto.InternalMessageInfo 290 291 // IDProvider configures a single ID provider that can authenticate Pachyderm 292 // users 293 type IDProvider struct { 294 // Name identifies this authentication backend in Pachyderm. 295 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 296 // Description is a human-readable description of this authentication 297 // backend. It's ignored by Pachyderm, but exists for the benefit of users 298 // configuring Pachyderm's auth system. 299 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 300 SAML *IDProvider_SAMLOptions `protobuf:"bytes,3,opt,name=saml,proto3" json:"saml,omitempty"` 301 XXX_NoUnkeyedLiteral struct{} `json:"-"` 302 XXX_unrecognized []byte `json:"-"` 303 XXX_sizecache int32 `json:"-"` 304 } 305 306 func (m *IDProvider) Reset() { *m = IDProvider{} } 307 func (m *IDProvider) String() string { return proto.CompactTextString(m) } 308 func (*IDProvider) ProtoMessage() {} 309 func (*IDProvider) Descriptor() ([]byte, []int) { 310 return fileDescriptor_a6dfd6c07e2cd89c, []int{4} 311 } 312 func (m *IDProvider) XXX_Unmarshal(b []byte) error { 313 return m.Unmarshal(b) 314 } 315 func (m *IDProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 316 if deterministic { 317 return xxx_messageInfo_IDProvider.Marshal(b, m, deterministic) 318 } else { 319 b = b[:cap(b)] 320 n, err := m.MarshalToSizedBuffer(b) 321 if err != nil { 322 return nil, err 323 } 324 return b[:n], nil 325 } 326 } 327 func (m *IDProvider) XXX_Merge(src proto.Message) { 328 xxx_messageInfo_IDProvider.Merge(m, src) 329 } 330 func (m *IDProvider) XXX_Size() int { 331 return m.Size() 332 } 333 func (m *IDProvider) XXX_DiscardUnknown() { 334 xxx_messageInfo_IDProvider.DiscardUnknown(m) 335 } 336 337 var xxx_messageInfo_IDProvider proto.InternalMessageInfo 338 339 func (m *IDProvider) GetName() string { 340 if m != nil { 341 return m.Name 342 } 343 return "" 344 } 345 346 func (m *IDProvider) GetDescription() string { 347 if m != nil { 348 return m.Description 349 } 350 return "" 351 } 352 353 func (m *IDProvider) GetSAML() *IDProvider_SAMLOptions { 354 if m != nil { 355 return m.SAML 356 } 357 return nil 358 } 359 360 // SAMLOptions describes a SAML-based identity provider 361 type IDProvider_SAMLOptions struct { 362 // metadata_url is the URL of the SAML ID provider's metadata service 363 // (which Pachd can query to get more info about the SAML ID provider) 364 MetadataURL string `protobuf:"bytes,1,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"` 365 // metadata_xml is a direct reproduction of the ID provider's metadata. 366 // Users can set this field in the argument to SetConfig if the ID provider 367 // can't be reached from pachd (e.g. because it's on a separate network to 368 // which Pachyderm users also have access) or for testing. Exactly one of 369 // metadata_url and metadata_xml should be set in calls to SetConfig, but 370 // internally, if metadata_url is set, the result of scraping the metadata 371 // URL will be placed here in the result from GetConfig(). 372 MetadataXML []byte `protobuf:"bytes,2,opt,name=metadata_xml,json=metadataXml,proto3" json:"metadata_xml,omitempty"` 373 // If this ID provider supports sending group memberships via attribute, 374 // then users can set group_attribute to the SAML attribute that indicates 375 // group mmbership, and Pachyderm will update users' group memberships when 376 // they authenticate. 377 GroupAttribute string `protobuf:"bytes,3,opt,name=group_attribute,json=groupAttribute,proto3" json:"group_attribute,omitempty"` 378 XXX_NoUnkeyedLiteral struct{} `json:"-"` 379 XXX_unrecognized []byte `json:"-"` 380 XXX_sizecache int32 `json:"-"` 381 } 382 383 func (m *IDProvider_SAMLOptions) Reset() { *m = IDProvider_SAMLOptions{} } 384 func (m *IDProvider_SAMLOptions) String() string { return proto.CompactTextString(m) } 385 func (*IDProvider_SAMLOptions) ProtoMessage() {} 386 func (*IDProvider_SAMLOptions) Descriptor() ([]byte, []int) { 387 return fileDescriptor_a6dfd6c07e2cd89c, []int{4, 0} 388 } 389 func (m *IDProvider_SAMLOptions) XXX_Unmarshal(b []byte) error { 390 return m.Unmarshal(b) 391 } 392 func (m *IDProvider_SAMLOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 393 if deterministic { 394 return xxx_messageInfo_IDProvider_SAMLOptions.Marshal(b, m, deterministic) 395 } else { 396 b = b[:cap(b)] 397 n, err := m.MarshalToSizedBuffer(b) 398 if err != nil { 399 return nil, err 400 } 401 return b[:n], nil 402 } 403 } 404 func (m *IDProvider_SAMLOptions) XXX_Merge(src proto.Message) { 405 xxx_messageInfo_IDProvider_SAMLOptions.Merge(m, src) 406 } 407 func (m *IDProvider_SAMLOptions) XXX_Size() int { 408 return m.Size() 409 } 410 func (m *IDProvider_SAMLOptions) XXX_DiscardUnknown() { 411 xxx_messageInfo_IDProvider_SAMLOptions.DiscardUnknown(m) 412 } 413 414 var xxx_messageInfo_IDProvider_SAMLOptions proto.InternalMessageInfo 415 416 func (m *IDProvider_SAMLOptions) GetMetadataURL() string { 417 if m != nil { 418 return m.MetadataURL 419 } 420 return "" 421 } 422 423 func (m *IDProvider_SAMLOptions) GetMetadataXML() []byte { 424 if m != nil { 425 return m.MetadataXML 426 } 427 return nil 428 } 429 430 func (m *IDProvider_SAMLOptions) GetGroupAttribute() string { 431 if m != nil { 432 return m.GroupAttribute 433 } 434 return "" 435 } 436 437 // Configure Pachyderm's auth system (particularly authentication backends 438 type AuthConfig struct { 439 // live_config_version identifies the version of a given pachyderm cluster's 440 // current auth configuration; if a user tries to write an auth configuration 441 // where live_config_version doesn't match the version of the cluster's 442 // current config, the write will fail. This allows for safe 443 // read+modify+write config changes. 444 LiveConfigVersion int64 `protobuf:"varint,1,opt,name=live_config_version,json=liveConfigVersion,proto3" json:"live_config_version,omitempty"` 445 // id_providers describes external ID providers that can authenticate 446 // Pachyderm users (e.g. GitHub, Okta, etc) 447 IDProviders []*IDProvider `protobuf:"bytes,2,rep,name=id_providers,json=idProviders,proto3" json:"id_providers,omitempty"` 448 SAMLServiceOptions *AuthConfig_SAMLServiceOptions `protobuf:"bytes,3,opt,name=saml_svc_options,json=samlSvcOptions,proto3" json:"saml_svc_options,omitempty"` 449 XXX_NoUnkeyedLiteral struct{} `json:"-"` 450 XXX_unrecognized []byte `json:"-"` 451 XXX_sizecache int32 `json:"-"` 452 } 453 454 func (m *AuthConfig) Reset() { *m = AuthConfig{} } 455 func (m *AuthConfig) String() string { return proto.CompactTextString(m) } 456 func (*AuthConfig) ProtoMessage() {} 457 func (*AuthConfig) Descriptor() ([]byte, []int) { 458 return fileDescriptor_a6dfd6c07e2cd89c, []int{5} 459 } 460 func (m *AuthConfig) XXX_Unmarshal(b []byte) error { 461 return m.Unmarshal(b) 462 } 463 func (m *AuthConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 464 if deterministic { 465 return xxx_messageInfo_AuthConfig.Marshal(b, m, deterministic) 466 } else { 467 b = b[:cap(b)] 468 n, err := m.MarshalToSizedBuffer(b) 469 if err != nil { 470 return nil, err 471 } 472 return b[:n], nil 473 } 474 } 475 func (m *AuthConfig) XXX_Merge(src proto.Message) { 476 xxx_messageInfo_AuthConfig.Merge(m, src) 477 } 478 func (m *AuthConfig) XXX_Size() int { 479 return m.Size() 480 } 481 func (m *AuthConfig) XXX_DiscardUnknown() { 482 xxx_messageInfo_AuthConfig.DiscardUnknown(m) 483 } 484 485 var xxx_messageInfo_AuthConfig proto.InternalMessageInfo 486 487 func (m *AuthConfig) GetLiveConfigVersion() int64 { 488 if m != nil { 489 return m.LiveConfigVersion 490 } 491 return 0 492 } 493 494 func (m *AuthConfig) GetIDProviders() []*IDProvider { 495 if m != nil { 496 return m.IDProviders 497 } 498 return nil 499 } 500 501 func (m *AuthConfig) GetSAMLServiceOptions() *AuthConfig_SAMLServiceOptions { 502 if m != nil { 503 return m.SAMLServiceOptions 504 } 505 return nil 506 } 507 508 // saml_svc_options configures the SAML services (Assertion Consumer Service 509 // and Metadata Service) that Pachd can export. 510 type AuthConfig_SAMLServiceOptions struct { 511 // acs is the URL of Pachd's Assertion Consumer Service (i.e. where SAML ID 512 // providers can send SAMLResponses to Pachd). If Pachyderm is running in a 513 // private cluster, the cluster admin would be responsible for setting up a 514 // domain name/proxy to resolve to pachd:654/acs 515 ACSURL string `protobuf:"bytes,1,opt,name=acs_url,json=acsUrl,proto3" json:"acs_url,omitempty"` 516 // metadata_url is the public URL of Pachd's SAML metadata service (some 517 // SAML ID providers will query this for information about Pachyderm's SAML 518 // implementation and use it to idenfity Pachyderm as a service provider). 519 // If Pachyderm is running in a private cluster, the cluster admin would be 520 // responsible for creating this URL (which must resolve to 521 // pachd:654/saml/metadata) 522 MetadataURL string `protobuf:"bytes,2,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"` 523 // dash_url is the public address of this cluster's Pachyderm 524 // dashboard, if one exists; this option determines where users will be 525 // redirected after successfully authenticating 526 DashURL string `protobuf:"bytes,3,opt,name=dash_url,json=dashUrl,proto3" json:"dash_url,omitempty"` 527 // session_duration determines the duration of SAML-IdP-authenticated user 528 // sessions (specified as a Golang time duration, e.g. "24h" or "600m"). If 529 // unset, user sessions last 24 hours (a short default, as SAML assertions 530 // may contain group memberships that need to be refreshed) 531 SessionDuration string `protobuf:"bytes,4,opt,name=session_duration,json=sessionDuration,proto3" json:"session_duration,omitempty"` 532 // debug_logging determines whether pachd emits verbose logs (including 533 // SAML credentials) as it receives them, which may be helpful for 534 // debugging. This will probably not be present in any official releases. 535 DebugLogging bool `protobuf:"varint,5,opt,name=debug_logging,json=debugLogging,proto3" json:"debug_logging,omitempty"` 536 XXX_NoUnkeyedLiteral struct{} `json:"-"` 537 XXX_unrecognized []byte `json:"-"` 538 XXX_sizecache int32 `json:"-"` 539 } 540 541 func (m *AuthConfig_SAMLServiceOptions) Reset() { *m = AuthConfig_SAMLServiceOptions{} } 542 func (m *AuthConfig_SAMLServiceOptions) String() string { return proto.CompactTextString(m) } 543 func (*AuthConfig_SAMLServiceOptions) ProtoMessage() {} 544 func (*AuthConfig_SAMLServiceOptions) Descriptor() ([]byte, []int) { 545 return fileDescriptor_a6dfd6c07e2cd89c, []int{5, 0} 546 } 547 func (m *AuthConfig_SAMLServiceOptions) XXX_Unmarshal(b []byte) error { 548 return m.Unmarshal(b) 549 } 550 func (m *AuthConfig_SAMLServiceOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 551 if deterministic { 552 return xxx_messageInfo_AuthConfig_SAMLServiceOptions.Marshal(b, m, deterministic) 553 } else { 554 b = b[:cap(b)] 555 n, err := m.MarshalToSizedBuffer(b) 556 if err != nil { 557 return nil, err 558 } 559 return b[:n], nil 560 } 561 } 562 func (m *AuthConfig_SAMLServiceOptions) XXX_Merge(src proto.Message) { 563 xxx_messageInfo_AuthConfig_SAMLServiceOptions.Merge(m, src) 564 } 565 func (m *AuthConfig_SAMLServiceOptions) XXX_Size() int { 566 return m.Size() 567 } 568 func (m *AuthConfig_SAMLServiceOptions) XXX_DiscardUnknown() { 569 xxx_messageInfo_AuthConfig_SAMLServiceOptions.DiscardUnknown(m) 570 } 571 572 var xxx_messageInfo_AuthConfig_SAMLServiceOptions proto.InternalMessageInfo 573 574 func (m *AuthConfig_SAMLServiceOptions) GetACSURL() string { 575 if m != nil { 576 return m.ACSURL 577 } 578 return "" 579 } 580 581 func (m *AuthConfig_SAMLServiceOptions) GetMetadataURL() string { 582 if m != nil { 583 return m.MetadataURL 584 } 585 return "" 586 } 587 588 func (m *AuthConfig_SAMLServiceOptions) GetDashURL() string { 589 if m != nil { 590 return m.DashURL 591 } 592 return "" 593 } 594 595 func (m *AuthConfig_SAMLServiceOptions) GetSessionDuration() string { 596 if m != nil { 597 return m.SessionDuration 598 } 599 return "" 600 } 601 602 func (m *AuthConfig_SAMLServiceOptions) GetDebugLogging() bool { 603 if m != nil { 604 return m.DebugLogging 605 } 606 return false 607 } 608 609 type GetConfigurationRequest struct { 610 XXX_NoUnkeyedLiteral struct{} `json:"-"` 611 XXX_unrecognized []byte `json:"-"` 612 XXX_sizecache int32 `json:"-"` 613 } 614 615 func (m *GetConfigurationRequest) Reset() { *m = GetConfigurationRequest{} } 616 func (m *GetConfigurationRequest) String() string { return proto.CompactTextString(m) } 617 func (*GetConfigurationRequest) ProtoMessage() {} 618 func (*GetConfigurationRequest) Descriptor() ([]byte, []int) { 619 return fileDescriptor_a6dfd6c07e2cd89c, []int{6} 620 } 621 func (m *GetConfigurationRequest) XXX_Unmarshal(b []byte) error { 622 return m.Unmarshal(b) 623 } 624 func (m *GetConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 625 if deterministic { 626 return xxx_messageInfo_GetConfigurationRequest.Marshal(b, m, deterministic) 627 } else { 628 b = b[:cap(b)] 629 n, err := m.MarshalToSizedBuffer(b) 630 if err != nil { 631 return nil, err 632 } 633 return b[:n], nil 634 } 635 } 636 func (m *GetConfigurationRequest) XXX_Merge(src proto.Message) { 637 xxx_messageInfo_GetConfigurationRequest.Merge(m, src) 638 } 639 func (m *GetConfigurationRequest) XXX_Size() int { 640 return m.Size() 641 } 642 func (m *GetConfigurationRequest) XXX_DiscardUnknown() { 643 xxx_messageInfo_GetConfigurationRequest.DiscardUnknown(m) 644 } 645 646 var xxx_messageInfo_GetConfigurationRequest proto.InternalMessageInfo 647 648 type GetConfigurationResponse struct { 649 Configuration *AuthConfig `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` 650 XXX_NoUnkeyedLiteral struct{} `json:"-"` 651 XXX_unrecognized []byte `json:"-"` 652 XXX_sizecache int32 `json:"-"` 653 } 654 655 func (m *GetConfigurationResponse) Reset() { *m = GetConfigurationResponse{} } 656 func (m *GetConfigurationResponse) String() string { return proto.CompactTextString(m) } 657 func (*GetConfigurationResponse) ProtoMessage() {} 658 func (*GetConfigurationResponse) Descriptor() ([]byte, []int) { 659 return fileDescriptor_a6dfd6c07e2cd89c, []int{7} 660 } 661 func (m *GetConfigurationResponse) XXX_Unmarshal(b []byte) error { 662 return m.Unmarshal(b) 663 } 664 func (m *GetConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 665 if deterministic { 666 return xxx_messageInfo_GetConfigurationResponse.Marshal(b, m, deterministic) 667 } else { 668 b = b[:cap(b)] 669 n, err := m.MarshalToSizedBuffer(b) 670 if err != nil { 671 return nil, err 672 } 673 return b[:n], nil 674 } 675 } 676 func (m *GetConfigurationResponse) XXX_Merge(src proto.Message) { 677 xxx_messageInfo_GetConfigurationResponse.Merge(m, src) 678 } 679 func (m *GetConfigurationResponse) XXX_Size() int { 680 return m.Size() 681 } 682 func (m *GetConfigurationResponse) XXX_DiscardUnknown() { 683 xxx_messageInfo_GetConfigurationResponse.DiscardUnknown(m) 684 } 685 686 var xxx_messageInfo_GetConfigurationResponse proto.InternalMessageInfo 687 688 func (m *GetConfigurationResponse) GetConfiguration() *AuthConfig { 689 if m != nil { 690 return m.Configuration 691 } 692 return nil 693 } 694 695 type SetConfigurationRequest struct { 696 Configuration *AuthConfig `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` 697 XXX_NoUnkeyedLiteral struct{} `json:"-"` 698 XXX_unrecognized []byte `json:"-"` 699 XXX_sizecache int32 `json:"-"` 700 } 701 702 func (m *SetConfigurationRequest) Reset() { *m = SetConfigurationRequest{} } 703 func (m *SetConfigurationRequest) String() string { return proto.CompactTextString(m) } 704 func (*SetConfigurationRequest) ProtoMessage() {} 705 func (*SetConfigurationRequest) Descriptor() ([]byte, []int) { 706 return fileDescriptor_a6dfd6c07e2cd89c, []int{8} 707 } 708 func (m *SetConfigurationRequest) XXX_Unmarshal(b []byte) error { 709 return m.Unmarshal(b) 710 } 711 func (m *SetConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 712 if deterministic { 713 return xxx_messageInfo_SetConfigurationRequest.Marshal(b, m, deterministic) 714 } else { 715 b = b[:cap(b)] 716 n, err := m.MarshalToSizedBuffer(b) 717 if err != nil { 718 return nil, err 719 } 720 return b[:n], nil 721 } 722 } 723 func (m *SetConfigurationRequest) XXX_Merge(src proto.Message) { 724 xxx_messageInfo_SetConfigurationRequest.Merge(m, src) 725 } 726 func (m *SetConfigurationRequest) XXX_Size() int { 727 return m.Size() 728 } 729 func (m *SetConfigurationRequest) XXX_DiscardUnknown() { 730 xxx_messageInfo_SetConfigurationRequest.DiscardUnknown(m) 731 } 732 733 var xxx_messageInfo_SetConfigurationRequest proto.InternalMessageInfo 734 735 func (m *SetConfigurationRequest) GetConfiguration() *AuthConfig { 736 if m != nil { 737 return m.Configuration 738 } 739 return nil 740 } 741 742 type SetConfigurationResponse struct { 743 XXX_NoUnkeyedLiteral struct{} `json:"-"` 744 XXX_unrecognized []byte `json:"-"` 745 XXX_sizecache int32 `json:"-"` 746 } 747 748 func (m *SetConfigurationResponse) Reset() { *m = SetConfigurationResponse{} } 749 func (m *SetConfigurationResponse) String() string { return proto.CompactTextString(m) } 750 func (*SetConfigurationResponse) ProtoMessage() {} 751 func (*SetConfigurationResponse) Descriptor() ([]byte, []int) { 752 return fileDescriptor_a6dfd6c07e2cd89c, []int{9} 753 } 754 func (m *SetConfigurationResponse) XXX_Unmarshal(b []byte) error { 755 return m.Unmarshal(b) 756 } 757 func (m *SetConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 758 if deterministic { 759 return xxx_messageInfo_SetConfigurationResponse.Marshal(b, m, deterministic) 760 } else { 761 b = b[:cap(b)] 762 n, err := m.MarshalToSizedBuffer(b) 763 if err != nil { 764 return nil, err 765 } 766 return b[:n], nil 767 } 768 } 769 func (m *SetConfigurationResponse) XXX_Merge(src proto.Message) { 770 xxx_messageInfo_SetConfigurationResponse.Merge(m, src) 771 } 772 func (m *SetConfigurationResponse) XXX_Size() int { 773 return m.Size() 774 } 775 func (m *SetConfigurationResponse) XXX_DiscardUnknown() { 776 xxx_messageInfo_SetConfigurationResponse.DiscardUnknown(m) 777 } 778 779 var xxx_messageInfo_SetConfigurationResponse proto.InternalMessageInfo 780 781 // Get the current list of cluster admins 782 type GetAdminsRequest struct { 783 XXX_NoUnkeyedLiteral struct{} `json:"-"` 784 XXX_unrecognized []byte `json:"-"` 785 XXX_sizecache int32 `json:"-"` 786 } 787 788 func (m *GetAdminsRequest) Reset() { *m = GetAdminsRequest{} } 789 func (m *GetAdminsRequest) String() string { return proto.CompactTextString(m) } 790 func (*GetAdminsRequest) ProtoMessage() {} 791 func (*GetAdminsRequest) Descriptor() ([]byte, []int) { 792 return fileDescriptor_a6dfd6c07e2cd89c, []int{10} 793 } 794 func (m *GetAdminsRequest) XXX_Unmarshal(b []byte) error { 795 return m.Unmarshal(b) 796 } 797 func (m *GetAdminsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 798 if deterministic { 799 return xxx_messageInfo_GetAdminsRequest.Marshal(b, m, deterministic) 800 } else { 801 b = b[:cap(b)] 802 n, err := m.MarshalToSizedBuffer(b) 803 if err != nil { 804 return nil, err 805 } 806 return b[:n], nil 807 } 808 } 809 func (m *GetAdminsRequest) XXX_Merge(src proto.Message) { 810 xxx_messageInfo_GetAdminsRequest.Merge(m, src) 811 } 812 func (m *GetAdminsRequest) XXX_Size() int { 813 return m.Size() 814 } 815 func (m *GetAdminsRequest) XXX_DiscardUnknown() { 816 xxx_messageInfo_GetAdminsRequest.DiscardUnknown(m) 817 } 818 819 var xxx_messageInfo_GetAdminsRequest proto.InternalMessageInfo 820 821 type GetAdminsResponse struct { 822 // admins contains the list of cluster admins 823 Admins []string `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"` 824 XXX_NoUnkeyedLiteral struct{} `json:"-"` 825 XXX_unrecognized []byte `json:"-"` 826 XXX_sizecache int32 `json:"-"` 827 } 828 829 func (m *GetAdminsResponse) Reset() { *m = GetAdminsResponse{} } 830 func (m *GetAdminsResponse) String() string { return proto.CompactTextString(m) } 831 func (*GetAdminsResponse) ProtoMessage() {} 832 func (*GetAdminsResponse) Descriptor() ([]byte, []int) { 833 return fileDescriptor_a6dfd6c07e2cd89c, []int{11} 834 } 835 func (m *GetAdminsResponse) XXX_Unmarshal(b []byte) error { 836 return m.Unmarshal(b) 837 } 838 func (m *GetAdminsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 839 if deterministic { 840 return xxx_messageInfo_GetAdminsResponse.Marshal(b, m, deterministic) 841 } else { 842 b = b[:cap(b)] 843 n, err := m.MarshalToSizedBuffer(b) 844 if err != nil { 845 return nil, err 846 } 847 return b[:n], nil 848 } 849 } 850 func (m *GetAdminsResponse) XXX_Merge(src proto.Message) { 851 xxx_messageInfo_GetAdminsResponse.Merge(m, src) 852 } 853 func (m *GetAdminsResponse) XXX_Size() int { 854 return m.Size() 855 } 856 func (m *GetAdminsResponse) XXX_DiscardUnknown() { 857 xxx_messageInfo_GetAdminsResponse.DiscardUnknown(m) 858 } 859 860 var xxx_messageInfo_GetAdminsResponse proto.InternalMessageInfo 861 862 func (m *GetAdminsResponse) GetAdmins() []string { 863 if m != nil { 864 return m.Admins 865 } 866 return nil 867 } 868 869 // Add or remove cluster admins 870 type ModifyAdminsRequest struct { 871 Add []string `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"` 872 Remove []string `protobuf:"bytes,2,rep,name=remove,proto3" json:"remove,omitempty"` 873 XXX_NoUnkeyedLiteral struct{} `json:"-"` 874 XXX_unrecognized []byte `json:"-"` 875 XXX_sizecache int32 `json:"-"` 876 } 877 878 func (m *ModifyAdminsRequest) Reset() { *m = ModifyAdminsRequest{} } 879 func (m *ModifyAdminsRequest) String() string { return proto.CompactTextString(m) } 880 func (*ModifyAdminsRequest) ProtoMessage() {} 881 func (*ModifyAdminsRequest) Descriptor() ([]byte, []int) { 882 return fileDescriptor_a6dfd6c07e2cd89c, []int{12} 883 } 884 func (m *ModifyAdminsRequest) XXX_Unmarshal(b []byte) error { 885 return m.Unmarshal(b) 886 } 887 func (m *ModifyAdminsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 888 if deterministic { 889 return xxx_messageInfo_ModifyAdminsRequest.Marshal(b, m, deterministic) 890 } else { 891 b = b[:cap(b)] 892 n, err := m.MarshalToSizedBuffer(b) 893 if err != nil { 894 return nil, err 895 } 896 return b[:n], nil 897 } 898 } 899 func (m *ModifyAdminsRequest) XXX_Merge(src proto.Message) { 900 xxx_messageInfo_ModifyAdminsRequest.Merge(m, src) 901 } 902 func (m *ModifyAdminsRequest) XXX_Size() int { 903 return m.Size() 904 } 905 func (m *ModifyAdminsRequest) XXX_DiscardUnknown() { 906 xxx_messageInfo_ModifyAdminsRequest.DiscardUnknown(m) 907 } 908 909 var xxx_messageInfo_ModifyAdminsRequest proto.InternalMessageInfo 910 911 func (m *ModifyAdminsRequest) GetAdd() []string { 912 if m != nil { 913 return m.Add 914 } 915 return nil 916 } 917 918 func (m *ModifyAdminsRequest) GetRemove() []string { 919 if m != nil { 920 return m.Remove 921 } 922 return nil 923 } 924 925 type ModifyAdminsResponse struct { 926 XXX_NoUnkeyedLiteral struct{} `json:"-"` 927 XXX_unrecognized []byte `json:"-"` 928 XXX_sizecache int32 `json:"-"` 929 } 930 931 func (m *ModifyAdminsResponse) Reset() { *m = ModifyAdminsResponse{} } 932 func (m *ModifyAdminsResponse) String() string { return proto.CompactTextString(m) } 933 func (*ModifyAdminsResponse) ProtoMessage() {} 934 func (*ModifyAdminsResponse) Descriptor() ([]byte, []int) { 935 return fileDescriptor_a6dfd6c07e2cd89c, []int{13} 936 } 937 func (m *ModifyAdminsResponse) XXX_Unmarshal(b []byte) error { 938 return m.Unmarshal(b) 939 } 940 func (m *ModifyAdminsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 941 if deterministic { 942 return xxx_messageInfo_ModifyAdminsResponse.Marshal(b, m, deterministic) 943 } else { 944 b = b[:cap(b)] 945 n, err := m.MarshalToSizedBuffer(b) 946 if err != nil { 947 return nil, err 948 } 949 return b[:n], nil 950 } 951 } 952 func (m *ModifyAdminsResponse) XXX_Merge(src proto.Message) { 953 xxx_messageInfo_ModifyAdminsResponse.Merge(m, src) 954 } 955 func (m *ModifyAdminsResponse) XXX_Size() int { 956 return m.Size() 957 } 958 func (m *ModifyAdminsResponse) XXX_DiscardUnknown() { 959 xxx_messageInfo_ModifyAdminsResponse.DiscardUnknown(m) 960 } 961 962 var xxx_messageInfo_ModifyAdminsResponse proto.InternalMessageInfo 963 964 // OTPInfo is the analogue of 'TokenInfo' for Authentication Codes (short-lived, 965 // one-time-use codes that are passed to the frontend and then exchanged for 966 // longer-lived tokens) 967 type OTPInfo struct { 968 // Subject (i.e. Pachyderm account) that a given OTP authenticates. This may 969 // be copied into the 'subject' field of a TokenInfo, and therefore has the 970 // same format, with the same prefixes. 971 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 972 // session_expiration indicates when the subject's session expires, a.k.a. 973 // when the Token to which this OTP converts expires (likely later than this 974 // OTP expires, but never earlier). 975 SessionExpiration *types.Timestamp `protobuf:"bytes,2,opt,name=session_expiration,json=sessionExpiration,proto3" json:"session_expiration,omitempty"` 976 XXX_NoUnkeyedLiteral struct{} `json:"-"` 977 XXX_unrecognized []byte `json:"-"` 978 XXX_sizecache int32 `json:"-"` 979 } 980 981 func (m *OTPInfo) Reset() { *m = OTPInfo{} } 982 func (m *OTPInfo) String() string { return proto.CompactTextString(m) } 983 func (*OTPInfo) ProtoMessage() {} 984 func (*OTPInfo) Descriptor() ([]byte, []int) { 985 return fileDescriptor_a6dfd6c07e2cd89c, []int{14} 986 } 987 func (m *OTPInfo) XXX_Unmarshal(b []byte) error { 988 return m.Unmarshal(b) 989 } 990 func (m *OTPInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 991 if deterministic { 992 return xxx_messageInfo_OTPInfo.Marshal(b, m, deterministic) 993 } else { 994 b = b[:cap(b)] 995 n, err := m.MarshalToSizedBuffer(b) 996 if err != nil { 997 return nil, err 998 } 999 return b[:n], nil 1000 } 1001 } 1002 func (m *OTPInfo) XXX_Merge(src proto.Message) { 1003 xxx_messageInfo_OTPInfo.Merge(m, src) 1004 } 1005 func (m *OTPInfo) XXX_Size() int { 1006 return m.Size() 1007 } 1008 func (m *OTPInfo) XXX_DiscardUnknown() { 1009 xxx_messageInfo_OTPInfo.DiscardUnknown(m) 1010 } 1011 1012 var xxx_messageInfo_OTPInfo proto.InternalMessageInfo 1013 1014 func (m *OTPInfo) GetSubject() string { 1015 if m != nil { 1016 return m.Subject 1017 } 1018 return "" 1019 } 1020 1021 func (m *OTPInfo) GetSessionExpiration() *types.Timestamp { 1022 if m != nil { 1023 return m.SessionExpiration 1024 } 1025 return nil 1026 } 1027 1028 // TokenInfo is the 'value' of an auth token 'key' in the 'tokens' collection 1029 type TokenInfo struct { 1030 // Subject (i.e. Pachyderm account) that a given token authorizes. Prefixed 1031 // with "github:" or "robot:" to distinguish the two classes of 1032 // Subject in Pachyderm 1033 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 1034 Source TokenInfo_TokenSource `protobuf:"varint,2,opt,name=source,proto3,enum=auth_1_7.TokenInfo_TokenSource" json:"source,omitempty"` 1035 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1036 XXX_unrecognized []byte `json:"-"` 1037 XXX_sizecache int32 `json:"-"` 1038 } 1039 1040 func (m *TokenInfo) Reset() { *m = TokenInfo{} } 1041 func (m *TokenInfo) String() string { return proto.CompactTextString(m) } 1042 func (*TokenInfo) ProtoMessage() {} 1043 func (*TokenInfo) Descriptor() ([]byte, []int) { 1044 return fileDescriptor_a6dfd6c07e2cd89c, []int{15} 1045 } 1046 func (m *TokenInfo) XXX_Unmarshal(b []byte) error { 1047 return m.Unmarshal(b) 1048 } 1049 func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1050 if deterministic { 1051 return xxx_messageInfo_TokenInfo.Marshal(b, m, deterministic) 1052 } else { 1053 b = b[:cap(b)] 1054 n, err := m.MarshalToSizedBuffer(b) 1055 if err != nil { 1056 return nil, err 1057 } 1058 return b[:n], nil 1059 } 1060 } 1061 func (m *TokenInfo) XXX_Merge(src proto.Message) { 1062 xxx_messageInfo_TokenInfo.Merge(m, src) 1063 } 1064 func (m *TokenInfo) XXX_Size() int { 1065 return m.Size() 1066 } 1067 func (m *TokenInfo) XXX_DiscardUnknown() { 1068 xxx_messageInfo_TokenInfo.DiscardUnknown(m) 1069 } 1070 1071 var xxx_messageInfo_TokenInfo proto.InternalMessageInfo 1072 1073 func (m *TokenInfo) GetSubject() string { 1074 if m != nil { 1075 return m.Subject 1076 } 1077 return "" 1078 } 1079 1080 func (m *TokenInfo) GetSource() TokenInfo_TokenSource { 1081 if m != nil { 1082 return m.Source 1083 } 1084 return TokenInfo_INVALID 1085 } 1086 1087 type AuthenticateRequest struct { 1088 // This is the token returned by GitHub and used to authenticate the caller. 1089 // When Pachyderm is deployed locally, setting this value to a given string 1090 // will automatically authenticate the caller as a GitHub user whose username 1091 // is that string (unless this "looks like" a GitHub access code, in which 1092 // case Pachyderm does retrieve the corresponding GitHub username) 1093 GitHubToken string `protobuf:"bytes,1,opt,name=github_token,json=githubToken,proto3" json:"github_token,omitempty"` 1094 // This is a short-lived, one-time-use password generated by Pachyderm, for 1095 // the purpose of propagating authentication to new clients (e.g. from the 1096 // dash to pachd) 1097 OneTimePassword string `protobuf:"bytes,2,opt,name=one_time_password,json=oneTimePassword,proto3" json:"one_time_password,omitempty"` 1098 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1099 XXX_unrecognized []byte `json:"-"` 1100 XXX_sizecache int32 `json:"-"` 1101 } 1102 1103 func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } 1104 func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } 1105 func (*AuthenticateRequest) ProtoMessage() {} 1106 func (*AuthenticateRequest) Descriptor() ([]byte, []int) { 1107 return fileDescriptor_a6dfd6c07e2cd89c, []int{16} 1108 } 1109 func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error { 1110 return m.Unmarshal(b) 1111 } 1112 func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1113 if deterministic { 1114 return xxx_messageInfo_AuthenticateRequest.Marshal(b, m, deterministic) 1115 } else { 1116 b = b[:cap(b)] 1117 n, err := m.MarshalToSizedBuffer(b) 1118 if err != nil { 1119 return nil, err 1120 } 1121 return b[:n], nil 1122 } 1123 } 1124 func (m *AuthenticateRequest) XXX_Merge(src proto.Message) { 1125 xxx_messageInfo_AuthenticateRequest.Merge(m, src) 1126 } 1127 func (m *AuthenticateRequest) XXX_Size() int { 1128 return m.Size() 1129 } 1130 func (m *AuthenticateRequest) XXX_DiscardUnknown() { 1131 xxx_messageInfo_AuthenticateRequest.DiscardUnknown(m) 1132 } 1133 1134 var xxx_messageInfo_AuthenticateRequest proto.InternalMessageInfo 1135 1136 func (m *AuthenticateRequest) GetGitHubToken() string { 1137 if m != nil { 1138 return m.GitHubToken 1139 } 1140 return "" 1141 } 1142 1143 func (m *AuthenticateRequest) GetOneTimePassword() string { 1144 if m != nil { 1145 return m.OneTimePassword 1146 } 1147 return "" 1148 } 1149 1150 type AuthenticateResponse struct { 1151 // pach_token authenticates the caller with Pachyderm (if you want to perform 1152 // Pachyderm operations after auth has been activated as themselves, you must 1153 // present this token along with your regular request) 1154 PachToken string `protobuf:"bytes,1,opt,name=pach_token,json=pachToken,proto3" json:"pach_token,omitempty"` 1155 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1156 XXX_unrecognized []byte `json:"-"` 1157 XXX_sizecache int32 `json:"-"` 1158 } 1159 1160 func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} } 1161 func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) } 1162 func (*AuthenticateResponse) ProtoMessage() {} 1163 func (*AuthenticateResponse) Descriptor() ([]byte, []int) { 1164 return fileDescriptor_a6dfd6c07e2cd89c, []int{17} 1165 } 1166 func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error { 1167 return m.Unmarshal(b) 1168 } 1169 func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1170 if deterministic { 1171 return xxx_messageInfo_AuthenticateResponse.Marshal(b, m, deterministic) 1172 } else { 1173 b = b[:cap(b)] 1174 n, err := m.MarshalToSizedBuffer(b) 1175 if err != nil { 1176 return nil, err 1177 } 1178 return b[:n], nil 1179 } 1180 } 1181 func (m *AuthenticateResponse) XXX_Merge(src proto.Message) { 1182 xxx_messageInfo_AuthenticateResponse.Merge(m, src) 1183 } 1184 func (m *AuthenticateResponse) XXX_Size() int { 1185 return m.Size() 1186 } 1187 func (m *AuthenticateResponse) XXX_DiscardUnknown() { 1188 xxx_messageInfo_AuthenticateResponse.DiscardUnknown(m) 1189 } 1190 1191 var xxx_messageInfo_AuthenticateResponse proto.InternalMessageInfo 1192 1193 func (m *AuthenticateResponse) GetPachToken() string { 1194 if m != nil { 1195 return m.PachToken 1196 } 1197 return "" 1198 } 1199 1200 type WhoAmIRequest struct { 1201 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1202 XXX_unrecognized []byte `json:"-"` 1203 XXX_sizecache int32 `json:"-"` 1204 } 1205 1206 func (m *WhoAmIRequest) Reset() { *m = WhoAmIRequest{} } 1207 func (m *WhoAmIRequest) String() string { return proto.CompactTextString(m) } 1208 func (*WhoAmIRequest) ProtoMessage() {} 1209 func (*WhoAmIRequest) Descriptor() ([]byte, []int) { 1210 return fileDescriptor_a6dfd6c07e2cd89c, []int{18} 1211 } 1212 func (m *WhoAmIRequest) XXX_Unmarshal(b []byte) error { 1213 return m.Unmarshal(b) 1214 } 1215 func (m *WhoAmIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1216 if deterministic { 1217 return xxx_messageInfo_WhoAmIRequest.Marshal(b, m, deterministic) 1218 } else { 1219 b = b[:cap(b)] 1220 n, err := m.MarshalToSizedBuffer(b) 1221 if err != nil { 1222 return nil, err 1223 } 1224 return b[:n], nil 1225 } 1226 } 1227 func (m *WhoAmIRequest) XXX_Merge(src proto.Message) { 1228 xxx_messageInfo_WhoAmIRequest.Merge(m, src) 1229 } 1230 func (m *WhoAmIRequest) XXX_Size() int { 1231 return m.Size() 1232 } 1233 func (m *WhoAmIRequest) XXX_DiscardUnknown() { 1234 xxx_messageInfo_WhoAmIRequest.DiscardUnknown(m) 1235 } 1236 1237 var xxx_messageInfo_WhoAmIRequest proto.InternalMessageInfo 1238 1239 type WhoAmIResponse struct { 1240 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 1241 IsAdmin bool `protobuf:"varint,2,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` 1242 TTL int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` 1243 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1244 XXX_unrecognized []byte `json:"-"` 1245 XXX_sizecache int32 `json:"-"` 1246 } 1247 1248 func (m *WhoAmIResponse) Reset() { *m = WhoAmIResponse{} } 1249 func (m *WhoAmIResponse) String() string { return proto.CompactTextString(m) } 1250 func (*WhoAmIResponse) ProtoMessage() {} 1251 func (*WhoAmIResponse) Descriptor() ([]byte, []int) { 1252 return fileDescriptor_a6dfd6c07e2cd89c, []int{19} 1253 } 1254 func (m *WhoAmIResponse) XXX_Unmarshal(b []byte) error { 1255 return m.Unmarshal(b) 1256 } 1257 func (m *WhoAmIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1258 if deterministic { 1259 return xxx_messageInfo_WhoAmIResponse.Marshal(b, m, deterministic) 1260 } else { 1261 b = b[:cap(b)] 1262 n, err := m.MarshalToSizedBuffer(b) 1263 if err != nil { 1264 return nil, err 1265 } 1266 return b[:n], nil 1267 } 1268 } 1269 func (m *WhoAmIResponse) XXX_Merge(src proto.Message) { 1270 xxx_messageInfo_WhoAmIResponse.Merge(m, src) 1271 } 1272 func (m *WhoAmIResponse) XXX_Size() int { 1273 return m.Size() 1274 } 1275 func (m *WhoAmIResponse) XXX_DiscardUnknown() { 1276 xxx_messageInfo_WhoAmIResponse.DiscardUnknown(m) 1277 } 1278 1279 var xxx_messageInfo_WhoAmIResponse proto.InternalMessageInfo 1280 1281 func (m *WhoAmIResponse) GetUsername() string { 1282 if m != nil { 1283 return m.Username 1284 } 1285 return "" 1286 } 1287 1288 func (m *WhoAmIResponse) GetIsAdmin() bool { 1289 if m != nil { 1290 return m.IsAdmin 1291 } 1292 return false 1293 } 1294 1295 func (m *WhoAmIResponse) GetTTL() int64 { 1296 if m != nil { 1297 return m.TTL 1298 } 1299 return 0 1300 } 1301 1302 type ACL struct { 1303 // principal -> scope. All principals are the default principal of a Pachyderm 1304 // subject (i.e. all keys in this map are strings prefixed with either 1305 // "github:" or "robot:", followed by the name of a GitHub user, all of whom 1306 // are Pachyderm subjects, or a Pachyderm robot user) 1307 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_7.Scope"` 1308 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1309 XXX_unrecognized []byte `json:"-"` 1310 XXX_sizecache int32 `json:"-"` 1311 } 1312 1313 func (m *ACL) Reset() { *m = ACL{} } 1314 func (m *ACL) String() string { return proto.CompactTextString(m) } 1315 func (*ACL) ProtoMessage() {} 1316 func (*ACL) Descriptor() ([]byte, []int) { 1317 return fileDescriptor_a6dfd6c07e2cd89c, []int{20} 1318 } 1319 func (m *ACL) XXX_Unmarshal(b []byte) error { 1320 return m.Unmarshal(b) 1321 } 1322 func (m *ACL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1323 if deterministic { 1324 return xxx_messageInfo_ACL.Marshal(b, m, deterministic) 1325 } else { 1326 b = b[:cap(b)] 1327 n, err := m.MarshalToSizedBuffer(b) 1328 if err != nil { 1329 return nil, err 1330 } 1331 return b[:n], nil 1332 } 1333 } 1334 func (m *ACL) XXX_Merge(src proto.Message) { 1335 xxx_messageInfo_ACL.Merge(m, src) 1336 } 1337 func (m *ACL) XXX_Size() int { 1338 return m.Size() 1339 } 1340 func (m *ACL) XXX_DiscardUnknown() { 1341 xxx_messageInfo_ACL.DiscardUnknown(m) 1342 } 1343 1344 var xxx_messageInfo_ACL proto.InternalMessageInfo 1345 1346 func (m *ACL) GetEntries() map[string]Scope { 1347 if m != nil { 1348 return m.Entries 1349 } 1350 return nil 1351 } 1352 1353 type Users struct { 1354 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"` 1355 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1356 XXX_unrecognized []byte `json:"-"` 1357 XXX_sizecache int32 `json:"-"` 1358 } 1359 1360 func (m *Users) Reset() { *m = Users{} } 1361 func (m *Users) String() string { return proto.CompactTextString(m) } 1362 func (*Users) ProtoMessage() {} 1363 func (*Users) Descriptor() ([]byte, []int) { 1364 return fileDescriptor_a6dfd6c07e2cd89c, []int{21} 1365 } 1366 func (m *Users) XXX_Unmarshal(b []byte) error { 1367 return m.Unmarshal(b) 1368 } 1369 func (m *Users) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1370 if deterministic { 1371 return xxx_messageInfo_Users.Marshal(b, m, deterministic) 1372 } else { 1373 b = b[:cap(b)] 1374 n, err := m.MarshalToSizedBuffer(b) 1375 if err != nil { 1376 return nil, err 1377 } 1378 return b[:n], nil 1379 } 1380 } 1381 func (m *Users) XXX_Merge(src proto.Message) { 1382 xxx_messageInfo_Users.Merge(m, src) 1383 } 1384 func (m *Users) XXX_Size() int { 1385 return m.Size() 1386 } 1387 func (m *Users) XXX_DiscardUnknown() { 1388 xxx_messageInfo_Users.DiscardUnknown(m) 1389 } 1390 1391 var xxx_messageInfo_Users proto.InternalMessageInfo 1392 1393 func (m *Users) GetUsernames() map[string]bool { 1394 if m != nil { 1395 return m.Usernames 1396 } 1397 return nil 1398 } 1399 1400 type Groups struct { 1401 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"` 1402 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1403 XXX_unrecognized []byte `json:"-"` 1404 XXX_sizecache int32 `json:"-"` 1405 } 1406 1407 func (m *Groups) Reset() { *m = Groups{} } 1408 func (m *Groups) String() string { return proto.CompactTextString(m) } 1409 func (*Groups) ProtoMessage() {} 1410 func (*Groups) Descriptor() ([]byte, []int) { 1411 return fileDescriptor_a6dfd6c07e2cd89c, []int{22} 1412 } 1413 func (m *Groups) XXX_Unmarshal(b []byte) error { 1414 return m.Unmarshal(b) 1415 } 1416 func (m *Groups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1417 if deterministic { 1418 return xxx_messageInfo_Groups.Marshal(b, m, deterministic) 1419 } else { 1420 b = b[:cap(b)] 1421 n, err := m.MarshalToSizedBuffer(b) 1422 if err != nil { 1423 return nil, err 1424 } 1425 return b[:n], nil 1426 } 1427 } 1428 func (m *Groups) XXX_Merge(src proto.Message) { 1429 xxx_messageInfo_Groups.Merge(m, src) 1430 } 1431 func (m *Groups) XXX_Size() int { 1432 return m.Size() 1433 } 1434 func (m *Groups) XXX_DiscardUnknown() { 1435 xxx_messageInfo_Groups.DiscardUnknown(m) 1436 } 1437 1438 var xxx_messageInfo_Groups proto.InternalMessageInfo 1439 1440 func (m *Groups) GetGroups() map[string]bool { 1441 if m != nil { 1442 return m.Groups 1443 } 1444 return nil 1445 } 1446 1447 type AuthorizeRequest struct { 1448 // repo is the object that the caller wants to access 1449 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 1450 // scope is the access level that the caller needs to perform an action 1451 Scope Scope `protobuf:"varint,2,opt,name=scope,proto3,enum=auth_1_7.Scope" json:"scope,omitempty"` 1452 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1453 XXX_unrecognized []byte `json:"-"` 1454 XXX_sizecache int32 `json:"-"` 1455 } 1456 1457 func (m *AuthorizeRequest) Reset() { *m = AuthorizeRequest{} } 1458 func (m *AuthorizeRequest) String() string { return proto.CompactTextString(m) } 1459 func (*AuthorizeRequest) ProtoMessage() {} 1460 func (*AuthorizeRequest) Descriptor() ([]byte, []int) { 1461 return fileDescriptor_a6dfd6c07e2cd89c, []int{23} 1462 } 1463 func (m *AuthorizeRequest) XXX_Unmarshal(b []byte) error { 1464 return m.Unmarshal(b) 1465 } 1466 func (m *AuthorizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1467 if deterministic { 1468 return xxx_messageInfo_AuthorizeRequest.Marshal(b, m, deterministic) 1469 } else { 1470 b = b[:cap(b)] 1471 n, err := m.MarshalToSizedBuffer(b) 1472 if err != nil { 1473 return nil, err 1474 } 1475 return b[:n], nil 1476 } 1477 } 1478 func (m *AuthorizeRequest) XXX_Merge(src proto.Message) { 1479 xxx_messageInfo_AuthorizeRequest.Merge(m, src) 1480 } 1481 func (m *AuthorizeRequest) XXX_Size() int { 1482 return m.Size() 1483 } 1484 func (m *AuthorizeRequest) XXX_DiscardUnknown() { 1485 xxx_messageInfo_AuthorizeRequest.DiscardUnknown(m) 1486 } 1487 1488 var xxx_messageInfo_AuthorizeRequest proto.InternalMessageInfo 1489 1490 func (m *AuthorizeRequest) GetRepo() string { 1491 if m != nil { 1492 return m.Repo 1493 } 1494 return "" 1495 } 1496 1497 func (m *AuthorizeRequest) GetScope() Scope { 1498 if m != nil { 1499 return m.Scope 1500 } 1501 return Scope_NONE 1502 } 1503 1504 type AuthorizeResponse struct { 1505 // authorized is true if the caller has at least 1506 // 'AuthorizeRequest.scope'-level access to 'AuthorizeRequest.repo', and false 1507 // otherwise 1508 Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` 1509 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1510 XXX_unrecognized []byte `json:"-"` 1511 XXX_sizecache int32 `json:"-"` 1512 } 1513 1514 func (m *AuthorizeResponse) Reset() { *m = AuthorizeResponse{} } 1515 func (m *AuthorizeResponse) String() string { return proto.CompactTextString(m) } 1516 func (*AuthorizeResponse) ProtoMessage() {} 1517 func (*AuthorizeResponse) Descriptor() ([]byte, []int) { 1518 return fileDescriptor_a6dfd6c07e2cd89c, []int{24} 1519 } 1520 func (m *AuthorizeResponse) XXX_Unmarshal(b []byte) error { 1521 return m.Unmarshal(b) 1522 } 1523 func (m *AuthorizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1524 if deterministic { 1525 return xxx_messageInfo_AuthorizeResponse.Marshal(b, m, deterministic) 1526 } else { 1527 b = b[:cap(b)] 1528 n, err := m.MarshalToSizedBuffer(b) 1529 if err != nil { 1530 return nil, err 1531 } 1532 return b[:n], nil 1533 } 1534 } 1535 func (m *AuthorizeResponse) XXX_Merge(src proto.Message) { 1536 xxx_messageInfo_AuthorizeResponse.Merge(m, src) 1537 } 1538 func (m *AuthorizeResponse) XXX_Size() int { 1539 return m.Size() 1540 } 1541 func (m *AuthorizeResponse) XXX_DiscardUnknown() { 1542 xxx_messageInfo_AuthorizeResponse.DiscardUnknown(m) 1543 } 1544 1545 var xxx_messageInfo_AuthorizeResponse proto.InternalMessageInfo 1546 1547 func (m *AuthorizeResponse) GetAuthorized() bool { 1548 if m != nil { 1549 return m.Authorized 1550 } 1551 return false 1552 } 1553 1554 type GetScopeRequest struct { 1555 // username is the principal (some of which belong to robots rather than 1556 // users, but the name is preserved for now to provide compatibility with the 1557 // pachyderm dash) whose access level is queried. To query the access level 1558 // of a robot user, the caller must prefix username with "robot:". If 1559 // 'username' has no prefix (i.e. no ":"), then it's assumed to be a github 1560 // user's principal. 1561 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 1562 // repos are the objects to which 'username's access level is being queried 1563 Repos []string `protobuf:"bytes,2,rep,name=repos,proto3" json:"repos,omitempty"` 1564 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1565 XXX_unrecognized []byte `json:"-"` 1566 XXX_sizecache int32 `json:"-"` 1567 } 1568 1569 func (m *GetScopeRequest) Reset() { *m = GetScopeRequest{} } 1570 func (m *GetScopeRequest) String() string { return proto.CompactTextString(m) } 1571 func (*GetScopeRequest) ProtoMessage() {} 1572 func (*GetScopeRequest) Descriptor() ([]byte, []int) { 1573 return fileDescriptor_a6dfd6c07e2cd89c, []int{25} 1574 } 1575 func (m *GetScopeRequest) XXX_Unmarshal(b []byte) error { 1576 return m.Unmarshal(b) 1577 } 1578 func (m *GetScopeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1579 if deterministic { 1580 return xxx_messageInfo_GetScopeRequest.Marshal(b, m, deterministic) 1581 } else { 1582 b = b[:cap(b)] 1583 n, err := m.MarshalToSizedBuffer(b) 1584 if err != nil { 1585 return nil, err 1586 } 1587 return b[:n], nil 1588 } 1589 } 1590 func (m *GetScopeRequest) XXX_Merge(src proto.Message) { 1591 xxx_messageInfo_GetScopeRequest.Merge(m, src) 1592 } 1593 func (m *GetScopeRequest) XXX_Size() int { 1594 return m.Size() 1595 } 1596 func (m *GetScopeRequest) XXX_DiscardUnknown() { 1597 xxx_messageInfo_GetScopeRequest.DiscardUnknown(m) 1598 } 1599 1600 var xxx_messageInfo_GetScopeRequest proto.InternalMessageInfo 1601 1602 func (m *GetScopeRequest) GetUsername() string { 1603 if m != nil { 1604 return m.Username 1605 } 1606 return "" 1607 } 1608 1609 func (m *GetScopeRequest) GetRepos() []string { 1610 if m != nil { 1611 return m.Repos 1612 } 1613 return nil 1614 } 1615 1616 type GetScopeResponse struct { 1617 // scopes (actually a "role"--see "Scope") are the access level that 1618 // 'GetScopeRequest.username' has to each repo in 'GetScopeRequest.repos', in 1619 // the same order that repos appeared in 'repos'. 1620 Scopes []Scope `protobuf:"varint,1,rep,packed,name=scopes,proto3,enum=auth_1_7.Scope" json:"scopes,omitempty"` 1621 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1622 XXX_unrecognized []byte `json:"-"` 1623 XXX_sizecache int32 `json:"-"` 1624 } 1625 1626 func (m *GetScopeResponse) Reset() { *m = GetScopeResponse{} } 1627 func (m *GetScopeResponse) String() string { return proto.CompactTextString(m) } 1628 func (*GetScopeResponse) ProtoMessage() {} 1629 func (*GetScopeResponse) Descriptor() ([]byte, []int) { 1630 return fileDescriptor_a6dfd6c07e2cd89c, []int{26} 1631 } 1632 func (m *GetScopeResponse) XXX_Unmarshal(b []byte) error { 1633 return m.Unmarshal(b) 1634 } 1635 func (m *GetScopeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1636 if deterministic { 1637 return xxx_messageInfo_GetScopeResponse.Marshal(b, m, deterministic) 1638 } else { 1639 b = b[:cap(b)] 1640 n, err := m.MarshalToSizedBuffer(b) 1641 if err != nil { 1642 return nil, err 1643 } 1644 return b[:n], nil 1645 } 1646 } 1647 func (m *GetScopeResponse) XXX_Merge(src proto.Message) { 1648 xxx_messageInfo_GetScopeResponse.Merge(m, src) 1649 } 1650 func (m *GetScopeResponse) XXX_Size() int { 1651 return m.Size() 1652 } 1653 func (m *GetScopeResponse) XXX_DiscardUnknown() { 1654 xxx_messageInfo_GetScopeResponse.DiscardUnknown(m) 1655 } 1656 1657 var xxx_messageInfo_GetScopeResponse proto.InternalMessageInfo 1658 1659 func (m *GetScopeResponse) GetScopes() []Scope { 1660 if m != nil { 1661 return m.Scopes 1662 } 1663 return nil 1664 } 1665 1666 type SetScopeRequest struct { 1667 // username is the principal (some of which belong to robots rather than 1668 // users, but the name is preserved for now to provide compatibility with the 1669 // pachyderm dash) whose access is being granted/revoked. As with 1670 // GetScopeRequest, to set the access level of a robot user, the caller must 1671 // prefix username with "robot:". If 'username' has no prefix (i.e. no ":"), 1672 // then it's assumed to be a github user's principal. 1673 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 1674 // repo is the object to which access is being granted/revoked 1675 Repo string `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"` 1676 // scope (actually a "role"--see "Scope") is the access level that the owner 1677 // of 'principal' will now have 1678 Scope Scope `protobuf:"varint,3,opt,name=scope,proto3,enum=auth_1_7.Scope" json:"scope,omitempty"` 1679 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1680 XXX_unrecognized []byte `json:"-"` 1681 XXX_sizecache int32 `json:"-"` 1682 } 1683 1684 func (m *SetScopeRequest) Reset() { *m = SetScopeRequest{} } 1685 func (m *SetScopeRequest) String() string { return proto.CompactTextString(m) } 1686 func (*SetScopeRequest) ProtoMessage() {} 1687 func (*SetScopeRequest) Descriptor() ([]byte, []int) { 1688 return fileDescriptor_a6dfd6c07e2cd89c, []int{27} 1689 } 1690 func (m *SetScopeRequest) XXX_Unmarshal(b []byte) error { 1691 return m.Unmarshal(b) 1692 } 1693 func (m *SetScopeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1694 if deterministic { 1695 return xxx_messageInfo_SetScopeRequest.Marshal(b, m, deterministic) 1696 } else { 1697 b = b[:cap(b)] 1698 n, err := m.MarshalToSizedBuffer(b) 1699 if err != nil { 1700 return nil, err 1701 } 1702 return b[:n], nil 1703 } 1704 } 1705 func (m *SetScopeRequest) XXX_Merge(src proto.Message) { 1706 xxx_messageInfo_SetScopeRequest.Merge(m, src) 1707 } 1708 func (m *SetScopeRequest) XXX_Size() int { 1709 return m.Size() 1710 } 1711 func (m *SetScopeRequest) XXX_DiscardUnknown() { 1712 xxx_messageInfo_SetScopeRequest.DiscardUnknown(m) 1713 } 1714 1715 var xxx_messageInfo_SetScopeRequest proto.InternalMessageInfo 1716 1717 func (m *SetScopeRequest) GetUsername() string { 1718 if m != nil { 1719 return m.Username 1720 } 1721 return "" 1722 } 1723 1724 func (m *SetScopeRequest) GetRepo() string { 1725 if m != nil { 1726 return m.Repo 1727 } 1728 return "" 1729 } 1730 1731 func (m *SetScopeRequest) GetScope() Scope { 1732 if m != nil { 1733 return m.Scope 1734 } 1735 return Scope_NONE 1736 } 1737 1738 type SetScopeResponse struct { 1739 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1740 XXX_unrecognized []byte `json:"-"` 1741 XXX_sizecache int32 `json:"-"` 1742 } 1743 1744 func (m *SetScopeResponse) Reset() { *m = SetScopeResponse{} } 1745 func (m *SetScopeResponse) String() string { return proto.CompactTextString(m) } 1746 func (*SetScopeResponse) ProtoMessage() {} 1747 func (*SetScopeResponse) Descriptor() ([]byte, []int) { 1748 return fileDescriptor_a6dfd6c07e2cd89c, []int{28} 1749 } 1750 func (m *SetScopeResponse) XXX_Unmarshal(b []byte) error { 1751 return m.Unmarshal(b) 1752 } 1753 func (m *SetScopeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1754 if deterministic { 1755 return xxx_messageInfo_SetScopeResponse.Marshal(b, m, deterministic) 1756 } else { 1757 b = b[:cap(b)] 1758 n, err := m.MarshalToSizedBuffer(b) 1759 if err != nil { 1760 return nil, err 1761 } 1762 return b[:n], nil 1763 } 1764 } 1765 func (m *SetScopeResponse) XXX_Merge(src proto.Message) { 1766 xxx_messageInfo_SetScopeResponse.Merge(m, src) 1767 } 1768 func (m *SetScopeResponse) XXX_Size() int { 1769 return m.Size() 1770 } 1771 func (m *SetScopeResponse) XXX_DiscardUnknown() { 1772 xxx_messageInfo_SetScopeResponse.DiscardUnknown(m) 1773 } 1774 1775 var xxx_messageInfo_SetScopeResponse proto.InternalMessageInfo 1776 1777 type GetACLRequest struct { 1778 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 1779 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1780 XXX_unrecognized []byte `json:"-"` 1781 XXX_sizecache int32 `json:"-"` 1782 } 1783 1784 func (m *GetACLRequest) Reset() { *m = GetACLRequest{} } 1785 func (m *GetACLRequest) String() string { return proto.CompactTextString(m) } 1786 func (*GetACLRequest) ProtoMessage() {} 1787 func (*GetACLRequest) Descriptor() ([]byte, []int) { 1788 return fileDescriptor_a6dfd6c07e2cd89c, []int{29} 1789 } 1790 func (m *GetACLRequest) XXX_Unmarshal(b []byte) error { 1791 return m.Unmarshal(b) 1792 } 1793 func (m *GetACLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1794 if deterministic { 1795 return xxx_messageInfo_GetACLRequest.Marshal(b, m, deterministic) 1796 } else { 1797 b = b[:cap(b)] 1798 n, err := m.MarshalToSizedBuffer(b) 1799 if err != nil { 1800 return nil, err 1801 } 1802 return b[:n], nil 1803 } 1804 } 1805 func (m *GetACLRequest) XXX_Merge(src proto.Message) { 1806 xxx_messageInfo_GetACLRequest.Merge(m, src) 1807 } 1808 func (m *GetACLRequest) XXX_Size() int { 1809 return m.Size() 1810 } 1811 func (m *GetACLRequest) XXX_DiscardUnknown() { 1812 xxx_messageInfo_GetACLRequest.DiscardUnknown(m) 1813 } 1814 1815 var xxx_messageInfo_GetACLRequest proto.InternalMessageInfo 1816 1817 func (m *GetACLRequest) GetRepo() string { 1818 if m != nil { 1819 return m.Repo 1820 } 1821 return "" 1822 } 1823 1824 type ACLEntry struct { 1825 // username is the principal posessing this level of access to this ACL's 1826 // repo (despite the name, this principal may be for a human github user or a 1827 // pachyderm robot) 1828 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 1829 // scope is the level of access that the owner of 'principal' has to this 1830 // ACL's repo (actually a role in typical security terminology) 1831 Scope Scope `protobuf:"varint,2,opt,name=scope,proto3,enum=auth_1_7.Scope" json:"scope,omitempty"` 1832 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1833 XXX_unrecognized []byte `json:"-"` 1834 XXX_sizecache int32 `json:"-"` 1835 } 1836 1837 func (m *ACLEntry) Reset() { *m = ACLEntry{} } 1838 func (m *ACLEntry) String() string { return proto.CompactTextString(m) } 1839 func (*ACLEntry) ProtoMessage() {} 1840 func (*ACLEntry) Descriptor() ([]byte, []int) { 1841 return fileDescriptor_a6dfd6c07e2cd89c, []int{30} 1842 } 1843 func (m *ACLEntry) XXX_Unmarshal(b []byte) error { 1844 return m.Unmarshal(b) 1845 } 1846 func (m *ACLEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1847 if deterministic { 1848 return xxx_messageInfo_ACLEntry.Marshal(b, m, deterministic) 1849 } else { 1850 b = b[:cap(b)] 1851 n, err := m.MarshalToSizedBuffer(b) 1852 if err != nil { 1853 return nil, err 1854 } 1855 return b[:n], nil 1856 } 1857 } 1858 func (m *ACLEntry) XXX_Merge(src proto.Message) { 1859 xxx_messageInfo_ACLEntry.Merge(m, src) 1860 } 1861 func (m *ACLEntry) XXX_Size() int { 1862 return m.Size() 1863 } 1864 func (m *ACLEntry) XXX_DiscardUnknown() { 1865 xxx_messageInfo_ACLEntry.DiscardUnknown(m) 1866 } 1867 1868 var xxx_messageInfo_ACLEntry proto.InternalMessageInfo 1869 1870 func (m *ACLEntry) GetUsername() string { 1871 if m != nil { 1872 return m.Username 1873 } 1874 return "" 1875 } 1876 1877 func (m *ACLEntry) GetScope() Scope { 1878 if m != nil { 1879 return m.Scope 1880 } 1881 return Scope_NONE 1882 } 1883 1884 // GetACLReponse contains the list of entries on a Pachyderm ACL. 1885 // 1886 // To avoid migration pain with the Pachyderm dash the list of user principal 1887 // entries and robot principal entries are separate. This way, no prefix or 1888 // other disambiguating device is needed in 'entries' to separate user 1889 // principals from robot principals (which would confuse the dash). Instead, 1890 // the dash can simply ignore robot principals. 1891 type GetACLResponse struct { 1892 // entries contains all [user principal] -> [role] mappings. This is separate 1893 // from robot_entries to avoid migration pain the Pachyderm dashboard 1894 Entries []*ACLEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` 1895 // robot_entries contains all [robot principal] -> [role] mappings. This is 1896 // separate from entries to be unambiguous (all keys are robot principals, but 1897 // have no prefixes) while avoiding migration pain in the Pachyderm dashboard. 1898 RobotEntries []*ACLEntry `protobuf:"bytes,2,rep,name=robot_entries,json=robotEntries,proto3" json:"robot_entries,omitempty"` 1899 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1900 XXX_unrecognized []byte `json:"-"` 1901 XXX_sizecache int32 `json:"-"` 1902 } 1903 1904 func (m *GetACLResponse) Reset() { *m = GetACLResponse{} } 1905 func (m *GetACLResponse) String() string { return proto.CompactTextString(m) } 1906 func (*GetACLResponse) ProtoMessage() {} 1907 func (*GetACLResponse) Descriptor() ([]byte, []int) { 1908 return fileDescriptor_a6dfd6c07e2cd89c, []int{31} 1909 } 1910 func (m *GetACLResponse) XXX_Unmarshal(b []byte) error { 1911 return m.Unmarshal(b) 1912 } 1913 func (m *GetACLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1914 if deterministic { 1915 return xxx_messageInfo_GetACLResponse.Marshal(b, m, deterministic) 1916 } else { 1917 b = b[:cap(b)] 1918 n, err := m.MarshalToSizedBuffer(b) 1919 if err != nil { 1920 return nil, err 1921 } 1922 return b[:n], nil 1923 } 1924 } 1925 func (m *GetACLResponse) XXX_Merge(src proto.Message) { 1926 xxx_messageInfo_GetACLResponse.Merge(m, src) 1927 } 1928 func (m *GetACLResponse) XXX_Size() int { 1929 return m.Size() 1930 } 1931 func (m *GetACLResponse) XXX_DiscardUnknown() { 1932 xxx_messageInfo_GetACLResponse.DiscardUnknown(m) 1933 } 1934 1935 var xxx_messageInfo_GetACLResponse proto.InternalMessageInfo 1936 1937 func (m *GetACLResponse) GetEntries() []*ACLEntry { 1938 if m != nil { 1939 return m.Entries 1940 } 1941 return nil 1942 } 1943 1944 func (m *GetACLResponse) GetRobotEntries() []*ACLEntry { 1945 if m != nil { 1946 return m.RobotEntries 1947 } 1948 return nil 1949 } 1950 1951 type SetACLRequest struct { 1952 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 1953 Entries []*ACLEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` 1954 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1955 XXX_unrecognized []byte `json:"-"` 1956 XXX_sizecache int32 `json:"-"` 1957 } 1958 1959 func (m *SetACLRequest) Reset() { *m = SetACLRequest{} } 1960 func (m *SetACLRequest) String() string { return proto.CompactTextString(m) } 1961 func (*SetACLRequest) ProtoMessage() {} 1962 func (*SetACLRequest) Descriptor() ([]byte, []int) { 1963 return fileDescriptor_a6dfd6c07e2cd89c, []int{32} 1964 } 1965 func (m *SetACLRequest) XXX_Unmarshal(b []byte) error { 1966 return m.Unmarshal(b) 1967 } 1968 func (m *SetACLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1969 if deterministic { 1970 return xxx_messageInfo_SetACLRequest.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 *SetACLRequest) XXX_Merge(src proto.Message) { 1981 xxx_messageInfo_SetACLRequest.Merge(m, src) 1982 } 1983 func (m *SetACLRequest) XXX_Size() int { 1984 return m.Size() 1985 } 1986 func (m *SetACLRequest) XXX_DiscardUnknown() { 1987 xxx_messageInfo_SetACLRequest.DiscardUnknown(m) 1988 } 1989 1990 var xxx_messageInfo_SetACLRequest proto.InternalMessageInfo 1991 1992 func (m *SetACLRequest) GetRepo() string { 1993 if m != nil { 1994 return m.Repo 1995 } 1996 return "" 1997 } 1998 1999 func (m *SetACLRequest) GetEntries() []*ACLEntry { 2000 if m != nil { 2001 return m.Entries 2002 } 2003 return nil 2004 } 2005 2006 type SetACLResponse struct { 2007 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2008 XXX_unrecognized []byte `json:"-"` 2009 XXX_sizecache int32 `json:"-"` 2010 } 2011 2012 func (m *SetACLResponse) Reset() { *m = SetACLResponse{} } 2013 func (m *SetACLResponse) String() string { return proto.CompactTextString(m) } 2014 func (*SetACLResponse) ProtoMessage() {} 2015 func (*SetACLResponse) Descriptor() ([]byte, []int) { 2016 return fileDescriptor_a6dfd6c07e2cd89c, []int{33} 2017 } 2018 func (m *SetACLResponse) XXX_Unmarshal(b []byte) error { 2019 return m.Unmarshal(b) 2020 } 2021 func (m *SetACLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2022 if deterministic { 2023 return xxx_messageInfo_SetACLResponse.Marshal(b, m, deterministic) 2024 } else { 2025 b = b[:cap(b)] 2026 n, err := m.MarshalToSizedBuffer(b) 2027 if err != nil { 2028 return nil, err 2029 } 2030 return b[:n], nil 2031 } 2032 } 2033 func (m *SetACLResponse) XXX_Merge(src proto.Message) { 2034 xxx_messageInfo_SetACLResponse.Merge(m, src) 2035 } 2036 func (m *SetACLResponse) XXX_Size() int { 2037 return m.Size() 2038 } 2039 func (m *SetACLResponse) XXX_DiscardUnknown() { 2040 xxx_messageInfo_SetACLResponse.DiscardUnknown(m) 2041 } 2042 2043 var xxx_messageInfo_SetACLResponse proto.InternalMessageInfo 2044 2045 type GetAuthTokenRequest struct { 2046 // The returned token will allow the caller to access resources as this 2047 // subject 2048 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 2049 // ttl indicates the approximate remaining lifetime of this token, in seconds 2050 TTL int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` 2051 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2052 XXX_unrecognized []byte `json:"-"` 2053 XXX_sizecache int32 `json:"-"` 2054 } 2055 2056 func (m *GetAuthTokenRequest) Reset() { *m = GetAuthTokenRequest{} } 2057 func (m *GetAuthTokenRequest) String() string { return proto.CompactTextString(m) } 2058 func (*GetAuthTokenRequest) ProtoMessage() {} 2059 func (*GetAuthTokenRequest) Descriptor() ([]byte, []int) { 2060 return fileDescriptor_a6dfd6c07e2cd89c, []int{34} 2061 } 2062 func (m *GetAuthTokenRequest) XXX_Unmarshal(b []byte) error { 2063 return m.Unmarshal(b) 2064 } 2065 func (m *GetAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2066 if deterministic { 2067 return xxx_messageInfo_GetAuthTokenRequest.Marshal(b, m, deterministic) 2068 } else { 2069 b = b[:cap(b)] 2070 n, err := m.MarshalToSizedBuffer(b) 2071 if err != nil { 2072 return nil, err 2073 } 2074 return b[:n], nil 2075 } 2076 } 2077 func (m *GetAuthTokenRequest) XXX_Merge(src proto.Message) { 2078 xxx_messageInfo_GetAuthTokenRequest.Merge(m, src) 2079 } 2080 func (m *GetAuthTokenRequest) XXX_Size() int { 2081 return m.Size() 2082 } 2083 func (m *GetAuthTokenRequest) XXX_DiscardUnknown() { 2084 xxx_messageInfo_GetAuthTokenRequest.DiscardUnknown(m) 2085 } 2086 2087 var xxx_messageInfo_GetAuthTokenRequest proto.InternalMessageInfo 2088 2089 func (m *GetAuthTokenRequest) GetSubject() string { 2090 if m != nil { 2091 return m.Subject 2092 } 2093 return "" 2094 } 2095 2096 func (m *GetAuthTokenRequest) GetTTL() int64 { 2097 if m != nil { 2098 return m.TTL 2099 } 2100 return 0 2101 } 2102 2103 type GetAuthTokenResponse struct { 2104 // A canonicalized version of the subject in the request 2105 Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` 2106 // A new auth token for the user in 'GetAuthTokenRequest.Subject' token 2107 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 2108 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2109 XXX_unrecognized []byte `json:"-"` 2110 XXX_sizecache int32 `json:"-"` 2111 } 2112 2113 func (m *GetAuthTokenResponse) Reset() { *m = GetAuthTokenResponse{} } 2114 func (m *GetAuthTokenResponse) String() string { return proto.CompactTextString(m) } 2115 func (*GetAuthTokenResponse) ProtoMessage() {} 2116 func (*GetAuthTokenResponse) Descriptor() ([]byte, []int) { 2117 return fileDescriptor_a6dfd6c07e2cd89c, []int{35} 2118 } 2119 func (m *GetAuthTokenResponse) XXX_Unmarshal(b []byte) error { 2120 return m.Unmarshal(b) 2121 } 2122 func (m *GetAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2123 if deterministic { 2124 return xxx_messageInfo_GetAuthTokenResponse.Marshal(b, m, deterministic) 2125 } else { 2126 b = b[:cap(b)] 2127 n, err := m.MarshalToSizedBuffer(b) 2128 if err != nil { 2129 return nil, err 2130 } 2131 return b[:n], nil 2132 } 2133 } 2134 func (m *GetAuthTokenResponse) XXX_Merge(src proto.Message) { 2135 xxx_messageInfo_GetAuthTokenResponse.Merge(m, src) 2136 } 2137 func (m *GetAuthTokenResponse) XXX_Size() int { 2138 return m.Size() 2139 } 2140 func (m *GetAuthTokenResponse) XXX_DiscardUnknown() { 2141 xxx_messageInfo_GetAuthTokenResponse.DiscardUnknown(m) 2142 } 2143 2144 var xxx_messageInfo_GetAuthTokenResponse proto.InternalMessageInfo 2145 2146 func (m *GetAuthTokenResponse) GetSubject() string { 2147 if m != nil { 2148 return m.Subject 2149 } 2150 return "" 2151 } 2152 2153 func (m *GetAuthTokenResponse) GetToken() string { 2154 if m != nil { 2155 return m.Token 2156 } 2157 return "" 2158 } 2159 2160 type ExtendAuthTokenRequest struct { 2161 // token indicates the Pachyderm token whose TTL is being extended 2162 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 2163 // ttl indicates the new TTL of 'token' (if it's longer than the existing TTL) 2164 TTL int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` 2165 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2166 XXX_unrecognized []byte `json:"-"` 2167 XXX_sizecache int32 `json:"-"` 2168 } 2169 2170 func (m *ExtendAuthTokenRequest) Reset() { *m = ExtendAuthTokenRequest{} } 2171 func (m *ExtendAuthTokenRequest) String() string { return proto.CompactTextString(m) } 2172 func (*ExtendAuthTokenRequest) ProtoMessage() {} 2173 func (*ExtendAuthTokenRequest) Descriptor() ([]byte, []int) { 2174 return fileDescriptor_a6dfd6c07e2cd89c, []int{36} 2175 } 2176 func (m *ExtendAuthTokenRequest) XXX_Unmarshal(b []byte) error { 2177 return m.Unmarshal(b) 2178 } 2179 func (m *ExtendAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2180 if deterministic { 2181 return xxx_messageInfo_ExtendAuthTokenRequest.Marshal(b, m, deterministic) 2182 } else { 2183 b = b[:cap(b)] 2184 n, err := m.MarshalToSizedBuffer(b) 2185 if err != nil { 2186 return nil, err 2187 } 2188 return b[:n], nil 2189 } 2190 } 2191 func (m *ExtendAuthTokenRequest) XXX_Merge(src proto.Message) { 2192 xxx_messageInfo_ExtendAuthTokenRequest.Merge(m, src) 2193 } 2194 func (m *ExtendAuthTokenRequest) XXX_Size() int { 2195 return m.Size() 2196 } 2197 func (m *ExtendAuthTokenRequest) XXX_DiscardUnknown() { 2198 xxx_messageInfo_ExtendAuthTokenRequest.DiscardUnknown(m) 2199 } 2200 2201 var xxx_messageInfo_ExtendAuthTokenRequest proto.InternalMessageInfo 2202 2203 func (m *ExtendAuthTokenRequest) GetToken() string { 2204 if m != nil { 2205 return m.Token 2206 } 2207 return "" 2208 } 2209 2210 func (m *ExtendAuthTokenRequest) GetTTL() int64 { 2211 if m != nil { 2212 return m.TTL 2213 } 2214 return 0 2215 } 2216 2217 type ExtendAuthTokenResponse struct { 2218 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2219 XXX_unrecognized []byte `json:"-"` 2220 XXX_sizecache int32 `json:"-"` 2221 } 2222 2223 func (m *ExtendAuthTokenResponse) Reset() { *m = ExtendAuthTokenResponse{} } 2224 func (m *ExtendAuthTokenResponse) String() string { return proto.CompactTextString(m) } 2225 func (*ExtendAuthTokenResponse) ProtoMessage() {} 2226 func (*ExtendAuthTokenResponse) Descriptor() ([]byte, []int) { 2227 return fileDescriptor_a6dfd6c07e2cd89c, []int{37} 2228 } 2229 func (m *ExtendAuthTokenResponse) XXX_Unmarshal(b []byte) error { 2230 return m.Unmarshal(b) 2231 } 2232 func (m *ExtendAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2233 if deterministic { 2234 return xxx_messageInfo_ExtendAuthTokenResponse.Marshal(b, m, deterministic) 2235 } else { 2236 b = b[:cap(b)] 2237 n, err := m.MarshalToSizedBuffer(b) 2238 if err != nil { 2239 return nil, err 2240 } 2241 return b[:n], nil 2242 } 2243 } 2244 func (m *ExtendAuthTokenResponse) XXX_Merge(src proto.Message) { 2245 xxx_messageInfo_ExtendAuthTokenResponse.Merge(m, src) 2246 } 2247 func (m *ExtendAuthTokenResponse) XXX_Size() int { 2248 return m.Size() 2249 } 2250 func (m *ExtendAuthTokenResponse) XXX_DiscardUnknown() { 2251 xxx_messageInfo_ExtendAuthTokenResponse.DiscardUnknown(m) 2252 } 2253 2254 var xxx_messageInfo_ExtendAuthTokenResponse proto.InternalMessageInfo 2255 2256 type RevokeAuthTokenRequest struct { 2257 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 2258 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2259 XXX_unrecognized []byte `json:"-"` 2260 XXX_sizecache int32 `json:"-"` 2261 } 2262 2263 func (m *RevokeAuthTokenRequest) Reset() { *m = RevokeAuthTokenRequest{} } 2264 func (m *RevokeAuthTokenRequest) String() string { return proto.CompactTextString(m) } 2265 func (*RevokeAuthTokenRequest) ProtoMessage() {} 2266 func (*RevokeAuthTokenRequest) Descriptor() ([]byte, []int) { 2267 return fileDescriptor_a6dfd6c07e2cd89c, []int{38} 2268 } 2269 func (m *RevokeAuthTokenRequest) XXX_Unmarshal(b []byte) error { 2270 return m.Unmarshal(b) 2271 } 2272 func (m *RevokeAuthTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2273 if deterministic { 2274 return xxx_messageInfo_RevokeAuthTokenRequest.Marshal(b, m, deterministic) 2275 } else { 2276 b = b[:cap(b)] 2277 n, err := m.MarshalToSizedBuffer(b) 2278 if err != nil { 2279 return nil, err 2280 } 2281 return b[:n], nil 2282 } 2283 } 2284 func (m *RevokeAuthTokenRequest) XXX_Merge(src proto.Message) { 2285 xxx_messageInfo_RevokeAuthTokenRequest.Merge(m, src) 2286 } 2287 func (m *RevokeAuthTokenRequest) XXX_Size() int { 2288 return m.Size() 2289 } 2290 func (m *RevokeAuthTokenRequest) XXX_DiscardUnknown() { 2291 xxx_messageInfo_RevokeAuthTokenRequest.DiscardUnknown(m) 2292 } 2293 2294 var xxx_messageInfo_RevokeAuthTokenRequest proto.InternalMessageInfo 2295 2296 func (m *RevokeAuthTokenRequest) GetToken() string { 2297 if m != nil { 2298 return m.Token 2299 } 2300 return "" 2301 } 2302 2303 type RevokeAuthTokenResponse struct { 2304 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2305 XXX_unrecognized []byte `json:"-"` 2306 XXX_sizecache int32 `json:"-"` 2307 } 2308 2309 func (m *RevokeAuthTokenResponse) Reset() { *m = RevokeAuthTokenResponse{} } 2310 func (m *RevokeAuthTokenResponse) String() string { return proto.CompactTextString(m) } 2311 func (*RevokeAuthTokenResponse) ProtoMessage() {} 2312 func (*RevokeAuthTokenResponse) Descriptor() ([]byte, []int) { 2313 return fileDescriptor_a6dfd6c07e2cd89c, []int{39} 2314 } 2315 func (m *RevokeAuthTokenResponse) XXX_Unmarshal(b []byte) error { 2316 return m.Unmarshal(b) 2317 } 2318 func (m *RevokeAuthTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2319 if deterministic { 2320 return xxx_messageInfo_RevokeAuthTokenResponse.Marshal(b, m, deterministic) 2321 } else { 2322 b = b[:cap(b)] 2323 n, err := m.MarshalToSizedBuffer(b) 2324 if err != nil { 2325 return nil, err 2326 } 2327 return b[:n], nil 2328 } 2329 } 2330 func (m *RevokeAuthTokenResponse) XXX_Merge(src proto.Message) { 2331 xxx_messageInfo_RevokeAuthTokenResponse.Merge(m, src) 2332 } 2333 func (m *RevokeAuthTokenResponse) XXX_Size() int { 2334 return m.Size() 2335 } 2336 func (m *RevokeAuthTokenResponse) XXX_DiscardUnknown() { 2337 xxx_messageInfo_RevokeAuthTokenResponse.DiscardUnknown(m) 2338 } 2339 2340 var xxx_messageInfo_RevokeAuthTokenResponse proto.InternalMessageInfo 2341 2342 type SetGroupsForUserRequest struct { 2343 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 2344 Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` 2345 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2346 XXX_unrecognized []byte `json:"-"` 2347 XXX_sizecache int32 `json:"-"` 2348 } 2349 2350 func (m *SetGroupsForUserRequest) Reset() { *m = SetGroupsForUserRequest{} } 2351 func (m *SetGroupsForUserRequest) String() string { return proto.CompactTextString(m) } 2352 func (*SetGroupsForUserRequest) ProtoMessage() {} 2353 func (*SetGroupsForUserRequest) Descriptor() ([]byte, []int) { 2354 return fileDescriptor_a6dfd6c07e2cd89c, []int{40} 2355 } 2356 func (m *SetGroupsForUserRequest) XXX_Unmarshal(b []byte) error { 2357 return m.Unmarshal(b) 2358 } 2359 func (m *SetGroupsForUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2360 if deterministic { 2361 return xxx_messageInfo_SetGroupsForUserRequest.Marshal(b, m, deterministic) 2362 } else { 2363 b = b[:cap(b)] 2364 n, err := m.MarshalToSizedBuffer(b) 2365 if err != nil { 2366 return nil, err 2367 } 2368 return b[:n], nil 2369 } 2370 } 2371 func (m *SetGroupsForUserRequest) XXX_Merge(src proto.Message) { 2372 xxx_messageInfo_SetGroupsForUserRequest.Merge(m, src) 2373 } 2374 func (m *SetGroupsForUserRequest) XXX_Size() int { 2375 return m.Size() 2376 } 2377 func (m *SetGroupsForUserRequest) XXX_DiscardUnknown() { 2378 xxx_messageInfo_SetGroupsForUserRequest.DiscardUnknown(m) 2379 } 2380 2381 var xxx_messageInfo_SetGroupsForUserRequest proto.InternalMessageInfo 2382 2383 func (m *SetGroupsForUserRequest) GetUsername() string { 2384 if m != nil { 2385 return m.Username 2386 } 2387 return "" 2388 } 2389 2390 func (m *SetGroupsForUserRequest) GetGroups() []string { 2391 if m != nil { 2392 return m.Groups 2393 } 2394 return nil 2395 } 2396 2397 type SetGroupsForUserResponse struct { 2398 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2399 XXX_unrecognized []byte `json:"-"` 2400 XXX_sizecache int32 `json:"-"` 2401 } 2402 2403 func (m *SetGroupsForUserResponse) Reset() { *m = SetGroupsForUserResponse{} } 2404 func (m *SetGroupsForUserResponse) String() string { return proto.CompactTextString(m) } 2405 func (*SetGroupsForUserResponse) ProtoMessage() {} 2406 func (*SetGroupsForUserResponse) Descriptor() ([]byte, []int) { 2407 return fileDescriptor_a6dfd6c07e2cd89c, []int{41} 2408 } 2409 func (m *SetGroupsForUserResponse) XXX_Unmarshal(b []byte) error { 2410 return m.Unmarshal(b) 2411 } 2412 func (m *SetGroupsForUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2413 if deterministic { 2414 return xxx_messageInfo_SetGroupsForUserResponse.Marshal(b, m, deterministic) 2415 } else { 2416 b = b[:cap(b)] 2417 n, err := m.MarshalToSizedBuffer(b) 2418 if err != nil { 2419 return nil, err 2420 } 2421 return b[:n], nil 2422 } 2423 } 2424 func (m *SetGroupsForUserResponse) XXX_Merge(src proto.Message) { 2425 xxx_messageInfo_SetGroupsForUserResponse.Merge(m, src) 2426 } 2427 func (m *SetGroupsForUserResponse) XXX_Size() int { 2428 return m.Size() 2429 } 2430 func (m *SetGroupsForUserResponse) XXX_DiscardUnknown() { 2431 xxx_messageInfo_SetGroupsForUserResponse.DiscardUnknown(m) 2432 } 2433 2434 var xxx_messageInfo_SetGroupsForUserResponse proto.InternalMessageInfo 2435 2436 type ModifyMembersRequest struct { 2437 Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` 2438 Add []string `protobuf:"bytes,2,rep,name=add,proto3" json:"add,omitempty"` 2439 Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"` 2440 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2441 XXX_unrecognized []byte `json:"-"` 2442 XXX_sizecache int32 `json:"-"` 2443 } 2444 2445 func (m *ModifyMembersRequest) Reset() { *m = ModifyMembersRequest{} } 2446 func (m *ModifyMembersRequest) String() string { return proto.CompactTextString(m) } 2447 func (*ModifyMembersRequest) ProtoMessage() {} 2448 func (*ModifyMembersRequest) Descriptor() ([]byte, []int) { 2449 return fileDescriptor_a6dfd6c07e2cd89c, []int{42} 2450 } 2451 func (m *ModifyMembersRequest) XXX_Unmarshal(b []byte) error { 2452 return m.Unmarshal(b) 2453 } 2454 func (m *ModifyMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2455 if deterministic { 2456 return xxx_messageInfo_ModifyMembersRequest.Marshal(b, m, deterministic) 2457 } else { 2458 b = b[:cap(b)] 2459 n, err := m.MarshalToSizedBuffer(b) 2460 if err != nil { 2461 return nil, err 2462 } 2463 return b[:n], nil 2464 } 2465 } 2466 func (m *ModifyMembersRequest) XXX_Merge(src proto.Message) { 2467 xxx_messageInfo_ModifyMembersRequest.Merge(m, src) 2468 } 2469 func (m *ModifyMembersRequest) XXX_Size() int { 2470 return m.Size() 2471 } 2472 func (m *ModifyMembersRequest) XXX_DiscardUnknown() { 2473 xxx_messageInfo_ModifyMembersRequest.DiscardUnknown(m) 2474 } 2475 2476 var xxx_messageInfo_ModifyMembersRequest proto.InternalMessageInfo 2477 2478 func (m *ModifyMembersRequest) GetGroup() string { 2479 if m != nil { 2480 return m.Group 2481 } 2482 return "" 2483 } 2484 2485 func (m *ModifyMembersRequest) GetAdd() []string { 2486 if m != nil { 2487 return m.Add 2488 } 2489 return nil 2490 } 2491 2492 func (m *ModifyMembersRequest) GetRemove() []string { 2493 if m != nil { 2494 return m.Remove 2495 } 2496 return nil 2497 } 2498 2499 type ModifyMembersResponse struct { 2500 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2501 XXX_unrecognized []byte `json:"-"` 2502 XXX_sizecache int32 `json:"-"` 2503 } 2504 2505 func (m *ModifyMembersResponse) Reset() { *m = ModifyMembersResponse{} } 2506 func (m *ModifyMembersResponse) String() string { return proto.CompactTextString(m) } 2507 func (*ModifyMembersResponse) ProtoMessage() {} 2508 func (*ModifyMembersResponse) Descriptor() ([]byte, []int) { 2509 return fileDescriptor_a6dfd6c07e2cd89c, []int{43} 2510 } 2511 func (m *ModifyMembersResponse) XXX_Unmarshal(b []byte) error { 2512 return m.Unmarshal(b) 2513 } 2514 func (m *ModifyMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2515 if deterministic { 2516 return xxx_messageInfo_ModifyMembersResponse.Marshal(b, m, deterministic) 2517 } else { 2518 b = b[:cap(b)] 2519 n, err := m.MarshalToSizedBuffer(b) 2520 if err != nil { 2521 return nil, err 2522 } 2523 return b[:n], nil 2524 } 2525 } 2526 func (m *ModifyMembersResponse) XXX_Merge(src proto.Message) { 2527 xxx_messageInfo_ModifyMembersResponse.Merge(m, src) 2528 } 2529 func (m *ModifyMembersResponse) XXX_Size() int { 2530 return m.Size() 2531 } 2532 func (m *ModifyMembersResponse) XXX_DiscardUnknown() { 2533 xxx_messageInfo_ModifyMembersResponse.DiscardUnknown(m) 2534 } 2535 2536 var xxx_messageInfo_ModifyMembersResponse proto.InternalMessageInfo 2537 2538 type GetGroupsRequest struct { 2539 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 2540 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2541 XXX_unrecognized []byte `json:"-"` 2542 XXX_sizecache int32 `json:"-"` 2543 } 2544 2545 func (m *GetGroupsRequest) Reset() { *m = GetGroupsRequest{} } 2546 func (m *GetGroupsRequest) String() string { return proto.CompactTextString(m) } 2547 func (*GetGroupsRequest) ProtoMessage() {} 2548 func (*GetGroupsRequest) Descriptor() ([]byte, []int) { 2549 return fileDescriptor_a6dfd6c07e2cd89c, []int{44} 2550 } 2551 func (m *GetGroupsRequest) XXX_Unmarshal(b []byte) error { 2552 return m.Unmarshal(b) 2553 } 2554 func (m *GetGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2555 if deterministic { 2556 return xxx_messageInfo_GetGroupsRequest.Marshal(b, m, deterministic) 2557 } else { 2558 b = b[:cap(b)] 2559 n, err := m.MarshalToSizedBuffer(b) 2560 if err != nil { 2561 return nil, err 2562 } 2563 return b[:n], nil 2564 } 2565 } 2566 func (m *GetGroupsRequest) XXX_Merge(src proto.Message) { 2567 xxx_messageInfo_GetGroupsRequest.Merge(m, src) 2568 } 2569 func (m *GetGroupsRequest) XXX_Size() int { 2570 return m.Size() 2571 } 2572 func (m *GetGroupsRequest) XXX_DiscardUnknown() { 2573 xxx_messageInfo_GetGroupsRequest.DiscardUnknown(m) 2574 } 2575 2576 var xxx_messageInfo_GetGroupsRequest proto.InternalMessageInfo 2577 2578 func (m *GetGroupsRequest) GetUsername() string { 2579 if m != nil { 2580 return m.Username 2581 } 2582 return "" 2583 } 2584 2585 type GetGroupsResponse struct { 2586 Groups []string `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` 2587 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2588 XXX_unrecognized []byte `json:"-"` 2589 XXX_sizecache int32 `json:"-"` 2590 } 2591 2592 func (m *GetGroupsResponse) Reset() { *m = GetGroupsResponse{} } 2593 func (m *GetGroupsResponse) String() string { return proto.CompactTextString(m) } 2594 func (*GetGroupsResponse) ProtoMessage() {} 2595 func (*GetGroupsResponse) Descriptor() ([]byte, []int) { 2596 return fileDescriptor_a6dfd6c07e2cd89c, []int{45} 2597 } 2598 func (m *GetGroupsResponse) XXX_Unmarshal(b []byte) error { 2599 return m.Unmarshal(b) 2600 } 2601 func (m *GetGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2602 if deterministic { 2603 return xxx_messageInfo_GetGroupsResponse.Marshal(b, m, deterministic) 2604 } else { 2605 b = b[:cap(b)] 2606 n, err := m.MarshalToSizedBuffer(b) 2607 if err != nil { 2608 return nil, err 2609 } 2610 return b[:n], nil 2611 } 2612 } 2613 func (m *GetGroupsResponse) XXX_Merge(src proto.Message) { 2614 xxx_messageInfo_GetGroupsResponse.Merge(m, src) 2615 } 2616 func (m *GetGroupsResponse) XXX_Size() int { 2617 return m.Size() 2618 } 2619 func (m *GetGroupsResponse) XXX_DiscardUnknown() { 2620 xxx_messageInfo_GetGroupsResponse.DiscardUnknown(m) 2621 } 2622 2623 var xxx_messageInfo_GetGroupsResponse proto.InternalMessageInfo 2624 2625 func (m *GetGroupsResponse) GetGroups() []string { 2626 if m != nil { 2627 return m.Groups 2628 } 2629 return nil 2630 } 2631 2632 type GetUsersRequest struct { 2633 Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` 2634 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2635 XXX_unrecognized []byte `json:"-"` 2636 XXX_sizecache int32 `json:"-"` 2637 } 2638 2639 func (m *GetUsersRequest) Reset() { *m = GetUsersRequest{} } 2640 func (m *GetUsersRequest) String() string { return proto.CompactTextString(m) } 2641 func (*GetUsersRequest) ProtoMessage() {} 2642 func (*GetUsersRequest) Descriptor() ([]byte, []int) { 2643 return fileDescriptor_a6dfd6c07e2cd89c, []int{46} 2644 } 2645 func (m *GetUsersRequest) XXX_Unmarshal(b []byte) error { 2646 return m.Unmarshal(b) 2647 } 2648 func (m *GetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2649 if deterministic { 2650 return xxx_messageInfo_GetUsersRequest.Marshal(b, m, deterministic) 2651 } else { 2652 b = b[:cap(b)] 2653 n, err := m.MarshalToSizedBuffer(b) 2654 if err != nil { 2655 return nil, err 2656 } 2657 return b[:n], nil 2658 } 2659 } 2660 func (m *GetUsersRequest) XXX_Merge(src proto.Message) { 2661 xxx_messageInfo_GetUsersRequest.Merge(m, src) 2662 } 2663 func (m *GetUsersRequest) XXX_Size() int { 2664 return m.Size() 2665 } 2666 func (m *GetUsersRequest) XXX_DiscardUnknown() { 2667 xxx_messageInfo_GetUsersRequest.DiscardUnknown(m) 2668 } 2669 2670 var xxx_messageInfo_GetUsersRequest proto.InternalMessageInfo 2671 2672 func (m *GetUsersRequest) GetGroup() string { 2673 if m != nil { 2674 return m.Group 2675 } 2676 return "" 2677 } 2678 2679 type GetUsersResponse struct { 2680 Usernames []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"` 2681 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2682 XXX_unrecognized []byte `json:"-"` 2683 XXX_sizecache int32 `json:"-"` 2684 } 2685 2686 func (m *GetUsersResponse) Reset() { *m = GetUsersResponse{} } 2687 func (m *GetUsersResponse) String() string { return proto.CompactTextString(m) } 2688 func (*GetUsersResponse) ProtoMessage() {} 2689 func (*GetUsersResponse) Descriptor() ([]byte, []int) { 2690 return fileDescriptor_a6dfd6c07e2cd89c, []int{47} 2691 } 2692 func (m *GetUsersResponse) XXX_Unmarshal(b []byte) error { 2693 return m.Unmarshal(b) 2694 } 2695 func (m *GetUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2696 if deterministic { 2697 return xxx_messageInfo_GetUsersResponse.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 *GetUsersResponse) XXX_Merge(src proto.Message) { 2708 xxx_messageInfo_GetUsersResponse.Merge(m, src) 2709 } 2710 func (m *GetUsersResponse) XXX_Size() int { 2711 return m.Size() 2712 } 2713 func (m *GetUsersResponse) XXX_DiscardUnknown() { 2714 xxx_messageInfo_GetUsersResponse.DiscardUnknown(m) 2715 } 2716 2717 var xxx_messageInfo_GetUsersResponse proto.InternalMessageInfo 2718 2719 func (m *GetUsersResponse) GetUsernames() []string { 2720 if m != nil { 2721 return m.Usernames 2722 } 2723 return nil 2724 } 2725 2726 // GetOneTimePassword allows users to generate short-lived (~30s) tokens that 2727 // can be passed to Authenticate() (via AuthenticateRequest.one_time_password) 2728 // and exchanged for a longer-lived pachyderm token. This is more secure than 2729 // GetAuthToken, which produces long-lived authorization tokens. 2730 type GetOneTimePasswordRequest struct { 2731 // If the caller is an admin, GetOneTimePassword() can return a code for 2732 // any user (useful for testing). 2733 // If the caller is not an admin, GetOneTimePassword() will return an 2734 // authentication code for the caller if username is unset or set to the 2735 // caller's username (and will return an error otherwise) 2736 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 2737 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2738 XXX_unrecognized []byte `json:"-"` 2739 XXX_sizecache int32 `json:"-"` 2740 } 2741 2742 func (m *GetOneTimePasswordRequest) Reset() { *m = GetOneTimePasswordRequest{} } 2743 func (m *GetOneTimePasswordRequest) String() string { return proto.CompactTextString(m) } 2744 func (*GetOneTimePasswordRequest) ProtoMessage() {} 2745 func (*GetOneTimePasswordRequest) Descriptor() ([]byte, []int) { 2746 return fileDescriptor_a6dfd6c07e2cd89c, []int{48} 2747 } 2748 func (m *GetOneTimePasswordRequest) XXX_Unmarshal(b []byte) error { 2749 return m.Unmarshal(b) 2750 } 2751 func (m *GetOneTimePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2752 if deterministic { 2753 return xxx_messageInfo_GetOneTimePasswordRequest.Marshal(b, m, deterministic) 2754 } else { 2755 b = b[:cap(b)] 2756 n, err := m.MarshalToSizedBuffer(b) 2757 if err != nil { 2758 return nil, err 2759 } 2760 return b[:n], nil 2761 } 2762 } 2763 func (m *GetOneTimePasswordRequest) XXX_Merge(src proto.Message) { 2764 xxx_messageInfo_GetOneTimePasswordRequest.Merge(m, src) 2765 } 2766 func (m *GetOneTimePasswordRequest) XXX_Size() int { 2767 return m.Size() 2768 } 2769 func (m *GetOneTimePasswordRequest) XXX_DiscardUnknown() { 2770 xxx_messageInfo_GetOneTimePasswordRequest.DiscardUnknown(m) 2771 } 2772 2773 var xxx_messageInfo_GetOneTimePasswordRequest proto.InternalMessageInfo 2774 2775 func (m *GetOneTimePasswordRequest) GetSubject() string { 2776 if m != nil { 2777 return m.Subject 2778 } 2779 return "" 2780 } 2781 2782 type GetOneTimePasswordResponse struct { 2783 Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` 2784 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2785 XXX_unrecognized []byte `json:"-"` 2786 XXX_sizecache int32 `json:"-"` 2787 } 2788 2789 func (m *GetOneTimePasswordResponse) Reset() { *m = GetOneTimePasswordResponse{} } 2790 func (m *GetOneTimePasswordResponse) String() string { return proto.CompactTextString(m) } 2791 func (*GetOneTimePasswordResponse) ProtoMessage() {} 2792 func (*GetOneTimePasswordResponse) Descriptor() ([]byte, []int) { 2793 return fileDescriptor_a6dfd6c07e2cd89c, []int{49} 2794 } 2795 func (m *GetOneTimePasswordResponse) XXX_Unmarshal(b []byte) error { 2796 return m.Unmarshal(b) 2797 } 2798 func (m *GetOneTimePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2799 if deterministic { 2800 return xxx_messageInfo_GetOneTimePasswordResponse.Marshal(b, m, deterministic) 2801 } else { 2802 b = b[:cap(b)] 2803 n, err := m.MarshalToSizedBuffer(b) 2804 if err != nil { 2805 return nil, err 2806 } 2807 return b[:n], nil 2808 } 2809 } 2810 func (m *GetOneTimePasswordResponse) XXX_Merge(src proto.Message) { 2811 xxx_messageInfo_GetOneTimePasswordResponse.Merge(m, src) 2812 } 2813 func (m *GetOneTimePasswordResponse) XXX_Size() int { 2814 return m.Size() 2815 } 2816 func (m *GetOneTimePasswordResponse) XXX_DiscardUnknown() { 2817 xxx_messageInfo_GetOneTimePasswordResponse.DiscardUnknown(m) 2818 } 2819 2820 var xxx_messageInfo_GetOneTimePasswordResponse proto.InternalMessageInfo 2821 2822 func (m *GetOneTimePasswordResponse) GetCode() string { 2823 if m != nil { 2824 return m.Code 2825 } 2826 return "" 2827 } 2828 2829 func init() { 2830 proto.RegisterEnum("auth_1_7.Scope", Scope_name, Scope_value) 2831 proto.RegisterEnum("auth_1_7.TokenInfo_TokenSource", TokenInfo_TokenSource_name, TokenInfo_TokenSource_value) 2832 proto.RegisterType((*ActivateRequest)(nil), "auth_1_7.ActivateRequest") 2833 proto.RegisterType((*ActivateResponse)(nil), "auth_1_7.ActivateResponse") 2834 proto.RegisterType((*DeactivateRequest)(nil), "auth_1_7.DeactivateRequest") 2835 proto.RegisterType((*DeactivateResponse)(nil), "auth_1_7.DeactivateResponse") 2836 proto.RegisterType((*IDProvider)(nil), "auth_1_7.IDProvider") 2837 proto.RegisterType((*IDProvider_SAMLOptions)(nil), "auth_1_7.IDProvider.SAMLOptions") 2838 proto.RegisterType((*AuthConfig)(nil), "auth_1_7.AuthConfig") 2839 proto.RegisterType((*AuthConfig_SAMLServiceOptions)(nil), "auth_1_7.AuthConfig.SAMLServiceOptions") 2840 proto.RegisterType((*GetConfigurationRequest)(nil), "auth_1_7.GetConfigurationRequest") 2841 proto.RegisterType((*GetConfigurationResponse)(nil), "auth_1_7.GetConfigurationResponse") 2842 proto.RegisterType((*SetConfigurationRequest)(nil), "auth_1_7.SetConfigurationRequest") 2843 proto.RegisterType((*SetConfigurationResponse)(nil), "auth_1_7.SetConfigurationResponse") 2844 proto.RegisterType((*GetAdminsRequest)(nil), "auth_1_7.GetAdminsRequest") 2845 proto.RegisterType((*GetAdminsResponse)(nil), "auth_1_7.GetAdminsResponse") 2846 proto.RegisterType((*ModifyAdminsRequest)(nil), "auth_1_7.ModifyAdminsRequest") 2847 proto.RegisterType((*ModifyAdminsResponse)(nil), "auth_1_7.ModifyAdminsResponse") 2848 proto.RegisterType((*OTPInfo)(nil), "auth_1_7.OTPInfo") 2849 proto.RegisterType((*TokenInfo)(nil), "auth_1_7.TokenInfo") 2850 proto.RegisterType((*AuthenticateRequest)(nil), "auth_1_7.AuthenticateRequest") 2851 proto.RegisterType((*AuthenticateResponse)(nil), "auth_1_7.AuthenticateResponse") 2852 proto.RegisterType((*WhoAmIRequest)(nil), "auth_1_7.WhoAmIRequest") 2853 proto.RegisterType((*WhoAmIResponse)(nil), "auth_1_7.WhoAmIResponse") 2854 proto.RegisterType((*ACL)(nil), "auth_1_7.ACL") 2855 proto.RegisterMapType((map[string]Scope)(nil), "auth_1_7.ACL.EntriesEntry") 2856 proto.RegisterType((*Users)(nil), "auth_1_7.Users") 2857 proto.RegisterMapType((map[string]bool)(nil), "auth_1_7.Users.UsernamesEntry") 2858 proto.RegisterType((*Groups)(nil), "auth_1_7.Groups") 2859 proto.RegisterMapType((map[string]bool)(nil), "auth_1_7.Groups.GroupsEntry") 2860 proto.RegisterType((*AuthorizeRequest)(nil), "auth_1_7.AuthorizeRequest") 2861 proto.RegisterType((*AuthorizeResponse)(nil), "auth_1_7.AuthorizeResponse") 2862 proto.RegisterType((*GetScopeRequest)(nil), "auth_1_7.GetScopeRequest") 2863 proto.RegisterType((*GetScopeResponse)(nil), "auth_1_7.GetScopeResponse") 2864 proto.RegisterType((*SetScopeRequest)(nil), "auth_1_7.SetScopeRequest") 2865 proto.RegisterType((*SetScopeResponse)(nil), "auth_1_7.SetScopeResponse") 2866 proto.RegisterType((*GetACLRequest)(nil), "auth_1_7.GetACLRequest") 2867 proto.RegisterType((*ACLEntry)(nil), "auth_1_7.ACLEntry") 2868 proto.RegisterType((*GetACLResponse)(nil), "auth_1_7.GetACLResponse") 2869 proto.RegisterType((*SetACLRequest)(nil), "auth_1_7.SetACLRequest") 2870 proto.RegisterType((*SetACLResponse)(nil), "auth_1_7.SetACLResponse") 2871 proto.RegisterType((*GetAuthTokenRequest)(nil), "auth_1_7.GetAuthTokenRequest") 2872 proto.RegisterType((*GetAuthTokenResponse)(nil), "auth_1_7.GetAuthTokenResponse") 2873 proto.RegisterType((*ExtendAuthTokenRequest)(nil), "auth_1_7.ExtendAuthTokenRequest") 2874 proto.RegisterType((*ExtendAuthTokenResponse)(nil), "auth_1_7.ExtendAuthTokenResponse") 2875 proto.RegisterType((*RevokeAuthTokenRequest)(nil), "auth_1_7.RevokeAuthTokenRequest") 2876 proto.RegisterType((*RevokeAuthTokenResponse)(nil), "auth_1_7.RevokeAuthTokenResponse") 2877 proto.RegisterType((*SetGroupsForUserRequest)(nil), "auth_1_7.SetGroupsForUserRequest") 2878 proto.RegisterType((*SetGroupsForUserResponse)(nil), "auth_1_7.SetGroupsForUserResponse") 2879 proto.RegisterType((*ModifyMembersRequest)(nil), "auth_1_7.ModifyMembersRequest") 2880 proto.RegisterType((*ModifyMembersResponse)(nil), "auth_1_7.ModifyMembersResponse") 2881 proto.RegisterType((*GetGroupsRequest)(nil), "auth_1_7.GetGroupsRequest") 2882 proto.RegisterType((*GetGroupsResponse)(nil), "auth_1_7.GetGroupsResponse") 2883 proto.RegisterType((*GetUsersRequest)(nil), "auth_1_7.GetUsersRequest") 2884 proto.RegisterType((*GetUsersResponse)(nil), "auth_1_7.GetUsersResponse") 2885 proto.RegisterType((*GetOneTimePasswordRequest)(nil), "auth_1_7.GetOneTimePasswordRequest") 2886 proto.RegisterType((*GetOneTimePasswordResponse)(nil), "auth_1_7.GetOneTimePasswordResponse") 2887 } 2888 2889 func init() { proto.RegisterFile("client/admin/v1_7/auth/auth.proto", fileDescriptor_a6dfd6c07e2cd89c) } 2890 2891 var fileDescriptor_a6dfd6c07e2cd89c = []byte{ 2892 // 1902 bytes of a gzipped FileDescriptorProto 2893 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x49, 0x73, 0xdb, 0xc8, 2894 0x15, 0x16, 0x49, 0x89, 0xcb, 0x23, 0x25, 0x52, 0x6d, 0x46, 0xa2, 0x30, 0x1e, 0x51, 0x86, 0x93, 2895 0x58, 0x99, 0xa4, 0xa8, 0xb1, 0xc6, 0x53, 0xce, 0x6c, 0x49, 0x51, 0x14, 0x2d, 0x33, 0x43, 0x49, 2896 0x0e, 0x40, 0xd9, 0xae, 0xe4, 0x80, 0x02, 0x81, 0x36, 0x85, 0x98, 0x24, 0x18, 0x2c, 0x1c, 0x2b, 2897 0xd7, 0x5c, 0xf2, 0x1f, 0x52, 0x95, 0x4b, 0xfe, 0x4c, 0x8e, 0xb9, 0xe6, 0xa2, 0x4a, 0xb1, 0x2a, 2898 0xd7, 0xfc, 0x86, 0x54, 0x2f, 0x20, 0x1a, 0x20, 0x48, 0x69, 0x32, 0x17, 0x09, 0xfd, 0x96, 0xaf, 2899 0xdf, 0xd2, 0xfd, 0xde, 0x6b, 0xc2, 0x23, 0x63, 0x68, 0xe1, 0xb1, 0x77, 0xa4, 0x9b, 0x23, 0x6b, 2900 0x7c, 0x34, 0x7d, 0xaa, 0x3d, 0x3f, 0xd2, 0x7d, 0xef, 0x9a, 0xfe, 0x69, 0x4c, 0x1c, 0xdb, 0xb3, 2901 0x51, 0x9e, 0x7c, 0x6b, 0x4f, 0xb5, 0xe7, 0x52, 0x75, 0x60, 0x0f, 0x6c, 0x4a, 0x3c, 0x22, 0x5f, 2902 0x8c, 0x2f, 0xd5, 0x07, 0xb6, 0x3d, 0x18, 0xe2, 0x23, 0xba, 0xea, 0xfb, 0xef, 0x8e, 0x3c, 0x6b, 2903 0x84, 0x5d, 0x4f, 0x1f, 0x4d, 0x98, 0x80, 0xac, 0x41, 0xb9, 0x69, 0x78, 0xd6, 0x54, 0xf7, 0xb0, 2904 0x82, 0xff, 0xe8, 0x63, 0xd7, 0x43, 0x35, 0xc8, 0xb9, 0x7e, 0xff, 0x0f, 0xd8, 0xf0, 0x6a, 0xe9, 2905 0x83, 0xd4, 0x61, 0x41, 0x09, 0x96, 0xe8, 0x18, 0x4a, 0x03, 0xcb, 0xbb, 0xf6, 0xfb, 0x9a, 0x67, 2906 0xbf, 0xc7, 0xe3, 0x5a, 0x8a, 0xb0, 0x4f, 0xca, 0xb3, 0xdb, 0x7a, 0xf1, 0xcc, 0xf2, 0x5e, 0xfa, 2907 0xfd, 0x1e, 0x21, 0x2b, 0x45, 0x26, 0x44, 0x17, 0xf2, 0x53, 0xa8, 0x84, 0x1b, 0xb8, 0x13, 0x7b, 2908 0xec, 0x62, 0xf4, 0x31, 0xc0, 0x44, 0x37, 0xae, 0x45, 0x14, 0xa5, 0x40, 0x28, 0x4c, 0xe5, 0x01, 2909 0x6c, 0x9f, 0x62, 0x3d, 0x6a, 0x95, 0x5c, 0x05, 0x24, 0x12, 0x19, 0x92, 0xfc, 0xf7, 0x34, 0x40, 2910 0xe7, 0xf4, 0x95, 0x63, 0x4f, 0x2d, 0x13, 0x3b, 0x08, 0xc1, 0xfa, 0x58, 0x1f, 0x61, 0x0e, 0x49, 2911 0xbf, 0xd1, 0x01, 0x14, 0x4d, 0xec, 0x1a, 0x8e, 0x35, 0xf1, 0x2c, 0x7b, 0xcc, 0x5d, 0x12, 0x49, 2912 0xe8, 0x57, 0xb0, 0xee, 0xea, 0xa3, 0x61, 0x2d, 0x73, 0x90, 0x3a, 0x2c, 0x1e, 0x1f, 0x34, 0x82, 2913 0x98, 0x36, 0x42, 0xe4, 0x86, 0xda, 0x3c, 0xef, 0x5e, 0x52, 0x71, 0xf7, 0x24, 0x3f, 0xbb, 0xad, 2914 0xaf, 0x13, 0x82, 0x42, 0xf5, 0xa4, 0xbf, 0xa5, 0xa0, 0x28, 0xf0, 0x49, 0x98, 0x46, 0xd8, 0xd3, 2915 0x4d, 0xdd, 0xd3, 0x35, 0xdf, 0x19, 0x8a, 0x61, 0x3a, 0xe7, 0xf4, 0x2b, 0xa5, 0xab, 0x14, 0x03, 2916 0xa1, 0x2b, 0x67, 0x18, 0xd1, 0xf9, 0x30, 0x1a, 0x52, 0x33, 0x4b, 0x51, 0x9d, 0xb7, 0xe7, 0x82, 2917 0xce, 0xdb, 0xd1, 0x10, 0x3d, 0x81, 0xf2, 0xc0, 0xb1, 0xfd, 0x89, 0xa6, 0x7b, 0x9e, 0x63, 0xf5, 2918 0x7d, 0x0f, 0x53, 0x17, 0x0a, 0xca, 0x16, 0x25, 0x37, 0x03, 0xaa, 0xfc, 0xaf, 0x0c, 0x40, 0xd3, 2919 0xf7, 0xae, 0x5b, 0xf6, 0xf8, 0x9d, 0x35, 0x40, 0x0d, 0x78, 0x30, 0xb4, 0xa6, 0x58, 0x33, 0xe8, 2920 0x52, 0x9b, 0x62, 0xc7, 0x25, 0x91, 0x21, 0x66, 0x66, 0x94, 0x6d, 0xc2, 0x62, 0x82, 0xaf, 0x19, 2921 0x03, 0xbd, 0x84, 0x92, 0x65, 0x6a, 0x13, 0x1e, 0x0a, 0xb7, 0x96, 0x3e, 0xc8, 0x1c, 0x16, 0x8f, 2922 0xab, 0x49, 0x71, 0x62, 0x16, 0x87, 0x6b, 0x57, 0x29, 0x5a, 0xe6, 0x7c, 0x81, 0x2c, 0xa8, 0x90, 2923 0x88, 0x69, 0xee, 0xd4, 0xd0, 0x6c, 0x16, 0x2d, 0x1e, 0xf5, 0x27, 0x21, 0x5a, 0x68, 0x29, 0x8d, 2924 0xba, 0x8a, 0x9d, 0xa9, 0x65, 0xe0, 0x20, 0xf8, 0x3b, 0xb3, 0xdb, 0x3a, 0x5a, 0xa4, 0x2b, 0x5b, 2925 0x04, 0x58, 0x9d, 0x1a, 0x7c, 0x2d, 0xfd, 0x27, 0x05, 0x09, 0x62, 0xe8, 0x31, 0xe4, 0x74, 0xc3, 2926 0x15, 0xd2, 0x02, 0xb3, 0xdb, 0x7a, 0xb6, 0xd9, 0x52, 0x49, 0x46, 0xb2, 0xba, 0xe1, 0xc6, 0x93, 2927 0x41, 0x24, 0xd3, 0xf7, 0x48, 0xe0, 0x4f, 0x21, 0x6f, 0xea, 0xee, 0x35, 0x95, 0xa7, 0x59, 0x38, 2928 0x29, 0xce, 0x6e, 0xeb, 0xb9, 0x53, 0xdd, 0xbd, 0x26, 0xb2, 0x39, 0xc2, 0x24, 0x72, 0x3f, 0x83, 2929 0x8a, 0x8b, 0x5d, 0x12, 0x57, 0xcd, 0xf4, 0x1d, 0x9d, 0x9e, 0xc9, 0x75, 0x9a, 0xb5, 0x32, 0xa7, 2930 0x9f, 0x72, 0x32, 0x7a, 0x0c, 0x9b, 0x26, 0xee, 0xfb, 0x03, 0x6d, 0x68, 0x0f, 0x06, 0xd6, 0x78, 2931 0x50, 0xdb, 0x38, 0x48, 0x1d, 0xe6, 0x95, 0x12, 0x25, 0x76, 0x19, 0x4d, 0xde, 0x83, 0xdd, 0x33, 2932 0xec, 0xb1, 0x78, 0x71, 0xc5, 0xe0, 0xca, 0xbc, 0x86, 0xda, 0x22, 0x8b, 0x5f, 0xc1, 0x2f, 0x61, 2933 0xd3, 0x10, 0x19, 0x34, 0x1a, 0x91, 0xa4, 0x86, 0x69, 0x50, 0xa2, 0xa2, 0xf2, 0x15, 0xec, 0xaa, 2934 0xc9, 0x5b, 0xfe, 0x20, 0x58, 0x09, 0x6a, 0xea, 0x12, 0x73, 0x65, 0x04, 0x95, 0x33, 0xec, 0x35, 2935 0x49, 0x21, 0x74, 0x03, 0xf7, 0x7e, 0x0e, 0xdb, 0x02, 0x8d, 0xfb, 0xb5, 0x03, 0x59, 0x5a, 0x2e, 2936 0xdd, 0x5a, 0xea, 0x20, 0x73, 0x58, 0x50, 0xf8, 0x4a, 0xfe, 0x35, 0x3c, 0x38, 0xb7, 0x4d, 0xeb, 2937 0xdd, 0x4d, 0x04, 0x03, 0x55, 0x20, 0xa3, 0x9b, 0x26, 0x97, 0x25, 0x9f, 0x04, 0xc0, 0xc1, 0x23, 2938 0x7b, 0x8a, 0xe9, 0x31, 0x2f, 0x28, 0x7c, 0x25, 0xef, 0x40, 0x35, 0x0a, 0xc0, 0x2d, 0x1b, 0x43, 2939 0xee, 0xb2, 0xf7, 0xaa, 0x33, 0x7e, 0x67, 0x8b, 0x85, 0x33, 0x15, 0x2d, 0x9c, 0x1d, 0x40, 0x41, 2940 0xd2, 0xf1, 0x87, 0x89, 0xc5, 0x63, 0x93, 0xa6, 0xb1, 0x91, 0x1a, 0xac, 0x46, 0x37, 0x82, 0x1a, 2941 0xdd, 0xe8, 0x05, 0x35, 0x5a, 0xd9, 0xe6, 0x5a, 0xed, 0xb9, 0x92, 0xfc, 0xd7, 0x14, 0x14, 0x68, 2942 0x99, 0xbc, 0x63, 0xcb, 0xe7, 0x90, 0x75, 0x6d, 0xdf, 0x31, 0x30, 0xdd, 0x66, 0xeb, 0xb8, 0x1e, 2943 0xa6, 0x60, 0xae, 0xce, 0xbe, 0x54, 0x2a, 0xa6, 0x70, 0x71, 0xf9, 0x2b, 0x28, 0x0a, 0x64, 0x54, 2944 0x84, 0x5c, 0xe7, 0xe2, 0x75, 0xb3, 0xdb, 0x39, 0xad, 0xac, 0xa1, 0x0a, 0x94, 0x9a, 0x57, 0xbd, 2945 0x97, 0xed, 0x8b, 0x5e, 0xa7, 0xd5, 0xec, 0xb5, 0x2b, 0x29, 0xb4, 0x09, 0x85, 0xb3, 0x76, 0x4f, 2946 0xeb, 0x5d, 0x7e, 0xdb, 0xbe, 0xa8, 0xa4, 0x65, 0x1f, 0x1e, 0x90, 0x04, 0xe3, 0xb1, 0x67, 0x19, 2947 0x42, 0x4b, 0xf9, 0x3f, 0x1a, 0x07, 0xfa, 0x04, 0xb6, 0xed, 0x31, 0xd6, 0x48, 0xc3, 0xd2, 0x26, 2948 0xba, 0xeb, 0x7e, 0x67, 0x3b, 0x26, 0xaf, 0xde, 0x65, 0x7b, 0x8c, 0x49, 0x90, 0x5e, 0x71, 0xb2, 2949 0xfc, 0x39, 0x54, 0xa3, 0xdb, 0xde, 0xaf, 0xd1, 0x94, 0x61, 0xf3, 0xcd, 0xb5, 0xdd, 0x1c, 0x75, 2950 0x82, 0x23, 0xd5, 0x87, 0xad, 0x80, 0xc0, 0x11, 0x24, 0xc8, 0xfb, 0x2e, 0x76, 0x84, 0xae, 0x32, 2951 0x5f, 0xa3, 0x3d, 0xc8, 0x5b, 0xae, 0x46, 0x0f, 0x18, 0x35, 0x2c, 0xaf, 0xe4, 0x2c, 0x97, 0x1e, 2952 0x0f, 0xb4, 0x07, 0x19, 0xcf, 0x63, 0x85, 0x20, 0x73, 0x92, 0x9b, 0xdd, 0xd6, 0x33, 0xbd, 0x5e, 2953 0x57, 0x21, 0x34, 0xf9, 0x2f, 0x29, 0xc8, 0x34, 0x5b, 0x5d, 0xf4, 0x0c, 0x72, 0x78, 0xec, 0x39, 2954 0x16, 0x66, 0x47, 0x95, 0x1c, 0x84, 0xf0, 0x92, 0xb4, 0xba, 0x8d, 0x36, 0x63, 0x92, 0x7f, 0x37, 2955 0x4a, 0x20, 0x2a, 0x7d, 0x0b, 0x25, 0x91, 0x41, 0x0e, 0xf0, 0x7b, 0x7c, 0xc3, 0x4d, 0x23, 0x9f, 2956 0xe8, 0x27, 0xb0, 0x31, 0xd5, 0x87, 0x7e, 0x90, 0xf7, 0x72, 0x88, 0xaa, 0x1a, 0xf6, 0x04, 0x2b, 2957 0x8c, 0xfb, 0x65, 0xfa, 0x97, 0x29, 0xf9, 0xcf, 0x29, 0xd8, 0xb8, 0x72, 0x49, 0x61, 0xfe, 0x1a, 2958 0x0a, 0x81, 0x5b, 0x81, 0x39, 0xfb, 0xa1, 0x22, 0x95, 0xa1, 0x7f, 0xa9, 0x00, 0x33, 0x29, 0x54, 2959 0x90, 0xbe, 0x86, 0xad, 0x28, 0x33, 0xc1, 0xac, 0xaa, 0x68, 0x56, 0x5e, 0xb4, 0xe2, 0x06, 0xb2, 2960 0x67, 0xa4, 0x5f, 0xb9, 0xe8, 0x19, 0x64, 0x69, 0xe7, 0x0a, 0x4c, 0x78, 0x18, 0x9a, 0xc0, 0x24, 2961 0xf8, 0x3f, 0x66, 0x00, 0x97, 0x95, 0xbe, 0x80, 0xa2, 0x40, 0xfe, 0x5e, 0x5b, 0x9f, 0x43, 0x85, 2962 0x9c, 0x1b, 0xdb, 0xb1, 0xfe, 0x34, 0x3f, 0xab, 0x08, 0xd6, 0x1d, 0x3c, 0xb1, 0x83, 0x19, 0x82, 2963 0x7c, 0x93, 0x98, 0xba, 0x24, 0x78, 0x4b, 0x63, 0x4a, 0xb9, 0xf2, 0x67, 0xb0, 0x2d, 0xc0, 0xf1, 2964 0x13, 0xb4, 0x0f, 0xa0, 0x07, 0x44, 0x93, 0xa2, 0xe6, 0x15, 0x81, 0x22, 0xb7, 0xa0, 0x7c, 0x86, 2965 0x3d, 0x86, 0xc3, 0x4d, 0x58, 0x75, 0xe8, 0xaa, 0xb0, 0x41, 0x4c, 0x72, 0x79, 0x79, 0x62, 0x0b, 2966 0xf9, 0x2b, 0x5a, 0x1f, 0x39, 0x08, 0xdf, 0xf8, 0x09, 0x64, 0xa9, 0x59, 0x2c, 0x9a, 0x09, 0x56, 2967 0x73, 0xb6, 0x7c, 0x0d, 0x65, 0xf5, 0x7b, 0x58, 0x10, 0x04, 0x28, 0x9d, 0x14, 0xa0, 0xcc, 0xca, 2968 0x00, 0x21, 0xa8, 0xa8, 0x31, 0x33, 0xe5, 0xc7, 0xb0, 0x49, 0xca, 0x78, 0xab, 0xbb, 0x22, 0x01, 2969 0xf2, 0x39, 0xe4, 0x9b, 0xad, 0x2e, 0x4b, 0xf0, 0x2a, 0xdb, 0xee, 0x99, 0xa8, 0xef, 0x60, 0x2b, 2970 0xd8, 0x93, 0x07, 0xeb, 0x17, 0xf1, 0xdb, 0x88, 0x22, 0xb7, 0x31, 0x7a, 0x0b, 0xd1, 0x73, 0xd8, 2971 0x74, 0xec, 0xbe, 0xed, 0x69, 0x81, 0x4e, 0x7a, 0xa9, 0x4e, 0x89, 0x0a, 0xf2, 0x3b, 0x2b, 0xff, 2972 0x16, 0x36, 0xd5, 0xbb, 0x9c, 0x15, 0x6d, 0x49, 0xdf, 0x69, 0x8b, 0x5c, 0x81, 0x2d, 0x35, 0xe2, 2973 0x8b, 0xfc, 0x1b, 0x78, 0x40, 0xbc, 0xf3, 0x3d, 0x56, 0xe6, 0x12, 0xe6, 0xfa, 0x58, 0xaf, 0xe0, 2974 0xd5, 0x2a, 0x9d, 0x50, 0xad, 0x5e, 0x40, 0x35, 0x8a, 0xc5, 0xe3, 0xb5, 0xfc, 0x91, 0x50, 0x85, 2975 0x0d, 0xb1, 0xdc, 0xb2, 0x85, 0xdc, 0x81, 0x9d, 0xf6, 0x07, 0x0f, 0x8f, 0xcd, 0x05, 0xb3, 0x12, 2976 0xe5, 0x57, 0x99, 0xb4, 0x07, 0xbb, 0x0b, 0x50, 0xdc, 0xf3, 0x06, 0xec, 0x28, 0x78, 0x6a, 0xbf, 2977 0xc7, 0xf7, 0xdb, 0x85, 0x40, 0x2d, 0xc8, 0x73, 0xa8, 0x73, 0x3a, 0xe4, 0xb0, 0xc2, 0xf2, 0xc2, 2978 0x76, 0x48, 0x7d, 0xbb, 0xcf, 0xe5, 0xd8, 0x99, 0x97, 0x30, 0x3e, 0x3e, 0xb0, 0x15, 0x1f, 0x6e, 2979 0x62, 0x70, 0x7c, 0xab, 0xd7, 0xc1, 0x68, 0x71, 0x8e, 0x47, 0x7d, 0x32, 0x33, 0x87, 0x36, 0x53, 2980 0xed, 0xc0, 0x66, 0xba, 0x08, 0x46, 0x96, 0x74, 0xd2, 0xc8, 0x92, 0x89, 0x8c, 0x2c, 0xbb, 0xf0, 2981 0xa3, 0x18, 0xee, 0x3c, 0x4c, 0xa4, 0x5a, 0x30, 0x63, 0xee, 0xe1, 0x14, 0x9f, 0xb4, 0x02, 0xf9, 2982 0x70, 0xd2, 0x12, 0x8a, 0x75, 0xe8, 0xe9, 0x13, 0x5a, 0xcf, 0x68, 0xcb, 0x58, 0xe9, 0x88, 0xfc, 2983 0x29, 0xb5, 0x82, 0x0b, 0x72, 0xd0, 0x87, 0xf1, 0x3e, 0x54, 0x10, 0xfa, 0x8c, 0xfc, 0x39, 0xec, 2984 0x9d, 0x61, 0xef, 0x32, 0xda, 0xfc, 0xef, 0x3c, 0xde, 0xf2, 0xa7, 0x20, 0x25, 0xa9, 0xf1, 0x2d, 2985 0x11, 0xac, 0x1b, 0xb6, 0x39, 0x7f, 0x33, 0x92, 0xef, 0x4f, 0x9e, 0xc1, 0x06, 0xad, 0x17, 0x28, 2986 0x0f, 0xeb, 0x17, 0x97, 0x17, 0xed, 0xca, 0x1a, 0x02, 0xc8, 0x2a, 0xed, 0xe6, 0x69, 0x5b, 0xa9, 2987 0xa4, 0xc8, 0xf7, 0x1b, 0xa5, 0xd3, 0x6b, 0x2b, 0x95, 0x34, 0x2a, 0xc0, 0xc6, 0xe5, 0x9b, 0x8b, 2988 0xb6, 0x52, 0xc9, 0x1c, 0xff, 0xb7, 0x04, 0x99, 0xe6, 0xab, 0x0e, 0x6a, 0x41, 0x3e, 0x78, 0xf2, 2989 0xa2, 0x3d, 0xe1, 0xea, 0x46, 0x5f, 0xb4, 0x92, 0x94, 0xc4, 0xe2, 0x19, 0x5a, 0x43, 0x1d, 0x80, 2990 0xf0, 0xbd, 0x8b, 0x3e, 0x0a, 0x65, 0x17, 0x9e, 0xc6, 0xd2, 0xc3, 0x64, 0xe6, 0x1c, 0xea, 0xf7, 2991 0x34, 0xd0, 0x91, 0xc1, 0x1a, 0x3d, 0x12, 0x5a, 0x6b, 0xf2, 0x2c, 0x2f, 0xc9, 0xab, 0x44, 0x44, 2992 0x70, 0x75, 0x05, 0xb8, 0x7a, 0x37, 0xb8, 0xba, 0x1c, 0xfc, 0x05, 0x14, 0xe6, 0x23, 0x3e, 0x92, 2993 0x22, 0xf6, 0x44, 0xe6, 0x78, 0xe9, 0xa3, 0x44, 0xde, 0x1c, 0xe7, 0x12, 0x4a, 0xe2, 0xf0, 0x8e, 2994 0x3e, 0x0e, 0xc5, 0x13, 0x5e, 0x05, 0xd2, 0xfe, 0x32, 0xb6, 0x08, 0x28, 0x0e, 0x9c, 0x22, 0x60, 2995 0xc2, 0xfc, 0x2b, 0x02, 0x26, 0xcd, 0xa9, 0xcc, 0xd3, 0xf9, 0xe8, 0x20, 0x7a, 0x1a, 0x1f, 0x4f, 2996 0x44, 0x4f, 0x17, 0x66, 0x0d, 0x79, 0x0d, 0x7d, 0x03, 0x59, 0x36, 0xc1, 0xa2, 0xdd, 0x50, 0x30, 2997 0x32, 0xe4, 0x4a, 0xb5, 0x45, 0xc6, 0x5c, 0xbd, 0x05, 0xf9, 0x60, 0x8e, 0x10, 0x8f, 0x6e, 0x6c, 2998 0x40, 0x91, 0xa4, 0x24, 0x96, 0x08, 0xa2, 0x26, 0x80, 0xa8, 0xcb, 0x41, 0xd4, 0x45, 0x90, 0x6f, 2999 0x20, 0xcb, 0x5a, 0xb4, 0xe8, 0x48, 0x64, 0x50, 0x10, 0x1d, 0x89, 0x76, 0x73, 0xa6, 0xae, 0x2e, 3000 0xa8, 0xab, 0xcb, 0xd4, 0xd5, 0xb8, 0xfa, 0x25, 0x94, 0xc4, 0xb6, 0x27, 0xe6, 0x37, 0xa1, 0xb5, 3001 0x8a, 0xf9, 0x4d, 0xea, 0x96, 0xf2, 0x1a, 0x7a, 0x0b, 0xe5, 0x58, 0xd3, 0x42, 0xc2, 0x0f, 0x4d, 3002 0xc9, 0xad, 0x51, 0x7a, 0xb4, 0x42, 0x42, 0x44, 0x8e, 0xf5, 0x30, 0x11, 0x39, 0xb9, 0x1d, 0x8a, 3003 0xc8, 0xcb, 0x1a, 0x60, 0x70, 0xb5, 0x23, 0x3d, 0x2b, 0x76, 0xb5, 0x93, 0xda, 0x63, 0xec, 0x6a, 3004 0x27, 0xb7, 0xbc, 0x35, 0xa4, 0xc0, 0x66, 0xa4, 0x39, 0xa1, 0x85, 0x4b, 0x17, 0xed, 0x86, 0x52, 3005 0x7d, 0x29, 0x3f, 0x56, 0x2e, 0xf8, 0x63, 0x22, 0x7a, 0x46, 0x23, 0xcd, 0x2e, 0x56, 0x2e, 0xa2, 3006 0x8d, 0x6d, 0x7e, 0x0b, 0xd8, 0xcb, 0x28, 0x7a, 0x0b, 0xc4, 0xb6, 0x16, 0xbb, 0x05, 0x91, 0x46, 3007 0x26, 0xaf, 0x21, 0x1d, 0xd0, 0x62, 0xd7, 0x41, 0x8f, 0x23, 0x3a, 0xc9, 0xad, 0x4c, 0xfa, 0xf1, 3008 0x6a, 0xa1, 0x60, 0x8b, 0x93, 0xb3, 0x7f, 0xcc, 0xf6, 0x53, 0xff, 0x9c, 0xed, 0xa7, 0xfe, 0x3d, 3009 0xdb, 0x4f, 0xfd, 0xee, 0x0b, 0xf6, 0x7a, 0x6e, 0x18, 0xf6, 0xe8, 0x88, 0xbc, 0x71, 0x6f, 0x4c, 3010 0xec, 0x88, 0x5f, 0xae, 0x63, 0x1c, 0x25, 0xff, 0xa2, 0xdc, 0xcf, 0xd2, 0xdf, 0x1e, 0x3e, 0xfb, 3011 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x54, 0xe8, 0x2f, 0x87, 0x72, 0x16, 0x00, 0x00, 3012 } 3013 3014 // Reference imports to suppress errors if they are not otherwise used. 3015 var _ context.Context 3016 var _ grpc.ClientConn 3017 3018 // This is a compile-time assertion to ensure that this generated file 3019 // is compatible with the grpc package it is being compiled against. 3020 const _ = grpc.SupportPackageIsVersion4 3021 3022 // APIClient is the client API for API service. 3023 // 3024 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 3025 type APIClient interface { 3026 // Activate/Deactivate the auth API. 'Activate' sets an initial set of admins 3027 // for the Pachyderm cluster, and 'Deactivate' removes all ACLs, tokens, and 3028 // admins from the Pachyderm cluster, making all data publicly accessable 3029 Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) 3030 Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) 3031 GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) 3032 SetConfiguration(ctx context.Context, in *SetConfigurationRequest, opts ...grpc.CallOption) (*SetConfigurationResponse, error) 3033 // GetAdmins returns the current list of cluster admins 3034 GetAdmins(ctx context.Context, in *GetAdminsRequest, opts ...grpc.CallOption) (*GetAdminsResponse, error) 3035 // ModifyAdmins adds or removes admins from the cluster 3036 ModifyAdmins(ctx context.Context, in *ModifyAdminsRequest, opts ...grpc.CallOption) (*ModifyAdminsResponse, error) 3037 Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) 3038 Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) 3039 WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) 3040 GetScope(ctx context.Context, in *GetScopeRequest, opts ...grpc.CallOption) (*GetScopeResponse, error) 3041 SetScope(ctx context.Context, in *SetScopeRequest, opts ...grpc.CallOption) (*SetScopeResponse, error) 3042 GetACL(ctx context.Context, in *GetACLRequest, opts ...grpc.CallOption) (*GetACLResponse, error) 3043 SetACL(ctx context.Context, in *SetACLRequest, opts ...grpc.CallOption) (*SetACLResponse, error) 3044 GetAuthToken(ctx context.Context, in *GetAuthTokenRequest, opts ...grpc.CallOption) (*GetAuthTokenResponse, error) 3045 ExtendAuthToken(ctx context.Context, in *ExtendAuthTokenRequest, opts ...grpc.CallOption) (*ExtendAuthTokenResponse, error) 3046 RevokeAuthToken(ctx context.Context, in *RevokeAuthTokenRequest, opts ...grpc.CallOption) (*RevokeAuthTokenResponse, error) 3047 SetGroupsForUser(ctx context.Context, in *SetGroupsForUserRequest, opts ...grpc.CallOption) (*SetGroupsForUserResponse, error) 3048 ModifyMembers(ctx context.Context, in *ModifyMembersRequest, opts ...grpc.CallOption) (*ModifyMembersResponse, error) 3049 GetGroups(ctx context.Context, in *GetGroupsRequest, opts ...grpc.CallOption) (*GetGroupsResponse, error) 3050 GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) 3051 GetOneTimePassword(ctx context.Context, in *GetOneTimePasswordRequest, opts ...grpc.CallOption) (*GetOneTimePasswordResponse, error) 3052 } 3053 3054 type aPIClient struct { 3055 cc *grpc.ClientConn 3056 } 3057 3058 func NewAPIClient(cc *grpc.ClientConn) APIClient { 3059 return &aPIClient{cc} 3060 } 3061 3062 func (c *aPIClient) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) { 3063 out := new(ActivateResponse) 3064 err := c.cc.Invoke(ctx, "/auth_1_7.API/Activate", in, out, opts...) 3065 if err != nil { 3066 return nil, err 3067 } 3068 return out, nil 3069 } 3070 3071 func (c *aPIClient) Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) { 3072 out := new(DeactivateResponse) 3073 err := c.cc.Invoke(ctx, "/auth_1_7.API/Deactivate", in, out, opts...) 3074 if err != nil { 3075 return nil, err 3076 } 3077 return out, nil 3078 } 3079 3080 func (c *aPIClient) GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) { 3081 out := new(GetConfigurationResponse) 3082 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetConfiguration", in, out, opts...) 3083 if err != nil { 3084 return nil, err 3085 } 3086 return out, nil 3087 } 3088 3089 func (c *aPIClient) SetConfiguration(ctx context.Context, in *SetConfigurationRequest, opts ...grpc.CallOption) (*SetConfigurationResponse, error) { 3090 out := new(SetConfigurationResponse) 3091 err := c.cc.Invoke(ctx, "/auth_1_7.API/SetConfiguration", in, out, opts...) 3092 if err != nil { 3093 return nil, err 3094 } 3095 return out, nil 3096 } 3097 3098 func (c *aPIClient) GetAdmins(ctx context.Context, in *GetAdminsRequest, opts ...grpc.CallOption) (*GetAdminsResponse, error) { 3099 out := new(GetAdminsResponse) 3100 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetAdmins", in, out, opts...) 3101 if err != nil { 3102 return nil, err 3103 } 3104 return out, nil 3105 } 3106 3107 func (c *aPIClient) ModifyAdmins(ctx context.Context, in *ModifyAdminsRequest, opts ...grpc.CallOption) (*ModifyAdminsResponse, error) { 3108 out := new(ModifyAdminsResponse) 3109 err := c.cc.Invoke(ctx, "/auth_1_7.API/ModifyAdmins", in, out, opts...) 3110 if err != nil { 3111 return nil, err 3112 } 3113 return out, nil 3114 } 3115 3116 func (c *aPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { 3117 out := new(AuthenticateResponse) 3118 err := c.cc.Invoke(ctx, "/auth_1_7.API/Authenticate", in, out, opts...) 3119 if err != nil { 3120 return nil, err 3121 } 3122 return out, nil 3123 } 3124 3125 func (c *aPIClient) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) { 3126 out := new(AuthorizeResponse) 3127 err := c.cc.Invoke(ctx, "/auth_1_7.API/Authorize", in, out, opts...) 3128 if err != nil { 3129 return nil, err 3130 } 3131 return out, nil 3132 } 3133 3134 func (c *aPIClient) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) { 3135 out := new(WhoAmIResponse) 3136 err := c.cc.Invoke(ctx, "/auth_1_7.API/WhoAmI", in, out, opts...) 3137 if err != nil { 3138 return nil, err 3139 } 3140 return out, nil 3141 } 3142 3143 func (c *aPIClient) GetScope(ctx context.Context, in *GetScopeRequest, opts ...grpc.CallOption) (*GetScopeResponse, error) { 3144 out := new(GetScopeResponse) 3145 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetScope", in, out, opts...) 3146 if err != nil { 3147 return nil, err 3148 } 3149 return out, nil 3150 } 3151 3152 func (c *aPIClient) SetScope(ctx context.Context, in *SetScopeRequest, opts ...grpc.CallOption) (*SetScopeResponse, error) { 3153 out := new(SetScopeResponse) 3154 err := c.cc.Invoke(ctx, "/auth_1_7.API/SetScope", in, out, opts...) 3155 if err != nil { 3156 return nil, err 3157 } 3158 return out, nil 3159 } 3160 3161 func (c *aPIClient) GetACL(ctx context.Context, in *GetACLRequest, opts ...grpc.CallOption) (*GetACLResponse, error) { 3162 out := new(GetACLResponse) 3163 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetACL", in, out, opts...) 3164 if err != nil { 3165 return nil, err 3166 } 3167 return out, nil 3168 } 3169 3170 func (c *aPIClient) SetACL(ctx context.Context, in *SetACLRequest, opts ...grpc.CallOption) (*SetACLResponse, error) { 3171 out := new(SetACLResponse) 3172 err := c.cc.Invoke(ctx, "/auth_1_7.API/SetACL", in, out, opts...) 3173 if err != nil { 3174 return nil, err 3175 } 3176 return out, nil 3177 } 3178 3179 func (c *aPIClient) GetAuthToken(ctx context.Context, in *GetAuthTokenRequest, opts ...grpc.CallOption) (*GetAuthTokenResponse, error) { 3180 out := new(GetAuthTokenResponse) 3181 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetAuthToken", in, out, opts...) 3182 if err != nil { 3183 return nil, err 3184 } 3185 return out, nil 3186 } 3187 3188 func (c *aPIClient) ExtendAuthToken(ctx context.Context, in *ExtendAuthTokenRequest, opts ...grpc.CallOption) (*ExtendAuthTokenResponse, error) { 3189 out := new(ExtendAuthTokenResponse) 3190 err := c.cc.Invoke(ctx, "/auth_1_7.API/ExtendAuthToken", in, out, opts...) 3191 if err != nil { 3192 return nil, err 3193 } 3194 return out, nil 3195 } 3196 3197 func (c *aPIClient) RevokeAuthToken(ctx context.Context, in *RevokeAuthTokenRequest, opts ...grpc.CallOption) (*RevokeAuthTokenResponse, error) { 3198 out := new(RevokeAuthTokenResponse) 3199 err := c.cc.Invoke(ctx, "/auth_1_7.API/RevokeAuthToken", in, out, opts...) 3200 if err != nil { 3201 return nil, err 3202 } 3203 return out, nil 3204 } 3205 3206 func (c *aPIClient) SetGroupsForUser(ctx context.Context, in *SetGroupsForUserRequest, opts ...grpc.CallOption) (*SetGroupsForUserResponse, error) { 3207 out := new(SetGroupsForUserResponse) 3208 err := c.cc.Invoke(ctx, "/auth_1_7.API/SetGroupsForUser", in, out, opts...) 3209 if err != nil { 3210 return nil, err 3211 } 3212 return out, nil 3213 } 3214 3215 func (c *aPIClient) ModifyMembers(ctx context.Context, in *ModifyMembersRequest, opts ...grpc.CallOption) (*ModifyMembersResponse, error) { 3216 out := new(ModifyMembersResponse) 3217 err := c.cc.Invoke(ctx, "/auth_1_7.API/ModifyMembers", in, out, opts...) 3218 if err != nil { 3219 return nil, err 3220 } 3221 return out, nil 3222 } 3223 3224 func (c *aPIClient) GetGroups(ctx context.Context, in *GetGroupsRequest, opts ...grpc.CallOption) (*GetGroupsResponse, error) { 3225 out := new(GetGroupsResponse) 3226 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetGroups", in, out, opts...) 3227 if err != nil { 3228 return nil, err 3229 } 3230 return out, nil 3231 } 3232 3233 func (c *aPIClient) GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) { 3234 out := new(GetUsersResponse) 3235 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetUsers", in, out, opts...) 3236 if err != nil { 3237 return nil, err 3238 } 3239 return out, nil 3240 } 3241 3242 func (c *aPIClient) GetOneTimePassword(ctx context.Context, in *GetOneTimePasswordRequest, opts ...grpc.CallOption) (*GetOneTimePasswordResponse, error) { 3243 out := new(GetOneTimePasswordResponse) 3244 err := c.cc.Invoke(ctx, "/auth_1_7.API/GetOneTimePassword", in, out, opts...) 3245 if err != nil { 3246 return nil, err 3247 } 3248 return out, nil 3249 } 3250 3251 // APIServer is the server API for API service. 3252 type APIServer interface { 3253 // Activate/Deactivate the auth API. 'Activate' sets an initial set of admins 3254 // for the Pachyderm cluster, and 'Deactivate' removes all ACLs, tokens, and 3255 // admins from the Pachyderm cluster, making all data publicly accessable 3256 Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) 3257 Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error) 3258 GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error) 3259 SetConfiguration(context.Context, *SetConfigurationRequest) (*SetConfigurationResponse, error) 3260 // GetAdmins returns the current list of cluster admins 3261 GetAdmins(context.Context, *GetAdminsRequest) (*GetAdminsResponse, error) 3262 // ModifyAdmins adds or removes admins from the cluster 3263 ModifyAdmins(context.Context, *ModifyAdminsRequest) (*ModifyAdminsResponse, error) 3264 Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) 3265 Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) 3266 WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) 3267 GetScope(context.Context, *GetScopeRequest) (*GetScopeResponse, error) 3268 SetScope(context.Context, *SetScopeRequest) (*SetScopeResponse, error) 3269 GetACL(context.Context, *GetACLRequest) (*GetACLResponse, error) 3270 SetACL(context.Context, *SetACLRequest) (*SetACLResponse, error) 3271 GetAuthToken(context.Context, *GetAuthTokenRequest) (*GetAuthTokenResponse, error) 3272 ExtendAuthToken(context.Context, *ExtendAuthTokenRequest) (*ExtendAuthTokenResponse, error) 3273 RevokeAuthToken(context.Context, *RevokeAuthTokenRequest) (*RevokeAuthTokenResponse, error) 3274 SetGroupsForUser(context.Context, *SetGroupsForUserRequest) (*SetGroupsForUserResponse, error) 3275 ModifyMembers(context.Context, *ModifyMembersRequest) (*ModifyMembersResponse, error) 3276 GetGroups(context.Context, *GetGroupsRequest) (*GetGroupsResponse, error) 3277 GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error) 3278 GetOneTimePassword(context.Context, *GetOneTimePasswordRequest) (*GetOneTimePasswordResponse, error) 3279 } 3280 3281 // UnimplementedAPIServer can be embedded to have forward compatible implementations. 3282 type UnimplementedAPIServer struct { 3283 } 3284 3285 func (*UnimplementedAPIServer) Activate(ctx context.Context, req *ActivateRequest) (*ActivateResponse, error) { 3286 return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented") 3287 } 3288 func (*UnimplementedAPIServer) Deactivate(ctx context.Context, req *DeactivateRequest) (*DeactivateResponse, error) { 3289 return nil, status.Errorf(codes.Unimplemented, "method Deactivate not implemented") 3290 } 3291 func (*UnimplementedAPIServer) GetConfiguration(ctx context.Context, req *GetConfigurationRequest) (*GetConfigurationResponse, error) { 3292 return nil, status.Errorf(codes.Unimplemented, "method GetConfiguration not implemented") 3293 } 3294 func (*UnimplementedAPIServer) SetConfiguration(ctx context.Context, req *SetConfigurationRequest) (*SetConfigurationResponse, error) { 3295 return nil, status.Errorf(codes.Unimplemented, "method SetConfiguration not implemented") 3296 } 3297 func (*UnimplementedAPIServer) GetAdmins(ctx context.Context, req *GetAdminsRequest) (*GetAdminsResponse, error) { 3298 return nil, status.Errorf(codes.Unimplemented, "method GetAdmins not implemented") 3299 } 3300 func (*UnimplementedAPIServer) ModifyAdmins(ctx context.Context, req *ModifyAdminsRequest) (*ModifyAdminsResponse, error) { 3301 return nil, status.Errorf(codes.Unimplemented, "method ModifyAdmins not implemented") 3302 } 3303 func (*UnimplementedAPIServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error) { 3304 return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented") 3305 } 3306 func (*UnimplementedAPIServer) Authorize(ctx context.Context, req *AuthorizeRequest) (*AuthorizeResponse, error) { 3307 return nil, status.Errorf(codes.Unimplemented, "method Authorize not implemented") 3308 } 3309 func (*UnimplementedAPIServer) WhoAmI(ctx context.Context, req *WhoAmIRequest) (*WhoAmIResponse, error) { 3310 return nil, status.Errorf(codes.Unimplemented, "method WhoAmI not implemented") 3311 } 3312 func (*UnimplementedAPIServer) GetScope(ctx context.Context, req *GetScopeRequest) (*GetScopeResponse, error) { 3313 return nil, status.Errorf(codes.Unimplemented, "method GetScope not implemented") 3314 } 3315 func (*UnimplementedAPIServer) SetScope(ctx context.Context, req *SetScopeRequest) (*SetScopeResponse, error) { 3316 return nil, status.Errorf(codes.Unimplemented, "method SetScope not implemented") 3317 } 3318 func (*UnimplementedAPIServer) GetACL(ctx context.Context, req *GetACLRequest) (*GetACLResponse, error) { 3319 return nil, status.Errorf(codes.Unimplemented, "method GetACL not implemented") 3320 } 3321 func (*UnimplementedAPIServer) SetACL(ctx context.Context, req *SetACLRequest) (*SetACLResponse, error) { 3322 return nil, status.Errorf(codes.Unimplemented, "method SetACL not implemented") 3323 } 3324 func (*UnimplementedAPIServer) GetAuthToken(ctx context.Context, req *GetAuthTokenRequest) (*GetAuthTokenResponse, error) { 3325 return nil, status.Errorf(codes.Unimplemented, "method GetAuthToken not implemented") 3326 } 3327 func (*UnimplementedAPIServer) ExtendAuthToken(ctx context.Context, req *ExtendAuthTokenRequest) (*ExtendAuthTokenResponse, error) { 3328 return nil, status.Errorf(codes.Unimplemented, "method ExtendAuthToken not implemented") 3329 } 3330 func (*UnimplementedAPIServer) RevokeAuthToken(ctx context.Context, req *RevokeAuthTokenRequest) (*RevokeAuthTokenResponse, error) { 3331 return nil, status.Errorf(codes.Unimplemented, "method RevokeAuthToken not implemented") 3332 } 3333 func (*UnimplementedAPIServer) SetGroupsForUser(ctx context.Context, req *SetGroupsForUserRequest) (*SetGroupsForUserResponse, error) { 3334 return nil, status.Errorf(codes.Unimplemented, "method SetGroupsForUser not implemented") 3335 } 3336 func (*UnimplementedAPIServer) ModifyMembers(ctx context.Context, req *ModifyMembersRequest) (*ModifyMembersResponse, error) { 3337 return nil, status.Errorf(codes.Unimplemented, "method ModifyMembers not implemented") 3338 } 3339 func (*UnimplementedAPIServer) GetGroups(ctx context.Context, req *GetGroupsRequest) (*GetGroupsResponse, error) { 3340 return nil, status.Errorf(codes.Unimplemented, "method GetGroups not implemented") 3341 } 3342 func (*UnimplementedAPIServer) GetUsers(ctx context.Context, req *GetUsersRequest) (*GetUsersResponse, error) { 3343 return nil, status.Errorf(codes.Unimplemented, "method GetUsers not implemented") 3344 } 3345 func (*UnimplementedAPIServer) GetOneTimePassword(ctx context.Context, req *GetOneTimePasswordRequest) (*GetOneTimePasswordResponse, error) { 3346 return nil, status.Errorf(codes.Unimplemented, "method GetOneTimePassword not implemented") 3347 } 3348 3349 func RegisterAPIServer(s *grpc.Server, srv APIServer) { 3350 s.RegisterService(&_API_serviceDesc, srv) 3351 } 3352 3353 func _API_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3354 in := new(ActivateRequest) 3355 if err := dec(in); err != nil { 3356 return nil, err 3357 } 3358 if interceptor == nil { 3359 return srv.(APIServer).Activate(ctx, in) 3360 } 3361 info := &grpc.UnaryServerInfo{ 3362 Server: srv, 3363 FullMethod: "/auth_1_7.API/Activate", 3364 } 3365 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3366 return srv.(APIServer).Activate(ctx, req.(*ActivateRequest)) 3367 } 3368 return interceptor(ctx, in, info, handler) 3369 } 3370 3371 func _API_Deactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3372 in := new(DeactivateRequest) 3373 if err := dec(in); err != nil { 3374 return nil, err 3375 } 3376 if interceptor == nil { 3377 return srv.(APIServer).Deactivate(ctx, in) 3378 } 3379 info := &grpc.UnaryServerInfo{ 3380 Server: srv, 3381 FullMethod: "/auth_1_7.API/Deactivate", 3382 } 3383 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3384 return srv.(APIServer).Deactivate(ctx, req.(*DeactivateRequest)) 3385 } 3386 return interceptor(ctx, in, info, handler) 3387 } 3388 3389 func _API_GetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3390 in := new(GetConfigurationRequest) 3391 if err := dec(in); err != nil { 3392 return nil, err 3393 } 3394 if interceptor == nil { 3395 return srv.(APIServer).GetConfiguration(ctx, in) 3396 } 3397 info := &grpc.UnaryServerInfo{ 3398 Server: srv, 3399 FullMethod: "/auth_1_7.API/GetConfiguration", 3400 } 3401 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3402 return srv.(APIServer).GetConfiguration(ctx, req.(*GetConfigurationRequest)) 3403 } 3404 return interceptor(ctx, in, info, handler) 3405 } 3406 3407 func _API_SetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3408 in := new(SetConfigurationRequest) 3409 if err := dec(in); err != nil { 3410 return nil, err 3411 } 3412 if interceptor == nil { 3413 return srv.(APIServer).SetConfiguration(ctx, in) 3414 } 3415 info := &grpc.UnaryServerInfo{ 3416 Server: srv, 3417 FullMethod: "/auth_1_7.API/SetConfiguration", 3418 } 3419 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3420 return srv.(APIServer).SetConfiguration(ctx, req.(*SetConfigurationRequest)) 3421 } 3422 return interceptor(ctx, in, info, handler) 3423 } 3424 3425 func _API_GetAdmins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3426 in := new(GetAdminsRequest) 3427 if err := dec(in); err != nil { 3428 return nil, err 3429 } 3430 if interceptor == nil { 3431 return srv.(APIServer).GetAdmins(ctx, in) 3432 } 3433 info := &grpc.UnaryServerInfo{ 3434 Server: srv, 3435 FullMethod: "/auth_1_7.API/GetAdmins", 3436 } 3437 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3438 return srv.(APIServer).GetAdmins(ctx, req.(*GetAdminsRequest)) 3439 } 3440 return interceptor(ctx, in, info, handler) 3441 } 3442 3443 func _API_ModifyAdmins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3444 in := new(ModifyAdminsRequest) 3445 if err := dec(in); err != nil { 3446 return nil, err 3447 } 3448 if interceptor == nil { 3449 return srv.(APIServer).ModifyAdmins(ctx, in) 3450 } 3451 info := &grpc.UnaryServerInfo{ 3452 Server: srv, 3453 FullMethod: "/auth_1_7.API/ModifyAdmins", 3454 } 3455 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3456 return srv.(APIServer).ModifyAdmins(ctx, req.(*ModifyAdminsRequest)) 3457 } 3458 return interceptor(ctx, in, info, handler) 3459 } 3460 3461 func _API_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3462 in := new(AuthenticateRequest) 3463 if err := dec(in); err != nil { 3464 return nil, err 3465 } 3466 if interceptor == nil { 3467 return srv.(APIServer).Authenticate(ctx, in) 3468 } 3469 info := &grpc.UnaryServerInfo{ 3470 Server: srv, 3471 FullMethod: "/auth_1_7.API/Authenticate", 3472 } 3473 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3474 return srv.(APIServer).Authenticate(ctx, req.(*AuthenticateRequest)) 3475 } 3476 return interceptor(ctx, in, info, handler) 3477 } 3478 3479 func _API_Authorize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3480 in := new(AuthorizeRequest) 3481 if err := dec(in); err != nil { 3482 return nil, err 3483 } 3484 if interceptor == nil { 3485 return srv.(APIServer).Authorize(ctx, in) 3486 } 3487 info := &grpc.UnaryServerInfo{ 3488 Server: srv, 3489 FullMethod: "/auth_1_7.API/Authorize", 3490 } 3491 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3492 return srv.(APIServer).Authorize(ctx, req.(*AuthorizeRequest)) 3493 } 3494 return interceptor(ctx, in, info, handler) 3495 } 3496 3497 func _API_WhoAmI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3498 in := new(WhoAmIRequest) 3499 if err := dec(in); err != nil { 3500 return nil, err 3501 } 3502 if interceptor == nil { 3503 return srv.(APIServer).WhoAmI(ctx, in) 3504 } 3505 info := &grpc.UnaryServerInfo{ 3506 Server: srv, 3507 FullMethod: "/auth_1_7.API/WhoAmI", 3508 } 3509 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3510 return srv.(APIServer).WhoAmI(ctx, req.(*WhoAmIRequest)) 3511 } 3512 return interceptor(ctx, in, info, handler) 3513 } 3514 3515 func _API_GetScope_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3516 in := new(GetScopeRequest) 3517 if err := dec(in); err != nil { 3518 return nil, err 3519 } 3520 if interceptor == nil { 3521 return srv.(APIServer).GetScope(ctx, in) 3522 } 3523 info := &grpc.UnaryServerInfo{ 3524 Server: srv, 3525 FullMethod: "/auth_1_7.API/GetScope", 3526 } 3527 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3528 return srv.(APIServer).GetScope(ctx, req.(*GetScopeRequest)) 3529 } 3530 return interceptor(ctx, in, info, handler) 3531 } 3532 3533 func _API_SetScope_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3534 in := new(SetScopeRequest) 3535 if err := dec(in); err != nil { 3536 return nil, err 3537 } 3538 if interceptor == nil { 3539 return srv.(APIServer).SetScope(ctx, in) 3540 } 3541 info := &grpc.UnaryServerInfo{ 3542 Server: srv, 3543 FullMethod: "/auth_1_7.API/SetScope", 3544 } 3545 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3546 return srv.(APIServer).SetScope(ctx, req.(*SetScopeRequest)) 3547 } 3548 return interceptor(ctx, in, info, handler) 3549 } 3550 3551 func _API_GetACL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3552 in := new(GetACLRequest) 3553 if err := dec(in); err != nil { 3554 return nil, err 3555 } 3556 if interceptor == nil { 3557 return srv.(APIServer).GetACL(ctx, in) 3558 } 3559 info := &grpc.UnaryServerInfo{ 3560 Server: srv, 3561 FullMethod: "/auth_1_7.API/GetACL", 3562 } 3563 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3564 return srv.(APIServer).GetACL(ctx, req.(*GetACLRequest)) 3565 } 3566 return interceptor(ctx, in, info, handler) 3567 } 3568 3569 func _API_SetACL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3570 in := new(SetACLRequest) 3571 if err := dec(in); err != nil { 3572 return nil, err 3573 } 3574 if interceptor == nil { 3575 return srv.(APIServer).SetACL(ctx, in) 3576 } 3577 info := &grpc.UnaryServerInfo{ 3578 Server: srv, 3579 FullMethod: "/auth_1_7.API/SetACL", 3580 } 3581 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3582 return srv.(APIServer).SetACL(ctx, req.(*SetACLRequest)) 3583 } 3584 return interceptor(ctx, in, info, handler) 3585 } 3586 3587 func _API_GetAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3588 in := new(GetAuthTokenRequest) 3589 if err := dec(in); err != nil { 3590 return nil, err 3591 } 3592 if interceptor == nil { 3593 return srv.(APIServer).GetAuthToken(ctx, in) 3594 } 3595 info := &grpc.UnaryServerInfo{ 3596 Server: srv, 3597 FullMethod: "/auth_1_7.API/GetAuthToken", 3598 } 3599 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3600 return srv.(APIServer).GetAuthToken(ctx, req.(*GetAuthTokenRequest)) 3601 } 3602 return interceptor(ctx, in, info, handler) 3603 } 3604 3605 func _API_ExtendAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3606 in := new(ExtendAuthTokenRequest) 3607 if err := dec(in); err != nil { 3608 return nil, err 3609 } 3610 if interceptor == nil { 3611 return srv.(APIServer).ExtendAuthToken(ctx, in) 3612 } 3613 info := &grpc.UnaryServerInfo{ 3614 Server: srv, 3615 FullMethod: "/auth_1_7.API/ExtendAuthToken", 3616 } 3617 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3618 return srv.(APIServer).ExtendAuthToken(ctx, req.(*ExtendAuthTokenRequest)) 3619 } 3620 return interceptor(ctx, in, info, handler) 3621 } 3622 3623 func _API_RevokeAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3624 in := new(RevokeAuthTokenRequest) 3625 if err := dec(in); err != nil { 3626 return nil, err 3627 } 3628 if interceptor == nil { 3629 return srv.(APIServer).RevokeAuthToken(ctx, in) 3630 } 3631 info := &grpc.UnaryServerInfo{ 3632 Server: srv, 3633 FullMethod: "/auth_1_7.API/RevokeAuthToken", 3634 } 3635 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3636 return srv.(APIServer).RevokeAuthToken(ctx, req.(*RevokeAuthTokenRequest)) 3637 } 3638 return interceptor(ctx, in, info, handler) 3639 } 3640 3641 func _API_SetGroupsForUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3642 in := new(SetGroupsForUserRequest) 3643 if err := dec(in); err != nil { 3644 return nil, err 3645 } 3646 if interceptor == nil { 3647 return srv.(APIServer).SetGroupsForUser(ctx, in) 3648 } 3649 info := &grpc.UnaryServerInfo{ 3650 Server: srv, 3651 FullMethod: "/auth_1_7.API/SetGroupsForUser", 3652 } 3653 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3654 return srv.(APIServer).SetGroupsForUser(ctx, req.(*SetGroupsForUserRequest)) 3655 } 3656 return interceptor(ctx, in, info, handler) 3657 } 3658 3659 func _API_ModifyMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3660 in := new(ModifyMembersRequest) 3661 if err := dec(in); err != nil { 3662 return nil, err 3663 } 3664 if interceptor == nil { 3665 return srv.(APIServer).ModifyMembers(ctx, in) 3666 } 3667 info := &grpc.UnaryServerInfo{ 3668 Server: srv, 3669 FullMethod: "/auth_1_7.API/ModifyMembers", 3670 } 3671 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3672 return srv.(APIServer).ModifyMembers(ctx, req.(*ModifyMembersRequest)) 3673 } 3674 return interceptor(ctx, in, info, handler) 3675 } 3676 3677 func _API_GetGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3678 in := new(GetGroupsRequest) 3679 if err := dec(in); err != nil { 3680 return nil, err 3681 } 3682 if interceptor == nil { 3683 return srv.(APIServer).GetGroups(ctx, in) 3684 } 3685 info := &grpc.UnaryServerInfo{ 3686 Server: srv, 3687 FullMethod: "/auth_1_7.API/GetGroups", 3688 } 3689 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3690 return srv.(APIServer).GetGroups(ctx, req.(*GetGroupsRequest)) 3691 } 3692 return interceptor(ctx, in, info, handler) 3693 } 3694 3695 func _API_GetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3696 in := new(GetUsersRequest) 3697 if err := dec(in); err != nil { 3698 return nil, err 3699 } 3700 if interceptor == nil { 3701 return srv.(APIServer).GetUsers(ctx, in) 3702 } 3703 info := &grpc.UnaryServerInfo{ 3704 Server: srv, 3705 FullMethod: "/auth_1_7.API/GetUsers", 3706 } 3707 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3708 return srv.(APIServer).GetUsers(ctx, req.(*GetUsersRequest)) 3709 } 3710 return interceptor(ctx, in, info, handler) 3711 } 3712 3713 func _API_GetOneTimePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 3714 in := new(GetOneTimePasswordRequest) 3715 if err := dec(in); err != nil { 3716 return nil, err 3717 } 3718 if interceptor == nil { 3719 return srv.(APIServer).GetOneTimePassword(ctx, in) 3720 } 3721 info := &grpc.UnaryServerInfo{ 3722 Server: srv, 3723 FullMethod: "/auth_1_7.API/GetOneTimePassword", 3724 } 3725 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 3726 return srv.(APIServer).GetOneTimePassword(ctx, req.(*GetOneTimePasswordRequest)) 3727 } 3728 return interceptor(ctx, in, info, handler) 3729 } 3730 3731 var _API_serviceDesc = grpc.ServiceDesc{ 3732 ServiceName: "auth_1_7.API", 3733 HandlerType: (*APIServer)(nil), 3734 Methods: []grpc.MethodDesc{ 3735 { 3736 MethodName: "Activate", 3737 Handler: _API_Activate_Handler, 3738 }, 3739 { 3740 MethodName: "Deactivate", 3741 Handler: _API_Deactivate_Handler, 3742 }, 3743 { 3744 MethodName: "GetConfiguration", 3745 Handler: _API_GetConfiguration_Handler, 3746 }, 3747 { 3748 MethodName: "SetConfiguration", 3749 Handler: _API_SetConfiguration_Handler, 3750 }, 3751 { 3752 MethodName: "GetAdmins", 3753 Handler: _API_GetAdmins_Handler, 3754 }, 3755 { 3756 MethodName: "ModifyAdmins", 3757 Handler: _API_ModifyAdmins_Handler, 3758 }, 3759 { 3760 MethodName: "Authenticate", 3761 Handler: _API_Authenticate_Handler, 3762 }, 3763 { 3764 MethodName: "Authorize", 3765 Handler: _API_Authorize_Handler, 3766 }, 3767 { 3768 MethodName: "WhoAmI", 3769 Handler: _API_WhoAmI_Handler, 3770 }, 3771 { 3772 MethodName: "GetScope", 3773 Handler: _API_GetScope_Handler, 3774 }, 3775 { 3776 MethodName: "SetScope", 3777 Handler: _API_SetScope_Handler, 3778 }, 3779 { 3780 MethodName: "GetACL", 3781 Handler: _API_GetACL_Handler, 3782 }, 3783 { 3784 MethodName: "SetACL", 3785 Handler: _API_SetACL_Handler, 3786 }, 3787 { 3788 MethodName: "GetAuthToken", 3789 Handler: _API_GetAuthToken_Handler, 3790 }, 3791 { 3792 MethodName: "ExtendAuthToken", 3793 Handler: _API_ExtendAuthToken_Handler, 3794 }, 3795 { 3796 MethodName: "RevokeAuthToken", 3797 Handler: _API_RevokeAuthToken_Handler, 3798 }, 3799 { 3800 MethodName: "SetGroupsForUser", 3801 Handler: _API_SetGroupsForUser_Handler, 3802 }, 3803 { 3804 MethodName: "ModifyMembers", 3805 Handler: _API_ModifyMembers_Handler, 3806 }, 3807 { 3808 MethodName: "GetGroups", 3809 Handler: _API_GetGroups_Handler, 3810 }, 3811 { 3812 MethodName: "GetUsers", 3813 Handler: _API_GetUsers_Handler, 3814 }, 3815 { 3816 MethodName: "GetOneTimePassword", 3817 Handler: _API_GetOneTimePassword_Handler, 3818 }, 3819 }, 3820 Streams: []grpc.StreamDesc{}, 3821 Metadata: "client/admin/v1_7/auth/auth.proto", 3822 } 3823 3824 func (m *ActivateRequest) Marshal() (dAtA []byte, err error) { 3825 size := m.Size() 3826 dAtA = make([]byte, size) 3827 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3828 if err != nil { 3829 return nil, err 3830 } 3831 return dAtA[:n], nil 3832 } 3833 3834 func (m *ActivateRequest) MarshalTo(dAtA []byte) (int, error) { 3835 size := m.Size() 3836 return m.MarshalToSizedBuffer(dAtA[:size]) 3837 } 3838 3839 func (m *ActivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3840 i := len(dAtA) 3841 _ = i 3842 var l int 3843 _ = l 3844 if m.XXX_unrecognized != nil { 3845 i -= len(m.XXX_unrecognized) 3846 copy(dAtA[i:], m.XXX_unrecognized) 3847 } 3848 if len(m.Subject) > 0 { 3849 i -= len(m.Subject) 3850 copy(dAtA[i:], m.Subject) 3851 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 3852 i-- 3853 dAtA[i] = 0x12 3854 } 3855 if len(m.GitHubToken) > 0 { 3856 i -= len(m.GitHubToken) 3857 copy(dAtA[i:], m.GitHubToken) 3858 i = encodeVarintAuth(dAtA, i, uint64(len(m.GitHubToken))) 3859 i-- 3860 dAtA[i] = 0xa 3861 } 3862 return len(dAtA) - i, nil 3863 } 3864 3865 func (m *ActivateResponse) Marshal() (dAtA []byte, err error) { 3866 size := m.Size() 3867 dAtA = make([]byte, size) 3868 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3869 if err != nil { 3870 return nil, err 3871 } 3872 return dAtA[:n], nil 3873 } 3874 3875 func (m *ActivateResponse) MarshalTo(dAtA []byte) (int, error) { 3876 size := m.Size() 3877 return m.MarshalToSizedBuffer(dAtA[:size]) 3878 } 3879 3880 func (m *ActivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3881 i := len(dAtA) 3882 _ = i 3883 var l int 3884 _ = l 3885 if m.XXX_unrecognized != nil { 3886 i -= len(m.XXX_unrecognized) 3887 copy(dAtA[i:], m.XXX_unrecognized) 3888 } 3889 if len(m.PachToken) > 0 { 3890 i -= len(m.PachToken) 3891 copy(dAtA[i:], m.PachToken) 3892 i = encodeVarintAuth(dAtA, i, uint64(len(m.PachToken))) 3893 i-- 3894 dAtA[i] = 0xa 3895 } 3896 return len(dAtA) - i, nil 3897 } 3898 3899 func (m *DeactivateRequest) Marshal() (dAtA []byte, err error) { 3900 size := m.Size() 3901 dAtA = make([]byte, size) 3902 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3903 if err != nil { 3904 return nil, err 3905 } 3906 return dAtA[:n], nil 3907 } 3908 3909 func (m *DeactivateRequest) MarshalTo(dAtA []byte) (int, error) { 3910 size := m.Size() 3911 return m.MarshalToSizedBuffer(dAtA[:size]) 3912 } 3913 3914 func (m *DeactivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3915 i := len(dAtA) 3916 _ = i 3917 var l int 3918 _ = l 3919 if m.XXX_unrecognized != nil { 3920 i -= len(m.XXX_unrecognized) 3921 copy(dAtA[i:], m.XXX_unrecognized) 3922 } 3923 return len(dAtA) - i, nil 3924 } 3925 3926 func (m *DeactivateResponse) Marshal() (dAtA []byte, err error) { 3927 size := m.Size() 3928 dAtA = make([]byte, size) 3929 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3930 if err != nil { 3931 return nil, err 3932 } 3933 return dAtA[:n], nil 3934 } 3935 3936 func (m *DeactivateResponse) MarshalTo(dAtA []byte) (int, error) { 3937 size := m.Size() 3938 return m.MarshalToSizedBuffer(dAtA[:size]) 3939 } 3940 3941 func (m *DeactivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3942 i := len(dAtA) 3943 _ = i 3944 var l int 3945 _ = l 3946 if m.XXX_unrecognized != nil { 3947 i -= len(m.XXX_unrecognized) 3948 copy(dAtA[i:], m.XXX_unrecognized) 3949 } 3950 return len(dAtA) - i, nil 3951 } 3952 3953 func (m *IDProvider) Marshal() (dAtA []byte, err error) { 3954 size := m.Size() 3955 dAtA = make([]byte, size) 3956 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3957 if err != nil { 3958 return nil, err 3959 } 3960 return dAtA[:n], nil 3961 } 3962 3963 func (m *IDProvider) MarshalTo(dAtA []byte) (int, error) { 3964 size := m.Size() 3965 return m.MarshalToSizedBuffer(dAtA[:size]) 3966 } 3967 3968 func (m *IDProvider) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3969 i := len(dAtA) 3970 _ = i 3971 var l int 3972 _ = l 3973 if m.XXX_unrecognized != nil { 3974 i -= len(m.XXX_unrecognized) 3975 copy(dAtA[i:], m.XXX_unrecognized) 3976 } 3977 if m.SAML != nil { 3978 { 3979 size, err := m.SAML.MarshalToSizedBuffer(dAtA[:i]) 3980 if err != nil { 3981 return 0, err 3982 } 3983 i -= size 3984 i = encodeVarintAuth(dAtA, i, uint64(size)) 3985 } 3986 i-- 3987 dAtA[i] = 0x1a 3988 } 3989 if len(m.Description) > 0 { 3990 i -= len(m.Description) 3991 copy(dAtA[i:], m.Description) 3992 i = encodeVarintAuth(dAtA, i, uint64(len(m.Description))) 3993 i-- 3994 dAtA[i] = 0x12 3995 } 3996 if len(m.Name) > 0 { 3997 i -= len(m.Name) 3998 copy(dAtA[i:], m.Name) 3999 i = encodeVarintAuth(dAtA, i, uint64(len(m.Name))) 4000 i-- 4001 dAtA[i] = 0xa 4002 } 4003 return len(dAtA) - i, nil 4004 } 4005 4006 func (m *IDProvider_SAMLOptions) Marshal() (dAtA []byte, err error) { 4007 size := m.Size() 4008 dAtA = make([]byte, size) 4009 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4010 if err != nil { 4011 return nil, err 4012 } 4013 return dAtA[:n], nil 4014 } 4015 4016 func (m *IDProvider_SAMLOptions) MarshalTo(dAtA []byte) (int, error) { 4017 size := m.Size() 4018 return m.MarshalToSizedBuffer(dAtA[:size]) 4019 } 4020 4021 func (m *IDProvider_SAMLOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4022 i := len(dAtA) 4023 _ = i 4024 var l int 4025 _ = l 4026 if m.XXX_unrecognized != nil { 4027 i -= len(m.XXX_unrecognized) 4028 copy(dAtA[i:], m.XXX_unrecognized) 4029 } 4030 if len(m.GroupAttribute) > 0 { 4031 i -= len(m.GroupAttribute) 4032 copy(dAtA[i:], m.GroupAttribute) 4033 i = encodeVarintAuth(dAtA, i, uint64(len(m.GroupAttribute))) 4034 i-- 4035 dAtA[i] = 0x1a 4036 } 4037 if len(m.MetadataXML) > 0 { 4038 i -= len(m.MetadataXML) 4039 copy(dAtA[i:], m.MetadataXML) 4040 i = encodeVarintAuth(dAtA, i, uint64(len(m.MetadataXML))) 4041 i-- 4042 dAtA[i] = 0x12 4043 } 4044 if len(m.MetadataURL) > 0 { 4045 i -= len(m.MetadataURL) 4046 copy(dAtA[i:], m.MetadataURL) 4047 i = encodeVarintAuth(dAtA, i, uint64(len(m.MetadataURL))) 4048 i-- 4049 dAtA[i] = 0xa 4050 } 4051 return len(dAtA) - i, nil 4052 } 4053 4054 func (m *AuthConfig) Marshal() (dAtA []byte, err error) { 4055 size := m.Size() 4056 dAtA = make([]byte, size) 4057 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4058 if err != nil { 4059 return nil, err 4060 } 4061 return dAtA[:n], nil 4062 } 4063 4064 func (m *AuthConfig) MarshalTo(dAtA []byte) (int, error) { 4065 size := m.Size() 4066 return m.MarshalToSizedBuffer(dAtA[:size]) 4067 } 4068 4069 func (m *AuthConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4070 i := len(dAtA) 4071 _ = i 4072 var l int 4073 _ = l 4074 if m.XXX_unrecognized != nil { 4075 i -= len(m.XXX_unrecognized) 4076 copy(dAtA[i:], m.XXX_unrecognized) 4077 } 4078 if m.SAMLServiceOptions != nil { 4079 { 4080 size, err := m.SAMLServiceOptions.MarshalToSizedBuffer(dAtA[:i]) 4081 if err != nil { 4082 return 0, err 4083 } 4084 i -= size 4085 i = encodeVarintAuth(dAtA, i, uint64(size)) 4086 } 4087 i-- 4088 dAtA[i] = 0x1a 4089 } 4090 if len(m.IDProviders) > 0 { 4091 for iNdEx := len(m.IDProviders) - 1; iNdEx >= 0; iNdEx-- { 4092 { 4093 size, err := m.IDProviders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4094 if err != nil { 4095 return 0, err 4096 } 4097 i -= size 4098 i = encodeVarintAuth(dAtA, i, uint64(size)) 4099 } 4100 i-- 4101 dAtA[i] = 0x12 4102 } 4103 } 4104 if m.LiveConfigVersion != 0 { 4105 i = encodeVarintAuth(dAtA, i, uint64(m.LiveConfigVersion)) 4106 i-- 4107 dAtA[i] = 0x8 4108 } 4109 return len(dAtA) - i, nil 4110 } 4111 4112 func (m *AuthConfig_SAMLServiceOptions) Marshal() (dAtA []byte, err error) { 4113 size := m.Size() 4114 dAtA = make([]byte, size) 4115 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4116 if err != nil { 4117 return nil, err 4118 } 4119 return dAtA[:n], nil 4120 } 4121 4122 func (m *AuthConfig_SAMLServiceOptions) MarshalTo(dAtA []byte) (int, error) { 4123 size := m.Size() 4124 return m.MarshalToSizedBuffer(dAtA[:size]) 4125 } 4126 4127 func (m *AuthConfig_SAMLServiceOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4128 i := len(dAtA) 4129 _ = i 4130 var l int 4131 _ = l 4132 if m.XXX_unrecognized != nil { 4133 i -= len(m.XXX_unrecognized) 4134 copy(dAtA[i:], m.XXX_unrecognized) 4135 } 4136 if m.DebugLogging { 4137 i-- 4138 if m.DebugLogging { 4139 dAtA[i] = 1 4140 } else { 4141 dAtA[i] = 0 4142 } 4143 i-- 4144 dAtA[i] = 0x28 4145 } 4146 if len(m.SessionDuration) > 0 { 4147 i -= len(m.SessionDuration) 4148 copy(dAtA[i:], m.SessionDuration) 4149 i = encodeVarintAuth(dAtA, i, uint64(len(m.SessionDuration))) 4150 i-- 4151 dAtA[i] = 0x22 4152 } 4153 if len(m.DashURL) > 0 { 4154 i -= len(m.DashURL) 4155 copy(dAtA[i:], m.DashURL) 4156 i = encodeVarintAuth(dAtA, i, uint64(len(m.DashURL))) 4157 i-- 4158 dAtA[i] = 0x1a 4159 } 4160 if len(m.MetadataURL) > 0 { 4161 i -= len(m.MetadataURL) 4162 copy(dAtA[i:], m.MetadataURL) 4163 i = encodeVarintAuth(dAtA, i, uint64(len(m.MetadataURL))) 4164 i-- 4165 dAtA[i] = 0x12 4166 } 4167 if len(m.ACSURL) > 0 { 4168 i -= len(m.ACSURL) 4169 copy(dAtA[i:], m.ACSURL) 4170 i = encodeVarintAuth(dAtA, i, uint64(len(m.ACSURL))) 4171 i-- 4172 dAtA[i] = 0xa 4173 } 4174 return len(dAtA) - i, nil 4175 } 4176 4177 func (m *GetConfigurationRequest) Marshal() (dAtA []byte, err error) { 4178 size := m.Size() 4179 dAtA = make([]byte, size) 4180 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4181 if err != nil { 4182 return nil, err 4183 } 4184 return dAtA[:n], nil 4185 } 4186 4187 func (m *GetConfigurationRequest) MarshalTo(dAtA []byte) (int, error) { 4188 size := m.Size() 4189 return m.MarshalToSizedBuffer(dAtA[:size]) 4190 } 4191 4192 func (m *GetConfigurationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4193 i := len(dAtA) 4194 _ = i 4195 var l int 4196 _ = l 4197 if m.XXX_unrecognized != nil { 4198 i -= len(m.XXX_unrecognized) 4199 copy(dAtA[i:], m.XXX_unrecognized) 4200 } 4201 return len(dAtA) - i, nil 4202 } 4203 4204 func (m *GetConfigurationResponse) Marshal() (dAtA []byte, err error) { 4205 size := m.Size() 4206 dAtA = make([]byte, size) 4207 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4208 if err != nil { 4209 return nil, err 4210 } 4211 return dAtA[:n], nil 4212 } 4213 4214 func (m *GetConfigurationResponse) MarshalTo(dAtA []byte) (int, error) { 4215 size := m.Size() 4216 return m.MarshalToSizedBuffer(dAtA[:size]) 4217 } 4218 4219 func (m *GetConfigurationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4220 i := len(dAtA) 4221 _ = i 4222 var l int 4223 _ = l 4224 if m.XXX_unrecognized != nil { 4225 i -= len(m.XXX_unrecognized) 4226 copy(dAtA[i:], m.XXX_unrecognized) 4227 } 4228 if m.Configuration != nil { 4229 { 4230 size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) 4231 if err != nil { 4232 return 0, err 4233 } 4234 i -= size 4235 i = encodeVarintAuth(dAtA, i, uint64(size)) 4236 } 4237 i-- 4238 dAtA[i] = 0xa 4239 } 4240 return len(dAtA) - i, nil 4241 } 4242 4243 func (m *SetConfigurationRequest) Marshal() (dAtA []byte, err error) { 4244 size := m.Size() 4245 dAtA = make([]byte, size) 4246 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4247 if err != nil { 4248 return nil, err 4249 } 4250 return dAtA[:n], nil 4251 } 4252 4253 func (m *SetConfigurationRequest) MarshalTo(dAtA []byte) (int, error) { 4254 size := m.Size() 4255 return m.MarshalToSizedBuffer(dAtA[:size]) 4256 } 4257 4258 func (m *SetConfigurationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4259 i := len(dAtA) 4260 _ = i 4261 var l int 4262 _ = l 4263 if m.XXX_unrecognized != nil { 4264 i -= len(m.XXX_unrecognized) 4265 copy(dAtA[i:], m.XXX_unrecognized) 4266 } 4267 if m.Configuration != nil { 4268 { 4269 size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) 4270 if err != nil { 4271 return 0, err 4272 } 4273 i -= size 4274 i = encodeVarintAuth(dAtA, i, uint64(size)) 4275 } 4276 i-- 4277 dAtA[i] = 0xa 4278 } 4279 return len(dAtA) - i, nil 4280 } 4281 4282 func (m *SetConfigurationResponse) Marshal() (dAtA []byte, err error) { 4283 size := m.Size() 4284 dAtA = make([]byte, size) 4285 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4286 if err != nil { 4287 return nil, err 4288 } 4289 return dAtA[:n], nil 4290 } 4291 4292 func (m *SetConfigurationResponse) MarshalTo(dAtA []byte) (int, error) { 4293 size := m.Size() 4294 return m.MarshalToSizedBuffer(dAtA[:size]) 4295 } 4296 4297 func (m *SetConfigurationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4298 i := len(dAtA) 4299 _ = i 4300 var l int 4301 _ = l 4302 if m.XXX_unrecognized != nil { 4303 i -= len(m.XXX_unrecognized) 4304 copy(dAtA[i:], m.XXX_unrecognized) 4305 } 4306 return len(dAtA) - i, nil 4307 } 4308 4309 func (m *GetAdminsRequest) Marshal() (dAtA []byte, err error) { 4310 size := m.Size() 4311 dAtA = make([]byte, size) 4312 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4313 if err != nil { 4314 return nil, err 4315 } 4316 return dAtA[:n], nil 4317 } 4318 4319 func (m *GetAdminsRequest) MarshalTo(dAtA []byte) (int, error) { 4320 size := m.Size() 4321 return m.MarshalToSizedBuffer(dAtA[:size]) 4322 } 4323 4324 func (m *GetAdminsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4325 i := len(dAtA) 4326 _ = i 4327 var l int 4328 _ = l 4329 if m.XXX_unrecognized != nil { 4330 i -= len(m.XXX_unrecognized) 4331 copy(dAtA[i:], m.XXX_unrecognized) 4332 } 4333 return len(dAtA) - i, nil 4334 } 4335 4336 func (m *GetAdminsResponse) Marshal() (dAtA []byte, err error) { 4337 size := m.Size() 4338 dAtA = make([]byte, size) 4339 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4340 if err != nil { 4341 return nil, err 4342 } 4343 return dAtA[:n], nil 4344 } 4345 4346 func (m *GetAdminsResponse) MarshalTo(dAtA []byte) (int, error) { 4347 size := m.Size() 4348 return m.MarshalToSizedBuffer(dAtA[:size]) 4349 } 4350 4351 func (m *GetAdminsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4352 i := len(dAtA) 4353 _ = i 4354 var l int 4355 _ = l 4356 if m.XXX_unrecognized != nil { 4357 i -= len(m.XXX_unrecognized) 4358 copy(dAtA[i:], m.XXX_unrecognized) 4359 } 4360 if len(m.Admins) > 0 { 4361 for iNdEx := len(m.Admins) - 1; iNdEx >= 0; iNdEx-- { 4362 i -= len(m.Admins[iNdEx]) 4363 copy(dAtA[i:], m.Admins[iNdEx]) 4364 i = encodeVarintAuth(dAtA, i, uint64(len(m.Admins[iNdEx]))) 4365 i-- 4366 dAtA[i] = 0xa 4367 } 4368 } 4369 return len(dAtA) - i, nil 4370 } 4371 4372 func (m *ModifyAdminsRequest) Marshal() (dAtA []byte, err error) { 4373 size := m.Size() 4374 dAtA = make([]byte, size) 4375 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4376 if err != nil { 4377 return nil, err 4378 } 4379 return dAtA[:n], nil 4380 } 4381 4382 func (m *ModifyAdminsRequest) MarshalTo(dAtA []byte) (int, error) { 4383 size := m.Size() 4384 return m.MarshalToSizedBuffer(dAtA[:size]) 4385 } 4386 4387 func (m *ModifyAdminsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4388 i := len(dAtA) 4389 _ = i 4390 var l int 4391 _ = l 4392 if m.XXX_unrecognized != nil { 4393 i -= len(m.XXX_unrecognized) 4394 copy(dAtA[i:], m.XXX_unrecognized) 4395 } 4396 if len(m.Remove) > 0 { 4397 for iNdEx := len(m.Remove) - 1; iNdEx >= 0; iNdEx-- { 4398 i -= len(m.Remove[iNdEx]) 4399 copy(dAtA[i:], m.Remove[iNdEx]) 4400 i = encodeVarintAuth(dAtA, i, uint64(len(m.Remove[iNdEx]))) 4401 i-- 4402 dAtA[i] = 0x12 4403 } 4404 } 4405 if len(m.Add) > 0 { 4406 for iNdEx := len(m.Add) - 1; iNdEx >= 0; iNdEx-- { 4407 i -= len(m.Add[iNdEx]) 4408 copy(dAtA[i:], m.Add[iNdEx]) 4409 i = encodeVarintAuth(dAtA, i, uint64(len(m.Add[iNdEx]))) 4410 i-- 4411 dAtA[i] = 0xa 4412 } 4413 } 4414 return len(dAtA) - i, nil 4415 } 4416 4417 func (m *ModifyAdminsResponse) Marshal() (dAtA []byte, err error) { 4418 size := m.Size() 4419 dAtA = make([]byte, size) 4420 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4421 if err != nil { 4422 return nil, err 4423 } 4424 return dAtA[:n], nil 4425 } 4426 4427 func (m *ModifyAdminsResponse) MarshalTo(dAtA []byte) (int, error) { 4428 size := m.Size() 4429 return m.MarshalToSizedBuffer(dAtA[:size]) 4430 } 4431 4432 func (m *ModifyAdminsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4433 i := len(dAtA) 4434 _ = i 4435 var l int 4436 _ = l 4437 if m.XXX_unrecognized != nil { 4438 i -= len(m.XXX_unrecognized) 4439 copy(dAtA[i:], m.XXX_unrecognized) 4440 } 4441 return len(dAtA) - i, nil 4442 } 4443 4444 func (m *OTPInfo) Marshal() (dAtA []byte, err error) { 4445 size := m.Size() 4446 dAtA = make([]byte, size) 4447 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4448 if err != nil { 4449 return nil, err 4450 } 4451 return dAtA[:n], nil 4452 } 4453 4454 func (m *OTPInfo) MarshalTo(dAtA []byte) (int, error) { 4455 size := m.Size() 4456 return m.MarshalToSizedBuffer(dAtA[:size]) 4457 } 4458 4459 func (m *OTPInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4460 i := len(dAtA) 4461 _ = i 4462 var l int 4463 _ = l 4464 if m.XXX_unrecognized != nil { 4465 i -= len(m.XXX_unrecognized) 4466 copy(dAtA[i:], m.XXX_unrecognized) 4467 } 4468 if m.SessionExpiration != nil { 4469 { 4470 size, err := m.SessionExpiration.MarshalToSizedBuffer(dAtA[:i]) 4471 if err != nil { 4472 return 0, err 4473 } 4474 i -= size 4475 i = encodeVarintAuth(dAtA, i, uint64(size)) 4476 } 4477 i-- 4478 dAtA[i] = 0x12 4479 } 4480 if len(m.Subject) > 0 { 4481 i -= len(m.Subject) 4482 copy(dAtA[i:], m.Subject) 4483 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 4484 i-- 4485 dAtA[i] = 0xa 4486 } 4487 return len(dAtA) - i, nil 4488 } 4489 4490 func (m *TokenInfo) Marshal() (dAtA []byte, err error) { 4491 size := m.Size() 4492 dAtA = make([]byte, size) 4493 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4494 if err != nil { 4495 return nil, err 4496 } 4497 return dAtA[:n], nil 4498 } 4499 4500 func (m *TokenInfo) MarshalTo(dAtA []byte) (int, error) { 4501 size := m.Size() 4502 return m.MarshalToSizedBuffer(dAtA[:size]) 4503 } 4504 4505 func (m *TokenInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4506 i := len(dAtA) 4507 _ = i 4508 var l int 4509 _ = l 4510 if m.XXX_unrecognized != nil { 4511 i -= len(m.XXX_unrecognized) 4512 copy(dAtA[i:], m.XXX_unrecognized) 4513 } 4514 if m.Source != 0 { 4515 i = encodeVarintAuth(dAtA, i, uint64(m.Source)) 4516 i-- 4517 dAtA[i] = 0x10 4518 } 4519 if len(m.Subject) > 0 { 4520 i -= len(m.Subject) 4521 copy(dAtA[i:], m.Subject) 4522 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 4523 i-- 4524 dAtA[i] = 0xa 4525 } 4526 return len(dAtA) - i, nil 4527 } 4528 4529 func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error) { 4530 size := m.Size() 4531 dAtA = make([]byte, size) 4532 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4533 if err != nil { 4534 return nil, err 4535 } 4536 return dAtA[:n], nil 4537 } 4538 4539 func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error) { 4540 size := m.Size() 4541 return m.MarshalToSizedBuffer(dAtA[:size]) 4542 } 4543 4544 func (m *AuthenticateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4545 i := len(dAtA) 4546 _ = i 4547 var l int 4548 _ = l 4549 if m.XXX_unrecognized != nil { 4550 i -= len(m.XXX_unrecognized) 4551 copy(dAtA[i:], m.XXX_unrecognized) 4552 } 4553 if len(m.OneTimePassword) > 0 { 4554 i -= len(m.OneTimePassword) 4555 copy(dAtA[i:], m.OneTimePassword) 4556 i = encodeVarintAuth(dAtA, i, uint64(len(m.OneTimePassword))) 4557 i-- 4558 dAtA[i] = 0x12 4559 } 4560 if len(m.GitHubToken) > 0 { 4561 i -= len(m.GitHubToken) 4562 copy(dAtA[i:], m.GitHubToken) 4563 i = encodeVarintAuth(dAtA, i, uint64(len(m.GitHubToken))) 4564 i-- 4565 dAtA[i] = 0xa 4566 } 4567 return len(dAtA) - i, nil 4568 } 4569 4570 func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error) { 4571 size := m.Size() 4572 dAtA = make([]byte, size) 4573 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4574 if err != nil { 4575 return nil, err 4576 } 4577 return dAtA[:n], nil 4578 } 4579 4580 func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error) { 4581 size := m.Size() 4582 return m.MarshalToSizedBuffer(dAtA[:size]) 4583 } 4584 4585 func (m *AuthenticateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4586 i := len(dAtA) 4587 _ = i 4588 var l int 4589 _ = l 4590 if m.XXX_unrecognized != nil { 4591 i -= len(m.XXX_unrecognized) 4592 copy(dAtA[i:], m.XXX_unrecognized) 4593 } 4594 if len(m.PachToken) > 0 { 4595 i -= len(m.PachToken) 4596 copy(dAtA[i:], m.PachToken) 4597 i = encodeVarintAuth(dAtA, i, uint64(len(m.PachToken))) 4598 i-- 4599 dAtA[i] = 0xa 4600 } 4601 return len(dAtA) - i, nil 4602 } 4603 4604 func (m *WhoAmIRequest) Marshal() (dAtA []byte, err error) { 4605 size := m.Size() 4606 dAtA = make([]byte, size) 4607 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4608 if err != nil { 4609 return nil, err 4610 } 4611 return dAtA[:n], nil 4612 } 4613 4614 func (m *WhoAmIRequest) MarshalTo(dAtA []byte) (int, error) { 4615 size := m.Size() 4616 return m.MarshalToSizedBuffer(dAtA[:size]) 4617 } 4618 4619 func (m *WhoAmIRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4620 i := len(dAtA) 4621 _ = i 4622 var l int 4623 _ = l 4624 if m.XXX_unrecognized != nil { 4625 i -= len(m.XXX_unrecognized) 4626 copy(dAtA[i:], m.XXX_unrecognized) 4627 } 4628 return len(dAtA) - i, nil 4629 } 4630 4631 func (m *WhoAmIResponse) Marshal() (dAtA []byte, err error) { 4632 size := m.Size() 4633 dAtA = make([]byte, size) 4634 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4635 if err != nil { 4636 return nil, err 4637 } 4638 return dAtA[:n], nil 4639 } 4640 4641 func (m *WhoAmIResponse) MarshalTo(dAtA []byte) (int, error) { 4642 size := m.Size() 4643 return m.MarshalToSizedBuffer(dAtA[:size]) 4644 } 4645 4646 func (m *WhoAmIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4647 i := len(dAtA) 4648 _ = i 4649 var l int 4650 _ = l 4651 if m.XXX_unrecognized != nil { 4652 i -= len(m.XXX_unrecognized) 4653 copy(dAtA[i:], m.XXX_unrecognized) 4654 } 4655 if m.TTL != 0 { 4656 i = encodeVarintAuth(dAtA, i, uint64(m.TTL)) 4657 i-- 4658 dAtA[i] = 0x18 4659 } 4660 if m.IsAdmin { 4661 i-- 4662 if m.IsAdmin { 4663 dAtA[i] = 1 4664 } else { 4665 dAtA[i] = 0 4666 } 4667 i-- 4668 dAtA[i] = 0x10 4669 } 4670 if len(m.Username) > 0 { 4671 i -= len(m.Username) 4672 copy(dAtA[i:], m.Username) 4673 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 4674 i-- 4675 dAtA[i] = 0xa 4676 } 4677 return len(dAtA) - i, nil 4678 } 4679 4680 func (m *ACL) Marshal() (dAtA []byte, err error) { 4681 size := m.Size() 4682 dAtA = make([]byte, size) 4683 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4684 if err != nil { 4685 return nil, err 4686 } 4687 return dAtA[:n], nil 4688 } 4689 4690 func (m *ACL) MarshalTo(dAtA []byte) (int, error) { 4691 size := m.Size() 4692 return m.MarshalToSizedBuffer(dAtA[:size]) 4693 } 4694 4695 func (m *ACL) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4696 i := len(dAtA) 4697 _ = i 4698 var l int 4699 _ = l 4700 if m.XXX_unrecognized != nil { 4701 i -= len(m.XXX_unrecognized) 4702 copy(dAtA[i:], m.XXX_unrecognized) 4703 } 4704 if len(m.Entries) > 0 { 4705 for k := range m.Entries { 4706 v := m.Entries[k] 4707 baseI := i 4708 i = encodeVarintAuth(dAtA, i, uint64(v)) 4709 i-- 4710 dAtA[i] = 0x10 4711 i -= len(k) 4712 copy(dAtA[i:], k) 4713 i = encodeVarintAuth(dAtA, i, uint64(len(k))) 4714 i-- 4715 dAtA[i] = 0xa 4716 i = encodeVarintAuth(dAtA, i, uint64(baseI-i)) 4717 i-- 4718 dAtA[i] = 0xa 4719 } 4720 } 4721 return len(dAtA) - i, nil 4722 } 4723 4724 func (m *Users) Marshal() (dAtA []byte, err error) { 4725 size := m.Size() 4726 dAtA = make([]byte, size) 4727 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4728 if err != nil { 4729 return nil, err 4730 } 4731 return dAtA[:n], nil 4732 } 4733 4734 func (m *Users) MarshalTo(dAtA []byte) (int, error) { 4735 size := m.Size() 4736 return m.MarshalToSizedBuffer(dAtA[:size]) 4737 } 4738 4739 func (m *Users) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4740 i := len(dAtA) 4741 _ = i 4742 var l int 4743 _ = l 4744 if m.XXX_unrecognized != nil { 4745 i -= len(m.XXX_unrecognized) 4746 copy(dAtA[i:], m.XXX_unrecognized) 4747 } 4748 if len(m.Usernames) > 0 { 4749 for k := range m.Usernames { 4750 v := m.Usernames[k] 4751 baseI := i 4752 i-- 4753 if v { 4754 dAtA[i] = 1 4755 } else { 4756 dAtA[i] = 0 4757 } 4758 i-- 4759 dAtA[i] = 0x10 4760 i -= len(k) 4761 copy(dAtA[i:], k) 4762 i = encodeVarintAuth(dAtA, i, uint64(len(k))) 4763 i-- 4764 dAtA[i] = 0xa 4765 i = encodeVarintAuth(dAtA, i, uint64(baseI-i)) 4766 i-- 4767 dAtA[i] = 0xa 4768 } 4769 } 4770 return len(dAtA) - i, nil 4771 } 4772 4773 func (m *Groups) Marshal() (dAtA []byte, err error) { 4774 size := m.Size() 4775 dAtA = make([]byte, size) 4776 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4777 if err != nil { 4778 return nil, err 4779 } 4780 return dAtA[:n], nil 4781 } 4782 4783 func (m *Groups) MarshalTo(dAtA []byte) (int, error) { 4784 size := m.Size() 4785 return m.MarshalToSizedBuffer(dAtA[:size]) 4786 } 4787 4788 func (m *Groups) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4789 i := len(dAtA) 4790 _ = i 4791 var l int 4792 _ = l 4793 if m.XXX_unrecognized != nil { 4794 i -= len(m.XXX_unrecognized) 4795 copy(dAtA[i:], m.XXX_unrecognized) 4796 } 4797 if len(m.Groups) > 0 { 4798 for k := range m.Groups { 4799 v := m.Groups[k] 4800 baseI := i 4801 i-- 4802 if v { 4803 dAtA[i] = 1 4804 } else { 4805 dAtA[i] = 0 4806 } 4807 i-- 4808 dAtA[i] = 0x10 4809 i -= len(k) 4810 copy(dAtA[i:], k) 4811 i = encodeVarintAuth(dAtA, i, uint64(len(k))) 4812 i-- 4813 dAtA[i] = 0xa 4814 i = encodeVarintAuth(dAtA, i, uint64(baseI-i)) 4815 i-- 4816 dAtA[i] = 0xa 4817 } 4818 } 4819 return len(dAtA) - i, nil 4820 } 4821 4822 func (m *AuthorizeRequest) Marshal() (dAtA []byte, err error) { 4823 size := m.Size() 4824 dAtA = make([]byte, size) 4825 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4826 if err != nil { 4827 return nil, err 4828 } 4829 return dAtA[:n], nil 4830 } 4831 4832 func (m *AuthorizeRequest) MarshalTo(dAtA []byte) (int, error) { 4833 size := m.Size() 4834 return m.MarshalToSizedBuffer(dAtA[:size]) 4835 } 4836 4837 func (m *AuthorizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4838 i := len(dAtA) 4839 _ = i 4840 var l int 4841 _ = l 4842 if m.XXX_unrecognized != nil { 4843 i -= len(m.XXX_unrecognized) 4844 copy(dAtA[i:], m.XXX_unrecognized) 4845 } 4846 if m.Scope != 0 { 4847 i = encodeVarintAuth(dAtA, i, uint64(m.Scope)) 4848 i-- 4849 dAtA[i] = 0x10 4850 } 4851 if len(m.Repo) > 0 { 4852 i -= len(m.Repo) 4853 copy(dAtA[i:], m.Repo) 4854 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 4855 i-- 4856 dAtA[i] = 0xa 4857 } 4858 return len(dAtA) - i, nil 4859 } 4860 4861 func (m *AuthorizeResponse) Marshal() (dAtA []byte, err error) { 4862 size := m.Size() 4863 dAtA = make([]byte, size) 4864 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4865 if err != nil { 4866 return nil, err 4867 } 4868 return dAtA[:n], nil 4869 } 4870 4871 func (m *AuthorizeResponse) MarshalTo(dAtA []byte) (int, error) { 4872 size := m.Size() 4873 return m.MarshalToSizedBuffer(dAtA[:size]) 4874 } 4875 4876 func (m *AuthorizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4877 i := len(dAtA) 4878 _ = i 4879 var l int 4880 _ = l 4881 if m.XXX_unrecognized != nil { 4882 i -= len(m.XXX_unrecognized) 4883 copy(dAtA[i:], m.XXX_unrecognized) 4884 } 4885 if m.Authorized { 4886 i-- 4887 if m.Authorized { 4888 dAtA[i] = 1 4889 } else { 4890 dAtA[i] = 0 4891 } 4892 i-- 4893 dAtA[i] = 0x8 4894 } 4895 return len(dAtA) - i, nil 4896 } 4897 4898 func (m *GetScopeRequest) Marshal() (dAtA []byte, err error) { 4899 size := m.Size() 4900 dAtA = make([]byte, size) 4901 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4902 if err != nil { 4903 return nil, err 4904 } 4905 return dAtA[:n], nil 4906 } 4907 4908 func (m *GetScopeRequest) MarshalTo(dAtA []byte) (int, error) { 4909 size := m.Size() 4910 return m.MarshalToSizedBuffer(dAtA[:size]) 4911 } 4912 4913 func (m *GetScopeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4914 i := len(dAtA) 4915 _ = i 4916 var l int 4917 _ = l 4918 if m.XXX_unrecognized != nil { 4919 i -= len(m.XXX_unrecognized) 4920 copy(dAtA[i:], m.XXX_unrecognized) 4921 } 4922 if len(m.Repos) > 0 { 4923 for iNdEx := len(m.Repos) - 1; iNdEx >= 0; iNdEx-- { 4924 i -= len(m.Repos[iNdEx]) 4925 copy(dAtA[i:], m.Repos[iNdEx]) 4926 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repos[iNdEx]))) 4927 i-- 4928 dAtA[i] = 0x12 4929 } 4930 } 4931 if len(m.Username) > 0 { 4932 i -= len(m.Username) 4933 copy(dAtA[i:], m.Username) 4934 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 4935 i-- 4936 dAtA[i] = 0xa 4937 } 4938 return len(dAtA) - i, nil 4939 } 4940 4941 func (m *GetScopeResponse) Marshal() (dAtA []byte, err error) { 4942 size := m.Size() 4943 dAtA = make([]byte, size) 4944 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4945 if err != nil { 4946 return nil, err 4947 } 4948 return dAtA[:n], nil 4949 } 4950 4951 func (m *GetScopeResponse) MarshalTo(dAtA []byte) (int, error) { 4952 size := m.Size() 4953 return m.MarshalToSizedBuffer(dAtA[:size]) 4954 } 4955 4956 func (m *GetScopeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4957 i := len(dAtA) 4958 _ = i 4959 var l int 4960 _ = l 4961 if m.XXX_unrecognized != nil { 4962 i -= len(m.XXX_unrecognized) 4963 copy(dAtA[i:], m.XXX_unrecognized) 4964 } 4965 if len(m.Scopes) > 0 { 4966 dAtA7 := make([]byte, len(m.Scopes)*10) 4967 var j6 int 4968 for _, num := range m.Scopes { 4969 for num >= 1<<7 { 4970 dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) 4971 num >>= 7 4972 j6++ 4973 } 4974 dAtA7[j6] = uint8(num) 4975 j6++ 4976 } 4977 i -= j6 4978 copy(dAtA[i:], dAtA7[:j6]) 4979 i = encodeVarintAuth(dAtA, i, uint64(j6)) 4980 i-- 4981 dAtA[i] = 0xa 4982 } 4983 return len(dAtA) - i, nil 4984 } 4985 4986 func (m *SetScopeRequest) Marshal() (dAtA []byte, err error) { 4987 size := m.Size() 4988 dAtA = make([]byte, size) 4989 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4990 if err != nil { 4991 return nil, err 4992 } 4993 return dAtA[:n], nil 4994 } 4995 4996 func (m *SetScopeRequest) MarshalTo(dAtA []byte) (int, error) { 4997 size := m.Size() 4998 return m.MarshalToSizedBuffer(dAtA[:size]) 4999 } 5000 5001 func (m *SetScopeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5002 i := len(dAtA) 5003 _ = i 5004 var l int 5005 _ = l 5006 if m.XXX_unrecognized != nil { 5007 i -= len(m.XXX_unrecognized) 5008 copy(dAtA[i:], m.XXX_unrecognized) 5009 } 5010 if m.Scope != 0 { 5011 i = encodeVarintAuth(dAtA, i, uint64(m.Scope)) 5012 i-- 5013 dAtA[i] = 0x18 5014 } 5015 if len(m.Repo) > 0 { 5016 i -= len(m.Repo) 5017 copy(dAtA[i:], m.Repo) 5018 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 5019 i-- 5020 dAtA[i] = 0x12 5021 } 5022 if len(m.Username) > 0 { 5023 i -= len(m.Username) 5024 copy(dAtA[i:], m.Username) 5025 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 5026 i-- 5027 dAtA[i] = 0xa 5028 } 5029 return len(dAtA) - i, nil 5030 } 5031 5032 func (m *SetScopeResponse) Marshal() (dAtA []byte, err error) { 5033 size := m.Size() 5034 dAtA = make([]byte, size) 5035 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5036 if err != nil { 5037 return nil, err 5038 } 5039 return dAtA[:n], nil 5040 } 5041 5042 func (m *SetScopeResponse) MarshalTo(dAtA []byte) (int, error) { 5043 size := m.Size() 5044 return m.MarshalToSizedBuffer(dAtA[:size]) 5045 } 5046 5047 func (m *SetScopeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5048 i := len(dAtA) 5049 _ = i 5050 var l int 5051 _ = l 5052 if m.XXX_unrecognized != nil { 5053 i -= len(m.XXX_unrecognized) 5054 copy(dAtA[i:], m.XXX_unrecognized) 5055 } 5056 return len(dAtA) - i, nil 5057 } 5058 5059 func (m *GetACLRequest) Marshal() (dAtA []byte, err error) { 5060 size := m.Size() 5061 dAtA = make([]byte, size) 5062 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5063 if err != nil { 5064 return nil, err 5065 } 5066 return dAtA[:n], nil 5067 } 5068 5069 func (m *GetACLRequest) MarshalTo(dAtA []byte) (int, error) { 5070 size := m.Size() 5071 return m.MarshalToSizedBuffer(dAtA[:size]) 5072 } 5073 5074 func (m *GetACLRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5075 i := len(dAtA) 5076 _ = i 5077 var l int 5078 _ = l 5079 if m.XXX_unrecognized != nil { 5080 i -= len(m.XXX_unrecognized) 5081 copy(dAtA[i:], m.XXX_unrecognized) 5082 } 5083 if len(m.Repo) > 0 { 5084 i -= len(m.Repo) 5085 copy(dAtA[i:], m.Repo) 5086 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 5087 i-- 5088 dAtA[i] = 0xa 5089 } 5090 return len(dAtA) - i, nil 5091 } 5092 5093 func (m *ACLEntry) Marshal() (dAtA []byte, err error) { 5094 size := m.Size() 5095 dAtA = make([]byte, size) 5096 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5097 if err != nil { 5098 return nil, err 5099 } 5100 return dAtA[:n], nil 5101 } 5102 5103 func (m *ACLEntry) MarshalTo(dAtA []byte) (int, error) { 5104 size := m.Size() 5105 return m.MarshalToSizedBuffer(dAtA[:size]) 5106 } 5107 5108 func (m *ACLEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5109 i := len(dAtA) 5110 _ = i 5111 var l int 5112 _ = l 5113 if m.XXX_unrecognized != nil { 5114 i -= len(m.XXX_unrecognized) 5115 copy(dAtA[i:], m.XXX_unrecognized) 5116 } 5117 if m.Scope != 0 { 5118 i = encodeVarintAuth(dAtA, i, uint64(m.Scope)) 5119 i-- 5120 dAtA[i] = 0x10 5121 } 5122 if len(m.Username) > 0 { 5123 i -= len(m.Username) 5124 copy(dAtA[i:], m.Username) 5125 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 5126 i-- 5127 dAtA[i] = 0xa 5128 } 5129 return len(dAtA) - i, nil 5130 } 5131 5132 func (m *GetACLResponse) Marshal() (dAtA []byte, err error) { 5133 size := m.Size() 5134 dAtA = make([]byte, size) 5135 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5136 if err != nil { 5137 return nil, err 5138 } 5139 return dAtA[:n], nil 5140 } 5141 5142 func (m *GetACLResponse) MarshalTo(dAtA []byte) (int, error) { 5143 size := m.Size() 5144 return m.MarshalToSizedBuffer(dAtA[:size]) 5145 } 5146 5147 func (m *GetACLResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5148 i := len(dAtA) 5149 _ = i 5150 var l int 5151 _ = l 5152 if m.XXX_unrecognized != nil { 5153 i -= len(m.XXX_unrecognized) 5154 copy(dAtA[i:], m.XXX_unrecognized) 5155 } 5156 if len(m.RobotEntries) > 0 { 5157 for iNdEx := len(m.RobotEntries) - 1; iNdEx >= 0; iNdEx-- { 5158 { 5159 size, err := m.RobotEntries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5160 if err != nil { 5161 return 0, err 5162 } 5163 i -= size 5164 i = encodeVarintAuth(dAtA, i, uint64(size)) 5165 } 5166 i-- 5167 dAtA[i] = 0x12 5168 } 5169 } 5170 if len(m.Entries) > 0 { 5171 for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { 5172 { 5173 size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5174 if err != nil { 5175 return 0, err 5176 } 5177 i -= size 5178 i = encodeVarintAuth(dAtA, i, uint64(size)) 5179 } 5180 i-- 5181 dAtA[i] = 0xa 5182 } 5183 } 5184 return len(dAtA) - i, nil 5185 } 5186 5187 func (m *SetACLRequest) Marshal() (dAtA []byte, err error) { 5188 size := m.Size() 5189 dAtA = make([]byte, size) 5190 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5191 if err != nil { 5192 return nil, err 5193 } 5194 return dAtA[:n], nil 5195 } 5196 5197 func (m *SetACLRequest) MarshalTo(dAtA []byte) (int, error) { 5198 size := m.Size() 5199 return m.MarshalToSizedBuffer(dAtA[:size]) 5200 } 5201 5202 func (m *SetACLRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5203 i := len(dAtA) 5204 _ = i 5205 var l int 5206 _ = l 5207 if m.XXX_unrecognized != nil { 5208 i -= len(m.XXX_unrecognized) 5209 copy(dAtA[i:], m.XXX_unrecognized) 5210 } 5211 if len(m.Entries) > 0 { 5212 for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { 5213 { 5214 size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 5215 if err != nil { 5216 return 0, err 5217 } 5218 i -= size 5219 i = encodeVarintAuth(dAtA, i, uint64(size)) 5220 } 5221 i-- 5222 dAtA[i] = 0x12 5223 } 5224 } 5225 if len(m.Repo) > 0 { 5226 i -= len(m.Repo) 5227 copy(dAtA[i:], m.Repo) 5228 i = encodeVarintAuth(dAtA, i, uint64(len(m.Repo))) 5229 i-- 5230 dAtA[i] = 0xa 5231 } 5232 return len(dAtA) - i, nil 5233 } 5234 5235 func (m *SetACLResponse) Marshal() (dAtA []byte, err error) { 5236 size := m.Size() 5237 dAtA = make([]byte, size) 5238 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5239 if err != nil { 5240 return nil, err 5241 } 5242 return dAtA[:n], nil 5243 } 5244 5245 func (m *SetACLResponse) MarshalTo(dAtA []byte) (int, error) { 5246 size := m.Size() 5247 return m.MarshalToSizedBuffer(dAtA[:size]) 5248 } 5249 5250 func (m *SetACLResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5251 i := len(dAtA) 5252 _ = i 5253 var l int 5254 _ = l 5255 if m.XXX_unrecognized != nil { 5256 i -= len(m.XXX_unrecognized) 5257 copy(dAtA[i:], m.XXX_unrecognized) 5258 } 5259 return len(dAtA) - i, nil 5260 } 5261 5262 func (m *GetAuthTokenRequest) Marshal() (dAtA []byte, err error) { 5263 size := m.Size() 5264 dAtA = make([]byte, size) 5265 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5266 if err != nil { 5267 return nil, err 5268 } 5269 return dAtA[:n], nil 5270 } 5271 5272 func (m *GetAuthTokenRequest) MarshalTo(dAtA []byte) (int, error) { 5273 size := m.Size() 5274 return m.MarshalToSizedBuffer(dAtA[:size]) 5275 } 5276 5277 func (m *GetAuthTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5278 i := len(dAtA) 5279 _ = i 5280 var l int 5281 _ = l 5282 if m.XXX_unrecognized != nil { 5283 i -= len(m.XXX_unrecognized) 5284 copy(dAtA[i:], m.XXX_unrecognized) 5285 } 5286 if m.TTL != 0 { 5287 i = encodeVarintAuth(dAtA, i, uint64(m.TTL)) 5288 i-- 5289 dAtA[i] = 0x10 5290 } 5291 if len(m.Subject) > 0 { 5292 i -= len(m.Subject) 5293 copy(dAtA[i:], m.Subject) 5294 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 5295 i-- 5296 dAtA[i] = 0xa 5297 } 5298 return len(dAtA) - i, nil 5299 } 5300 5301 func (m *GetAuthTokenResponse) Marshal() (dAtA []byte, err error) { 5302 size := m.Size() 5303 dAtA = make([]byte, size) 5304 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5305 if err != nil { 5306 return nil, err 5307 } 5308 return dAtA[:n], nil 5309 } 5310 5311 func (m *GetAuthTokenResponse) MarshalTo(dAtA []byte) (int, error) { 5312 size := m.Size() 5313 return m.MarshalToSizedBuffer(dAtA[:size]) 5314 } 5315 5316 func (m *GetAuthTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5317 i := len(dAtA) 5318 _ = i 5319 var l int 5320 _ = l 5321 if m.XXX_unrecognized != nil { 5322 i -= len(m.XXX_unrecognized) 5323 copy(dAtA[i:], m.XXX_unrecognized) 5324 } 5325 if len(m.Subject) > 0 { 5326 i -= len(m.Subject) 5327 copy(dAtA[i:], m.Subject) 5328 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 5329 i-- 5330 dAtA[i] = 0x12 5331 } 5332 if len(m.Token) > 0 { 5333 i -= len(m.Token) 5334 copy(dAtA[i:], m.Token) 5335 i = encodeVarintAuth(dAtA, i, uint64(len(m.Token))) 5336 i-- 5337 dAtA[i] = 0xa 5338 } 5339 return len(dAtA) - i, nil 5340 } 5341 5342 func (m *ExtendAuthTokenRequest) Marshal() (dAtA []byte, err error) { 5343 size := m.Size() 5344 dAtA = make([]byte, size) 5345 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5346 if err != nil { 5347 return nil, err 5348 } 5349 return dAtA[:n], nil 5350 } 5351 5352 func (m *ExtendAuthTokenRequest) MarshalTo(dAtA []byte) (int, error) { 5353 size := m.Size() 5354 return m.MarshalToSizedBuffer(dAtA[:size]) 5355 } 5356 5357 func (m *ExtendAuthTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5358 i := len(dAtA) 5359 _ = i 5360 var l int 5361 _ = l 5362 if m.XXX_unrecognized != nil { 5363 i -= len(m.XXX_unrecognized) 5364 copy(dAtA[i:], m.XXX_unrecognized) 5365 } 5366 if m.TTL != 0 { 5367 i = encodeVarintAuth(dAtA, i, uint64(m.TTL)) 5368 i-- 5369 dAtA[i] = 0x10 5370 } 5371 if len(m.Token) > 0 { 5372 i -= len(m.Token) 5373 copy(dAtA[i:], m.Token) 5374 i = encodeVarintAuth(dAtA, i, uint64(len(m.Token))) 5375 i-- 5376 dAtA[i] = 0xa 5377 } 5378 return len(dAtA) - i, nil 5379 } 5380 5381 func (m *ExtendAuthTokenResponse) Marshal() (dAtA []byte, err error) { 5382 size := m.Size() 5383 dAtA = make([]byte, size) 5384 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5385 if err != nil { 5386 return nil, err 5387 } 5388 return dAtA[:n], nil 5389 } 5390 5391 func (m *ExtendAuthTokenResponse) MarshalTo(dAtA []byte) (int, error) { 5392 size := m.Size() 5393 return m.MarshalToSizedBuffer(dAtA[:size]) 5394 } 5395 5396 func (m *ExtendAuthTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5397 i := len(dAtA) 5398 _ = i 5399 var l int 5400 _ = l 5401 if m.XXX_unrecognized != nil { 5402 i -= len(m.XXX_unrecognized) 5403 copy(dAtA[i:], m.XXX_unrecognized) 5404 } 5405 return len(dAtA) - i, nil 5406 } 5407 5408 func (m *RevokeAuthTokenRequest) Marshal() (dAtA []byte, err error) { 5409 size := m.Size() 5410 dAtA = make([]byte, size) 5411 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5412 if err != nil { 5413 return nil, err 5414 } 5415 return dAtA[:n], nil 5416 } 5417 5418 func (m *RevokeAuthTokenRequest) MarshalTo(dAtA []byte) (int, error) { 5419 size := m.Size() 5420 return m.MarshalToSizedBuffer(dAtA[:size]) 5421 } 5422 5423 func (m *RevokeAuthTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5424 i := len(dAtA) 5425 _ = i 5426 var l int 5427 _ = l 5428 if m.XXX_unrecognized != nil { 5429 i -= len(m.XXX_unrecognized) 5430 copy(dAtA[i:], m.XXX_unrecognized) 5431 } 5432 if len(m.Token) > 0 { 5433 i -= len(m.Token) 5434 copy(dAtA[i:], m.Token) 5435 i = encodeVarintAuth(dAtA, i, uint64(len(m.Token))) 5436 i-- 5437 dAtA[i] = 0xa 5438 } 5439 return len(dAtA) - i, nil 5440 } 5441 5442 func (m *RevokeAuthTokenResponse) Marshal() (dAtA []byte, err error) { 5443 size := m.Size() 5444 dAtA = make([]byte, size) 5445 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5446 if err != nil { 5447 return nil, err 5448 } 5449 return dAtA[:n], nil 5450 } 5451 5452 func (m *RevokeAuthTokenResponse) MarshalTo(dAtA []byte) (int, error) { 5453 size := m.Size() 5454 return m.MarshalToSizedBuffer(dAtA[:size]) 5455 } 5456 5457 func (m *RevokeAuthTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5458 i := len(dAtA) 5459 _ = i 5460 var l int 5461 _ = l 5462 if m.XXX_unrecognized != nil { 5463 i -= len(m.XXX_unrecognized) 5464 copy(dAtA[i:], m.XXX_unrecognized) 5465 } 5466 return len(dAtA) - i, nil 5467 } 5468 5469 func (m *SetGroupsForUserRequest) Marshal() (dAtA []byte, err error) { 5470 size := m.Size() 5471 dAtA = make([]byte, size) 5472 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5473 if err != nil { 5474 return nil, err 5475 } 5476 return dAtA[:n], nil 5477 } 5478 5479 func (m *SetGroupsForUserRequest) MarshalTo(dAtA []byte) (int, error) { 5480 size := m.Size() 5481 return m.MarshalToSizedBuffer(dAtA[:size]) 5482 } 5483 5484 func (m *SetGroupsForUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5485 i := len(dAtA) 5486 _ = i 5487 var l int 5488 _ = l 5489 if m.XXX_unrecognized != nil { 5490 i -= len(m.XXX_unrecognized) 5491 copy(dAtA[i:], m.XXX_unrecognized) 5492 } 5493 if len(m.Groups) > 0 { 5494 for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { 5495 i -= len(m.Groups[iNdEx]) 5496 copy(dAtA[i:], m.Groups[iNdEx]) 5497 i = encodeVarintAuth(dAtA, i, uint64(len(m.Groups[iNdEx]))) 5498 i-- 5499 dAtA[i] = 0x12 5500 } 5501 } 5502 if len(m.Username) > 0 { 5503 i -= len(m.Username) 5504 copy(dAtA[i:], m.Username) 5505 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 5506 i-- 5507 dAtA[i] = 0xa 5508 } 5509 return len(dAtA) - i, nil 5510 } 5511 5512 func (m *SetGroupsForUserResponse) Marshal() (dAtA []byte, err error) { 5513 size := m.Size() 5514 dAtA = make([]byte, size) 5515 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5516 if err != nil { 5517 return nil, err 5518 } 5519 return dAtA[:n], nil 5520 } 5521 5522 func (m *SetGroupsForUserResponse) MarshalTo(dAtA []byte) (int, error) { 5523 size := m.Size() 5524 return m.MarshalToSizedBuffer(dAtA[:size]) 5525 } 5526 5527 func (m *SetGroupsForUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5528 i := len(dAtA) 5529 _ = i 5530 var l int 5531 _ = l 5532 if m.XXX_unrecognized != nil { 5533 i -= len(m.XXX_unrecognized) 5534 copy(dAtA[i:], m.XXX_unrecognized) 5535 } 5536 return len(dAtA) - i, nil 5537 } 5538 5539 func (m *ModifyMembersRequest) Marshal() (dAtA []byte, err error) { 5540 size := m.Size() 5541 dAtA = make([]byte, size) 5542 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5543 if err != nil { 5544 return nil, err 5545 } 5546 return dAtA[:n], nil 5547 } 5548 5549 func (m *ModifyMembersRequest) MarshalTo(dAtA []byte) (int, error) { 5550 size := m.Size() 5551 return m.MarshalToSizedBuffer(dAtA[:size]) 5552 } 5553 5554 func (m *ModifyMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5555 i := len(dAtA) 5556 _ = i 5557 var l int 5558 _ = l 5559 if m.XXX_unrecognized != nil { 5560 i -= len(m.XXX_unrecognized) 5561 copy(dAtA[i:], m.XXX_unrecognized) 5562 } 5563 if len(m.Remove) > 0 { 5564 for iNdEx := len(m.Remove) - 1; iNdEx >= 0; iNdEx-- { 5565 i -= len(m.Remove[iNdEx]) 5566 copy(dAtA[i:], m.Remove[iNdEx]) 5567 i = encodeVarintAuth(dAtA, i, uint64(len(m.Remove[iNdEx]))) 5568 i-- 5569 dAtA[i] = 0x1a 5570 } 5571 } 5572 if len(m.Add) > 0 { 5573 for iNdEx := len(m.Add) - 1; iNdEx >= 0; iNdEx-- { 5574 i -= len(m.Add[iNdEx]) 5575 copy(dAtA[i:], m.Add[iNdEx]) 5576 i = encodeVarintAuth(dAtA, i, uint64(len(m.Add[iNdEx]))) 5577 i-- 5578 dAtA[i] = 0x12 5579 } 5580 } 5581 if len(m.Group) > 0 { 5582 i -= len(m.Group) 5583 copy(dAtA[i:], m.Group) 5584 i = encodeVarintAuth(dAtA, i, uint64(len(m.Group))) 5585 i-- 5586 dAtA[i] = 0xa 5587 } 5588 return len(dAtA) - i, nil 5589 } 5590 5591 func (m *ModifyMembersResponse) Marshal() (dAtA []byte, err error) { 5592 size := m.Size() 5593 dAtA = make([]byte, size) 5594 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5595 if err != nil { 5596 return nil, err 5597 } 5598 return dAtA[:n], nil 5599 } 5600 5601 func (m *ModifyMembersResponse) MarshalTo(dAtA []byte) (int, error) { 5602 size := m.Size() 5603 return m.MarshalToSizedBuffer(dAtA[:size]) 5604 } 5605 5606 func (m *ModifyMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5607 i := len(dAtA) 5608 _ = i 5609 var l int 5610 _ = l 5611 if m.XXX_unrecognized != nil { 5612 i -= len(m.XXX_unrecognized) 5613 copy(dAtA[i:], m.XXX_unrecognized) 5614 } 5615 return len(dAtA) - i, nil 5616 } 5617 5618 func (m *GetGroupsRequest) Marshal() (dAtA []byte, err error) { 5619 size := m.Size() 5620 dAtA = make([]byte, size) 5621 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5622 if err != nil { 5623 return nil, err 5624 } 5625 return dAtA[:n], nil 5626 } 5627 5628 func (m *GetGroupsRequest) MarshalTo(dAtA []byte) (int, error) { 5629 size := m.Size() 5630 return m.MarshalToSizedBuffer(dAtA[:size]) 5631 } 5632 5633 func (m *GetGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5634 i := len(dAtA) 5635 _ = i 5636 var l int 5637 _ = l 5638 if m.XXX_unrecognized != nil { 5639 i -= len(m.XXX_unrecognized) 5640 copy(dAtA[i:], m.XXX_unrecognized) 5641 } 5642 if len(m.Username) > 0 { 5643 i -= len(m.Username) 5644 copy(dAtA[i:], m.Username) 5645 i = encodeVarintAuth(dAtA, i, uint64(len(m.Username))) 5646 i-- 5647 dAtA[i] = 0xa 5648 } 5649 return len(dAtA) - i, nil 5650 } 5651 5652 func (m *GetGroupsResponse) Marshal() (dAtA []byte, err error) { 5653 size := m.Size() 5654 dAtA = make([]byte, size) 5655 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5656 if err != nil { 5657 return nil, err 5658 } 5659 return dAtA[:n], nil 5660 } 5661 5662 func (m *GetGroupsResponse) MarshalTo(dAtA []byte) (int, error) { 5663 size := m.Size() 5664 return m.MarshalToSizedBuffer(dAtA[:size]) 5665 } 5666 5667 func (m *GetGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5668 i := len(dAtA) 5669 _ = i 5670 var l int 5671 _ = l 5672 if m.XXX_unrecognized != nil { 5673 i -= len(m.XXX_unrecognized) 5674 copy(dAtA[i:], m.XXX_unrecognized) 5675 } 5676 if len(m.Groups) > 0 { 5677 for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { 5678 i -= len(m.Groups[iNdEx]) 5679 copy(dAtA[i:], m.Groups[iNdEx]) 5680 i = encodeVarintAuth(dAtA, i, uint64(len(m.Groups[iNdEx]))) 5681 i-- 5682 dAtA[i] = 0xa 5683 } 5684 } 5685 return len(dAtA) - i, nil 5686 } 5687 5688 func (m *GetUsersRequest) Marshal() (dAtA []byte, err error) { 5689 size := m.Size() 5690 dAtA = make([]byte, size) 5691 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5692 if err != nil { 5693 return nil, err 5694 } 5695 return dAtA[:n], nil 5696 } 5697 5698 func (m *GetUsersRequest) MarshalTo(dAtA []byte) (int, error) { 5699 size := m.Size() 5700 return m.MarshalToSizedBuffer(dAtA[:size]) 5701 } 5702 5703 func (m *GetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5704 i := len(dAtA) 5705 _ = i 5706 var l int 5707 _ = l 5708 if m.XXX_unrecognized != nil { 5709 i -= len(m.XXX_unrecognized) 5710 copy(dAtA[i:], m.XXX_unrecognized) 5711 } 5712 if len(m.Group) > 0 { 5713 i -= len(m.Group) 5714 copy(dAtA[i:], m.Group) 5715 i = encodeVarintAuth(dAtA, i, uint64(len(m.Group))) 5716 i-- 5717 dAtA[i] = 0xa 5718 } 5719 return len(dAtA) - i, nil 5720 } 5721 5722 func (m *GetUsersResponse) Marshal() (dAtA []byte, err error) { 5723 size := m.Size() 5724 dAtA = make([]byte, size) 5725 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5726 if err != nil { 5727 return nil, err 5728 } 5729 return dAtA[:n], nil 5730 } 5731 5732 func (m *GetUsersResponse) MarshalTo(dAtA []byte) (int, error) { 5733 size := m.Size() 5734 return m.MarshalToSizedBuffer(dAtA[:size]) 5735 } 5736 5737 func (m *GetUsersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5738 i := len(dAtA) 5739 _ = i 5740 var l int 5741 _ = l 5742 if m.XXX_unrecognized != nil { 5743 i -= len(m.XXX_unrecognized) 5744 copy(dAtA[i:], m.XXX_unrecognized) 5745 } 5746 if len(m.Usernames) > 0 { 5747 for iNdEx := len(m.Usernames) - 1; iNdEx >= 0; iNdEx-- { 5748 i -= len(m.Usernames[iNdEx]) 5749 copy(dAtA[i:], m.Usernames[iNdEx]) 5750 i = encodeVarintAuth(dAtA, i, uint64(len(m.Usernames[iNdEx]))) 5751 i-- 5752 dAtA[i] = 0xa 5753 } 5754 } 5755 return len(dAtA) - i, nil 5756 } 5757 5758 func (m *GetOneTimePasswordRequest) Marshal() (dAtA []byte, err error) { 5759 size := m.Size() 5760 dAtA = make([]byte, size) 5761 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5762 if err != nil { 5763 return nil, err 5764 } 5765 return dAtA[:n], nil 5766 } 5767 5768 func (m *GetOneTimePasswordRequest) MarshalTo(dAtA []byte) (int, error) { 5769 size := m.Size() 5770 return m.MarshalToSizedBuffer(dAtA[:size]) 5771 } 5772 5773 func (m *GetOneTimePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5774 i := len(dAtA) 5775 _ = i 5776 var l int 5777 _ = l 5778 if m.XXX_unrecognized != nil { 5779 i -= len(m.XXX_unrecognized) 5780 copy(dAtA[i:], m.XXX_unrecognized) 5781 } 5782 if len(m.Subject) > 0 { 5783 i -= len(m.Subject) 5784 copy(dAtA[i:], m.Subject) 5785 i = encodeVarintAuth(dAtA, i, uint64(len(m.Subject))) 5786 i-- 5787 dAtA[i] = 0xa 5788 } 5789 return len(dAtA) - i, nil 5790 } 5791 5792 func (m *GetOneTimePasswordResponse) Marshal() (dAtA []byte, err error) { 5793 size := m.Size() 5794 dAtA = make([]byte, size) 5795 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 5796 if err != nil { 5797 return nil, err 5798 } 5799 return dAtA[:n], nil 5800 } 5801 5802 func (m *GetOneTimePasswordResponse) MarshalTo(dAtA []byte) (int, error) { 5803 size := m.Size() 5804 return m.MarshalToSizedBuffer(dAtA[:size]) 5805 } 5806 5807 func (m *GetOneTimePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 5808 i := len(dAtA) 5809 _ = i 5810 var l int 5811 _ = l 5812 if m.XXX_unrecognized != nil { 5813 i -= len(m.XXX_unrecognized) 5814 copy(dAtA[i:], m.XXX_unrecognized) 5815 } 5816 if len(m.Code) > 0 { 5817 i -= len(m.Code) 5818 copy(dAtA[i:], m.Code) 5819 i = encodeVarintAuth(dAtA, i, uint64(len(m.Code))) 5820 i-- 5821 dAtA[i] = 0xa 5822 } 5823 return len(dAtA) - i, nil 5824 } 5825 5826 func encodeVarintAuth(dAtA []byte, offset int, v uint64) int { 5827 offset -= sovAuth(v) 5828 base := offset 5829 for v >= 1<<7 { 5830 dAtA[offset] = uint8(v&0x7f | 0x80) 5831 v >>= 7 5832 offset++ 5833 } 5834 dAtA[offset] = uint8(v) 5835 return base 5836 } 5837 func (m *ActivateRequest) Size() (n int) { 5838 if m == nil { 5839 return 0 5840 } 5841 var l int 5842 _ = l 5843 l = len(m.GitHubToken) 5844 if l > 0 { 5845 n += 1 + l + sovAuth(uint64(l)) 5846 } 5847 l = len(m.Subject) 5848 if l > 0 { 5849 n += 1 + l + sovAuth(uint64(l)) 5850 } 5851 if m.XXX_unrecognized != nil { 5852 n += len(m.XXX_unrecognized) 5853 } 5854 return n 5855 } 5856 5857 func (m *ActivateResponse) Size() (n int) { 5858 if m == nil { 5859 return 0 5860 } 5861 var l int 5862 _ = l 5863 l = len(m.PachToken) 5864 if l > 0 { 5865 n += 1 + l + sovAuth(uint64(l)) 5866 } 5867 if m.XXX_unrecognized != nil { 5868 n += len(m.XXX_unrecognized) 5869 } 5870 return n 5871 } 5872 5873 func (m *DeactivateRequest) Size() (n int) { 5874 if m == nil { 5875 return 0 5876 } 5877 var l int 5878 _ = l 5879 if m.XXX_unrecognized != nil { 5880 n += len(m.XXX_unrecognized) 5881 } 5882 return n 5883 } 5884 5885 func (m *DeactivateResponse) Size() (n int) { 5886 if m == nil { 5887 return 0 5888 } 5889 var l int 5890 _ = l 5891 if m.XXX_unrecognized != nil { 5892 n += len(m.XXX_unrecognized) 5893 } 5894 return n 5895 } 5896 5897 func (m *IDProvider) Size() (n int) { 5898 if m == nil { 5899 return 0 5900 } 5901 var l int 5902 _ = l 5903 l = len(m.Name) 5904 if l > 0 { 5905 n += 1 + l + sovAuth(uint64(l)) 5906 } 5907 l = len(m.Description) 5908 if l > 0 { 5909 n += 1 + l + sovAuth(uint64(l)) 5910 } 5911 if m.SAML != nil { 5912 l = m.SAML.Size() 5913 n += 1 + l + sovAuth(uint64(l)) 5914 } 5915 if m.XXX_unrecognized != nil { 5916 n += len(m.XXX_unrecognized) 5917 } 5918 return n 5919 } 5920 5921 func (m *IDProvider_SAMLOptions) Size() (n int) { 5922 if m == nil { 5923 return 0 5924 } 5925 var l int 5926 _ = l 5927 l = len(m.MetadataURL) 5928 if l > 0 { 5929 n += 1 + l + sovAuth(uint64(l)) 5930 } 5931 l = len(m.MetadataXML) 5932 if l > 0 { 5933 n += 1 + l + sovAuth(uint64(l)) 5934 } 5935 l = len(m.GroupAttribute) 5936 if l > 0 { 5937 n += 1 + l + sovAuth(uint64(l)) 5938 } 5939 if m.XXX_unrecognized != nil { 5940 n += len(m.XXX_unrecognized) 5941 } 5942 return n 5943 } 5944 5945 func (m *AuthConfig) Size() (n int) { 5946 if m == nil { 5947 return 0 5948 } 5949 var l int 5950 _ = l 5951 if m.LiveConfigVersion != 0 { 5952 n += 1 + sovAuth(uint64(m.LiveConfigVersion)) 5953 } 5954 if len(m.IDProviders) > 0 { 5955 for _, e := range m.IDProviders { 5956 l = e.Size() 5957 n += 1 + l + sovAuth(uint64(l)) 5958 } 5959 } 5960 if m.SAMLServiceOptions != nil { 5961 l = m.SAMLServiceOptions.Size() 5962 n += 1 + l + sovAuth(uint64(l)) 5963 } 5964 if m.XXX_unrecognized != nil { 5965 n += len(m.XXX_unrecognized) 5966 } 5967 return n 5968 } 5969 5970 func (m *AuthConfig_SAMLServiceOptions) Size() (n int) { 5971 if m == nil { 5972 return 0 5973 } 5974 var l int 5975 _ = l 5976 l = len(m.ACSURL) 5977 if l > 0 { 5978 n += 1 + l + sovAuth(uint64(l)) 5979 } 5980 l = len(m.MetadataURL) 5981 if l > 0 { 5982 n += 1 + l + sovAuth(uint64(l)) 5983 } 5984 l = len(m.DashURL) 5985 if l > 0 { 5986 n += 1 + l + sovAuth(uint64(l)) 5987 } 5988 l = len(m.SessionDuration) 5989 if l > 0 { 5990 n += 1 + l + sovAuth(uint64(l)) 5991 } 5992 if m.DebugLogging { 5993 n += 2 5994 } 5995 if m.XXX_unrecognized != nil { 5996 n += len(m.XXX_unrecognized) 5997 } 5998 return n 5999 } 6000 6001 func (m *GetConfigurationRequest) Size() (n int) { 6002 if m == nil { 6003 return 0 6004 } 6005 var l int 6006 _ = l 6007 if m.XXX_unrecognized != nil { 6008 n += len(m.XXX_unrecognized) 6009 } 6010 return n 6011 } 6012 6013 func (m *GetConfigurationResponse) Size() (n int) { 6014 if m == nil { 6015 return 0 6016 } 6017 var l int 6018 _ = l 6019 if m.Configuration != nil { 6020 l = m.Configuration.Size() 6021 n += 1 + l + sovAuth(uint64(l)) 6022 } 6023 if m.XXX_unrecognized != nil { 6024 n += len(m.XXX_unrecognized) 6025 } 6026 return n 6027 } 6028 6029 func (m *SetConfigurationRequest) Size() (n int) { 6030 if m == nil { 6031 return 0 6032 } 6033 var l int 6034 _ = l 6035 if m.Configuration != nil { 6036 l = m.Configuration.Size() 6037 n += 1 + l + sovAuth(uint64(l)) 6038 } 6039 if m.XXX_unrecognized != nil { 6040 n += len(m.XXX_unrecognized) 6041 } 6042 return n 6043 } 6044 6045 func (m *SetConfigurationResponse) Size() (n int) { 6046 if m == nil { 6047 return 0 6048 } 6049 var l int 6050 _ = l 6051 if m.XXX_unrecognized != nil { 6052 n += len(m.XXX_unrecognized) 6053 } 6054 return n 6055 } 6056 6057 func (m *GetAdminsRequest) Size() (n int) { 6058 if m == nil { 6059 return 0 6060 } 6061 var l int 6062 _ = l 6063 if m.XXX_unrecognized != nil { 6064 n += len(m.XXX_unrecognized) 6065 } 6066 return n 6067 } 6068 6069 func (m *GetAdminsResponse) Size() (n int) { 6070 if m == nil { 6071 return 0 6072 } 6073 var l int 6074 _ = l 6075 if len(m.Admins) > 0 { 6076 for _, s := range m.Admins { 6077 l = len(s) 6078 n += 1 + l + sovAuth(uint64(l)) 6079 } 6080 } 6081 if m.XXX_unrecognized != nil { 6082 n += len(m.XXX_unrecognized) 6083 } 6084 return n 6085 } 6086 6087 func (m *ModifyAdminsRequest) Size() (n int) { 6088 if m == nil { 6089 return 0 6090 } 6091 var l int 6092 _ = l 6093 if len(m.Add) > 0 { 6094 for _, s := range m.Add { 6095 l = len(s) 6096 n += 1 + l + sovAuth(uint64(l)) 6097 } 6098 } 6099 if len(m.Remove) > 0 { 6100 for _, s := range m.Remove { 6101 l = len(s) 6102 n += 1 + l + sovAuth(uint64(l)) 6103 } 6104 } 6105 if m.XXX_unrecognized != nil { 6106 n += len(m.XXX_unrecognized) 6107 } 6108 return n 6109 } 6110 6111 func (m *ModifyAdminsResponse) Size() (n int) { 6112 if m == nil { 6113 return 0 6114 } 6115 var l int 6116 _ = l 6117 if m.XXX_unrecognized != nil { 6118 n += len(m.XXX_unrecognized) 6119 } 6120 return n 6121 } 6122 6123 func (m *OTPInfo) Size() (n int) { 6124 if m == nil { 6125 return 0 6126 } 6127 var l int 6128 _ = l 6129 l = len(m.Subject) 6130 if l > 0 { 6131 n += 1 + l + sovAuth(uint64(l)) 6132 } 6133 if m.SessionExpiration != nil { 6134 l = m.SessionExpiration.Size() 6135 n += 1 + l + sovAuth(uint64(l)) 6136 } 6137 if m.XXX_unrecognized != nil { 6138 n += len(m.XXX_unrecognized) 6139 } 6140 return n 6141 } 6142 6143 func (m *TokenInfo) Size() (n int) { 6144 if m == nil { 6145 return 0 6146 } 6147 var l int 6148 _ = l 6149 l = len(m.Subject) 6150 if l > 0 { 6151 n += 1 + l + sovAuth(uint64(l)) 6152 } 6153 if m.Source != 0 { 6154 n += 1 + sovAuth(uint64(m.Source)) 6155 } 6156 if m.XXX_unrecognized != nil { 6157 n += len(m.XXX_unrecognized) 6158 } 6159 return n 6160 } 6161 6162 func (m *AuthenticateRequest) Size() (n int) { 6163 if m == nil { 6164 return 0 6165 } 6166 var l int 6167 _ = l 6168 l = len(m.GitHubToken) 6169 if l > 0 { 6170 n += 1 + l + sovAuth(uint64(l)) 6171 } 6172 l = len(m.OneTimePassword) 6173 if l > 0 { 6174 n += 1 + l + sovAuth(uint64(l)) 6175 } 6176 if m.XXX_unrecognized != nil { 6177 n += len(m.XXX_unrecognized) 6178 } 6179 return n 6180 } 6181 6182 func (m *AuthenticateResponse) Size() (n int) { 6183 if m == nil { 6184 return 0 6185 } 6186 var l int 6187 _ = l 6188 l = len(m.PachToken) 6189 if l > 0 { 6190 n += 1 + l + sovAuth(uint64(l)) 6191 } 6192 if m.XXX_unrecognized != nil { 6193 n += len(m.XXX_unrecognized) 6194 } 6195 return n 6196 } 6197 6198 func (m *WhoAmIRequest) Size() (n int) { 6199 if m == nil { 6200 return 0 6201 } 6202 var l int 6203 _ = l 6204 if m.XXX_unrecognized != nil { 6205 n += len(m.XXX_unrecognized) 6206 } 6207 return n 6208 } 6209 6210 func (m *WhoAmIResponse) Size() (n int) { 6211 if m == nil { 6212 return 0 6213 } 6214 var l int 6215 _ = l 6216 l = len(m.Username) 6217 if l > 0 { 6218 n += 1 + l + sovAuth(uint64(l)) 6219 } 6220 if m.IsAdmin { 6221 n += 2 6222 } 6223 if m.TTL != 0 { 6224 n += 1 + sovAuth(uint64(m.TTL)) 6225 } 6226 if m.XXX_unrecognized != nil { 6227 n += len(m.XXX_unrecognized) 6228 } 6229 return n 6230 } 6231 6232 func (m *ACL) Size() (n int) { 6233 if m == nil { 6234 return 0 6235 } 6236 var l int 6237 _ = l 6238 if len(m.Entries) > 0 { 6239 for k, v := range m.Entries { 6240 _ = k 6241 _ = v 6242 mapEntrySize := 1 + len(k) + sovAuth(uint64(len(k))) + 1 + sovAuth(uint64(v)) 6243 n += mapEntrySize + 1 + sovAuth(uint64(mapEntrySize)) 6244 } 6245 } 6246 if m.XXX_unrecognized != nil { 6247 n += len(m.XXX_unrecognized) 6248 } 6249 return n 6250 } 6251 6252 func (m *Users) Size() (n int) { 6253 if m == nil { 6254 return 0 6255 } 6256 var l int 6257 _ = l 6258 if len(m.Usernames) > 0 { 6259 for k, v := range m.Usernames { 6260 _ = k 6261 _ = v 6262 mapEntrySize := 1 + len(k) + sovAuth(uint64(len(k))) + 1 + 1 6263 n += mapEntrySize + 1 + sovAuth(uint64(mapEntrySize)) 6264 } 6265 } 6266 if m.XXX_unrecognized != nil { 6267 n += len(m.XXX_unrecognized) 6268 } 6269 return n 6270 } 6271 6272 func (m *Groups) Size() (n int) { 6273 if m == nil { 6274 return 0 6275 } 6276 var l int 6277 _ = l 6278 if len(m.Groups) > 0 { 6279 for k, v := range m.Groups { 6280 _ = k 6281 _ = v 6282 mapEntrySize := 1 + len(k) + sovAuth(uint64(len(k))) + 1 + 1 6283 n += mapEntrySize + 1 + sovAuth(uint64(mapEntrySize)) 6284 } 6285 } 6286 if m.XXX_unrecognized != nil { 6287 n += len(m.XXX_unrecognized) 6288 } 6289 return n 6290 } 6291 6292 func (m *AuthorizeRequest) Size() (n int) { 6293 if m == nil { 6294 return 0 6295 } 6296 var l int 6297 _ = l 6298 l = len(m.Repo) 6299 if l > 0 { 6300 n += 1 + l + sovAuth(uint64(l)) 6301 } 6302 if m.Scope != 0 { 6303 n += 1 + sovAuth(uint64(m.Scope)) 6304 } 6305 if m.XXX_unrecognized != nil { 6306 n += len(m.XXX_unrecognized) 6307 } 6308 return n 6309 } 6310 6311 func (m *AuthorizeResponse) Size() (n int) { 6312 if m == nil { 6313 return 0 6314 } 6315 var l int 6316 _ = l 6317 if m.Authorized { 6318 n += 2 6319 } 6320 if m.XXX_unrecognized != nil { 6321 n += len(m.XXX_unrecognized) 6322 } 6323 return n 6324 } 6325 6326 func (m *GetScopeRequest) Size() (n int) { 6327 if m == nil { 6328 return 0 6329 } 6330 var l int 6331 _ = l 6332 l = len(m.Username) 6333 if l > 0 { 6334 n += 1 + l + sovAuth(uint64(l)) 6335 } 6336 if len(m.Repos) > 0 { 6337 for _, s := range m.Repos { 6338 l = len(s) 6339 n += 1 + l + sovAuth(uint64(l)) 6340 } 6341 } 6342 if m.XXX_unrecognized != nil { 6343 n += len(m.XXX_unrecognized) 6344 } 6345 return n 6346 } 6347 6348 func (m *GetScopeResponse) Size() (n int) { 6349 if m == nil { 6350 return 0 6351 } 6352 var l int 6353 _ = l 6354 if len(m.Scopes) > 0 { 6355 l = 0 6356 for _, e := range m.Scopes { 6357 l += sovAuth(uint64(e)) 6358 } 6359 n += 1 + sovAuth(uint64(l)) + l 6360 } 6361 if m.XXX_unrecognized != nil { 6362 n += len(m.XXX_unrecognized) 6363 } 6364 return n 6365 } 6366 6367 func (m *SetScopeRequest) Size() (n int) { 6368 if m == nil { 6369 return 0 6370 } 6371 var l int 6372 _ = l 6373 l = len(m.Username) 6374 if l > 0 { 6375 n += 1 + l + sovAuth(uint64(l)) 6376 } 6377 l = len(m.Repo) 6378 if l > 0 { 6379 n += 1 + l + sovAuth(uint64(l)) 6380 } 6381 if m.Scope != 0 { 6382 n += 1 + sovAuth(uint64(m.Scope)) 6383 } 6384 if m.XXX_unrecognized != nil { 6385 n += len(m.XXX_unrecognized) 6386 } 6387 return n 6388 } 6389 6390 func (m *SetScopeResponse) Size() (n int) { 6391 if m == nil { 6392 return 0 6393 } 6394 var l int 6395 _ = l 6396 if m.XXX_unrecognized != nil { 6397 n += len(m.XXX_unrecognized) 6398 } 6399 return n 6400 } 6401 6402 func (m *GetACLRequest) Size() (n int) { 6403 if m == nil { 6404 return 0 6405 } 6406 var l int 6407 _ = l 6408 l = len(m.Repo) 6409 if l > 0 { 6410 n += 1 + l + sovAuth(uint64(l)) 6411 } 6412 if m.XXX_unrecognized != nil { 6413 n += len(m.XXX_unrecognized) 6414 } 6415 return n 6416 } 6417 6418 func (m *ACLEntry) Size() (n int) { 6419 if m == nil { 6420 return 0 6421 } 6422 var l int 6423 _ = l 6424 l = len(m.Username) 6425 if l > 0 { 6426 n += 1 + l + sovAuth(uint64(l)) 6427 } 6428 if m.Scope != 0 { 6429 n += 1 + sovAuth(uint64(m.Scope)) 6430 } 6431 if m.XXX_unrecognized != nil { 6432 n += len(m.XXX_unrecognized) 6433 } 6434 return n 6435 } 6436 6437 func (m *GetACLResponse) Size() (n int) { 6438 if m == nil { 6439 return 0 6440 } 6441 var l int 6442 _ = l 6443 if len(m.Entries) > 0 { 6444 for _, e := range m.Entries { 6445 l = e.Size() 6446 n += 1 + l + sovAuth(uint64(l)) 6447 } 6448 } 6449 if len(m.RobotEntries) > 0 { 6450 for _, e := range m.RobotEntries { 6451 l = e.Size() 6452 n += 1 + l + sovAuth(uint64(l)) 6453 } 6454 } 6455 if m.XXX_unrecognized != nil { 6456 n += len(m.XXX_unrecognized) 6457 } 6458 return n 6459 } 6460 6461 func (m *SetACLRequest) Size() (n int) { 6462 if m == nil { 6463 return 0 6464 } 6465 var l int 6466 _ = l 6467 l = len(m.Repo) 6468 if l > 0 { 6469 n += 1 + l + sovAuth(uint64(l)) 6470 } 6471 if len(m.Entries) > 0 { 6472 for _, e := range m.Entries { 6473 l = e.Size() 6474 n += 1 + l + sovAuth(uint64(l)) 6475 } 6476 } 6477 if m.XXX_unrecognized != nil { 6478 n += len(m.XXX_unrecognized) 6479 } 6480 return n 6481 } 6482 6483 func (m *SetACLResponse) Size() (n int) { 6484 if m == nil { 6485 return 0 6486 } 6487 var l int 6488 _ = l 6489 if m.XXX_unrecognized != nil { 6490 n += len(m.XXX_unrecognized) 6491 } 6492 return n 6493 } 6494 6495 func (m *GetAuthTokenRequest) Size() (n int) { 6496 if m == nil { 6497 return 0 6498 } 6499 var l int 6500 _ = l 6501 l = len(m.Subject) 6502 if l > 0 { 6503 n += 1 + l + sovAuth(uint64(l)) 6504 } 6505 if m.TTL != 0 { 6506 n += 1 + sovAuth(uint64(m.TTL)) 6507 } 6508 if m.XXX_unrecognized != nil { 6509 n += len(m.XXX_unrecognized) 6510 } 6511 return n 6512 } 6513 6514 func (m *GetAuthTokenResponse) Size() (n int) { 6515 if m == nil { 6516 return 0 6517 } 6518 var l int 6519 _ = l 6520 l = len(m.Token) 6521 if l > 0 { 6522 n += 1 + l + sovAuth(uint64(l)) 6523 } 6524 l = len(m.Subject) 6525 if l > 0 { 6526 n += 1 + l + sovAuth(uint64(l)) 6527 } 6528 if m.XXX_unrecognized != nil { 6529 n += len(m.XXX_unrecognized) 6530 } 6531 return n 6532 } 6533 6534 func (m *ExtendAuthTokenRequest) Size() (n int) { 6535 if m == nil { 6536 return 0 6537 } 6538 var l int 6539 _ = l 6540 l = len(m.Token) 6541 if l > 0 { 6542 n += 1 + l + sovAuth(uint64(l)) 6543 } 6544 if m.TTL != 0 { 6545 n += 1 + sovAuth(uint64(m.TTL)) 6546 } 6547 if m.XXX_unrecognized != nil { 6548 n += len(m.XXX_unrecognized) 6549 } 6550 return n 6551 } 6552 6553 func (m *ExtendAuthTokenResponse) Size() (n int) { 6554 if m == nil { 6555 return 0 6556 } 6557 var l int 6558 _ = l 6559 if m.XXX_unrecognized != nil { 6560 n += len(m.XXX_unrecognized) 6561 } 6562 return n 6563 } 6564 6565 func (m *RevokeAuthTokenRequest) Size() (n int) { 6566 if m == nil { 6567 return 0 6568 } 6569 var l int 6570 _ = l 6571 l = len(m.Token) 6572 if l > 0 { 6573 n += 1 + l + sovAuth(uint64(l)) 6574 } 6575 if m.XXX_unrecognized != nil { 6576 n += len(m.XXX_unrecognized) 6577 } 6578 return n 6579 } 6580 6581 func (m *RevokeAuthTokenResponse) Size() (n int) { 6582 if m == nil { 6583 return 0 6584 } 6585 var l int 6586 _ = l 6587 if m.XXX_unrecognized != nil { 6588 n += len(m.XXX_unrecognized) 6589 } 6590 return n 6591 } 6592 6593 func (m *SetGroupsForUserRequest) Size() (n int) { 6594 if m == nil { 6595 return 0 6596 } 6597 var l int 6598 _ = l 6599 l = len(m.Username) 6600 if l > 0 { 6601 n += 1 + l + sovAuth(uint64(l)) 6602 } 6603 if len(m.Groups) > 0 { 6604 for _, s := range m.Groups { 6605 l = len(s) 6606 n += 1 + l + sovAuth(uint64(l)) 6607 } 6608 } 6609 if m.XXX_unrecognized != nil { 6610 n += len(m.XXX_unrecognized) 6611 } 6612 return n 6613 } 6614 6615 func (m *SetGroupsForUserResponse) Size() (n int) { 6616 if m == nil { 6617 return 0 6618 } 6619 var l int 6620 _ = l 6621 if m.XXX_unrecognized != nil { 6622 n += len(m.XXX_unrecognized) 6623 } 6624 return n 6625 } 6626 6627 func (m *ModifyMembersRequest) Size() (n int) { 6628 if m == nil { 6629 return 0 6630 } 6631 var l int 6632 _ = l 6633 l = len(m.Group) 6634 if l > 0 { 6635 n += 1 + l + sovAuth(uint64(l)) 6636 } 6637 if len(m.Add) > 0 { 6638 for _, s := range m.Add { 6639 l = len(s) 6640 n += 1 + l + sovAuth(uint64(l)) 6641 } 6642 } 6643 if len(m.Remove) > 0 { 6644 for _, s := range m.Remove { 6645 l = len(s) 6646 n += 1 + l + sovAuth(uint64(l)) 6647 } 6648 } 6649 if m.XXX_unrecognized != nil { 6650 n += len(m.XXX_unrecognized) 6651 } 6652 return n 6653 } 6654 6655 func (m *ModifyMembersResponse) Size() (n int) { 6656 if m == nil { 6657 return 0 6658 } 6659 var l int 6660 _ = l 6661 if m.XXX_unrecognized != nil { 6662 n += len(m.XXX_unrecognized) 6663 } 6664 return n 6665 } 6666 6667 func (m *GetGroupsRequest) Size() (n int) { 6668 if m == nil { 6669 return 0 6670 } 6671 var l int 6672 _ = l 6673 l = len(m.Username) 6674 if l > 0 { 6675 n += 1 + l + sovAuth(uint64(l)) 6676 } 6677 if m.XXX_unrecognized != nil { 6678 n += len(m.XXX_unrecognized) 6679 } 6680 return n 6681 } 6682 6683 func (m *GetGroupsResponse) Size() (n int) { 6684 if m == nil { 6685 return 0 6686 } 6687 var l int 6688 _ = l 6689 if len(m.Groups) > 0 { 6690 for _, s := range m.Groups { 6691 l = len(s) 6692 n += 1 + l + sovAuth(uint64(l)) 6693 } 6694 } 6695 if m.XXX_unrecognized != nil { 6696 n += len(m.XXX_unrecognized) 6697 } 6698 return n 6699 } 6700 6701 func (m *GetUsersRequest) Size() (n int) { 6702 if m == nil { 6703 return 0 6704 } 6705 var l int 6706 _ = l 6707 l = len(m.Group) 6708 if l > 0 { 6709 n += 1 + l + sovAuth(uint64(l)) 6710 } 6711 if m.XXX_unrecognized != nil { 6712 n += len(m.XXX_unrecognized) 6713 } 6714 return n 6715 } 6716 6717 func (m *GetUsersResponse) Size() (n int) { 6718 if m == nil { 6719 return 0 6720 } 6721 var l int 6722 _ = l 6723 if len(m.Usernames) > 0 { 6724 for _, s := range m.Usernames { 6725 l = len(s) 6726 n += 1 + l + sovAuth(uint64(l)) 6727 } 6728 } 6729 if m.XXX_unrecognized != nil { 6730 n += len(m.XXX_unrecognized) 6731 } 6732 return n 6733 } 6734 6735 func (m *GetOneTimePasswordRequest) Size() (n int) { 6736 if m == nil { 6737 return 0 6738 } 6739 var l int 6740 _ = l 6741 l = len(m.Subject) 6742 if l > 0 { 6743 n += 1 + l + sovAuth(uint64(l)) 6744 } 6745 if m.XXX_unrecognized != nil { 6746 n += len(m.XXX_unrecognized) 6747 } 6748 return n 6749 } 6750 6751 func (m *GetOneTimePasswordResponse) Size() (n int) { 6752 if m == nil { 6753 return 0 6754 } 6755 var l int 6756 _ = l 6757 l = len(m.Code) 6758 if l > 0 { 6759 n += 1 + l + sovAuth(uint64(l)) 6760 } 6761 if m.XXX_unrecognized != nil { 6762 n += len(m.XXX_unrecognized) 6763 } 6764 return n 6765 } 6766 6767 func sovAuth(x uint64) (n int) { 6768 return (math_bits.Len64(x|1) + 6) / 7 6769 } 6770 func sozAuth(x uint64) (n int) { 6771 return sovAuth(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 6772 } 6773 func (m *ActivateRequest) Unmarshal(dAtA []byte) error { 6774 l := len(dAtA) 6775 iNdEx := 0 6776 for iNdEx < l { 6777 preIndex := iNdEx 6778 var wire uint64 6779 for shift := uint(0); ; shift += 7 { 6780 if shift >= 64 { 6781 return ErrIntOverflowAuth 6782 } 6783 if iNdEx >= l { 6784 return io.ErrUnexpectedEOF 6785 } 6786 b := dAtA[iNdEx] 6787 iNdEx++ 6788 wire |= uint64(b&0x7F) << shift 6789 if b < 0x80 { 6790 break 6791 } 6792 } 6793 fieldNum := int32(wire >> 3) 6794 wireType := int(wire & 0x7) 6795 if wireType == 4 { 6796 return fmt.Errorf("proto: ActivateRequest: wiretype end group for non-group") 6797 } 6798 if fieldNum <= 0 { 6799 return fmt.Errorf("proto: ActivateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6800 } 6801 switch fieldNum { 6802 case 1: 6803 if wireType != 2 { 6804 return fmt.Errorf("proto: wrong wireType = %d for field GitHubToken", wireType) 6805 } 6806 var stringLen uint64 6807 for shift := uint(0); ; shift += 7 { 6808 if shift >= 64 { 6809 return ErrIntOverflowAuth 6810 } 6811 if iNdEx >= l { 6812 return io.ErrUnexpectedEOF 6813 } 6814 b := dAtA[iNdEx] 6815 iNdEx++ 6816 stringLen |= uint64(b&0x7F) << shift 6817 if b < 0x80 { 6818 break 6819 } 6820 } 6821 intStringLen := int(stringLen) 6822 if intStringLen < 0 { 6823 return ErrInvalidLengthAuth 6824 } 6825 postIndex := iNdEx + intStringLen 6826 if postIndex < 0 { 6827 return ErrInvalidLengthAuth 6828 } 6829 if postIndex > l { 6830 return io.ErrUnexpectedEOF 6831 } 6832 m.GitHubToken = string(dAtA[iNdEx:postIndex]) 6833 iNdEx = postIndex 6834 case 2: 6835 if wireType != 2 { 6836 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 6837 } 6838 var stringLen uint64 6839 for shift := uint(0); ; shift += 7 { 6840 if shift >= 64 { 6841 return ErrIntOverflowAuth 6842 } 6843 if iNdEx >= l { 6844 return io.ErrUnexpectedEOF 6845 } 6846 b := dAtA[iNdEx] 6847 iNdEx++ 6848 stringLen |= uint64(b&0x7F) << shift 6849 if b < 0x80 { 6850 break 6851 } 6852 } 6853 intStringLen := int(stringLen) 6854 if intStringLen < 0 { 6855 return ErrInvalidLengthAuth 6856 } 6857 postIndex := iNdEx + intStringLen 6858 if postIndex < 0 { 6859 return ErrInvalidLengthAuth 6860 } 6861 if postIndex > l { 6862 return io.ErrUnexpectedEOF 6863 } 6864 m.Subject = string(dAtA[iNdEx:postIndex]) 6865 iNdEx = postIndex 6866 default: 6867 iNdEx = preIndex 6868 skippy, err := skipAuth(dAtA[iNdEx:]) 6869 if err != nil { 6870 return err 6871 } 6872 if (skippy < 0) || (iNdEx+skippy) < 0 { 6873 return ErrInvalidLengthAuth 6874 } 6875 if (iNdEx + skippy) > l { 6876 return io.ErrUnexpectedEOF 6877 } 6878 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6879 iNdEx += skippy 6880 } 6881 } 6882 6883 if iNdEx > l { 6884 return io.ErrUnexpectedEOF 6885 } 6886 return nil 6887 } 6888 func (m *ActivateResponse) Unmarshal(dAtA []byte) error { 6889 l := len(dAtA) 6890 iNdEx := 0 6891 for iNdEx < l { 6892 preIndex := iNdEx 6893 var wire uint64 6894 for shift := uint(0); ; shift += 7 { 6895 if shift >= 64 { 6896 return ErrIntOverflowAuth 6897 } 6898 if iNdEx >= l { 6899 return io.ErrUnexpectedEOF 6900 } 6901 b := dAtA[iNdEx] 6902 iNdEx++ 6903 wire |= uint64(b&0x7F) << shift 6904 if b < 0x80 { 6905 break 6906 } 6907 } 6908 fieldNum := int32(wire >> 3) 6909 wireType := int(wire & 0x7) 6910 if wireType == 4 { 6911 return fmt.Errorf("proto: ActivateResponse: wiretype end group for non-group") 6912 } 6913 if fieldNum <= 0 { 6914 return fmt.Errorf("proto: ActivateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6915 } 6916 switch fieldNum { 6917 case 1: 6918 if wireType != 2 { 6919 return fmt.Errorf("proto: wrong wireType = %d for field PachToken", wireType) 6920 } 6921 var stringLen uint64 6922 for shift := uint(0); ; shift += 7 { 6923 if shift >= 64 { 6924 return ErrIntOverflowAuth 6925 } 6926 if iNdEx >= l { 6927 return io.ErrUnexpectedEOF 6928 } 6929 b := dAtA[iNdEx] 6930 iNdEx++ 6931 stringLen |= uint64(b&0x7F) << shift 6932 if b < 0x80 { 6933 break 6934 } 6935 } 6936 intStringLen := int(stringLen) 6937 if intStringLen < 0 { 6938 return ErrInvalidLengthAuth 6939 } 6940 postIndex := iNdEx + intStringLen 6941 if postIndex < 0 { 6942 return ErrInvalidLengthAuth 6943 } 6944 if postIndex > l { 6945 return io.ErrUnexpectedEOF 6946 } 6947 m.PachToken = string(dAtA[iNdEx:postIndex]) 6948 iNdEx = postIndex 6949 default: 6950 iNdEx = preIndex 6951 skippy, err := skipAuth(dAtA[iNdEx:]) 6952 if err != nil { 6953 return err 6954 } 6955 if (skippy < 0) || (iNdEx+skippy) < 0 { 6956 return ErrInvalidLengthAuth 6957 } 6958 if (iNdEx + skippy) > l { 6959 return io.ErrUnexpectedEOF 6960 } 6961 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6962 iNdEx += skippy 6963 } 6964 } 6965 6966 if iNdEx > l { 6967 return io.ErrUnexpectedEOF 6968 } 6969 return nil 6970 } 6971 func (m *DeactivateRequest) Unmarshal(dAtA []byte) error { 6972 l := len(dAtA) 6973 iNdEx := 0 6974 for iNdEx < l { 6975 preIndex := iNdEx 6976 var wire uint64 6977 for shift := uint(0); ; shift += 7 { 6978 if shift >= 64 { 6979 return ErrIntOverflowAuth 6980 } 6981 if iNdEx >= l { 6982 return io.ErrUnexpectedEOF 6983 } 6984 b := dAtA[iNdEx] 6985 iNdEx++ 6986 wire |= uint64(b&0x7F) << shift 6987 if b < 0x80 { 6988 break 6989 } 6990 } 6991 fieldNum := int32(wire >> 3) 6992 wireType := int(wire & 0x7) 6993 if wireType == 4 { 6994 return fmt.Errorf("proto: DeactivateRequest: wiretype end group for non-group") 6995 } 6996 if fieldNum <= 0 { 6997 return fmt.Errorf("proto: DeactivateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6998 } 6999 switch fieldNum { 7000 default: 7001 iNdEx = preIndex 7002 skippy, err := skipAuth(dAtA[iNdEx:]) 7003 if err != nil { 7004 return err 7005 } 7006 if (skippy < 0) || (iNdEx+skippy) < 0 { 7007 return ErrInvalidLengthAuth 7008 } 7009 if (iNdEx + skippy) > l { 7010 return io.ErrUnexpectedEOF 7011 } 7012 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7013 iNdEx += skippy 7014 } 7015 } 7016 7017 if iNdEx > l { 7018 return io.ErrUnexpectedEOF 7019 } 7020 return nil 7021 } 7022 func (m *DeactivateResponse) Unmarshal(dAtA []byte) error { 7023 l := len(dAtA) 7024 iNdEx := 0 7025 for iNdEx < l { 7026 preIndex := iNdEx 7027 var wire uint64 7028 for shift := uint(0); ; shift += 7 { 7029 if shift >= 64 { 7030 return ErrIntOverflowAuth 7031 } 7032 if iNdEx >= l { 7033 return io.ErrUnexpectedEOF 7034 } 7035 b := dAtA[iNdEx] 7036 iNdEx++ 7037 wire |= uint64(b&0x7F) << shift 7038 if b < 0x80 { 7039 break 7040 } 7041 } 7042 fieldNum := int32(wire >> 3) 7043 wireType := int(wire & 0x7) 7044 if wireType == 4 { 7045 return fmt.Errorf("proto: DeactivateResponse: wiretype end group for non-group") 7046 } 7047 if fieldNum <= 0 { 7048 return fmt.Errorf("proto: DeactivateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7049 } 7050 switch fieldNum { 7051 default: 7052 iNdEx = preIndex 7053 skippy, err := skipAuth(dAtA[iNdEx:]) 7054 if err != nil { 7055 return err 7056 } 7057 if (skippy < 0) || (iNdEx+skippy) < 0 { 7058 return ErrInvalidLengthAuth 7059 } 7060 if (iNdEx + skippy) > l { 7061 return io.ErrUnexpectedEOF 7062 } 7063 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7064 iNdEx += skippy 7065 } 7066 } 7067 7068 if iNdEx > l { 7069 return io.ErrUnexpectedEOF 7070 } 7071 return nil 7072 } 7073 func (m *IDProvider) Unmarshal(dAtA []byte) error { 7074 l := len(dAtA) 7075 iNdEx := 0 7076 for iNdEx < l { 7077 preIndex := iNdEx 7078 var wire uint64 7079 for shift := uint(0); ; shift += 7 { 7080 if shift >= 64 { 7081 return ErrIntOverflowAuth 7082 } 7083 if iNdEx >= l { 7084 return io.ErrUnexpectedEOF 7085 } 7086 b := dAtA[iNdEx] 7087 iNdEx++ 7088 wire |= uint64(b&0x7F) << shift 7089 if b < 0x80 { 7090 break 7091 } 7092 } 7093 fieldNum := int32(wire >> 3) 7094 wireType := int(wire & 0x7) 7095 if wireType == 4 { 7096 return fmt.Errorf("proto: IDProvider: wiretype end group for non-group") 7097 } 7098 if fieldNum <= 0 { 7099 return fmt.Errorf("proto: IDProvider: illegal tag %d (wire type %d)", fieldNum, wire) 7100 } 7101 switch fieldNum { 7102 case 1: 7103 if wireType != 2 { 7104 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 7105 } 7106 var stringLen uint64 7107 for shift := uint(0); ; shift += 7 { 7108 if shift >= 64 { 7109 return ErrIntOverflowAuth 7110 } 7111 if iNdEx >= l { 7112 return io.ErrUnexpectedEOF 7113 } 7114 b := dAtA[iNdEx] 7115 iNdEx++ 7116 stringLen |= uint64(b&0x7F) << shift 7117 if b < 0x80 { 7118 break 7119 } 7120 } 7121 intStringLen := int(stringLen) 7122 if intStringLen < 0 { 7123 return ErrInvalidLengthAuth 7124 } 7125 postIndex := iNdEx + intStringLen 7126 if postIndex < 0 { 7127 return ErrInvalidLengthAuth 7128 } 7129 if postIndex > l { 7130 return io.ErrUnexpectedEOF 7131 } 7132 m.Name = string(dAtA[iNdEx:postIndex]) 7133 iNdEx = postIndex 7134 case 2: 7135 if wireType != 2 { 7136 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 7137 } 7138 var stringLen uint64 7139 for shift := uint(0); ; shift += 7 { 7140 if shift >= 64 { 7141 return ErrIntOverflowAuth 7142 } 7143 if iNdEx >= l { 7144 return io.ErrUnexpectedEOF 7145 } 7146 b := dAtA[iNdEx] 7147 iNdEx++ 7148 stringLen |= uint64(b&0x7F) << shift 7149 if b < 0x80 { 7150 break 7151 } 7152 } 7153 intStringLen := int(stringLen) 7154 if intStringLen < 0 { 7155 return ErrInvalidLengthAuth 7156 } 7157 postIndex := iNdEx + intStringLen 7158 if postIndex < 0 { 7159 return ErrInvalidLengthAuth 7160 } 7161 if postIndex > l { 7162 return io.ErrUnexpectedEOF 7163 } 7164 m.Description = string(dAtA[iNdEx:postIndex]) 7165 iNdEx = postIndex 7166 case 3: 7167 if wireType != 2 { 7168 return fmt.Errorf("proto: wrong wireType = %d for field SAML", wireType) 7169 } 7170 var msglen int 7171 for shift := uint(0); ; shift += 7 { 7172 if shift >= 64 { 7173 return ErrIntOverflowAuth 7174 } 7175 if iNdEx >= l { 7176 return io.ErrUnexpectedEOF 7177 } 7178 b := dAtA[iNdEx] 7179 iNdEx++ 7180 msglen |= int(b&0x7F) << shift 7181 if b < 0x80 { 7182 break 7183 } 7184 } 7185 if msglen < 0 { 7186 return ErrInvalidLengthAuth 7187 } 7188 postIndex := iNdEx + msglen 7189 if postIndex < 0 { 7190 return ErrInvalidLengthAuth 7191 } 7192 if postIndex > l { 7193 return io.ErrUnexpectedEOF 7194 } 7195 if m.SAML == nil { 7196 m.SAML = &IDProvider_SAMLOptions{} 7197 } 7198 if err := m.SAML.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7199 return err 7200 } 7201 iNdEx = postIndex 7202 default: 7203 iNdEx = preIndex 7204 skippy, err := skipAuth(dAtA[iNdEx:]) 7205 if err != nil { 7206 return err 7207 } 7208 if (skippy < 0) || (iNdEx+skippy) < 0 { 7209 return ErrInvalidLengthAuth 7210 } 7211 if (iNdEx + skippy) > l { 7212 return io.ErrUnexpectedEOF 7213 } 7214 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7215 iNdEx += skippy 7216 } 7217 } 7218 7219 if iNdEx > l { 7220 return io.ErrUnexpectedEOF 7221 } 7222 return nil 7223 } 7224 func (m *IDProvider_SAMLOptions) Unmarshal(dAtA []byte) error { 7225 l := len(dAtA) 7226 iNdEx := 0 7227 for iNdEx < l { 7228 preIndex := iNdEx 7229 var wire uint64 7230 for shift := uint(0); ; shift += 7 { 7231 if shift >= 64 { 7232 return ErrIntOverflowAuth 7233 } 7234 if iNdEx >= l { 7235 return io.ErrUnexpectedEOF 7236 } 7237 b := dAtA[iNdEx] 7238 iNdEx++ 7239 wire |= uint64(b&0x7F) << shift 7240 if b < 0x80 { 7241 break 7242 } 7243 } 7244 fieldNum := int32(wire >> 3) 7245 wireType := int(wire & 0x7) 7246 if wireType == 4 { 7247 return fmt.Errorf("proto: SAMLOptions: wiretype end group for non-group") 7248 } 7249 if fieldNum <= 0 { 7250 return fmt.Errorf("proto: SAMLOptions: illegal tag %d (wire type %d)", fieldNum, wire) 7251 } 7252 switch fieldNum { 7253 case 1: 7254 if wireType != 2 { 7255 return fmt.Errorf("proto: wrong wireType = %d for field MetadataURL", wireType) 7256 } 7257 var stringLen uint64 7258 for shift := uint(0); ; shift += 7 { 7259 if shift >= 64 { 7260 return ErrIntOverflowAuth 7261 } 7262 if iNdEx >= l { 7263 return io.ErrUnexpectedEOF 7264 } 7265 b := dAtA[iNdEx] 7266 iNdEx++ 7267 stringLen |= uint64(b&0x7F) << shift 7268 if b < 0x80 { 7269 break 7270 } 7271 } 7272 intStringLen := int(stringLen) 7273 if intStringLen < 0 { 7274 return ErrInvalidLengthAuth 7275 } 7276 postIndex := iNdEx + intStringLen 7277 if postIndex < 0 { 7278 return ErrInvalidLengthAuth 7279 } 7280 if postIndex > l { 7281 return io.ErrUnexpectedEOF 7282 } 7283 m.MetadataURL = string(dAtA[iNdEx:postIndex]) 7284 iNdEx = postIndex 7285 case 2: 7286 if wireType != 2 { 7287 return fmt.Errorf("proto: wrong wireType = %d for field MetadataXML", wireType) 7288 } 7289 var byteLen int 7290 for shift := uint(0); ; shift += 7 { 7291 if shift >= 64 { 7292 return ErrIntOverflowAuth 7293 } 7294 if iNdEx >= l { 7295 return io.ErrUnexpectedEOF 7296 } 7297 b := dAtA[iNdEx] 7298 iNdEx++ 7299 byteLen |= int(b&0x7F) << shift 7300 if b < 0x80 { 7301 break 7302 } 7303 } 7304 if byteLen < 0 { 7305 return ErrInvalidLengthAuth 7306 } 7307 postIndex := iNdEx + byteLen 7308 if postIndex < 0 { 7309 return ErrInvalidLengthAuth 7310 } 7311 if postIndex > l { 7312 return io.ErrUnexpectedEOF 7313 } 7314 m.MetadataXML = append(m.MetadataXML[:0], dAtA[iNdEx:postIndex]...) 7315 if m.MetadataXML == nil { 7316 m.MetadataXML = []byte{} 7317 } 7318 iNdEx = postIndex 7319 case 3: 7320 if wireType != 2 { 7321 return fmt.Errorf("proto: wrong wireType = %d for field GroupAttribute", wireType) 7322 } 7323 var stringLen uint64 7324 for shift := uint(0); ; shift += 7 { 7325 if shift >= 64 { 7326 return ErrIntOverflowAuth 7327 } 7328 if iNdEx >= l { 7329 return io.ErrUnexpectedEOF 7330 } 7331 b := dAtA[iNdEx] 7332 iNdEx++ 7333 stringLen |= uint64(b&0x7F) << shift 7334 if b < 0x80 { 7335 break 7336 } 7337 } 7338 intStringLen := int(stringLen) 7339 if intStringLen < 0 { 7340 return ErrInvalidLengthAuth 7341 } 7342 postIndex := iNdEx + intStringLen 7343 if postIndex < 0 { 7344 return ErrInvalidLengthAuth 7345 } 7346 if postIndex > l { 7347 return io.ErrUnexpectedEOF 7348 } 7349 m.GroupAttribute = string(dAtA[iNdEx:postIndex]) 7350 iNdEx = postIndex 7351 default: 7352 iNdEx = preIndex 7353 skippy, err := skipAuth(dAtA[iNdEx:]) 7354 if err != nil { 7355 return err 7356 } 7357 if (skippy < 0) || (iNdEx+skippy) < 0 { 7358 return ErrInvalidLengthAuth 7359 } 7360 if (iNdEx + skippy) > l { 7361 return io.ErrUnexpectedEOF 7362 } 7363 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7364 iNdEx += skippy 7365 } 7366 } 7367 7368 if iNdEx > l { 7369 return io.ErrUnexpectedEOF 7370 } 7371 return nil 7372 } 7373 func (m *AuthConfig) Unmarshal(dAtA []byte) error { 7374 l := len(dAtA) 7375 iNdEx := 0 7376 for iNdEx < l { 7377 preIndex := iNdEx 7378 var wire uint64 7379 for shift := uint(0); ; shift += 7 { 7380 if shift >= 64 { 7381 return ErrIntOverflowAuth 7382 } 7383 if iNdEx >= l { 7384 return io.ErrUnexpectedEOF 7385 } 7386 b := dAtA[iNdEx] 7387 iNdEx++ 7388 wire |= uint64(b&0x7F) << shift 7389 if b < 0x80 { 7390 break 7391 } 7392 } 7393 fieldNum := int32(wire >> 3) 7394 wireType := int(wire & 0x7) 7395 if wireType == 4 { 7396 return fmt.Errorf("proto: AuthConfig: wiretype end group for non-group") 7397 } 7398 if fieldNum <= 0 { 7399 return fmt.Errorf("proto: AuthConfig: illegal tag %d (wire type %d)", fieldNum, wire) 7400 } 7401 switch fieldNum { 7402 case 1: 7403 if wireType != 0 { 7404 return fmt.Errorf("proto: wrong wireType = %d for field LiveConfigVersion", wireType) 7405 } 7406 m.LiveConfigVersion = 0 7407 for shift := uint(0); ; shift += 7 { 7408 if shift >= 64 { 7409 return ErrIntOverflowAuth 7410 } 7411 if iNdEx >= l { 7412 return io.ErrUnexpectedEOF 7413 } 7414 b := dAtA[iNdEx] 7415 iNdEx++ 7416 m.LiveConfigVersion |= int64(b&0x7F) << shift 7417 if b < 0x80 { 7418 break 7419 } 7420 } 7421 case 2: 7422 if wireType != 2 { 7423 return fmt.Errorf("proto: wrong wireType = %d for field IDProviders", wireType) 7424 } 7425 var msglen int 7426 for shift := uint(0); ; shift += 7 { 7427 if shift >= 64 { 7428 return ErrIntOverflowAuth 7429 } 7430 if iNdEx >= l { 7431 return io.ErrUnexpectedEOF 7432 } 7433 b := dAtA[iNdEx] 7434 iNdEx++ 7435 msglen |= int(b&0x7F) << shift 7436 if b < 0x80 { 7437 break 7438 } 7439 } 7440 if msglen < 0 { 7441 return ErrInvalidLengthAuth 7442 } 7443 postIndex := iNdEx + msglen 7444 if postIndex < 0 { 7445 return ErrInvalidLengthAuth 7446 } 7447 if postIndex > l { 7448 return io.ErrUnexpectedEOF 7449 } 7450 m.IDProviders = append(m.IDProviders, &IDProvider{}) 7451 if err := m.IDProviders[len(m.IDProviders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7452 return err 7453 } 7454 iNdEx = postIndex 7455 case 3: 7456 if wireType != 2 { 7457 return fmt.Errorf("proto: wrong wireType = %d for field SAMLServiceOptions", wireType) 7458 } 7459 var msglen int 7460 for shift := uint(0); ; shift += 7 { 7461 if shift >= 64 { 7462 return ErrIntOverflowAuth 7463 } 7464 if iNdEx >= l { 7465 return io.ErrUnexpectedEOF 7466 } 7467 b := dAtA[iNdEx] 7468 iNdEx++ 7469 msglen |= int(b&0x7F) << shift 7470 if b < 0x80 { 7471 break 7472 } 7473 } 7474 if msglen < 0 { 7475 return ErrInvalidLengthAuth 7476 } 7477 postIndex := iNdEx + msglen 7478 if postIndex < 0 { 7479 return ErrInvalidLengthAuth 7480 } 7481 if postIndex > l { 7482 return io.ErrUnexpectedEOF 7483 } 7484 if m.SAMLServiceOptions == nil { 7485 m.SAMLServiceOptions = &AuthConfig_SAMLServiceOptions{} 7486 } 7487 if err := m.SAMLServiceOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7488 return err 7489 } 7490 iNdEx = postIndex 7491 default: 7492 iNdEx = preIndex 7493 skippy, err := skipAuth(dAtA[iNdEx:]) 7494 if err != nil { 7495 return err 7496 } 7497 if (skippy < 0) || (iNdEx+skippy) < 0 { 7498 return ErrInvalidLengthAuth 7499 } 7500 if (iNdEx + skippy) > l { 7501 return io.ErrUnexpectedEOF 7502 } 7503 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7504 iNdEx += skippy 7505 } 7506 } 7507 7508 if iNdEx > l { 7509 return io.ErrUnexpectedEOF 7510 } 7511 return nil 7512 } 7513 func (m *AuthConfig_SAMLServiceOptions) Unmarshal(dAtA []byte) error { 7514 l := len(dAtA) 7515 iNdEx := 0 7516 for iNdEx < l { 7517 preIndex := iNdEx 7518 var wire uint64 7519 for shift := uint(0); ; shift += 7 { 7520 if shift >= 64 { 7521 return ErrIntOverflowAuth 7522 } 7523 if iNdEx >= l { 7524 return io.ErrUnexpectedEOF 7525 } 7526 b := dAtA[iNdEx] 7527 iNdEx++ 7528 wire |= uint64(b&0x7F) << shift 7529 if b < 0x80 { 7530 break 7531 } 7532 } 7533 fieldNum := int32(wire >> 3) 7534 wireType := int(wire & 0x7) 7535 if wireType == 4 { 7536 return fmt.Errorf("proto: SAMLServiceOptions: wiretype end group for non-group") 7537 } 7538 if fieldNum <= 0 { 7539 return fmt.Errorf("proto: SAMLServiceOptions: illegal tag %d (wire type %d)", fieldNum, wire) 7540 } 7541 switch fieldNum { 7542 case 1: 7543 if wireType != 2 { 7544 return fmt.Errorf("proto: wrong wireType = %d for field ACSURL", wireType) 7545 } 7546 var stringLen uint64 7547 for shift := uint(0); ; shift += 7 { 7548 if shift >= 64 { 7549 return ErrIntOverflowAuth 7550 } 7551 if iNdEx >= l { 7552 return io.ErrUnexpectedEOF 7553 } 7554 b := dAtA[iNdEx] 7555 iNdEx++ 7556 stringLen |= uint64(b&0x7F) << shift 7557 if b < 0x80 { 7558 break 7559 } 7560 } 7561 intStringLen := int(stringLen) 7562 if intStringLen < 0 { 7563 return ErrInvalidLengthAuth 7564 } 7565 postIndex := iNdEx + intStringLen 7566 if postIndex < 0 { 7567 return ErrInvalidLengthAuth 7568 } 7569 if postIndex > l { 7570 return io.ErrUnexpectedEOF 7571 } 7572 m.ACSURL = string(dAtA[iNdEx:postIndex]) 7573 iNdEx = postIndex 7574 case 2: 7575 if wireType != 2 { 7576 return fmt.Errorf("proto: wrong wireType = %d for field MetadataURL", wireType) 7577 } 7578 var stringLen uint64 7579 for shift := uint(0); ; shift += 7 { 7580 if shift >= 64 { 7581 return ErrIntOverflowAuth 7582 } 7583 if iNdEx >= l { 7584 return io.ErrUnexpectedEOF 7585 } 7586 b := dAtA[iNdEx] 7587 iNdEx++ 7588 stringLen |= uint64(b&0x7F) << shift 7589 if b < 0x80 { 7590 break 7591 } 7592 } 7593 intStringLen := int(stringLen) 7594 if intStringLen < 0 { 7595 return ErrInvalidLengthAuth 7596 } 7597 postIndex := iNdEx + intStringLen 7598 if postIndex < 0 { 7599 return ErrInvalidLengthAuth 7600 } 7601 if postIndex > l { 7602 return io.ErrUnexpectedEOF 7603 } 7604 m.MetadataURL = string(dAtA[iNdEx:postIndex]) 7605 iNdEx = postIndex 7606 case 3: 7607 if wireType != 2 { 7608 return fmt.Errorf("proto: wrong wireType = %d for field DashURL", wireType) 7609 } 7610 var stringLen uint64 7611 for shift := uint(0); ; shift += 7 { 7612 if shift >= 64 { 7613 return ErrIntOverflowAuth 7614 } 7615 if iNdEx >= l { 7616 return io.ErrUnexpectedEOF 7617 } 7618 b := dAtA[iNdEx] 7619 iNdEx++ 7620 stringLen |= uint64(b&0x7F) << shift 7621 if b < 0x80 { 7622 break 7623 } 7624 } 7625 intStringLen := int(stringLen) 7626 if intStringLen < 0 { 7627 return ErrInvalidLengthAuth 7628 } 7629 postIndex := iNdEx + intStringLen 7630 if postIndex < 0 { 7631 return ErrInvalidLengthAuth 7632 } 7633 if postIndex > l { 7634 return io.ErrUnexpectedEOF 7635 } 7636 m.DashURL = string(dAtA[iNdEx:postIndex]) 7637 iNdEx = postIndex 7638 case 4: 7639 if wireType != 2 { 7640 return fmt.Errorf("proto: wrong wireType = %d for field SessionDuration", wireType) 7641 } 7642 var stringLen uint64 7643 for shift := uint(0); ; shift += 7 { 7644 if shift >= 64 { 7645 return ErrIntOverflowAuth 7646 } 7647 if iNdEx >= l { 7648 return io.ErrUnexpectedEOF 7649 } 7650 b := dAtA[iNdEx] 7651 iNdEx++ 7652 stringLen |= uint64(b&0x7F) << shift 7653 if b < 0x80 { 7654 break 7655 } 7656 } 7657 intStringLen := int(stringLen) 7658 if intStringLen < 0 { 7659 return ErrInvalidLengthAuth 7660 } 7661 postIndex := iNdEx + intStringLen 7662 if postIndex < 0 { 7663 return ErrInvalidLengthAuth 7664 } 7665 if postIndex > l { 7666 return io.ErrUnexpectedEOF 7667 } 7668 m.SessionDuration = string(dAtA[iNdEx:postIndex]) 7669 iNdEx = postIndex 7670 case 5: 7671 if wireType != 0 { 7672 return fmt.Errorf("proto: wrong wireType = %d for field DebugLogging", wireType) 7673 } 7674 var v int 7675 for shift := uint(0); ; shift += 7 { 7676 if shift >= 64 { 7677 return ErrIntOverflowAuth 7678 } 7679 if iNdEx >= l { 7680 return io.ErrUnexpectedEOF 7681 } 7682 b := dAtA[iNdEx] 7683 iNdEx++ 7684 v |= int(b&0x7F) << shift 7685 if b < 0x80 { 7686 break 7687 } 7688 } 7689 m.DebugLogging = bool(v != 0) 7690 default: 7691 iNdEx = preIndex 7692 skippy, err := skipAuth(dAtA[iNdEx:]) 7693 if err != nil { 7694 return err 7695 } 7696 if (skippy < 0) || (iNdEx+skippy) < 0 { 7697 return ErrInvalidLengthAuth 7698 } 7699 if (iNdEx + skippy) > l { 7700 return io.ErrUnexpectedEOF 7701 } 7702 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7703 iNdEx += skippy 7704 } 7705 } 7706 7707 if iNdEx > l { 7708 return io.ErrUnexpectedEOF 7709 } 7710 return nil 7711 } 7712 func (m *GetConfigurationRequest) Unmarshal(dAtA []byte) error { 7713 l := len(dAtA) 7714 iNdEx := 0 7715 for iNdEx < l { 7716 preIndex := iNdEx 7717 var wire uint64 7718 for shift := uint(0); ; shift += 7 { 7719 if shift >= 64 { 7720 return ErrIntOverflowAuth 7721 } 7722 if iNdEx >= l { 7723 return io.ErrUnexpectedEOF 7724 } 7725 b := dAtA[iNdEx] 7726 iNdEx++ 7727 wire |= uint64(b&0x7F) << shift 7728 if b < 0x80 { 7729 break 7730 } 7731 } 7732 fieldNum := int32(wire >> 3) 7733 wireType := int(wire & 0x7) 7734 if wireType == 4 { 7735 return fmt.Errorf("proto: GetConfigurationRequest: wiretype end group for non-group") 7736 } 7737 if fieldNum <= 0 { 7738 return fmt.Errorf("proto: GetConfigurationRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7739 } 7740 switch fieldNum { 7741 default: 7742 iNdEx = preIndex 7743 skippy, err := skipAuth(dAtA[iNdEx:]) 7744 if err != nil { 7745 return err 7746 } 7747 if (skippy < 0) || (iNdEx+skippy) < 0 { 7748 return ErrInvalidLengthAuth 7749 } 7750 if (iNdEx + skippy) > l { 7751 return io.ErrUnexpectedEOF 7752 } 7753 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7754 iNdEx += skippy 7755 } 7756 } 7757 7758 if iNdEx > l { 7759 return io.ErrUnexpectedEOF 7760 } 7761 return nil 7762 } 7763 func (m *GetConfigurationResponse) Unmarshal(dAtA []byte) error { 7764 l := len(dAtA) 7765 iNdEx := 0 7766 for iNdEx < l { 7767 preIndex := iNdEx 7768 var wire uint64 7769 for shift := uint(0); ; shift += 7 { 7770 if shift >= 64 { 7771 return ErrIntOverflowAuth 7772 } 7773 if iNdEx >= l { 7774 return io.ErrUnexpectedEOF 7775 } 7776 b := dAtA[iNdEx] 7777 iNdEx++ 7778 wire |= uint64(b&0x7F) << shift 7779 if b < 0x80 { 7780 break 7781 } 7782 } 7783 fieldNum := int32(wire >> 3) 7784 wireType := int(wire & 0x7) 7785 if wireType == 4 { 7786 return fmt.Errorf("proto: GetConfigurationResponse: wiretype end group for non-group") 7787 } 7788 if fieldNum <= 0 { 7789 return fmt.Errorf("proto: GetConfigurationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7790 } 7791 switch fieldNum { 7792 case 1: 7793 if wireType != 2 { 7794 return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) 7795 } 7796 var msglen int 7797 for shift := uint(0); ; shift += 7 { 7798 if shift >= 64 { 7799 return ErrIntOverflowAuth 7800 } 7801 if iNdEx >= l { 7802 return io.ErrUnexpectedEOF 7803 } 7804 b := dAtA[iNdEx] 7805 iNdEx++ 7806 msglen |= int(b&0x7F) << shift 7807 if b < 0x80 { 7808 break 7809 } 7810 } 7811 if msglen < 0 { 7812 return ErrInvalidLengthAuth 7813 } 7814 postIndex := iNdEx + msglen 7815 if postIndex < 0 { 7816 return ErrInvalidLengthAuth 7817 } 7818 if postIndex > l { 7819 return io.ErrUnexpectedEOF 7820 } 7821 if m.Configuration == nil { 7822 m.Configuration = &AuthConfig{} 7823 } 7824 if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7825 return err 7826 } 7827 iNdEx = postIndex 7828 default: 7829 iNdEx = preIndex 7830 skippy, err := skipAuth(dAtA[iNdEx:]) 7831 if err != nil { 7832 return err 7833 } 7834 if (skippy < 0) || (iNdEx+skippy) < 0 { 7835 return ErrInvalidLengthAuth 7836 } 7837 if (iNdEx + skippy) > l { 7838 return io.ErrUnexpectedEOF 7839 } 7840 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7841 iNdEx += skippy 7842 } 7843 } 7844 7845 if iNdEx > l { 7846 return io.ErrUnexpectedEOF 7847 } 7848 return nil 7849 } 7850 func (m *SetConfigurationRequest) Unmarshal(dAtA []byte) error { 7851 l := len(dAtA) 7852 iNdEx := 0 7853 for iNdEx < l { 7854 preIndex := iNdEx 7855 var wire uint64 7856 for shift := uint(0); ; shift += 7 { 7857 if shift >= 64 { 7858 return ErrIntOverflowAuth 7859 } 7860 if iNdEx >= l { 7861 return io.ErrUnexpectedEOF 7862 } 7863 b := dAtA[iNdEx] 7864 iNdEx++ 7865 wire |= uint64(b&0x7F) << shift 7866 if b < 0x80 { 7867 break 7868 } 7869 } 7870 fieldNum := int32(wire >> 3) 7871 wireType := int(wire & 0x7) 7872 if wireType == 4 { 7873 return fmt.Errorf("proto: SetConfigurationRequest: wiretype end group for non-group") 7874 } 7875 if fieldNum <= 0 { 7876 return fmt.Errorf("proto: SetConfigurationRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7877 } 7878 switch fieldNum { 7879 case 1: 7880 if wireType != 2 { 7881 return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) 7882 } 7883 var msglen int 7884 for shift := uint(0); ; shift += 7 { 7885 if shift >= 64 { 7886 return ErrIntOverflowAuth 7887 } 7888 if iNdEx >= l { 7889 return io.ErrUnexpectedEOF 7890 } 7891 b := dAtA[iNdEx] 7892 iNdEx++ 7893 msglen |= int(b&0x7F) << shift 7894 if b < 0x80 { 7895 break 7896 } 7897 } 7898 if msglen < 0 { 7899 return ErrInvalidLengthAuth 7900 } 7901 postIndex := iNdEx + msglen 7902 if postIndex < 0 { 7903 return ErrInvalidLengthAuth 7904 } 7905 if postIndex > l { 7906 return io.ErrUnexpectedEOF 7907 } 7908 if m.Configuration == nil { 7909 m.Configuration = &AuthConfig{} 7910 } 7911 if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7912 return err 7913 } 7914 iNdEx = postIndex 7915 default: 7916 iNdEx = preIndex 7917 skippy, err := skipAuth(dAtA[iNdEx:]) 7918 if err != nil { 7919 return err 7920 } 7921 if (skippy < 0) || (iNdEx+skippy) < 0 { 7922 return ErrInvalidLengthAuth 7923 } 7924 if (iNdEx + skippy) > l { 7925 return io.ErrUnexpectedEOF 7926 } 7927 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7928 iNdEx += skippy 7929 } 7930 } 7931 7932 if iNdEx > l { 7933 return io.ErrUnexpectedEOF 7934 } 7935 return nil 7936 } 7937 func (m *SetConfigurationResponse) Unmarshal(dAtA []byte) error { 7938 l := len(dAtA) 7939 iNdEx := 0 7940 for iNdEx < l { 7941 preIndex := iNdEx 7942 var wire uint64 7943 for shift := uint(0); ; shift += 7 { 7944 if shift >= 64 { 7945 return ErrIntOverflowAuth 7946 } 7947 if iNdEx >= l { 7948 return io.ErrUnexpectedEOF 7949 } 7950 b := dAtA[iNdEx] 7951 iNdEx++ 7952 wire |= uint64(b&0x7F) << shift 7953 if b < 0x80 { 7954 break 7955 } 7956 } 7957 fieldNum := int32(wire >> 3) 7958 wireType := int(wire & 0x7) 7959 if wireType == 4 { 7960 return fmt.Errorf("proto: SetConfigurationResponse: wiretype end group for non-group") 7961 } 7962 if fieldNum <= 0 { 7963 return fmt.Errorf("proto: SetConfigurationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7964 } 7965 switch fieldNum { 7966 default: 7967 iNdEx = preIndex 7968 skippy, err := skipAuth(dAtA[iNdEx:]) 7969 if err != nil { 7970 return err 7971 } 7972 if (skippy < 0) || (iNdEx+skippy) < 0 { 7973 return ErrInvalidLengthAuth 7974 } 7975 if (iNdEx + skippy) > l { 7976 return io.ErrUnexpectedEOF 7977 } 7978 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7979 iNdEx += skippy 7980 } 7981 } 7982 7983 if iNdEx > l { 7984 return io.ErrUnexpectedEOF 7985 } 7986 return nil 7987 } 7988 func (m *GetAdminsRequest) Unmarshal(dAtA []byte) error { 7989 l := len(dAtA) 7990 iNdEx := 0 7991 for iNdEx < l { 7992 preIndex := iNdEx 7993 var wire uint64 7994 for shift := uint(0); ; shift += 7 { 7995 if shift >= 64 { 7996 return ErrIntOverflowAuth 7997 } 7998 if iNdEx >= l { 7999 return io.ErrUnexpectedEOF 8000 } 8001 b := dAtA[iNdEx] 8002 iNdEx++ 8003 wire |= uint64(b&0x7F) << shift 8004 if b < 0x80 { 8005 break 8006 } 8007 } 8008 fieldNum := int32(wire >> 3) 8009 wireType := int(wire & 0x7) 8010 if wireType == 4 { 8011 return fmt.Errorf("proto: GetAdminsRequest: wiretype end group for non-group") 8012 } 8013 if fieldNum <= 0 { 8014 return fmt.Errorf("proto: GetAdminsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8015 } 8016 switch fieldNum { 8017 default: 8018 iNdEx = preIndex 8019 skippy, err := skipAuth(dAtA[iNdEx:]) 8020 if err != nil { 8021 return err 8022 } 8023 if (skippy < 0) || (iNdEx+skippy) < 0 { 8024 return ErrInvalidLengthAuth 8025 } 8026 if (iNdEx + skippy) > l { 8027 return io.ErrUnexpectedEOF 8028 } 8029 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8030 iNdEx += skippy 8031 } 8032 } 8033 8034 if iNdEx > l { 8035 return io.ErrUnexpectedEOF 8036 } 8037 return nil 8038 } 8039 func (m *GetAdminsResponse) Unmarshal(dAtA []byte) error { 8040 l := len(dAtA) 8041 iNdEx := 0 8042 for iNdEx < l { 8043 preIndex := iNdEx 8044 var wire uint64 8045 for shift := uint(0); ; shift += 7 { 8046 if shift >= 64 { 8047 return ErrIntOverflowAuth 8048 } 8049 if iNdEx >= l { 8050 return io.ErrUnexpectedEOF 8051 } 8052 b := dAtA[iNdEx] 8053 iNdEx++ 8054 wire |= uint64(b&0x7F) << shift 8055 if b < 0x80 { 8056 break 8057 } 8058 } 8059 fieldNum := int32(wire >> 3) 8060 wireType := int(wire & 0x7) 8061 if wireType == 4 { 8062 return fmt.Errorf("proto: GetAdminsResponse: wiretype end group for non-group") 8063 } 8064 if fieldNum <= 0 { 8065 return fmt.Errorf("proto: GetAdminsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8066 } 8067 switch fieldNum { 8068 case 1: 8069 if wireType != 2 { 8070 return fmt.Errorf("proto: wrong wireType = %d for field Admins", wireType) 8071 } 8072 var stringLen uint64 8073 for shift := uint(0); ; shift += 7 { 8074 if shift >= 64 { 8075 return ErrIntOverflowAuth 8076 } 8077 if iNdEx >= l { 8078 return io.ErrUnexpectedEOF 8079 } 8080 b := dAtA[iNdEx] 8081 iNdEx++ 8082 stringLen |= uint64(b&0x7F) << shift 8083 if b < 0x80 { 8084 break 8085 } 8086 } 8087 intStringLen := int(stringLen) 8088 if intStringLen < 0 { 8089 return ErrInvalidLengthAuth 8090 } 8091 postIndex := iNdEx + intStringLen 8092 if postIndex < 0 { 8093 return ErrInvalidLengthAuth 8094 } 8095 if postIndex > l { 8096 return io.ErrUnexpectedEOF 8097 } 8098 m.Admins = append(m.Admins, string(dAtA[iNdEx:postIndex])) 8099 iNdEx = postIndex 8100 default: 8101 iNdEx = preIndex 8102 skippy, err := skipAuth(dAtA[iNdEx:]) 8103 if err != nil { 8104 return err 8105 } 8106 if (skippy < 0) || (iNdEx+skippy) < 0 { 8107 return ErrInvalidLengthAuth 8108 } 8109 if (iNdEx + skippy) > l { 8110 return io.ErrUnexpectedEOF 8111 } 8112 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8113 iNdEx += skippy 8114 } 8115 } 8116 8117 if iNdEx > l { 8118 return io.ErrUnexpectedEOF 8119 } 8120 return nil 8121 } 8122 func (m *ModifyAdminsRequest) Unmarshal(dAtA []byte) error { 8123 l := len(dAtA) 8124 iNdEx := 0 8125 for iNdEx < l { 8126 preIndex := iNdEx 8127 var wire uint64 8128 for shift := uint(0); ; shift += 7 { 8129 if shift >= 64 { 8130 return ErrIntOverflowAuth 8131 } 8132 if iNdEx >= l { 8133 return io.ErrUnexpectedEOF 8134 } 8135 b := dAtA[iNdEx] 8136 iNdEx++ 8137 wire |= uint64(b&0x7F) << shift 8138 if b < 0x80 { 8139 break 8140 } 8141 } 8142 fieldNum := int32(wire >> 3) 8143 wireType := int(wire & 0x7) 8144 if wireType == 4 { 8145 return fmt.Errorf("proto: ModifyAdminsRequest: wiretype end group for non-group") 8146 } 8147 if fieldNum <= 0 { 8148 return fmt.Errorf("proto: ModifyAdminsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8149 } 8150 switch fieldNum { 8151 case 1: 8152 if wireType != 2 { 8153 return fmt.Errorf("proto: wrong wireType = %d for field Add", wireType) 8154 } 8155 var stringLen uint64 8156 for shift := uint(0); ; shift += 7 { 8157 if shift >= 64 { 8158 return ErrIntOverflowAuth 8159 } 8160 if iNdEx >= l { 8161 return io.ErrUnexpectedEOF 8162 } 8163 b := dAtA[iNdEx] 8164 iNdEx++ 8165 stringLen |= uint64(b&0x7F) << shift 8166 if b < 0x80 { 8167 break 8168 } 8169 } 8170 intStringLen := int(stringLen) 8171 if intStringLen < 0 { 8172 return ErrInvalidLengthAuth 8173 } 8174 postIndex := iNdEx + intStringLen 8175 if postIndex < 0 { 8176 return ErrInvalidLengthAuth 8177 } 8178 if postIndex > l { 8179 return io.ErrUnexpectedEOF 8180 } 8181 m.Add = append(m.Add, string(dAtA[iNdEx:postIndex])) 8182 iNdEx = postIndex 8183 case 2: 8184 if wireType != 2 { 8185 return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) 8186 } 8187 var stringLen uint64 8188 for shift := uint(0); ; shift += 7 { 8189 if shift >= 64 { 8190 return ErrIntOverflowAuth 8191 } 8192 if iNdEx >= l { 8193 return io.ErrUnexpectedEOF 8194 } 8195 b := dAtA[iNdEx] 8196 iNdEx++ 8197 stringLen |= uint64(b&0x7F) << shift 8198 if b < 0x80 { 8199 break 8200 } 8201 } 8202 intStringLen := int(stringLen) 8203 if intStringLen < 0 { 8204 return ErrInvalidLengthAuth 8205 } 8206 postIndex := iNdEx + intStringLen 8207 if postIndex < 0 { 8208 return ErrInvalidLengthAuth 8209 } 8210 if postIndex > l { 8211 return io.ErrUnexpectedEOF 8212 } 8213 m.Remove = append(m.Remove, string(dAtA[iNdEx:postIndex])) 8214 iNdEx = postIndex 8215 default: 8216 iNdEx = preIndex 8217 skippy, err := skipAuth(dAtA[iNdEx:]) 8218 if err != nil { 8219 return err 8220 } 8221 if (skippy < 0) || (iNdEx+skippy) < 0 { 8222 return ErrInvalidLengthAuth 8223 } 8224 if (iNdEx + skippy) > l { 8225 return io.ErrUnexpectedEOF 8226 } 8227 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8228 iNdEx += skippy 8229 } 8230 } 8231 8232 if iNdEx > l { 8233 return io.ErrUnexpectedEOF 8234 } 8235 return nil 8236 } 8237 func (m *ModifyAdminsResponse) Unmarshal(dAtA []byte) error { 8238 l := len(dAtA) 8239 iNdEx := 0 8240 for iNdEx < l { 8241 preIndex := iNdEx 8242 var wire uint64 8243 for shift := uint(0); ; shift += 7 { 8244 if shift >= 64 { 8245 return ErrIntOverflowAuth 8246 } 8247 if iNdEx >= l { 8248 return io.ErrUnexpectedEOF 8249 } 8250 b := dAtA[iNdEx] 8251 iNdEx++ 8252 wire |= uint64(b&0x7F) << shift 8253 if b < 0x80 { 8254 break 8255 } 8256 } 8257 fieldNum := int32(wire >> 3) 8258 wireType := int(wire & 0x7) 8259 if wireType == 4 { 8260 return fmt.Errorf("proto: ModifyAdminsResponse: wiretype end group for non-group") 8261 } 8262 if fieldNum <= 0 { 8263 return fmt.Errorf("proto: ModifyAdminsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8264 } 8265 switch fieldNum { 8266 default: 8267 iNdEx = preIndex 8268 skippy, err := skipAuth(dAtA[iNdEx:]) 8269 if err != nil { 8270 return err 8271 } 8272 if (skippy < 0) || (iNdEx+skippy) < 0 { 8273 return ErrInvalidLengthAuth 8274 } 8275 if (iNdEx + skippy) > l { 8276 return io.ErrUnexpectedEOF 8277 } 8278 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8279 iNdEx += skippy 8280 } 8281 } 8282 8283 if iNdEx > l { 8284 return io.ErrUnexpectedEOF 8285 } 8286 return nil 8287 } 8288 func (m *OTPInfo) Unmarshal(dAtA []byte) error { 8289 l := len(dAtA) 8290 iNdEx := 0 8291 for iNdEx < l { 8292 preIndex := iNdEx 8293 var wire uint64 8294 for shift := uint(0); ; shift += 7 { 8295 if shift >= 64 { 8296 return ErrIntOverflowAuth 8297 } 8298 if iNdEx >= l { 8299 return io.ErrUnexpectedEOF 8300 } 8301 b := dAtA[iNdEx] 8302 iNdEx++ 8303 wire |= uint64(b&0x7F) << shift 8304 if b < 0x80 { 8305 break 8306 } 8307 } 8308 fieldNum := int32(wire >> 3) 8309 wireType := int(wire & 0x7) 8310 if wireType == 4 { 8311 return fmt.Errorf("proto: OTPInfo: wiretype end group for non-group") 8312 } 8313 if fieldNum <= 0 { 8314 return fmt.Errorf("proto: OTPInfo: illegal tag %d (wire type %d)", fieldNum, wire) 8315 } 8316 switch fieldNum { 8317 case 1: 8318 if wireType != 2 { 8319 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 8320 } 8321 var stringLen uint64 8322 for shift := uint(0); ; shift += 7 { 8323 if shift >= 64 { 8324 return ErrIntOverflowAuth 8325 } 8326 if iNdEx >= l { 8327 return io.ErrUnexpectedEOF 8328 } 8329 b := dAtA[iNdEx] 8330 iNdEx++ 8331 stringLen |= uint64(b&0x7F) << shift 8332 if b < 0x80 { 8333 break 8334 } 8335 } 8336 intStringLen := int(stringLen) 8337 if intStringLen < 0 { 8338 return ErrInvalidLengthAuth 8339 } 8340 postIndex := iNdEx + intStringLen 8341 if postIndex < 0 { 8342 return ErrInvalidLengthAuth 8343 } 8344 if postIndex > l { 8345 return io.ErrUnexpectedEOF 8346 } 8347 m.Subject = string(dAtA[iNdEx:postIndex]) 8348 iNdEx = postIndex 8349 case 2: 8350 if wireType != 2 { 8351 return fmt.Errorf("proto: wrong wireType = %d for field SessionExpiration", wireType) 8352 } 8353 var msglen int 8354 for shift := uint(0); ; shift += 7 { 8355 if shift >= 64 { 8356 return ErrIntOverflowAuth 8357 } 8358 if iNdEx >= l { 8359 return io.ErrUnexpectedEOF 8360 } 8361 b := dAtA[iNdEx] 8362 iNdEx++ 8363 msglen |= int(b&0x7F) << shift 8364 if b < 0x80 { 8365 break 8366 } 8367 } 8368 if msglen < 0 { 8369 return ErrInvalidLengthAuth 8370 } 8371 postIndex := iNdEx + msglen 8372 if postIndex < 0 { 8373 return ErrInvalidLengthAuth 8374 } 8375 if postIndex > l { 8376 return io.ErrUnexpectedEOF 8377 } 8378 if m.SessionExpiration == nil { 8379 m.SessionExpiration = &types.Timestamp{} 8380 } 8381 if err := m.SessionExpiration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8382 return err 8383 } 8384 iNdEx = postIndex 8385 default: 8386 iNdEx = preIndex 8387 skippy, err := skipAuth(dAtA[iNdEx:]) 8388 if err != nil { 8389 return err 8390 } 8391 if (skippy < 0) || (iNdEx+skippy) < 0 { 8392 return ErrInvalidLengthAuth 8393 } 8394 if (iNdEx + skippy) > l { 8395 return io.ErrUnexpectedEOF 8396 } 8397 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8398 iNdEx += skippy 8399 } 8400 } 8401 8402 if iNdEx > l { 8403 return io.ErrUnexpectedEOF 8404 } 8405 return nil 8406 } 8407 func (m *TokenInfo) Unmarshal(dAtA []byte) error { 8408 l := len(dAtA) 8409 iNdEx := 0 8410 for iNdEx < l { 8411 preIndex := iNdEx 8412 var wire uint64 8413 for shift := uint(0); ; shift += 7 { 8414 if shift >= 64 { 8415 return ErrIntOverflowAuth 8416 } 8417 if iNdEx >= l { 8418 return io.ErrUnexpectedEOF 8419 } 8420 b := dAtA[iNdEx] 8421 iNdEx++ 8422 wire |= uint64(b&0x7F) << shift 8423 if b < 0x80 { 8424 break 8425 } 8426 } 8427 fieldNum := int32(wire >> 3) 8428 wireType := int(wire & 0x7) 8429 if wireType == 4 { 8430 return fmt.Errorf("proto: TokenInfo: wiretype end group for non-group") 8431 } 8432 if fieldNum <= 0 { 8433 return fmt.Errorf("proto: TokenInfo: illegal tag %d (wire type %d)", fieldNum, wire) 8434 } 8435 switch fieldNum { 8436 case 1: 8437 if wireType != 2 { 8438 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 8439 } 8440 var stringLen uint64 8441 for shift := uint(0); ; shift += 7 { 8442 if shift >= 64 { 8443 return ErrIntOverflowAuth 8444 } 8445 if iNdEx >= l { 8446 return io.ErrUnexpectedEOF 8447 } 8448 b := dAtA[iNdEx] 8449 iNdEx++ 8450 stringLen |= uint64(b&0x7F) << shift 8451 if b < 0x80 { 8452 break 8453 } 8454 } 8455 intStringLen := int(stringLen) 8456 if intStringLen < 0 { 8457 return ErrInvalidLengthAuth 8458 } 8459 postIndex := iNdEx + intStringLen 8460 if postIndex < 0 { 8461 return ErrInvalidLengthAuth 8462 } 8463 if postIndex > l { 8464 return io.ErrUnexpectedEOF 8465 } 8466 m.Subject = string(dAtA[iNdEx:postIndex]) 8467 iNdEx = postIndex 8468 case 2: 8469 if wireType != 0 { 8470 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 8471 } 8472 m.Source = 0 8473 for shift := uint(0); ; shift += 7 { 8474 if shift >= 64 { 8475 return ErrIntOverflowAuth 8476 } 8477 if iNdEx >= l { 8478 return io.ErrUnexpectedEOF 8479 } 8480 b := dAtA[iNdEx] 8481 iNdEx++ 8482 m.Source |= TokenInfo_TokenSource(b&0x7F) << shift 8483 if b < 0x80 { 8484 break 8485 } 8486 } 8487 default: 8488 iNdEx = preIndex 8489 skippy, err := skipAuth(dAtA[iNdEx:]) 8490 if err != nil { 8491 return err 8492 } 8493 if (skippy < 0) || (iNdEx+skippy) < 0 { 8494 return ErrInvalidLengthAuth 8495 } 8496 if (iNdEx + skippy) > l { 8497 return io.ErrUnexpectedEOF 8498 } 8499 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8500 iNdEx += skippy 8501 } 8502 } 8503 8504 if iNdEx > l { 8505 return io.ErrUnexpectedEOF 8506 } 8507 return nil 8508 } 8509 func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error { 8510 l := len(dAtA) 8511 iNdEx := 0 8512 for iNdEx < l { 8513 preIndex := iNdEx 8514 var wire uint64 8515 for shift := uint(0); ; shift += 7 { 8516 if shift >= 64 { 8517 return ErrIntOverflowAuth 8518 } 8519 if iNdEx >= l { 8520 return io.ErrUnexpectedEOF 8521 } 8522 b := dAtA[iNdEx] 8523 iNdEx++ 8524 wire |= uint64(b&0x7F) << shift 8525 if b < 0x80 { 8526 break 8527 } 8528 } 8529 fieldNum := int32(wire >> 3) 8530 wireType := int(wire & 0x7) 8531 if wireType == 4 { 8532 return fmt.Errorf("proto: AuthenticateRequest: wiretype end group for non-group") 8533 } 8534 if fieldNum <= 0 { 8535 return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8536 } 8537 switch fieldNum { 8538 case 1: 8539 if wireType != 2 { 8540 return fmt.Errorf("proto: wrong wireType = %d for field GitHubToken", wireType) 8541 } 8542 var stringLen uint64 8543 for shift := uint(0); ; shift += 7 { 8544 if shift >= 64 { 8545 return ErrIntOverflowAuth 8546 } 8547 if iNdEx >= l { 8548 return io.ErrUnexpectedEOF 8549 } 8550 b := dAtA[iNdEx] 8551 iNdEx++ 8552 stringLen |= uint64(b&0x7F) << shift 8553 if b < 0x80 { 8554 break 8555 } 8556 } 8557 intStringLen := int(stringLen) 8558 if intStringLen < 0 { 8559 return ErrInvalidLengthAuth 8560 } 8561 postIndex := iNdEx + intStringLen 8562 if postIndex < 0 { 8563 return ErrInvalidLengthAuth 8564 } 8565 if postIndex > l { 8566 return io.ErrUnexpectedEOF 8567 } 8568 m.GitHubToken = string(dAtA[iNdEx:postIndex]) 8569 iNdEx = postIndex 8570 case 2: 8571 if wireType != 2 { 8572 return fmt.Errorf("proto: wrong wireType = %d for field OneTimePassword", wireType) 8573 } 8574 var stringLen uint64 8575 for shift := uint(0); ; shift += 7 { 8576 if shift >= 64 { 8577 return ErrIntOverflowAuth 8578 } 8579 if iNdEx >= l { 8580 return io.ErrUnexpectedEOF 8581 } 8582 b := dAtA[iNdEx] 8583 iNdEx++ 8584 stringLen |= uint64(b&0x7F) << shift 8585 if b < 0x80 { 8586 break 8587 } 8588 } 8589 intStringLen := int(stringLen) 8590 if intStringLen < 0 { 8591 return ErrInvalidLengthAuth 8592 } 8593 postIndex := iNdEx + intStringLen 8594 if postIndex < 0 { 8595 return ErrInvalidLengthAuth 8596 } 8597 if postIndex > l { 8598 return io.ErrUnexpectedEOF 8599 } 8600 m.OneTimePassword = string(dAtA[iNdEx:postIndex]) 8601 iNdEx = postIndex 8602 default: 8603 iNdEx = preIndex 8604 skippy, err := skipAuth(dAtA[iNdEx:]) 8605 if err != nil { 8606 return err 8607 } 8608 if (skippy < 0) || (iNdEx+skippy) < 0 { 8609 return ErrInvalidLengthAuth 8610 } 8611 if (iNdEx + skippy) > l { 8612 return io.ErrUnexpectedEOF 8613 } 8614 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8615 iNdEx += skippy 8616 } 8617 } 8618 8619 if iNdEx > l { 8620 return io.ErrUnexpectedEOF 8621 } 8622 return nil 8623 } 8624 func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error { 8625 l := len(dAtA) 8626 iNdEx := 0 8627 for iNdEx < l { 8628 preIndex := iNdEx 8629 var wire uint64 8630 for shift := uint(0); ; shift += 7 { 8631 if shift >= 64 { 8632 return ErrIntOverflowAuth 8633 } 8634 if iNdEx >= l { 8635 return io.ErrUnexpectedEOF 8636 } 8637 b := dAtA[iNdEx] 8638 iNdEx++ 8639 wire |= uint64(b&0x7F) << shift 8640 if b < 0x80 { 8641 break 8642 } 8643 } 8644 fieldNum := int32(wire >> 3) 8645 wireType := int(wire & 0x7) 8646 if wireType == 4 { 8647 return fmt.Errorf("proto: AuthenticateResponse: wiretype end group for non-group") 8648 } 8649 if fieldNum <= 0 { 8650 return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8651 } 8652 switch fieldNum { 8653 case 1: 8654 if wireType != 2 { 8655 return fmt.Errorf("proto: wrong wireType = %d for field PachToken", wireType) 8656 } 8657 var stringLen uint64 8658 for shift := uint(0); ; shift += 7 { 8659 if shift >= 64 { 8660 return ErrIntOverflowAuth 8661 } 8662 if iNdEx >= l { 8663 return io.ErrUnexpectedEOF 8664 } 8665 b := dAtA[iNdEx] 8666 iNdEx++ 8667 stringLen |= uint64(b&0x7F) << shift 8668 if b < 0x80 { 8669 break 8670 } 8671 } 8672 intStringLen := int(stringLen) 8673 if intStringLen < 0 { 8674 return ErrInvalidLengthAuth 8675 } 8676 postIndex := iNdEx + intStringLen 8677 if postIndex < 0 { 8678 return ErrInvalidLengthAuth 8679 } 8680 if postIndex > l { 8681 return io.ErrUnexpectedEOF 8682 } 8683 m.PachToken = string(dAtA[iNdEx:postIndex]) 8684 iNdEx = postIndex 8685 default: 8686 iNdEx = preIndex 8687 skippy, err := skipAuth(dAtA[iNdEx:]) 8688 if err != nil { 8689 return err 8690 } 8691 if (skippy < 0) || (iNdEx+skippy) < 0 { 8692 return ErrInvalidLengthAuth 8693 } 8694 if (iNdEx + skippy) > l { 8695 return io.ErrUnexpectedEOF 8696 } 8697 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8698 iNdEx += skippy 8699 } 8700 } 8701 8702 if iNdEx > l { 8703 return io.ErrUnexpectedEOF 8704 } 8705 return nil 8706 } 8707 func (m *WhoAmIRequest) Unmarshal(dAtA []byte) error { 8708 l := len(dAtA) 8709 iNdEx := 0 8710 for iNdEx < l { 8711 preIndex := iNdEx 8712 var wire uint64 8713 for shift := uint(0); ; shift += 7 { 8714 if shift >= 64 { 8715 return ErrIntOverflowAuth 8716 } 8717 if iNdEx >= l { 8718 return io.ErrUnexpectedEOF 8719 } 8720 b := dAtA[iNdEx] 8721 iNdEx++ 8722 wire |= uint64(b&0x7F) << shift 8723 if b < 0x80 { 8724 break 8725 } 8726 } 8727 fieldNum := int32(wire >> 3) 8728 wireType := int(wire & 0x7) 8729 if wireType == 4 { 8730 return fmt.Errorf("proto: WhoAmIRequest: wiretype end group for non-group") 8731 } 8732 if fieldNum <= 0 { 8733 return fmt.Errorf("proto: WhoAmIRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8734 } 8735 switch fieldNum { 8736 default: 8737 iNdEx = preIndex 8738 skippy, err := skipAuth(dAtA[iNdEx:]) 8739 if err != nil { 8740 return err 8741 } 8742 if (skippy < 0) || (iNdEx+skippy) < 0 { 8743 return ErrInvalidLengthAuth 8744 } 8745 if (iNdEx + skippy) > l { 8746 return io.ErrUnexpectedEOF 8747 } 8748 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8749 iNdEx += skippy 8750 } 8751 } 8752 8753 if iNdEx > l { 8754 return io.ErrUnexpectedEOF 8755 } 8756 return nil 8757 } 8758 func (m *WhoAmIResponse) Unmarshal(dAtA []byte) error { 8759 l := len(dAtA) 8760 iNdEx := 0 8761 for iNdEx < l { 8762 preIndex := iNdEx 8763 var wire uint64 8764 for shift := uint(0); ; shift += 7 { 8765 if shift >= 64 { 8766 return ErrIntOverflowAuth 8767 } 8768 if iNdEx >= l { 8769 return io.ErrUnexpectedEOF 8770 } 8771 b := dAtA[iNdEx] 8772 iNdEx++ 8773 wire |= uint64(b&0x7F) << shift 8774 if b < 0x80 { 8775 break 8776 } 8777 } 8778 fieldNum := int32(wire >> 3) 8779 wireType := int(wire & 0x7) 8780 if wireType == 4 { 8781 return fmt.Errorf("proto: WhoAmIResponse: wiretype end group for non-group") 8782 } 8783 if fieldNum <= 0 { 8784 return fmt.Errorf("proto: WhoAmIResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8785 } 8786 switch fieldNum { 8787 case 1: 8788 if wireType != 2 { 8789 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 8790 } 8791 var stringLen uint64 8792 for shift := uint(0); ; shift += 7 { 8793 if shift >= 64 { 8794 return ErrIntOverflowAuth 8795 } 8796 if iNdEx >= l { 8797 return io.ErrUnexpectedEOF 8798 } 8799 b := dAtA[iNdEx] 8800 iNdEx++ 8801 stringLen |= uint64(b&0x7F) << shift 8802 if b < 0x80 { 8803 break 8804 } 8805 } 8806 intStringLen := int(stringLen) 8807 if intStringLen < 0 { 8808 return ErrInvalidLengthAuth 8809 } 8810 postIndex := iNdEx + intStringLen 8811 if postIndex < 0 { 8812 return ErrInvalidLengthAuth 8813 } 8814 if postIndex > l { 8815 return io.ErrUnexpectedEOF 8816 } 8817 m.Username = string(dAtA[iNdEx:postIndex]) 8818 iNdEx = postIndex 8819 case 2: 8820 if wireType != 0 { 8821 return fmt.Errorf("proto: wrong wireType = %d for field IsAdmin", wireType) 8822 } 8823 var v int 8824 for shift := uint(0); ; shift += 7 { 8825 if shift >= 64 { 8826 return ErrIntOverflowAuth 8827 } 8828 if iNdEx >= l { 8829 return io.ErrUnexpectedEOF 8830 } 8831 b := dAtA[iNdEx] 8832 iNdEx++ 8833 v |= int(b&0x7F) << shift 8834 if b < 0x80 { 8835 break 8836 } 8837 } 8838 m.IsAdmin = bool(v != 0) 8839 case 3: 8840 if wireType != 0 { 8841 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) 8842 } 8843 m.TTL = 0 8844 for shift := uint(0); ; shift += 7 { 8845 if shift >= 64 { 8846 return ErrIntOverflowAuth 8847 } 8848 if iNdEx >= l { 8849 return io.ErrUnexpectedEOF 8850 } 8851 b := dAtA[iNdEx] 8852 iNdEx++ 8853 m.TTL |= int64(b&0x7F) << shift 8854 if b < 0x80 { 8855 break 8856 } 8857 } 8858 default: 8859 iNdEx = preIndex 8860 skippy, err := skipAuth(dAtA[iNdEx:]) 8861 if err != nil { 8862 return err 8863 } 8864 if (skippy < 0) || (iNdEx+skippy) < 0 { 8865 return ErrInvalidLengthAuth 8866 } 8867 if (iNdEx + skippy) > l { 8868 return io.ErrUnexpectedEOF 8869 } 8870 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8871 iNdEx += skippy 8872 } 8873 } 8874 8875 if iNdEx > l { 8876 return io.ErrUnexpectedEOF 8877 } 8878 return nil 8879 } 8880 func (m *ACL) Unmarshal(dAtA []byte) error { 8881 l := len(dAtA) 8882 iNdEx := 0 8883 for iNdEx < l { 8884 preIndex := iNdEx 8885 var wire uint64 8886 for shift := uint(0); ; shift += 7 { 8887 if shift >= 64 { 8888 return ErrIntOverflowAuth 8889 } 8890 if iNdEx >= l { 8891 return io.ErrUnexpectedEOF 8892 } 8893 b := dAtA[iNdEx] 8894 iNdEx++ 8895 wire |= uint64(b&0x7F) << shift 8896 if b < 0x80 { 8897 break 8898 } 8899 } 8900 fieldNum := int32(wire >> 3) 8901 wireType := int(wire & 0x7) 8902 if wireType == 4 { 8903 return fmt.Errorf("proto: ACL: wiretype end group for non-group") 8904 } 8905 if fieldNum <= 0 { 8906 return fmt.Errorf("proto: ACL: illegal tag %d (wire type %d)", fieldNum, wire) 8907 } 8908 switch fieldNum { 8909 case 1: 8910 if wireType != 2 { 8911 return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) 8912 } 8913 var msglen int 8914 for shift := uint(0); ; shift += 7 { 8915 if shift >= 64 { 8916 return ErrIntOverflowAuth 8917 } 8918 if iNdEx >= l { 8919 return io.ErrUnexpectedEOF 8920 } 8921 b := dAtA[iNdEx] 8922 iNdEx++ 8923 msglen |= int(b&0x7F) << shift 8924 if b < 0x80 { 8925 break 8926 } 8927 } 8928 if msglen < 0 { 8929 return ErrInvalidLengthAuth 8930 } 8931 postIndex := iNdEx + msglen 8932 if postIndex < 0 { 8933 return ErrInvalidLengthAuth 8934 } 8935 if postIndex > l { 8936 return io.ErrUnexpectedEOF 8937 } 8938 if m.Entries == nil { 8939 m.Entries = make(map[string]Scope) 8940 } 8941 var mapkey string 8942 var mapvalue Scope 8943 for iNdEx < postIndex { 8944 entryPreIndex := iNdEx 8945 var wire uint64 8946 for shift := uint(0); ; shift += 7 { 8947 if shift >= 64 { 8948 return ErrIntOverflowAuth 8949 } 8950 if iNdEx >= l { 8951 return io.ErrUnexpectedEOF 8952 } 8953 b := dAtA[iNdEx] 8954 iNdEx++ 8955 wire |= uint64(b&0x7F) << shift 8956 if b < 0x80 { 8957 break 8958 } 8959 } 8960 fieldNum := int32(wire >> 3) 8961 if fieldNum == 1 { 8962 var stringLenmapkey uint64 8963 for shift := uint(0); ; shift += 7 { 8964 if shift >= 64 { 8965 return ErrIntOverflowAuth 8966 } 8967 if iNdEx >= l { 8968 return io.ErrUnexpectedEOF 8969 } 8970 b := dAtA[iNdEx] 8971 iNdEx++ 8972 stringLenmapkey |= uint64(b&0x7F) << shift 8973 if b < 0x80 { 8974 break 8975 } 8976 } 8977 intStringLenmapkey := int(stringLenmapkey) 8978 if intStringLenmapkey < 0 { 8979 return ErrInvalidLengthAuth 8980 } 8981 postStringIndexmapkey := iNdEx + intStringLenmapkey 8982 if postStringIndexmapkey < 0 { 8983 return ErrInvalidLengthAuth 8984 } 8985 if postStringIndexmapkey > l { 8986 return io.ErrUnexpectedEOF 8987 } 8988 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 8989 iNdEx = postStringIndexmapkey 8990 } else if fieldNum == 2 { 8991 for shift := uint(0); ; shift += 7 { 8992 if shift >= 64 { 8993 return ErrIntOverflowAuth 8994 } 8995 if iNdEx >= l { 8996 return io.ErrUnexpectedEOF 8997 } 8998 b := dAtA[iNdEx] 8999 iNdEx++ 9000 mapvalue |= Scope(b&0x7F) << shift 9001 if b < 0x80 { 9002 break 9003 } 9004 } 9005 } else { 9006 iNdEx = entryPreIndex 9007 skippy, err := skipAuth(dAtA[iNdEx:]) 9008 if err != nil { 9009 return err 9010 } 9011 if (skippy < 0) || (iNdEx+skippy) < 0 { 9012 return ErrInvalidLengthAuth 9013 } 9014 if (iNdEx + skippy) > postIndex { 9015 return io.ErrUnexpectedEOF 9016 } 9017 iNdEx += skippy 9018 } 9019 } 9020 m.Entries[mapkey] = mapvalue 9021 iNdEx = postIndex 9022 default: 9023 iNdEx = preIndex 9024 skippy, err := skipAuth(dAtA[iNdEx:]) 9025 if err != nil { 9026 return err 9027 } 9028 if (skippy < 0) || (iNdEx+skippy) < 0 { 9029 return ErrInvalidLengthAuth 9030 } 9031 if (iNdEx + skippy) > l { 9032 return io.ErrUnexpectedEOF 9033 } 9034 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9035 iNdEx += skippy 9036 } 9037 } 9038 9039 if iNdEx > l { 9040 return io.ErrUnexpectedEOF 9041 } 9042 return nil 9043 } 9044 func (m *Users) Unmarshal(dAtA []byte) error { 9045 l := len(dAtA) 9046 iNdEx := 0 9047 for iNdEx < l { 9048 preIndex := iNdEx 9049 var wire uint64 9050 for shift := uint(0); ; shift += 7 { 9051 if shift >= 64 { 9052 return ErrIntOverflowAuth 9053 } 9054 if iNdEx >= l { 9055 return io.ErrUnexpectedEOF 9056 } 9057 b := dAtA[iNdEx] 9058 iNdEx++ 9059 wire |= uint64(b&0x7F) << shift 9060 if b < 0x80 { 9061 break 9062 } 9063 } 9064 fieldNum := int32(wire >> 3) 9065 wireType := int(wire & 0x7) 9066 if wireType == 4 { 9067 return fmt.Errorf("proto: Users: wiretype end group for non-group") 9068 } 9069 if fieldNum <= 0 { 9070 return fmt.Errorf("proto: Users: illegal tag %d (wire type %d)", fieldNum, wire) 9071 } 9072 switch fieldNum { 9073 case 1: 9074 if wireType != 2 { 9075 return fmt.Errorf("proto: wrong wireType = %d for field Usernames", wireType) 9076 } 9077 var msglen int 9078 for shift := uint(0); ; shift += 7 { 9079 if shift >= 64 { 9080 return ErrIntOverflowAuth 9081 } 9082 if iNdEx >= l { 9083 return io.ErrUnexpectedEOF 9084 } 9085 b := dAtA[iNdEx] 9086 iNdEx++ 9087 msglen |= int(b&0x7F) << shift 9088 if b < 0x80 { 9089 break 9090 } 9091 } 9092 if msglen < 0 { 9093 return ErrInvalidLengthAuth 9094 } 9095 postIndex := iNdEx + msglen 9096 if postIndex < 0 { 9097 return ErrInvalidLengthAuth 9098 } 9099 if postIndex > l { 9100 return io.ErrUnexpectedEOF 9101 } 9102 if m.Usernames == nil { 9103 m.Usernames = make(map[string]bool) 9104 } 9105 var mapkey string 9106 var mapvalue bool 9107 for iNdEx < postIndex { 9108 entryPreIndex := iNdEx 9109 var wire uint64 9110 for shift := uint(0); ; shift += 7 { 9111 if shift >= 64 { 9112 return ErrIntOverflowAuth 9113 } 9114 if iNdEx >= l { 9115 return io.ErrUnexpectedEOF 9116 } 9117 b := dAtA[iNdEx] 9118 iNdEx++ 9119 wire |= uint64(b&0x7F) << shift 9120 if b < 0x80 { 9121 break 9122 } 9123 } 9124 fieldNum := int32(wire >> 3) 9125 if fieldNum == 1 { 9126 var stringLenmapkey uint64 9127 for shift := uint(0); ; shift += 7 { 9128 if shift >= 64 { 9129 return ErrIntOverflowAuth 9130 } 9131 if iNdEx >= l { 9132 return io.ErrUnexpectedEOF 9133 } 9134 b := dAtA[iNdEx] 9135 iNdEx++ 9136 stringLenmapkey |= uint64(b&0x7F) << shift 9137 if b < 0x80 { 9138 break 9139 } 9140 } 9141 intStringLenmapkey := int(stringLenmapkey) 9142 if intStringLenmapkey < 0 { 9143 return ErrInvalidLengthAuth 9144 } 9145 postStringIndexmapkey := iNdEx + intStringLenmapkey 9146 if postStringIndexmapkey < 0 { 9147 return ErrInvalidLengthAuth 9148 } 9149 if postStringIndexmapkey > l { 9150 return io.ErrUnexpectedEOF 9151 } 9152 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 9153 iNdEx = postStringIndexmapkey 9154 } else if fieldNum == 2 { 9155 var mapvaluetemp int 9156 for shift := uint(0); ; shift += 7 { 9157 if shift >= 64 { 9158 return ErrIntOverflowAuth 9159 } 9160 if iNdEx >= l { 9161 return io.ErrUnexpectedEOF 9162 } 9163 b := dAtA[iNdEx] 9164 iNdEx++ 9165 mapvaluetemp |= int(b&0x7F) << shift 9166 if b < 0x80 { 9167 break 9168 } 9169 } 9170 mapvalue = bool(mapvaluetemp != 0) 9171 } else { 9172 iNdEx = entryPreIndex 9173 skippy, err := skipAuth(dAtA[iNdEx:]) 9174 if err != nil { 9175 return err 9176 } 9177 if (skippy < 0) || (iNdEx+skippy) < 0 { 9178 return ErrInvalidLengthAuth 9179 } 9180 if (iNdEx + skippy) > postIndex { 9181 return io.ErrUnexpectedEOF 9182 } 9183 iNdEx += skippy 9184 } 9185 } 9186 m.Usernames[mapkey] = mapvalue 9187 iNdEx = postIndex 9188 default: 9189 iNdEx = preIndex 9190 skippy, err := skipAuth(dAtA[iNdEx:]) 9191 if err != nil { 9192 return err 9193 } 9194 if (skippy < 0) || (iNdEx+skippy) < 0 { 9195 return ErrInvalidLengthAuth 9196 } 9197 if (iNdEx + skippy) > l { 9198 return io.ErrUnexpectedEOF 9199 } 9200 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9201 iNdEx += skippy 9202 } 9203 } 9204 9205 if iNdEx > l { 9206 return io.ErrUnexpectedEOF 9207 } 9208 return nil 9209 } 9210 func (m *Groups) Unmarshal(dAtA []byte) error { 9211 l := len(dAtA) 9212 iNdEx := 0 9213 for iNdEx < l { 9214 preIndex := iNdEx 9215 var wire uint64 9216 for shift := uint(0); ; shift += 7 { 9217 if shift >= 64 { 9218 return ErrIntOverflowAuth 9219 } 9220 if iNdEx >= l { 9221 return io.ErrUnexpectedEOF 9222 } 9223 b := dAtA[iNdEx] 9224 iNdEx++ 9225 wire |= uint64(b&0x7F) << shift 9226 if b < 0x80 { 9227 break 9228 } 9229 } 9230 fieldNum := int32(wire >> 3) 9231 wireType := int(wire & 0x7) 9232 if wireType == 4 { 9233 return fmt.Errorf("proto: Groups: wiretype end group for non-group") 9234 } 9235 if fieldNum <= 0 { 9236 return fmt.Errorf("proto: Groups: illegal tag %d (wire type %d)", fieldNum, wire) 9237 } 9238 switch fieldNum { 9239 case 1: 9240 if wireType != 2 { 9241 return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) 9242 } 9243 var msglen int 9244 for shift := uint(0); ; shift += 7 { 9245 if shift >= 64 { 9246 return ErrIntOverflowAuth 9247 } 9248 if iNdEx >= l { 9249 return io.ErrUnexpectedEOF 9250 } 9251 b := dAtA[iNdEx] 9252 iNdEx++ 9253 msglen |= int(b&0x7F) << shift 9254 if b < 0x80 { 9255 break 9256 } 9257 } 9258 if msglen < 0 { 9259 return ErrInvalidLengthAuth 9260 } 9261 postIndex := iNdEx + msglen 9262 if postIndex < 0 { 9263 return ErrInvalidLengthAuth 9264 } 9265 if postIndex > l { 9266 return io.ErrUnexpectedEOF 9267 } 9268 if m.Groups == nil { 9269 m.Groups = make(map[string]bool) 9270 } 9271 var mapkey string 9272 var mapvalue bool 9273 for iNdEx < postIndex { 9274 entryPreIndex := iNdEx 9275 var wire uint64 9276 for shift := uint(0); ; shift += 7 { 9277 if shift >= 64 { 9278 return ErrIntOverflowAuth 9279 } 9280 if iNdEx >= l { 9281 return io.ErrUnexpectedEOF 9282 } 9283 b := dAtA[iNdEx] 9284 iNdEx++ 9285 wire |= uint64(b&0x7F) << shift 9286 if b < 0x80 { 9287 break 9288 } 9289 } 9290 fieldNum := int32(wire >> 3) 9291 if fieldNum == 1 { 9292 var stringLenmapkey uint64 9293 for shift := uint(0); ; shift += 7 { 9294 if shift >= 64 { 9295 return ErrIntOverflowAuth 9296 } 9297 if iNdEx >= l { 9298 return io.ErrUnexpectedEOF 9299 } 9300 b := dAtA[iNdEx] 9301 iNdEx++ 9302 stringLenmapkey |= uint64(b&0x7F) << shift 9303 if b < 0x80 { 9304 break 9305 } 9306 } 9307 intStringLenmapkey := int(stringLenmapkey) 9308 if intStringLenmapkey < 0 { 9309 return ErrInvalidLengthAuth 9310 } 9311 postStringIndexmapkey := iNdEx + intStringLenmapkey 9312 if postStringIndexmapkey < 0 { 9313 return ErrInvalidLengthAuth 9314 } 9315 if postStringIndexmapkey > l { 9316 return io.ErrUnexpectedEOF 9317 } 9318 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 9319 iNdEx = postStringIndexmapkey 9320 } else if fieldNum == 2 { 9321 var mapvaluetemp int 9322 for shift := uint(0); ; shift += 7 { 9323 if shift >= 64 { 9324 return ErrIntOverflowAuth 9325 } 9326 if iNdEx >= l { 9327 return io.ErrUnexpectedEOF 9328 } 9329 b := dAtA[iNdEx] 9330 iNdEx++ 9331 mapvaluetemp |= int(b&0x7F) << shift 9332 if b < 0x80 { 9333 break 9334 } 9335 } 9336 mapvalue = bool(mapvaluetemp != 0) 9337 } else { 9338 iNdEx = entryPreIndex 9339 skippy, err := skipAuth(dAtA[iNdEx:]) 9340 if err != nil { 9341 return err 9342 } 9343 if (skippy < 0) || (iNdEx+skippy) < 0 { 9344 return ErrInvalidLengthAuth 9345 } 9346 if (iNdEx + skippy) > postIndex { 9347 return io.ErrUnexpectedEOF 9348 } 9349 iNdEx += skippy 9350 } 9351 } 9352 m.Groups[mapkey] = mapvalue 9353 iNdEx = postIndex 9354 default: 9355 iNdEx = preIndex 9356 skippy, err := skipAuth(dAtA[iNdEx:]) 9357 if err != nil { 9358 return err 9359 } 9360 if (skippy < 0) || (iNdEx+skippy) < 0 { 9361 return ErrInvalidLengthAuth 9362 } 9363 if (iNdEx + skippy) > l { 9364 return io.ErrUnexpectedEOF 9365 } 9366 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9367 iNdEx += skippy 9368 } 9369 } 9370 9371 if iNdEx > l { 9372 return io.ErrUnexpectedEOF 9373 } 9374 return nil 9375 } 9376 func (m *AuthorizeRequest) Unmarshal(dAtA []byte) error { 9377 l := len(dAtA) 9378 iNdEx := 0 9379 for iNdEx < l { 9380 preIndex := iNdEx 9381 var wire uint64 9382 for shift := uint(0); ; shift += 7 { 9383 if shift >= 64 { 9384 return ErrIntOverflowAuth 9385 } 9386 if iNdEx >= l { 9387 return io.ErrUnexpectedEOF 9388 } 9389 b := dAtA[iNdEx] 9390 iNdEx++ 9391 wire |= uint64(b&0x7F) << shift 9392 if b < 0x80 { 9393 break 9394 } 9395 } 9396 fieldNum := int32(wire >> 3) 9397 wireType := int(wire & 0x7) 9398 if wireType == 4 { 9399 return fmt.Errorf("proto: AuthorizeRequest: wiretype end group for non-group") 9400 } 9401 if fieldNum <= 0 { 9402 return fmt.Errorf("proto: AuthorizeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 9403 } 9404 switch fieldNum { 9405 case 1: 9406 if wireType != 2 { 9407 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 9408 } 9409 var stringLen uint64 9410 for shift := uint(0); ; shift += 7 { 9411 if shift >= 64 { 9412 return ErrIntOverflowAuth 9413 } 9414 if iNdEx >= l { 9415 return io.ErrUnexpectedEOF 9416 } 9417 b := dAtA[iNdEx] 9418 iNdEx++ 9419 stringLen |= uint64(b&0x7F) << shift 9420 if b < 0x80 { 9421 break 9422 } 9423 } 9424 intStringLen := int(stringLen) 9425 if intStringLen < 0 { 9426 return ErrInvalidLengthAuth 9427 } 9428 postIndex := iNdEx + intStringLen 9429 if postIndex < 0 { 9430 return ErrInvalidLengthAuth 9431 } 9432 if postIndex > l { 9433 return io.ErrUnexpectedEOF 9434 } 9435 m.Repo = string(dAtA[iNdEx:postIndex]) 9436 iNdEx = postIndex 9437 case 2: 9438 if wireType != 0 { 9439 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) 9440 } 9441 m.Scope = 0 9442 for shift := uint(0); ; shift += 7 { 9443 if shift >= 64 { 9444 return ErrIntOverflowAuth 9445 } 9446 if iNdEx >= l { 9447 return io.ErrUnexpectedEOF 9448 } 9449 b := dAtA[iNdEx] 9450 iNdEx++ 9451 m.Scope |= Scope(b&0x7F) << shift 9452 if b < 0x80 { 9453 break 9454 } 9455 } 9456 default: 9457 iNdEx = preIndex 9458 skippy, err := skipAuth(dAtA[iNdEx:]) 9459 if err != nil { 9460 return err 9461 } 9462 if (skippy < 0) || (iNdEx+skippy) < 0 { 9463 return ErrInvalidLengthAuth 9464 } 9465 if (iNdEx + skippy) > l { 9466 return io.ErrUnexpectedEOF 9467 } 9468 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9469 iNdEx += skippy 9470 } 9471 } 9472 9473 if iNdEx > l { 9474 return io.ErrUnexpectedEOF 9475 } 9476 return nil 9477 } 9478 func (m *AuthorizeResponse) Unmarshal(dAtA []byte) error { 9479 l := len(dAtA) 9480 iNdEx := 0 9481 for iNdEx < l { 9482 preIndex := iNdEx 9483 var wire uint64 9484 for shift := uint(0); ; shift += 7 { 9485 if shift >= 64 { 9486 return ErrIntOverflowAuth 9487 } 9488 if iNdEx >= l { 9489 return io.ErrUnexpectedEOF 9490 } 9491 b := dAtA[iNdEx] 9492 iNdEx++ 9493 wire |= uint64(b&0x7F) << shift 9494 if b < 0x80 { 9495 break 9496 } 9497 } 9498 fieldNum := int32(wire >> 3) 9499 wireType := int(wire & 0x7) 9500 if wireType == 4 { 9501 return fmt.Errorf("proto: AuthorizeResponse: wiretype end group for non-group") 9502 } 9503 if fieldNum <= 0 { 9504 return fmt.Errorf("proto: AuthorizeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9505 } 9506 switch fieldNum { 9507 case 1: 9508 if wireType != 0 { 9509 return fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) 9510 } 9511 var v int 9512 for shift := uint(0); ; shift += 7 { 9513 if shift >= 64 { 9514 return ErrIntOverflowAuth 9515 } 9516 if iNdEx >= l { 9517 return io.ErrUnexpectedEOF 9518 } 9519 b := dAtA[iNdEx] 9520 iNdEx++ 9521 v |= int(b&0x7F) << shift 9522 if b < 0x80 { 9523 break 9524 } 9525 } 9526 m.Authorized = bool(v != 0) 9527 default: 9528 iNdEx = preIndex 9529 skippy, err := skipAuth(dAtA[iNdEx:]) 9530 if err != nil { 9531 return err 9532 } 9533 if (skippy < 0) || (iNdEx+skippy) < 0 { 9534 return ErrInvalidLengthAuth 9535 } 9536 if (iNdEx + skippy) > l { 9537 return io.ErrUnexpectedEOF 9538 } 9539 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9540 iNdEx += skippy 9541 } 9542 } 9543 9544 if iNdEx > l { 9545 return io.ErrUnexpectedEOF 9546 } 9547 return nil 9548 } 9549 func (m *GetScopeRequest) Unmarshal(dAtA []byte) error { 9550 l := len(dAtA) 9551 iNdEx := 0 9552 for iNdEx < l { 9553 preIndex := iNdEx 9554 var wire uint64 9555 for shift := uint(0); ; shift += 7 { 9556 if shift >= 64 { 9557 return ErrIntOverflowAuth 9558 } 9559 if iNdEx >= l { 9560 return io.ErrUnexpectedEOF 9561 } 9562 b := dAtA[iNdEx] 9563 iNdEx++ 9564 wire |= uint64(b&0x7F) << shift 9565 if b < 0x80 { 9566 break 9567 } 9568 } 9569 fieldNum := int32(wire >> 3) 9570 wireType := int(wire & 0x7) 9571 if wireType == 4 { 9572 return fmt.Errorf("proto: GetScopeRequest: wiretype end group for non-group") 9573 } 9574 if fieldNum <= 0 { 9575 return fmt.Errorf("proto: GetScopeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 9576 } 9577 switch fieldNum { 9578 case 1: 9579 if wireType != 2 { 9580 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 9581 } 9582 var stringLen uint64 9583 for shift := uint(0); ; shift += 7 { 9584 if shift >= 64 { 9585 return ErrIntOverflowAuth 9586 } 9587 if iNdEx >= l { 9588 return io.ErrUnexpectedEOF 9589 } 9590 b := dAtA[iNdEx] 9591 iNdEx++ 9592 stringLen |= uint64(b&0x7F) << shift 9593 if b < 0x80 { 9594 break 9595 } 9596 } 9597 intStringLen := int(stringLen) 9598 if intStringLen < 0 { 9599 return ErrInvalidLengthAuth 9600 } 9601 postIndex := iNdEx + intStringLen 9602 if postIndex < 0 { 9603 return ErrInvalidLengthAuth 9604 } 9605 if postIndex > l { 9606 return io.ErrUnexpectedEOF 9607 } 9608 m.Username = string(dAtA[iNdEx:postIndex]) 9609 iNdEx = postIndex 9610 case 2: 9611 if wireType != 2 { 9612 return fmt.Errorf("proto: wrong wireType = %d for field Repos", wireType) 9613 } 9614 var stringLen uint64 9615 for shift := uint(0); ; shift += 7 { 9616 if shift >= 64 { 9617 return ErrIntOverflowAuth 9618 } 9619 if iNdEx >= l { 9620 return io.ErrUnexpectedEOF 9621 } 9622 b := dAtA[iNdEx] 9623 iNdEx++ 9624 stringLen |= uint64(b&0x7F) << shift 9625 if b < 0x80 { 9626 break 9627 } 9628 } 9629 intStringLen := int(stringLen) 9630 if intStringLen < 0 { 9631 return ErrInvalidLengthAuth 9632 } 9633 postIndex := iNdEx + intStringLen 9634 if postIndex < 0 { 9635 return ErrInvalidLengthAuth 9636 } 9637 if postIndex > l { 9638 return io.ErrUnexpectedEOF 9639 } 9640 m.Repos = append(m.Repos, string(dAtA[iNdEx:postIndex])) 9641 iNdEx = postIndex 9642 default: 9643 iNdEx = preIndex 9644 skippy, err := skipAuth(dAtA[iNdEx:]) 9645 if err != nil { 9646 return err 9647 } 9648 if (skippy < 0) || (iNdEx+skippy) < 0 { 9649 return ErrInvalidLengthAuth 9650 } 9651 if (iNdEx + skippy) > l { 9652 return io.ErrUnexpectedEOF 9653 } 9654 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9655 iNdEx += skippy 9656 } 9657 } 9658 9659 if iNdEx > l { 9660 return io.ErrUnexpectedEOF 9661 } 9662 return nil 9663 } 9664 func (m *GetScopeResponse) Unmarshal(dAtA []byte) error { 9665 l := len(dAtA) 9666 iNdEx := 0 9667 for iNdEx < l { 9668 preIndex := iNdEx 9669 var wire uint64 9670 for shift := uint(0); ; shift += 7 { 9671 if shift >= 64 { 9672 return ErrIntOverflowAuth 9673 } 9674 if iNdEx >= l { 9675 return io.ErrUnexpectedEOF 9676 } 9677 b := dAtA[iNdEx] 9678 iNdEx++ 9679 wire |= uint64(b&0x7F) << shift 9680 if b < 0x80 { 9681 break 9682 } 9683 } 9684 fieldNum := int32(wire >> 3) 9685 wireType := int(wire & 0x7) 9686 if wireType == 4 { 9687 return fmt.Errorf("proto: GetScopeResponse: wiretype end group for non-group") 9688 } 9689 if fieldNum <= 0 { 9690 return fmt.Errorf("proto: GetScopeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9691 } 9692 switch fieldNum { 9693 case 1: 9694 if wireType == 0 { 9695 var v Scope 9696 for shift := uint(0); ; shift += 7 { 9697 if shift >= 64 { 9698 return ErrIntOverflowAuth 9699 } 9700 if iNdEx >= l { 9701 return io.ErrUnexpectedEOF 9702 } 9703 b := dAtA[iNdEx] 9704 iNdEx++ 9705 v |= Scope(b&0x7F) << shift 9706 if b < 0x80 { 9707 break 9708 } 9709 } 9710 m.Scopes = append(m.Scopes, v) 9711 } else if wireType == 2 { 9712 var packedLen int 9713 for shift := uint(0); ; shift += 7 { 9714 if shift >= 64 { 9715 return ErrIntOverflowAuth 9716 } 9717 if iNdEx >= l { 9718 return io.ErrUnexpectedEOF 9719 } 9720 b := dAtA[iNdEx] 9721 iNdEx++ 9722 packedLen |= int(b&0x7F) << shift 9723 if b < 0x80 { 9724 break 9725 } 9726 } 9727 if packedLen < 0 { 9728 return ErrInvalidLengthAuth 9729 } 9730 postIndex := iNdEx + packedLen 9731 if postIndex < 0 { 9732 return ErrInvalidLengthAuth 9733 } 9734 if postIndex > l { 9735 return io.ErrUnexpectedEOF 9736 } 9737 var elementCount int 9738 if elementCount != 0 && len(m.Scopes) == 0 { 9739 m.Scopes = make([]Scope, 0, elementCount) 9740 } 9741 for iNdEx < postIndex { 9742 var v Scope 9743 for shift := uint(0); ; shift += 7 { 9744 if shift >= 64 { 9745 return ErrIntOverflowAuth 9746 } 9747 if iNdEx >= l { 9748 return io.ErrUnexpectedEOF 9749 } 9750 b := dAtA[iNdEx] 9751 iNdEx++ 9752 v |= Scope(b&0x7F) << shift 9753 if b < 0x80 { 9754 break 9755 } 9756 } 9757 m.Scopes = append(m.Scopes, v) 9758 } 9759 } else { 9760 return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) 9761 } 9762 default: 9763 iNdEx = preIndex 9764 skippy, err := skipAuth(dAtA[iNdEx:]) 9765 if err != nil { 9766 return err 9767 } 9768 if (skippy < 0) || (iNdEx+skippy) < 0 { 9769 return ErrInvalidLengthAuth 9770 } 9771 if (iNdEx + skippy) > l { 9772 return io.ErrUnexpectedEOF 9773 } 9774 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9775 iNdEx += skippy 9776 } 9777 } 9778 9779 if iNdEx > l { 9780 return io.ErrUnexpectedEOF 9781 } 9782 return nil 9783 } 9784 func (m *SetScopeRequest) Unmarshal(dAtA []byte) error { 9785 l := len(dAtA) 9786 iNdEx := 0 9787 for iNdEx < l { 9788 preIndex := iNdEx 9789 var wire uint64 9790 for shift := uint(0); ; shift += 7 { 9791 if shift >= 64 { 9792 return ErrIntOverflowAuth 9793 } 9794 if iNdEx >= l { 9795 return io.ErrUnexpectedEOF 9796 } 9797 b := dAtA[iNdEx] 9798 iNdEx++ 9799 wire |= uint64(b&0x7F) << shift 9800 if b < 0x80 { 9801 break 9802 } 9803 } 9804 fieldNum := int32(wire >> 3) 9805 wireType := int(wire & 0x7) 9806 if wireType == 4 { 9807 return fmt.Errorf("proto: SetScopeRequest: wiretype end group for non-group") 9808 } 9809 if fieldNum <= 0 { 9810 return fmt.Errorf("proto: SetScopeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 9811 } 9812 switch fieldNum { 9813 case 1: 9814 if wireType != 2 { 9815 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 9816 } 9817 var stringLen uint64 9818 for shift := uint(0); ; shift += 7 { 9819 if shift >= 64 { 9820 return ErrIntOverflowAuth 9821 } 9822 if iNdEx >= l { 9823 return io.ErrUnexpectedEOF 9824 } 9825 b := dAtA[iNdEx] 9826 iNdEx++ 9827 stringLen |= uint64(b&0x7F) << shift 9828 if b < 0x80 { 9829 break 9830 } 9831 } 9832 intStringLen := int(stringLen) 9833 if intStringLen < 0 { 9834 return ErrInvalidLengthAuth 9835 } 9836 postIndex := iNdEx + intStringLen 9837 if postIndex < 0 { 9838 return ErrInvalidLengthAuth 9839 } 9840 if postIndex > l { 9841 return io.ErrUnexpectedEOF 9842 } 9843 m.Username = string(dAtA[iNdEx:postIndex]) 9844 iNdEx = postIndex 9845 case 2: 9846 if wireType != 2 { 9847 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 9848 } 9849 var stringLen uint64 9850 for shift := uint(0); ; shift += 7 { 9851 if shift >= 64 { 9852 return ErrIntOverflowAuth 9853 } 9854 if iNdEx >= l { 9855 return io.ErrUnexpectedEOF 9856 } 9857 b := dAtA[iNdEx] 9858 iNdEx++ 9859 stringLen |= uint64(b&0x7F) << shift 9860 if b < 0x80 { 9861 break 9862 } 9863 } 9864 intStringLen := int(stringLen) 9865 if intStringLen < 0 { 9866 return ErrInvalidLengthAuth 9867 } 9868 postIndex := iNdEx + intStringLen 9869 if postIndex < 0 { 9870 return ErrInvalidLengthAuth 9871 } 9872 if postIndex > l { 9873 return io.ErrUnexpectedEOF 9874 } 9875 m.Repo = string(dAtA[iNdEx:postIndex]) 9876 iNdEx = postIndex 9877 case 3: 9878 if wireType != 0 { 9879 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) 9880 } 9881 m.Scope = 0 9882 for shift := uint(0); ; shift += 7 { 9883 if shift >= 64 { 9884 return ErrIntOverflowAuth 9885 } 9886 if iNdEx >= l { 9887 return io.ErrUnexpectedEOF 9888 } 9889 b := dAtA[iNdEx] 9890 iNdEx++ 9891 m.Scope |= Scope(b&0x7F) << shift 9892 if b < 0x80 { 9893 break 9894 } 9895 } 9896 default: 9897 iNdEx = preIndex 9898 skippy, err := skipAuth(dAtA[iNdEx:]) 9899 if err != nil { 9900 return err 9901 } 9902 if (skippy < 0) || (iNdEx+skippy) < 0 { 9903 return ErrInvalidLengthAuth 9904 } 9905 if (iNdEx + skippy) > l { 9906 return io.ErrUnexpectedEOF 9907 } 9908 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9909 iNdEx += skippy 9910 } 9911 } 9912 9913 if iNdEx > l { 9914 return io.ErrUnexpectedEOF 9915 } 9916 return nil 9917 } 9918 func (m *SetScopeResponse) Unmarshal(dAtA []byte) error { 9919 l := len(dAtA) 9920 iNdEx := 0 9921 for iNdEx < l { 9922 preIndex := iNdEx 9923 var wire uint64 9924 for shift := uint(0); ; shift += 7 { 9925 if shift >= 64 { 9926 return ErrIntOverflowAuth 9927 } 9928 if iNdEx >= l { 9929 return io.ErrUnexpectedEOF 9930 } 9931 b := dAtA[iNdEx] 9932 iNdEx++ 9933 wire |= uint64(b&0x7F) << shift 9934 if b < 0x80 { 9935 break 9936 } 9937 } 9938 fieldNum := int32(wire >> 3) 9939 wireType := int(wire & 0x7) 9940 if wireType == 4 { 9941 return fmt.Errorf("proto: SetScopeResponse: wiretype end group for non-group") 9942 } 9943 if fieldNum <= 0 { 9944 return fmt.Errorf("proto: SetScopeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9945 } 9946 switch fieldNum { 9947 default: 9948 iNdEx = preIndex 9949 skippy, err := skipAuth(dAtA[iNdEx:]) 9950 if err != nil { 9951 return err 9952 } 9953 if (skippy < 0) || (iNdEx+skippy) < 0 { 9954 return ErrInvalidLengthAuth 9955 } 9956 if (iNdEx + skippy) > l { 9957 return io.ErrUnexpectedEOF 9958 } 9959 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9960 iNdEx += skippy 9961 } 9962 } 9963 9964 if iNdEx > l { 9965 return io.ErrUnexpectedEOF 9966 } 9967 return nil 9968 } 9969 func (m *GetACLRequest) Unmarshal(dAtA []byte) error { 9970 l := len(dAtA) 9971 iNdEx := 0 9972 for iNdEx < l { 9973 preIndex := iNdEx 9974 var wire uint64 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 wire |= uint64(b&0x7F) << shift 9985 if b < 0x80 { 9986 break 9987 } 9988 } 9989 fieldNum := int32(wire >> 3) 9990 wireType := int(wire & 0x7) 9991 if wireType == 4 { 9992 return fmt.Errorf("proto: GetACLRequest: wiretype end group for non-group") 9993 } 9994 if fieldNum <= 0 { 9995 return fmt.Errorf("proto: GetACLRequest: illegal tag %d (wire type %d)", fieldNum, wire) 9996 } 9997 switch fieldNum { 9998 case 1: 9999 if wireType != 2 { 10000 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 10001 } 10002 var stringLen uint64 10003 for shift := uint(0); ; shift += 7 { 10004 if shift >= 64 { 10005 return ErrIntOverflowAuth 10006 } 10007 if iNdEx >= l { 10008 return io.ErrUnexpectedEOF 10009 } 10010 b := dAtA[iNdEx] 10011 iNdEx++ 10012 stringLen |= uint64(b&0x7F) << shift 10013 if b < 0x80 { 10014 break 10015 } 10016 } 10017 intStringLen := int(stringLen) 10018 if intStringLen < 0 { 10019 return ErrInvalidLengthAuth 10020 } 10021 postIndex := iNdEx + intStringLen 10022 if postIndex < 0 { 10023 return ErrInvalidLengthAuth 10024 } 10025 if postIndex > l { 10026 return io.ErrUnexpectedEOF 10027 } 10028 m.Repo = string(dAtA[iNdEx:postIndex]) 10029 iNdEx = postIndex 10030 default: 10031 iNdEx = preIndex 10032 skippy, err := skipAuth(dAtA[iNdEx:]) 10033 if err != nil { 10034 return err 10035 } 10036 if (skippy < 0) || (iNdEx+skippy) < 0 { 10037 return ErrInvalidLengthAuth 10038 } 10039 if (iNdEx + skippy) > l { 10040 return io.ErrUnexpectedEOF 10041 } 10042 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10043 iNdEx += skippy 10044 } 10045 } 10046 10047 if iNdEx > l { 10048 return io.ErrUnexpectedEOF 10049 } 10050 return nil 10051 } 10052 func (m *ACLEntry) Unmarshal(dAtA []byte) error { 10053 l := len(dAtA) 10054 iNdEx := 0 10055 for iNdEx < l { 10056 preIndex := iNdEx 10057 var wire uint64 10058 for shift := uint(0); ; shift += 7 { 10059 if shift >= 64 { 10060 return ErrIntOverflowAuth 10061 } 10062 if iNdEx >= l { 10063 return io.ErrUnexpectedEOF 10064 } 10065 b := dAtA[iNdEx] 10066 iNdEx++ 10067 wire |= uint64(b&0x7F) << shift 10068 if b < 0x80 { 10069 break 10070 } 10071 } 10072 fieldNum := int32(wire >> 3) 10073 wireType := int(wire & 0x7) 10074 if wireType == 4 { 10075 return fmt.Errorf("proto: ACLEntry: wiretype end group for non-group") 10076 } 10077 if fieldNum <= 0 { 10078 return fmt.Errorf("proto: ACLEntry: illegal tag %d (wire type %d)", fieldNum, wire) 10079 } 10080 switch fieldNum { 10081 case 1: 10082 if wireType != 2 { 10083 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 10084 } 10085 var stringLen uint64 10086 for shift := uint(0); ; shift += 7 { 10087 if shift >= 64 { 10088 return ErrIntOverflowAuth 10089 } 10090 if iNdEx >= l { 10091 return io.ErrUnexpectedEOF 10092 } 10093 b := dAtA[iNdEx] 10094 iNdEx++ 10095 stringLen |= uint64(b&0x7F) << shift 10096 if b < 0x80 { 10097 break 10098 } 10099 } 10100 intStringLen := int(stringLen) 10101 if intStringLen < 0 { 10102 return ErrInvalidLengthAuth 10103 } 10104 postIndex := iNdEx + intStringLen 10105 if postIndex < 0 { 10106 return ErrInvalidLengthAuth 10107 } 10108 if postIndex > l { 10109 return io.ErrUnexpectedEOF 10110 } 10111 m.Username = string(dAtA[iNdEx:postIndex]) 10112 iNdEx = postIndex 10113 case 2: 10114 if wireType != 0 { 10115 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) 10116 } 10117 m.Scope = 0 10118 for shift := uint(0); ; shift += 7 { 10119 if shift >= 64 { 10120 return ErrIntOverflowAuth 10121 } 10122 if iNdEx >= l { 10123 return io.ErrUnexpectedEOF 10124 } 10125 b := dAtA[iNdEx] 10126 iNdEx++ 10127 m.Scope |= Scope(b&0x7F) << shift 10128 if b < 0x80 { 10129 break 10130 } 10131 } 10132 default: 10133 iNdEx = preIndex 10134 skippy, err := skipAuth(dAtA[iNdEx:]) 10135 if err != nil { 10136 return err 10137 } 10138 if (skippy < 0) || (iNdEx+skippy) < 0 { 10139 return ErrInvalidLengthAuth 10140 } 10141 if (iNdEx + skippy) > l { 10142 return io.ErrUnexpectedEOF 10143 } 10144 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10145 iNdEx += skippy 10146 } 10147 } 10148 10149 if iNdEx > l { 10150 return io.ErrUnexpectedEOF 10151 } 10152 return nil 10153 } 10154 func (m *GetACLResponse) Unmarshal(dAtA []byte) error { 10155 l := len(dAtA) 10156 iNdEx := 0 10157 for iNdEx < l { 10158 preIndex := iNdEx 10159 var wire uint64 10160 for shift := uint(0); ; shift += 7 { 10161 if shift >= 64 { 10162 return ErrIntOverflowAuth 10163 } 10164 if iNdEx >= l { 10165 return io.ErrUnexpectedEOF 10166 } 10167 b := dAtA[iNdEx] 10168 iNdEx++ 10169 wire |= uint64(b&0x7F) << shift 10170 if b < 0x80 { 10171 break 10172 } 10173 } 10174 fieldNum := int32(wire >> 3) 10175 wireType := int(wire & 0x7) 10176 if wireType == 4 { 10177 return fmt.Errorf("proto: GetACLResponse: wiretype end group for non-group") 10178 } 10179 if fieldNum <= 0 { 10180 return fmt.Errorf("proto: GetACLResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10181 } 10182 switch fieldNum { 10183 case 1: 10184 if wireType != 2 { 10185 return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) 10186 } 10187 var msglen int 10188 for shift := uint(0); ; shift += 7 { 10189 if shift >= 64 { 10190 return ErrIntOverflowAuth 10191 } 10192 if iNdEx >= l { 10193 return io.ErrUnexpectedEOF 10194 } 10195 b := dAtA[iNdEx] 10196 iNdEx++ 10197 msglen |= int(b&0x7F) << shift 10198 if b < 0x80 { 10199 break 10200 } 10201 } 10202 if msglen < 0 { 10203 return ErrInvalidLengthAuth 10204 } 10205 postIndex := iNdEx + msglen 10206 if postIndex < 0 { 10207 return ErrInvalidLengthAuth 10208 } 10209 if postIndex > l { 10210 return io.ErrUnexpectedEOF 10211 } 10212 m.Entries = append(m.Entries, &ACLEntry{}) 10213 if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10214 return err 10215 } 10216 iNdEx = postIndex 10217 case 2: 10218 if wireType != 2 { 10219 return fmt.Errorf("proto: wrong wireType = %d for field RobotEntries", wireType) 10220 } 10221 var msglen int 10222 for shift := uint(0); ; shift += 7 { 10223 if shift >= 64 { 10224 return ErrIntOverflowAuth 10225 } 10226 if iNdEx >= l { 10227 return io.ErrUnexpectedEOF 10228 } 10229 b := dAtA[iNdEx] 10230 iNdEx++ 10231 msglen |= int(b&0x7F) << shift 10232 if b < 0x80 { 10233 break 10234 } 10235 } 10236 if msglen < 0 { 10237 return ErrInvalidLengthAuth 10238 } 10239 postIndex := iNdEx + msglen 10240 if postIndex < 0 { 10241 return ErrInvalidLengthAuth 10242 } 10243 if postIndex > l { 10244 return io.ErrUnexpectedEOF 10245 } 10246 m.RobotEntries = append(m.RobotEntries, &ACLEntry{}) 10247 if err := m.RobotEntries[len(m.RobotEntries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10248 return err 10249 } 10250 iNdEx = postIndex 10251 default: 10252 iNdEx = preIndex 10253 skippy, err := skipAuth(dAtA[iNdEx:]) 10254 if err != nil { 10255 return err 10256 } 10257 if (skippy < 0) || (iNdEx+skippy) < 0 { 10258 return ErrInvalidLengthAuth 10259 } 10260 if (iNdEx + skippy) > l { 10261 return io.ErrUnexpectedEOF 10262 } 10263 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10264 iNdEx += skippy 10265 } 10266 } 10267 10268 if iNdEx > l { 10269 return io.ErrUnexpectedEOF 10270 } 10271 return nil 10272 } 10273 func (m *SetACLRequest) Unmarshal(dAtA []byte) error { 10274 l := len(dAtA) 10275 iNdEx := 0 10276 for iNdEx < l { 10277 preIndex := iNdEx 10278 var wire uint64 10279 for shift := uint(0); ; shift += 7 { 10280 if shift >= 64 { 10281 return ErrIntOverflowAuth 10282 } 10283 if iNdEx >= l { 10284 return io.ErrUnexpectedEOF 10285 } 10286 b := dAtA[iNdEx] 10287 iNdEx++ 10288 wire |= uint64(b&0x7F) << shift 10289 if b < 0x80 { 10290 break 10291 } 10292 } 10293 fieldNum := int32(wire >> 3) 10294 wireType := int(wire & 0x7) 10295 if wireType == 4 { 10296 return fmt.Errorf("proto: SetACLRequest: wiretype end group for non-group") 10297 } 10298 if fieldNum <= 0 { 10299 return fmt.Errorf("proto: SetACLRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10300 } 10301 switch fieldNum { 10302 case 1: 10303 if wireType != 2 { 10304 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 10305 } 10306 var stringLen uint64 10307 for shift := uint(0); ; shift += 7 { 10308 if shift >= 64 { 10309 return ErrIntOverflowAuth 10310 } 10311 if iNdEx >= l { 10312 return io.ErrUnexpectedEOF 10313 } 10314 b := dAtA[iNdEx] 10315 iNdEx++ 10316 stringLen |= uint64(b&0x7F) << shift 10317 if b < 0x80 { 10318 break 10319 } 10320 } 10321 intStringLen := int(stringLen) 10322 if intStringLen < 0 { 10323 return ErrInvalidLengthAuth 10324 } 10325 postIndex := iNdEx + intStringLen 10326 if postIndex < 0 { 10327 return ErrInvalidLengthAuth 10328 } 10329 if postIndex > l { 10330 return io.ErrUnexpectedEOF 10331 } 10332 m.Repo = string(dAtA[iNdEx:postIndex]) 10333 iNdEx = postIndex 10334 case 2: 10335 if wireType != 2 { 10336 return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) 10337 } 10338 var msglen int 10339 for shift := uint(0); ; shift += 7 { 10340 if shift >= 64 { 10341 return ErrIntOverflowAuth 10342 } 10343 if iNdEx >= l { 10344 return io.ErrUnexpectedEOF 10345 } 10346 b := dAtA[iNdEx] 10347 iNdEx++ 10348 msglen |= int(b&0x7F) << shift 10349 if b < 0x80 { 10350 break 10351 } 10352 } 10353 if msglen < 0 { 10354 return ErrInvalidLengthAuth 10355 } 10356 postIndex := iNdEx + msglen 10357 if postIndex < 0 { 10358 return ErrInvalidLengthAuth 10359 } 10360 if postIndex > l { 10361 return io.ErrUnexpectedEOF 10362 } 10363 m.Entries = append(m.Entries, &ACLEntry{}) 10364 if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 10365 return err 10366 } 10367 iNdEx = postIndex 10368 default: 10369 iNdEx = preIndex 10370 skippy, err := skipAuth(dAtA[iNdEx:]) 10371 if err != nil { 10372 return err 10373 } 10374 if (skippy < 0) || (iNdEx+skippy) < 0 { 10375 return ErrInvalidLengthAuth 10376 } 10377 if (iNdEx + skippy) > l { 10378 return io.ErrUnexpectedEOF 10379 } 10380 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10381 iNdEx += skippy 10382 } 10383 } 10384 10385 if iNdEx > l { 10386 return io.ErrUnexpectedEOF 10387 } 10388 return nil 10389 } 10390 func (m *SetACLResponse) Unmarshal(dAtA []byte) error { 10391 l := len(dAtA) 10392 iNdEx := 0 10393 for iNdEx < l { 10394 preIndex := iNdEx 10395 var wire uint64 10396 for shift := uint(0); ; shift += 7 { 10397 if shift >= 64 { 10398 return ErrIntOverflowAuth 10399 } 10400 if iNdEx >= l { 10401 return io.ErrUnexpectedEOF 10402 } 10403 b := dAtA[iNdEx] 10404 iNdEx++ 10405 wire |= uint64(b&0x7F) << shift 10406 if b < 0x80 { 10407 break 10408 } 10409 } 10410 fieldNum := int32(wire >> 3) 10411 wireType := int(wire & 0x7) 10412 if wireType == 4 { 10413 return fmt.Errorf("proto: SetACLResponse: wiretype end group for non-group") 10414 } 10415 if fieldNum <= 0 { 10416 return fmt.Errorf("proto: SetACLResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10417 } 10418 switch fieldNum { 10419 default: 10420 iNdEx = preIndex 10421 skippy, err := skipAuth(dAtA[iNdEx:]) 10422 if err != nil { 10423 return err 10424 } 10425 if (skippy < 0) || (iNdEx+skippy) < 0 { 10426 return ErrInvalidLengthAuth 10427 } 10428 if (iNdEx + skippy) > l { 10429 return io.ErrUnexpectedEOF 10430 } 10431 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10432 iNdEx += skippy 10433 } 10434 } 10435 10436 if iNdEx > l { 10437 return io.ErrUnexpectedEOF 10438 } 10439 return nil 10440 } 10441 func (m *GetAuthTokenRequest) Unmarshal(dAtA []byte) error { 10442 l := len(dAtA) 10443 iNdEx := 0 10444 for iNdEx < l { 10445 preIndex := iNdEx 10446 var wire uint64 10447 for shift := uint(0); ; shift += 7 { 10448 if shift >= 64 { 10449 return ErrIntOverflowAuth 10450 } 10451 if iNdEx >= l { 10452 return io.ErrUnexpectedEOF 10453 } 10454 b := dAtA[iNdEx] 10455 iNdEx++ 10456 wire |= uint64(b&0x7F) << shift 10457 if b < 0x80 { 10458 break 10459 } 10460 } 10461 fieldNum := int32(wire >> 3) 10462 wireType := int(wire & 0x7) 10463 if wireType == 4 { 10464 return fmt.Errorf("proto: GetAuthTokenRequest: wiretype end group for non-group") 10465 } 10466 if fieldNum <= 0 { 10467 return fmt.Errorf("proto: GetAuthTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10468 } 10469 switch fieldNum { 10470 case 1: 10471 if wireType != 2 { 10472 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 10473 } 10474 var stringLen uint64 10475 for shift := uint(0); ; shift += 7 { 10476 if shift >= 64 { 10477 return ErrIntOverflowAuth 10478 } 10479 if iNdEx >= l { 10480 return io.ErrUnexpectedEOF 10481 } 10482 b := dAtA[iNdEx] 10483 iNdEx++ 10484 stringLen |= uint64(b&0x7F) << shift 10485 if b < 0x80 { 10486 break 10487 } 10488 } 10489 intStringLen := int(stringLen) 10490 if intStringLen < 0 { 10491 return ErrInvalidLengthAuth 10492 } 10493 postIndex := iNdEx + intStringLen 10494 if postIndex < 0 { 10495 return ErrInvalidLengthAuth 10496 } 10497 if postIndex > l { 10498 return io.ErrUnexpectedEOF 10499 } 10500 m.Subject = string(dAtA[iNdEx:postIndex]) 10501 iNdEx = postIndex 10502 case 2: 10503 if wireType != 0 { 10504 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) 10505 } 10506 m.TTL = 0 10507 for shift := uint(0); ; shift += 7 { 10508 if shift >= 64 { 10509 return ErrIntOverflowAuth 10510 } 10511 if iNdEx >= l { 10512 return io.ErrUnexpectedEOF 10513 } 10514 b := dAtA[iNdEx] 10515 iNdEx++ 10516 m.TTL |= int64(b&0x7F) << shift 10517 if b < 0x80 { 10518 break 10519 } 10520 } 10521 default: 10522 iNdEx = preIndex 10523 skippy, err := skipAuth(dAtA[iNdEx:]) 10524 if err != nil { 10525 return err 10526 } 10527 if (skippy < 0) || (iNdEx+skippy) < 0 { 10528 return ErrInvalidLengthAuth 10529 } 10530 if (iNdEx + skippy) > l { 10531 return io.ErrUnexpectedEOF 10532 } 10533 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10534 iNdEx += skippy 10535 } 10536 } 10537 10538 if iNdEx > l { 10539 return io.ErrUnexpectedEOF 10540 } 10541 return nil 10542 } 10543 func (m *GetAuthTokenResponse) Unmarshal(dAtA []byte) error { 10544 l := len(dAtA) 10545 iNdEx := 0 10546 for iNdEx < l { 10547 preIndex := iNdEx 10548 var wire uint64 10549 for shift := uint(0); ; shift += 7 { 10550 if shift >= 64 { 10551 return ErrIntOverflowAuth 10552 } 10553 if iNdEx >= l { 10554 return io.ErrUnexpectedEOF 10555 } 10556 b := dAtA[iNdEx] 10557 iNdEx++ 10558 wire |= uint64(b&0x7F) << shift 10559 if b < 0x80 { 10560 break 10561 } 10562 } 10563 fieldNum := int32(wire >> 3) 10564 wireType := int(wire & 0x7) 10565 if wireType == 4 { 10566 return fmt.Errorf("proto: GetAuthTokenResponse: wiretype end group for non-group") 10567 } 10568 if fieldNum <= 0 { 10569 return fmt.Errorf("proto: GetAuthTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10570 } 10571 switch fieldNum { 10572 case 1: 10573 if wireType != 2 { 10574 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 10575 } 10576 var stringLen uint64 10577 for shift := uint(0); ; shift += 7 { 10578 if shift >= 64 { 10579 return ErrIntOverflowAuth 10580 } 10581 if iNdEx >= l { 10582 return io.ErrUnexpectedEOF 10583 } 10584 b := dAtA[iNdEx] 10585 iNdEx++ 10586 stringLen |= uint64(b&0x7F) << shift 10587 if b < 0x80 { 10588 break 10589 } 10590 } 10591 intStringLen := int(stringLen) 10592 if intStringLen < 0 { 10593 return ErrInvalidLengthAuth 10594 } 10595 postIndex := iNdEx + intStringLen 10596 if postIndex < 0 { 10597 return ErrInvalidLengthAuth 10598 } 10599 if postIndex > l { 10600 return io.ErrUnexpectedEOF 10601 } 10602 m.Token = string(dAtA[iNdEx:postIndex]) 10603 iNdEx = postIndex 10604 case 2: 10605 if wireType != 2 { 10606 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 10607 } 10608 var stringLen uint64 10609 for shift := uint(0); ; shift += 7 { 10610 if shift >= 64 { 10611 return ErrIntOverflowAuth 10612 } 10613 if iNdEx >= l { 10614 return io.ErrUnexpectedEOF 10615 } 10616 b := dAtA[iNdEx] 10617 iNdEx++ 10618 stringLen |= uint64(b&0x7F) << shift 10619 if b < 0x80 { 10620 break 10621 } 10622 } 10623 intStringLen := int(stringLen) 10624 if intStringLen < 0 { 10625 return ErrInvalidLengthAuth 10626 } 10627 postIndex := iNdEx + intStringLen 10628 if postIndex < 0 { 10629 return ErrInvalidLengthAuth 10630 } 10631 if postIndex > l { 10632 return io.ErrUnexpectedEOF 10633 } 10634 m.Subject = string(dAtA[iNdEx:postIndex]) 10635 iNdEx = postIndex 10636 default: 10637 iNdEx = preIndex 10638 skippy, err := skipAuth(dAtA[iNdEx:]) 10639 if err != nil { 10640 return err 10641 } 10642 if (skippy < 0) || (iNdEx+skippy) < 0 { 10643 return ErrInvalidLengthAuth 10644 } 10645 if (iNdEx + skippy) > l { 10646 return io.ErrUnexpectedEOF 10647 } 10648 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10649 iNdEx += skippy 10650 } 10651 } 10652 10653 if iNdEx > l { 10654 return io.ErrUnexpectedEOF 10655 } 10656 return nil 10657 } 10658 func (m *ExtendAuthTokenRequest) Unmarshal(dAtA []byte) error { 10659 l := len(dAtA) 10660 iNdEx := 0 10661 for iNdEx < l { 10662 preIndex := iNdEx 10663 var wire uint64 10664 for shift := uint(0); ; shift += 7 { 10665 if shift >= 64 { 10666 return ErrIntOverflowAuth 10667 } 10668 if iNdEx >= l { 10669 return io.ErrUnexpectedEOF 10670 } 10671 b := dAtA[iNdEx] 10672 iNdEx++ 10673 wire |= uint64(b&0x7F) << shift 10674 if b < 0x80 { 10675 break 10676 } 10677 } 10678 fieldNum := int32(wire >> 3) 10679 wireType := int(wire & 0x7) 10680 if wireType == 4 { 10681 return fmt.Errorf("proto: ExtendAuthTokenRequest: wiretype end group for non-group") 10682 } 10683 if fieldNum <= 0 { 10684 return fmt.Errorf("proto: ExtendAuthTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10685 } 10686 switch fieldNum { 10687 case 1: 10688 if wireType != 2 { 10689 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 10690 } 10691 var stringLen uint64 10692 for shift := uint(0); ; shift += 7 { 10693 if shift >= 64 { 10694 return ErrIntOverflowAuth 10695 } 10696 if iNdEx >= l { 10697 return io.ErrUnexpectedEOF 10698 } 10699 b := dAtA[iNdEx] 10700 iNdEx++ 10701 stringLen |= uint64(b&0x7F) << shift 10702 if b < 0x80 { 10703 break 10704 } 10705 } 10706 intStringLen := int(stringLen) 10707 if intStringLen < 0 { 10708 return ErrInvalidLengthAuth 10709 } 10710 postIndex := iNdEx + intStringLen 10711 if postIndex < 0 { 10712 return ErrInvalidLengthAuth 10713 } 10714 if postIndex > l { 10715 return io.ErrUnexpectedEOF 10716 } 10717 m.Token = string(dAtA[iNdEx:postIndex]) 10718 iNdEx = postIndex 10719 case 2: 10720 if wireType != 0 { 10721 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) 10722 } 10723 m.TTL = 0 10724 for shift := uint(0); ; shift += 7 { 10725 if shift >= 64 { 10726 return ErrIntOverflowAuth 10727 } 10728 if iNdEx >= l { 10729 return io.ErrUnexpectedEOF 10730 } 10731 b := dAtA[iNdEx] 10732 iNdEx++ 10733 m.TTL |= int64(b&0x7F) << shift 10734 if b < 0x80 { 10735 break 10736 } 10737 } 10738 default: 10739 iNdEx = preIndex 10740 skippy, err := skipAuth(dAtA[iNdEx:]) 10741 if err != nil { 10742 return err 10743 } 10744 if (skippy < 0) || (iNdEx+skippy) < 0 { 10745 return ErrInvalidLengthAuth 10746 } 10747 if (iNdEx + skippy) > l { 10748 return io.ErrUnexpectedEOF 10749 } 10750 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10751 iNdEx += skippy 10752 } 10753 } 10754 10755 if iNdEx > l { 10756 return io.ErrUnexpectedEOF 10757 } 10758 return nil 10759 } 10760 func (m *ExtendAuthTokenResponse) Unmarshal(dAtA []byte) error { 10761 l := len(dAtA) 10762 iNdEx := 0 10763 for iNdEx < l { 10764 preIndex := iNdEx 10765 var wire uint64 10766 for shift := uint(0); ; shift += 7 { 10767 if shift >= 64 { 10768 return ErrIntOverflowAuth 10769 } 10770 if iNdEx >= l { 10771 return io.ErrUnexpectedEOF 10772 } 10773 b := dAtA[iNdEx] 10774 iNdEx++ 10775 wire |= uint64(b&0x7F) << shift 10776 if b < 0x80 { 10777 break 10778 } 10779 } 10780 fieldNum := int32(wire >> 3) 10781 wireType := int(wire & 0x7) 10782 if wireType == 4 { 10783 return fmt.Errorf("proto: ExtendAuthTokenResponse: wiretype end group for non-group") 10784 } 10785 if fieldNum <= 0 { 10786 return fmt.Errorf("proto: ExtendAuthTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10787 } 10788 switch fieldNum { 10789 default: 10790 iNdEx = preIndex 10791 skippy, err := skipAuth(dAtA[iNdEx:]) 10792 if err != nil { 10793 return err 10794 } 10795 if (skippy < 0) || (iNdEx+skippy) < 0 { 10796 return ErrInvalidLengthAuth 10797 } 10798 if (iNdEx + skippy) > l { 10799 return io.ErrUnexpectedEOF 10800 } 10801 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10802 iNdEx += skippy 10803 } 10804 } 10805 10806 if iNdEx > l { 10807 return io.ErrUnexpectedEOF 10808 } 10809 return nil 10810 } 10811 func (m *RevokeAuthTokenRequest) Unmarshal(dAtA []byte) error { 10812 l := len(dAtA) 10813 iNdEx := 0 10814 for iNdEx < l { 10815 preIndex := iNdEx 10816 var wire uint64 10817 for shift := uint(0); ; shift += 7 { 10818 if shift >= 64 { 10819 return ErrIntOverflowAuth 10820 } 10821 if iNdEx >= l { 10822 return io.ErrUnexpectedEOF 10823 } 10824 b := dAtA[iNdEx] 10825 iNdEx++ 10826 wire |= uint64(b&0x7F) << shift 10827 if b < 0x80 { 10828 break 10829 } 10830 } 10831 fieldNum := int32(wire >> 3) 10832 wireType := int(wire & 0x7) 10833 if wireType == 4 { 10834 return fmt.Errorf("proto: RevokeAuthTokenRequest: wiretype end group for non-group") 10835 } 10836 if fieldNum <= 0 { 10837 return fmt.Errorf("proto: RevokeAuthTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10838 } 10839 switch fieldNum { 10840 case 1: 10841 if wireType != 2 { 10842 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 10843 } 10844 var stringLen uint64 10845 for shift := uint(0); ; shift += 7 { 10846 if shift >= 64 { 10847 return ErrIntOverflowAuth 10848 } 10849 if iNdEx >= l { 10850 return io.ErrUnexpectedEOF 10851 } 10852 b := dAtA[iNdEx] 10853 iNdEx++ 10854 stringLen |= uint64(b&0x7F) << shift 10855 if b < 0x80 { 10856 break 10857 } 10858 } 10859 intStringLen := int(stringLen) 10860 if intStringLen < 0 { 10861 return ErrInvalidLengthAuth 10862 } 10863 postIndex := iNdEx + intStringLen 10864 if postIndex < 0 { 10865 return ErrInvalidLengthAuth 10866 } 10867 if postIndex > l { 10868 return io.ErrUnexpectedEOF 10869 } 10870 m.Token = string(dAtA[iNdEx:postIndex]) 10871 iNdEx = postIndex 10872 default: 10873 iNdEx = preIndex 10874 skippy, err := skipAuth(dAtA[iNdEx:]) 10875 if err != nil { 10876 return err 10877 } 10878 if (skippy < 0) || (iNdEx+skippy) < 0 { 10879 return ErrInvalidLengthAuth 10880 } 10881 if (iNdEx + skippy) > l { 10882 return io.ErrUnexpectedEOF 10883 } 10884 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10885 iNdEx += skippy 10886 } 10887 } 10888 10889 if iNdEx > l { 10890 return io.ErrUnexpectedEOF 10891 } 10892 return nil 10893 } 10894 func (m *RevokeAuthTokenResponse) Unmarshal(dAtA []byte) error { 10895 l := len(dAtA) 10896 iNdEx := 0 10897 for iNdEx < l { 10898 preIndex := iNdEx 10899 var wire uint64 10900 for shift := uint(0); ; shift += 7 { 10901 if shift >= 64 { 10902 return ErrIntOverflowAuth 10903 } 10904 if iNdEx >= l { 10905 return io.ErrUnexpectedEOF 10906 } 10907 b := dAtA[iNdEx] 10908 iNdEx++ 10909 wire |= uint64(b&0x7F) << shift 10910 if b < 0x80 { 10911 break 10912 } 10913 } 10914 fieldNum := int32(wire >> 3) 10915 wireType := int(wire & 0x7) 10916 if wireType == 4 { 10917 return fmt.Errorf("proto: RevokeAuthTokenResponse: wiretype end group for non-group") 10918 } 10919 if fieldNum <= 0 { 10920 return fmt.Errorf("proto: RevokeAuthTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 10921 } 10922 switch fieldNum { 10923 default: 10924 iNdEx = preIndex 10925 skippy, err := skipAuth(dAtA[iNdEx:]) 10926 if err != nil { 10927 return err 10928 } 10929 if (skippy < 0) || (iNdEx+skippy) < 0 { 10930 return ErrInvalidLengthAuth 10931 } 10932 if (iNdEx + skippy) > l { 10933 return io.ErrUnexpectedEOF 10934 } 10935 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 10936 iNdEx += skippy 10937 } 10938 } 10939 10940 if iNdEx > l { 10941 return io.ErrUnexpectedEOF 10942 } 10943 return nil 10944 } 10945 func (m *SetGroupsForUserRequest) Unmarshal(dAtA []byte) error { 10946 l := len(dAtA) 10947 iNdEx := 0 10948 for iNdEx < l { 10949 preIndex := iNdEx 10950 var wire uint64 10951 for shift := uint(0); ; shift += 7 { 10952 if shift >= 64 { 10953 return ErrIntOverflowAuth 10954 } 10955 if iNdEx >= l { 10956 return io.ErrUnexpectedEOF 10957 } 10958 b := dAtA[iNdEx] 10959 iNdEx++ 10960 wire |= uint64(b&0x7F) << shift 10961 if b < 0x80 { 10962 break 10963 } 10964 } 10965 fieldNum := int32(wire >> 3) 10966 wireType := int(wire & 0x7) 10967 if wireType == 4 { 10968 return fmt.Errorf("proto: SetGroupsForUserRequest: wiretype end group for non-group") 10969 } 10970 if fieldNum <= 0 { 10971 return fmt.Errorf("proto: SetGroupsForUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) 10972 } 10973 switch fieldNum { 10974 case 1: 10975 if wireType != 2 { 10976 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 10977 } 10978 var stringLen 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 stringLen |= uint64(b&0x7F) << shift 10989 if b < 0x80 { 10990 break 10991 } 10992 } 10993 intStringLen := int(stringLen) 10994 if intStringLen < 0 { 10995 return ErrInvalidLengthAuth 10996 } 10997 postIndex := iNdEx + intStringLen 10998 if postIndex < 0 { 10999 return ErrInvalidLengthAuth 11000 } 11001 if postIndex > l { 11002 return io.ErrUnexpectedEOF 11003 } 11004 m.Username = string(dAtA[iNdEx:postIndex]) 11005 iNdEx = postIndex 11006 case 2: 11007 if wireType != 2 { 11008 return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) 11009 } 11010 var stringLen uint64 11011 for shift := uint(0); ; shift += 7 { 11012 if shift >= 64 { 11013 return ErrIntOverflowAuth 11014 } 11015 if iNdEx >= l { 11016 return io.ErrUnexpectedEOF 11017 } 11018 b := dAtA[iNdEx] 11019 iNdEx++ 11020 stringLen |= uint64(b&0x7F) << shift 11021 if b < 0x80 { 11022 break 11023 } 11024 } 11025 intStringLen := int(stringLen) 11026 if intStringLen < 0 { 11027 return ErrInvalidLengthAuth 11028 } 11029 postIndex := iNdEx + intStringLen 11030 if postIndex < 0 { 11031 return ErrInvalidLengthAuth 11032 } 11033 if postIndex > l { 11034 return io.ErrUnexpectedEOF 11035 } 11036 m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) 11037 iNdEx = postIndex 11038 default: 11039 iNdEx = preIndex 11040 skippy, err := skipAuth(dAtA[iNdEx:]) 11041 if err != nil { 11042 return err 11043 } 11044 if (skippy < 0) || (iNdEx+skippy) < 0 { 11045 return ErrInvalidLengthAuth 11046 } 11047 if (iNdEx + skippy) > l { 11048 return io.ErrUnexpectedEOF 11049 } 11050 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11051 iNdEx += skippy 11052 } 11053 } 11054 11055 if iNdEx > l { 11056 return io.ErrUnexpectedEOF 11057 } 11058 return nil 11059 } 11060 func (m *SetGroupsForUserResponse) Unmarshal(dAtA []byte) error { 11061 l := len(dAtA) 11062 iNdEx := 0 11063 for iNdEx < l { 11064 preIndex := iNdEx 11065 var wire uint64 11066 for shift := uint(0); ; shift += 7 { 11067 if shift >= 64 { 11068 return ErrIntOverflowAuth 11069 } 11070 if iNdEx >= l { 11071 return io.ErrUnexpectedEOF 11072 } 11073 b := dAtA[iNdEx] 11074 iNdEx++ 11075 wire |= uint64(b&0x7F) << shift 11076 if b < 0x80 { 11077 break 11078 } 11079 } 11080 fieldNum := int32(wire >> 3) 11081 wireType := int(wire & 0x7) 11082 if wireType == 4 { 11083 return fmt.Errorf("proto: SetGroupsForUserResponse: wiretype end group for non-group") 11084 } 11085 if fieldNum <= 0 { 11086 return fmt.Errorf("proto: SetGroupsForUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11087 } 11088 switch fieldNum { 11089 default: 11090 iNdEx = preIndex 11091 skippy, err := skipAuth(dAtA[iNdEx:]) 11092 if err != nil { 11093 return err 11094 } 11095 if (skippy < 0) || (iNdEx+skippy) < 0 { 11096 return ErrInvalidLengthAuth 11097 } 11098 if (iNdEx + skippy) > l { 11099 return io.ErrUnexpectedEOF 11100 } 11101 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11102 iNdEx += skippy 11103 } 11104 } 11105 11106 if iNdEx > l { 11107 return io.ErrUnexpectedEOF 11108 } 11109 return nil 11110 } 11111 func (m *ModifyMembersRequest) Unmarshal(dAtA []byte) error { 11112 l := len(dAtA) 11113 iNdEx := 0 11114 for iNdEx < l { 11115 preIndex := iNdEx 11116 var wire uint64 11117 for shift := uint(0); ; shift += 7 { 11118 if shift >= 64 { 11119 return ErrIntOverflowAuth 11120 } 11121 if iNdEx >= l { 11122 return io.ErrUnexpectedEOF 11123 } 11124 b := dAtA[iNdEx] 11125 iNdEx++ 11126 wire |= uint64(b&0x7F) << shift 11127 if b < 0x80 { 11128 break 11129 } 11130 } 11131 fieldNum := int32(wire >> 3) 11132 wireType := int(wire & 0x7) 11133 if wireType == 4 { 11134 return fmt.Errorf("proto: ModifyMembersRequest: wiretype end group for non-group") 11135 } 11136 if fieldNum <= 0 { 11137 return fmt.Errorf("proto: ModifyMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11138 } 11139 switch fieldNum { 11140 case 1: 11141 if wireType != 2 { 11142 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 11143 } 11144 var stringLen uint64 11145 for shift := uint(0); ; shift += 7 { 11146 if shift >= 64 { 11147 return ErrIntOverflowAuth 11148 } 11149 if iNdEx >= l { 11150 return io.ErrUnexpectedEOF 11151 } 11152 b := dAtA[iNdEx] 11153 iNdEx++ 11154 stringLen |= uint64(b&0x7F) << shift 11155 if b < 0x80 { 11156 break 11157 } 11158 } 11159 intStringLen := int(stringLen) 11160 if intStringLen < 0 { 11161 return ErrInvalidLengthAuth 11162 } 11163 postIndex := iNdEx + intStringLen 11164 if postIndex < 0 { 11165 return ErrInvalidLengthAuth 11166 } 11167 if postIndex > l { 11168 return io.ErrUnexpectedEOF 11169 } 11170 m.Group = string(dAtA[iNdEx:postIndex]) 11171 iNdEx = postIndex 11172 case 2: 11173 if wireType != 2 { 11174 return fmt.Errorf("proto: wrong wireType = %d for field Add", wireType) 11175 } 11176 var stringLen uint64 11177 for shift := uint(0); ; shift += 7 { 11178 if shift >= 64 { 11179 return ErrIntOverflowAuth 11180 } 11181 if iNdEx >= l { 11182 return io.ErrUnexpectedEOF 11183 } 11184 b := dAtA[iNdEx] 11185 iNdEx++ 11186 stringLen |= uint64(b&0x7F) << shift 11187 if b < 0x80 { 11188 break 11189 } 11190 } 11191 intStringLen := int(stringLen) 11192 if intStringLen < 0 { 11193 return ErrInvalidLengthAuth 11194 } 11195 postIndex := iNdEx + intStringLen 11196 if postIndex < 0 { 11197 return ErrInvalidLengthAuth 11198 } 11199 if postIndex > l { 11200 return io.ErrUnexpectedEOF 11201 } 11202 m.Add = append(m.Add, string(dAtA[iNdEx:postIndex])) 11203 iNdEx = postIndex 11204 case 3: 11205 if wireType != 2 { 11206 return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType) 11207 } 11208 var stringLen uint64 11209 for shift := uint(0); ; shift += 7 { 11210 if shift >= 64 { 11211 return ErrIntOverflowAuth 11212 } 11213 if iNdEx >= l { 11214 return io.ErrUnexpectedEOF 11215 } 11216 b := dAtA[iNdEx] 11217 iNdEx++ 11218 stringLen |= uint64(b&0x7F) << shift 11219 if b < 0x80 { 11220 break 11221 } 11222 } 11223 intStringLen := int(stringLen) 11224 if intStringLen < 0 { 11225 return ErrInvalidLengthAuth 11226 } 11227 postIndex := iNdEx + intStringLen 11228 if postIndex < 0 { 11229 return ErrInvalidLengthAuth 11230 } 11231 if postIndex > l { 11232 return io.ErrUnexpectedEOF 11233 } 11234 m.Remove = append(m.Remove, string(dAtA[iNdEx:postIndex])) 11235 iNdEx = postIndex 11236 default: 11237 iNdEx = preIndex 11238 skippy, err := skipAuth(dAtA[iNdEx:]) 11239 if err != nil { 11240 return err 11241 } 11242 if (skippy < 0) || (iNdEx+skippy) < 0 { 11243 return ErrInvalidLengthAuth 11244 } 11245 if (iNdEx + skippy) > l { 11246 return io.ErrUnexpectedEOF 11247 } 11248 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11249 iNdEx += skippy 11250 } 11251 } 11252 11253 if iNdEx > l { 11254 return io.ErrUnexpectedEOF 11255 } 11256 return nil 11257 } 11258 func (m *ModifyMembersResponse) Unmarshal(dAtA []byte) error { 11259 l := len(dAtA) 11260 iNdEx := 0 11261 for iNdEx < l { 11262 preIndex := iNdEx 11263 var wire uint64 11264 for shift := uint(0); ; shift += 7 { 11265 if shift >= 64 { 11266 return ErrIntOverflowAuth 11267 } 11268 if iNdEx >= l { 11269 return io.ErrUnexpectedEOF 11270 } 11271 b := dAtA[iNdEx] 11272 iNdEx++ 11273 wire |= uint64(b&0x7F) << shift 11274 if b < 0x80 { 11275 break 11276 } 11277 } 11278 fieldNum := int32(wire >> 3) 11279 wireType := int(wire & 0x7) 11280 if wireType == 4 { 11281 return fmt.Errorf("proto: ModifyMembersResponse: wiretype end group for non-group") 11282 } 11283 if fieldNum <= 0 { 11284 return fmt.Errorf("proto: ModifyMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11285 } 11286 switch fieldNum { 11287 default: 11288 iNdEx = preIndex 11289 skippy, err := skipAuth(dAtA[iNdEx:]) 11290 if err != nil { 11291 return err 11292 } 11293 if (skippy < 0) || (iNdEx+skippy) < 0 { 11294 return ErrInvalidLengthAuth 11295 } 11296 if (iNdEx + skippy) > l { 11297 return io.ErrUnexpectedEOF 11298 } 11299 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11300 iNdEx += skippy 11301 } 11302 } 11303 11304 if iNdEx > l { 11305 return io.ErrUnexpectedEOF 11306 } 11307 return nil 11308 } 11309 func (m *GetGroupsRequest) Unmarshal(dAtA []byte) error { 11310 l := len(dAtA) 11311 iNdEx := 0 11312 for iNdEx < l { 11313 preIndex := iNdEx 11314 var wire uint64 11315 for shift := uint(0); ; shift += 7 { 11316 if shift >= 64 { 11317 return ErrIntOverflowAuth 11318 } 11319 if iNdEx >= l { 11320 return io.ErrUnexpectedEOF 11321 } 11322 b := dAtA[iNdEx] 11323 iNdEx++ 11324 wire |= uint64(b&0x7F) << shift 11325 if b < 0x80 { 11326 break 11327 } 11328 } 11329 fieldNum := int32(wire >> 3) 11330 wireType := int(wire & 0x7) 11331 if wireType == 4 { 11332 return fmt.Errorf("proto: GetGroupsRequest: wiretype end group for non-group") 11333 } 11334 if fieldNum <= 0 { 11335 return fmt.Errorf("proto: GetGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11336 } 11337 switch fieldNum { 11338 case 1: 11339 if wireType != 2 { 11340 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 11341 } 11342 var stringLen uint64 11343 for shift := uint(0); ; shift += 7 { 11344 if shift >= 64 { 11345 return ErrIntOverflowAuth 11346 } 11347 if iNdEx >= l { 11348 return io.ErrUnexpectedEOF 11349 } 11350 b := dAtA[iNdEx] 11351 iNdEx++ 11352 stringLen |= uint64(b&0x7F) << shift 11353 if b < 0x80 { 11354 break 11355 } 11356 } 11357 intStringLen := int(stringLen) 11358 if intStringLen < 0 { 11359 return ErrInvalidLengthAuth 11360 } 11361 postIndex := iNdEx + intStringLen 11362 if postIndex < 0 { 11363 return ErrInvalidLengthAuth 11364 } 11365 if postIndex > l { 11366 return io.ErrUnexpectedEOF 11367 } 11368 m.Username = string(dAtA[iNdEx:postIndex]) 11369 iNdEx = postIndex 11370 default: 11371 iNdEx = preIndex 11372 skippy, err := skipAuth(dAtA[iNdEx:]) 11373 if err != nil { 11374 return err 11375 } 11376 if (skippy < 0) || (iNdEx+skippy) < 0 { 11377 return ErrInvalidLengthAuth 11378 } 11379 if (iNdEx + skippy) > l { 11380 return io.ErrUnexpectedEOF 11381 } 11382 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11383 iNdEx += skippy 11384 } 11385 } 11386 11387 if iNdEx > l { 11388 return io.ErrUnexpectedEOF 11389 } 11390 return nil 11391 } 11392 func (m *GetGroupsResponse) Unmarshal(dAtA []byte) error { 11393 l := len(dAtA) 11394 iNdEx := 0 11395 for iNdEx < l { 11396 preIndex := iNdEx 11397 var wire uint64 11398 for shift := uint(0); ; shift += 7 { 11399 if shift >= 64 { 11400 return ErrIntOverflowAuth 11401 } 11402 if iNdEx >= l { 11403 return io.ErrUnexpectedEOF 11404 } 11405 b := dAtA[iNdEx] 11406 iNdEx++ 11407 wire |= uint64(b&0x7F) << shift 11408 if b < 0x80 { 11409 break 11410 } 11411 } 11412 fieldNum := int32(wire >> 3) 11413 wireType := int(wire & 0x7) 11414 if wireType == 4 { 11415 return fmt.Errorf("proto: GetGroupsResponse: wiretype end group for non-group") 11416 } 11417 if fieldNum <= 0 { 11418 return fmt.Errorf("proto: GetGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11419 } 11420 switch fieldNum { 11421 case 1: 11422 if wireType != 2 { 11423 return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) 11424 } 11425 var stringLen uint64 11426 for shift := uint(0); ; shift += 7 { 11427 if shift >= 64 { 11428 return ErrIntOverflowAuth 11429 } 11430 if iNdEx >= l { 11431 return io.ErrUnexpectedEOF 11432 } 11433 b := dAtA[iNdEx] 11434 iNdEx++ 11435 stringLen |= uint64(b&0x7F) << shift 11436 if b < 0x80 { 11437 break 11438 } 11439 } 11440 intStringLen := int(stringLen) 11441 if intStringLen < 0 { 11442 return ErrInvalidLengthAuth 11443 } 11444 postIndex := iNdEx + intStringLen 11445 if postIndex < 0 { 11446 return ErrInvalidLengthAuth 11447 } 11448 if postIndex > l { 11449 return io.ErrUnexpectedEOF 11450 } 11451 m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) 11452 iNdEx = postIndex 11453 default: 11454 iNdEx = preIndex 11455 skippy, err := skipAuth(dAtA[iNdEx:]) 11456 if err != nil { 11457 return err 11458 } 11459 if (skippy < 0) || (iNdEx+skippy) < 0 { 11460 return ErrInvalidLengthAuth 11461 } 11462 if (iNdEx + skippy) > l { 11463 return io.ErrUnexpectedEOF 11464 } 11465 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11466 iNdEx += skippy 11467 } 11468 } 11469 11470 if iNdEx > l { 11471 return io.ErrUnexpectedEOF 11472 } 11473 return nil 11474 } 11475 func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { 11476 l := len(dAtA) 11477 iNdEx := 0 11478 for iNdEx < l { 11479 preIndex := iNdEx 11480 var wire uint64 11481 for shift := uint(0); ; shift += 7 { 11482 if shift >= 64 { 11483 return ErrIntOverflowAuth 11484 } 11485 if iNdEx >= l { 11486 return io.ErrUnexpectedEOF 11487 } 11488 b := dAtA[iNdEx] 11489 iNdEx++ 11490 wire |= uint64(b&0x7F) << shift 11491 if b < 0x80 { 11492 break 11493 } 11494 } 11495 fieldNum := int32(wire >> 3) 11496 wireType := int(wire & 0x7) 11497 if wireType == 4 { 11498 return fmt.Errorf("proto: GetUsersRequest: wiretype end group for non-group") 11499 } 11500 if fieldNum <= 0 { 11501 return fmt.Errorf("proto: GetUsersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11502 } 11503 switch fieldNum { 11504 case 1: 11505 if wireType != 2 { 11506 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 11507 } 11508 var stringLen uint64 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 stringLen |= uint64(b&0x7F) << shift 11519 if b < 0x80 { 11520 break 11521 } 11522 } 11523 intStringLen := int(stringLen) 11524 if intStringLen < 0 { 11525 return ErrInvalidLengthAuth 11526 } 11527 postIndex := iNdEx + intStringLen 11528 if postIndex < 0 { 11529 return ErrInvalidLengthAuth 11530 } 11531 if postIndex > l { 11532 return io.ErrUnexpectedEOF 11533 } 11534 m.Group = string(dAtA[iNdEx:postIndex]) 11535 iNdEx = postIndex 11536 default: 11537 iNdEx = preIndex 11538 skippy, err := skipAuth(dAtA[iNdEx:]) 11539 if err != nil { 11540 return err 11541 } 11542 if (skippy < 0) || (iNdEx+skippy) < 0 { 11543 return ErrInvalidLengthAuth 11544 } 11545 if (iNdEx + skippy) > l { 11546 return io.ErrUnexpectedEOF 11547 } 11548 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11549 iNdEx += skippy 11550 } 11551 } 11552 11553 if iNdEx > l { 11554 return io.ErrUnexpectedEOF 11555 } 11556 return nil 11557 } 11558 func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { 11559 l := len(dAtA) 11560 iNdEx := 0 11561 for iNdEx < l { 11562 preIndex := iNdEx 11563 var wire uint64 11564 for shift := uint(0); ; shift += 7 { 11565 if shift >= 64 { 11566 return ErrIntOverflowAuth 11567 } 11568 if iNdEx >= l { 11569 return io.ErrUnexpectedEOF 11570 } 11571 b := dAtA[iNdEx] 11572 iNdEx++ 11573 wire |= uint64(b&0x7F) << shift 11574 if b < 0x80 { 11575 break 11576 } 11577 } 11578 fieldNum := int32(wire >> 3) 11579 wireType := int(wire & 0x7) 11580 if wireType == 4 { 11581 return fmt.Errorf("proto: GetUsersResponse: wiretype end group for non-group") 11582 } 11583 if fieldNum <= 0 { 11584 return fmt.Errorf("proto: GetUsersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 11585 } 11586 switch fieldNum { 11587 case 1: 11588 if wireType != 2 { 11589 return fmt.Errorf("proto: wrong wireType = %d for field Usernames", wireType) 11590 } 11591 var stringLen uint64 11592 for shift := uint(0); ; shift += 7 { 11593 if shift >= 64 { 11594 return ErrIntOverflowAuth 11595 } 11596 if iNdEx >= l { 11597 return io.ErrUnexpectedEOF 11598 } 11599 b := dAtA[iNdEx] 11600 iNdEx++ 11601 stringLen |= uint64(b&0x7F) << shift 11602 if b < 0x80 { 11603 break 11604 } 11605 } 11606 intStringLen := int(stringLen) 11607 if intStringLen < 0 { 11608 return ErrInvalidLengthAuth 11609 } 11610 postIndex := iNdEx + intStringLen 11611 if postIndex < 0 { 11612 return ErrInvalidLengthAuth 11613 } 11614 if postIndex > l { 11615 return io.ErrUnexpectedEOF 11616 } 11617 m.Usernames = append(m.Usernames, string(dAtA[iNdEx:postIndex])) 11618 iNdEx = postIndex 11619 default: 11620 iNdEx = preIndex 11621 skippy, err := skipAuth(dAtA[iNdEx:]) 11622 if err != nil { 11623 return err 11624 } 11625 if (skippy < 0) || (iNdEx+skippy) < 0 { 11626 return ErrInvalidLengthAuth 11627 } 11628 if (iNdEx + skippy) > l { 11629 return io.ErrUnexpectedEOF 11630 } 11631 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 11632 iNdEx += skippy 11633 } 11634 } 11635 11636 if iNdEx > l { 11637 return io.ErrUnexpectedEOF 11638 } 11639 return nil 11640 } 11641 func (m *GetOneTimePasswordRequest) Unmarshal(dAtA []byte) error { 11642 l := len(dAtA) 11643 iNdEx := 0 11644 for iNdEx < l { 11645 preIndex := iNdEx 11646 var wire uint64 11647 for shift := uint(0); ; shift += 7 { 11648 if shift >= 64 { 11649 return ErrIntOverflowAuth 11650 } 11651 if iNdEx >= l { 11652 return io.ErrUnexpectedEOF 11653 } 11654 b := dAtA[iNdEx] 11655 iNdEx++ 11656 wire |= uint64(b&0x7F) << shift 11657 if b < 0x80 { 11658 break 11659 } 11660 } 11661 fieldNum := int32(wire >> 3) 11662 wireType := int(wire & 0x7) 11663 if wireType == 4 { 11664 return fmt.Errorf("proto: GetOneTimePasswordRequest: wiretype end group for non-group") 11665 } 11666 if fieldNum <= 0 { 11667 return fmt.Errorf("proto: GetOneTimePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire) 11668 } 11669 switch fieldNum { 11670 case 1: 11671 if wireType != 2 { 11672 return fmt.Errorf("proto: wrong wireType = %d for field Subject", 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.Subject = 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 *GetOneTimePasswordResponse) 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: GetOneTimePasswordResponse: wiretype end group for non-group") 11748 } 11749 if fieldNum <= 0 { 11750 return fmt.Errorf("proto: GetOneTimePasswordResponse: 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 Code", 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.Code = 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 skipAuth(dAtA []byte) (n int, err error) { 11808 l := len(dAtA) 11809 iNdEx := 0 11810 depth := 0 11811 for iNdEx < l { 11812 var wire uint64 11813 for shift := uint(0); ; shift += 7 { 11814 if shift >= 64 { 11815 return 0, ErrIntOverflowAuth 11816 } 11817 if iNdEx >= l { 11818 return 0, io.ErrUnexpectedEOF 11819 } 11820 b := dAtA[iNdEx] 11821 iNdEx++ 11822 wire |= (uint64(b) & 0x7F) << shift 11823 if b < 0x80 { 11824 break 11825 } 11826 } 11827 wireType := int(wire & 0x7) 11828 switch wireType { 11829 case 0: 11830 for shift := uint(0); ; shift += 7 { 11831 if shift >= 64 { 11832 return 0, ErrIntOverflowAuth 11833 } 11834 if iNdEx >= l { 11835 return 0, io.ErrUnexpectedEOF 11836 } 11837 iNdEx++ 11838 if dAtA[iNdEx-1] < 0x80 { 11839 break 11840 } 11841 } 11842 case 1: 11843 iNdEx += 8 11844 case 2: 11845 var length int 11846 for shift := uint(0); ; shift += 7 { 11847 if shift >= 64 { 11848 return 0, ErrIntOverflowAuth 11849 } 11850 if iNdEx >= l { 11851 return 0, io.ErrUnexpectedEOF 11852 } 11853 b := dAtA[iNdEx] 11854 iNdEx++ 11855 length |= (int(b) & 0x7F) << shift 11856 if b < 0x80 { 11857 break 11858 } 11859 } 11860 if length < 0 { 11861 return 0, ErrInvalidLengthAuth 11862 } 11863 iNdEx += length 11864 case 3: 11865 depth++ 11866 case 4: 11867 if depth == 0 { 11868 return 0, ErrUnexpectedEndOfGroupAuth 11869 } 11870 depth-- 11871 case 5: 11872 iNdEx += 4 11873 default: 11874 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 11875 } 11876 if iNdEx < 0 { 11877 return 0, ErrInvalidLengthAuth 11878 } 11879 if depth == 0 { 11880 return iNdEx, nil 11881 } 11882 } 11883 return 0, io.ErrUnexpectedEOF 11884 } 11885 11886 var ( 11887 ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") 11888 ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") 11889 ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") 11890 )