github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/settings/settings.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: server/settings/settings.proto 3 4 // Settings Service 5 // 6 // Settings Service API retrieves Argo CD settings 7 8 package settings 9 10 import ( 11 context "context" 12 fmt "fmt" 13 v1alpha1 "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1" 14 oidc "github.com/argoproj/argo-cd/server/settings/oidc" 15 _ "github.com/gogo/protobuf/gogoproto" 16 proto "github.com/gogo/protobuf/proto" 17 _ "google.golang.org/genproto/googleapis/api/annotations" 18 grpc "google.golang.org/grpc" 19 codes "google.golang.org/grpc/codes" 20 status "google.golang.org/grpc/status" 21 io "io" 22 math "math" 23 math_bits "math/bits" 24 ) 25 26 // Reference imports to suppress errors if they are not otherwise used. 27 var _ = proto.Marshal 28 var _ = fmt.Errorf 29 var _ = math.Inf 30 31 // This is a compile-time assertion to ensure that this generated file 32 // is compatible with the proto package it is being compiled against. 33 // A compilation error at this line likely means your copy of the 34 // proto package needs to be updated. 35 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 36 37 // SettingsQuery is a query for Argo CD settings 38 type SettingsQuery struct { 39 XXX_NoUnkeyedLiteral struct{} `json:"-"` 40 XXX_unrecognized []byte `json:"-"` 41 XXX_sizecache int32 `json:"-"` 42 } 43 44 func (m *SettingsQuery) Reset() { *m = SettingsQuery{} } 45 func (m *SettingsQuery) String() string { return proto.CompactTextString(m) } 46 func (*SettingsQuery) ProtoMessage() {} 47 func (*SettingsQuery) Descriptor() ([]byte, []int) { 48 return fileDescriptor_a480d494da040caa, []int{0} 49 } 50 func (m *SettingsQuery) XXX_Unmarshal(b []byte) error { 51 return m.Unmarshal(b) 52 } 53 func (m *SettingsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 54 if deterministic { 55 return xxx_messageInfo_SettingsQuery.Marshal(b, m, deterministic) 56 } else { 57 b = b[:cap(b)] 58 n, err := m.MarshalToSizedBuffer(b) 59 if err != nil { 60 return nil, err 61 } 62 return b[:n], nil 63 } 64 } 65 func (m *SettingsQuery) XXX_Merge(src proto.Message) { 66 xxx_messageInfo_SettingsQuery.Merge(m, src) 67 } 68 func (m *SettingsQuery) XXX_Size() int { 69 return m.Size() 70 } 71 func (m *SettingsQuery) XXX_DiscardUnknown() { 72 xxx_messageInfo_SettingsQuery.DiscardUnknown(m) 73 } 74 75 var xxx_messageInfo_SettingsQuery proto.InternalMessageInfo 76 77 type Settings struct { 78 URL string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` 79 DexConfig *DexConfig `protobuf:"bytes,2,opt,name=dexConfig,proto3" json:"dexConfig,omitempty"` 80 OIDCConfig *OIDCConfig `protobuf:"bytes,3,opt,name=oidcConfig,proto3" json:"oidcConfig,omitempty"` 81 AppLabelKey string `protobuf:"bytes,4,opt,name=appLabelKey,proto3" json:"appLabelKey,omitempty"` 82 ResourceOverrides map[string]*v1alpha1.ResourceOverride `protobuf:"bytes,5,rep,name=resourceOverrides,proto3" json:"resourceOverrides,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 83 StatusBadgeEnabled bool `protobuf:"varint,6,opt,name=statusBadgeEnabled,proto3" json:"statusBadgeEnabled,omitempty"` 84 GoogleAnalytics *GoogleAnalyticsConfig `protobuf:"bytes,7,opt,name=googleAnalytics,proto3" json:"googleAnalytics,omitempty"` 85 KustomizeOptions *v1alpha1.KustomizeOptions `protobuf:"bytes,8,opt,name=kustomizeOptions,proto3" json:"kustomizeOptions,omitempty"` 86 // Help settings 87 Help *Help `protobuf:"bytes,9,opt,name=help,proto3" json:"help,omitempty"` 88 Plugins []*Plugin `protobuf:"bytes,10,rep,name=plugins,proto3" json:"plugins,omitempty"` 89 UserLoginsDisabled bool `protobuf:"varint,11,opt,name=userLoginsDisabled,proto3" json:"userLoginsDisabled,omitempty"` 90 ConfigManagementPlugins []*v1alpha1.ConfigManagementPlugin `protobuf:"bytes,12,rep,name=configManagementPlugins,proto3" json:"configManagementPlugins,omitempty"` 91 KustomizeVersions []string `protobuf:"bytes,13,rep,name=kustomizeVersions,proto3" json:"kustomizeVersions,omitempty"` 92 UiCssURL string `protobuf:"bytes,14,opt,name=uiCssURL,proto3" json:"uiCssURL,omitempty"` 93 XXX_NoUnkeyedLiteral struct{} `json:"-"` 94 XXX_unrecognized []byte `json:"-"` 95 XXX_sizecache int32 `json:"-"` 96 } 97 98 func (m *Settings) Reset() { *m = Settings{} } 99 func (m *Settings) String() string { return proto.CompactTextString(m) } 100 func (*Settings) ProtoMessage() {} 101 func (*Settings) Descriptor() ([]byte, []int) { 102 return fileDescriptor_a480d494da040caa, []int{1} 103 } 104 func (m *Settings) XXX_Unmarshal(b []byte) error { 105 return m.Unmarshal(b) 106 } 107 func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 108 if deterministic { 109 return xxx_messageInfo_Settings.Marshal(b, m, deterministic) 110 } else { 111 b = b[:cap(b)] 112 n, err := m.MarshalToSizedBuffer(b) 113 if err != nil { 114 return nil, err 115 } 116 return b[:n], nil 117 } 118 } 119 func (m *Settings) XXX_Merge(src proto.Message) { 120 xxx_messageInfo_Settings.Merge(m, src) 121 } 122 func (m *Settings) XXX_Size() int { 123 return m.Size() 124 } 125 func (m *Settings) XXX_DiscardUnknown() { 126 xxx_messageInfo_Settings.DiscardUnknown(m) 127 } 128 129 var xxx_messageInfo_Settings proto.InternalMessageInfo 130 131 func (m *Settings) GetURL() string { 132 if m != nil { 133 return m.URL 134 } 135 return "" 136 } 137 138 func (m *Settings) GetDexConfig() *DexConfig { 139 if m != nil { 140 return m.DexConfig 141 } 142 return nil 143 } 144 145 func (m *Settings) GetOIDCConfig() *OIDCConfig { 146 if m != nil { 147 return m.OIDCConfig 148 } 149 return nil 150 } 151 152 func (m *Settings) GetAppLabelKey() string { 153 if m != nil { 154 return m.AppLabelKey 155 } 156 return "" 157 } 158 159 func (m *Settings) GetResourceOverrides() map[string]*v1alpha1.ResourceOverride { 160 if m != nil { 161 return m.ResourceOverrides 162 } 163 return nil 164 } 165 166 func (m *Settings) GetStatusBadgeEnabled() bool { 167 if m != nil { 168 return m.StatusBadgeEnabled 169 } 170 return false 171 } 172 173 func (m *Settings) GetGoogleAnalytics() *GoogleAnalyticsConfig { 174 if m != nil { 175 return m.GoogleAnalytics 176 } 177 return nil 178 } 179 180 func (m *Settings) GetKustomizeOptions() *v1alpha1.KustomizeOptions { 181 if m != nil { 182 return m.KustomizeOptions 183 } 184 return nil 185 } 186 187 func (m *Settings) GetHelp() *Help { 188 if m != nil { 189 return m.Help 190 } 191 return nil 192 } 193 194 func (m *Settings) GetPlugins() []*Plugin { 195 if m != nil { 196 return m.Plugins 197 } 198 return nil 199 } 200 201 func (m *Settings) GetUserLoginsDisabled() bool { 202 if m != nil { 203 return m.UserLoginsDisabled 204 } 205 return false 206 } 207 208 func (m *Settings) GetConfigManagementPlugins() []*v1alpha1.ConfigManagementPlugin { 209 if m != nil { 210 return m.ConfigManagementPlugins 211 } 212 return nil 213 } 214 215 func (m *Settings) GetKustomizeVersions() []string { 216 if m != nil { 217 return m.KustomizeVersions 218 } 219 return nil 220 } 221 222 func (m *Settings) GetUiCssURL() string { 223 if m != nil { 224 return m.UiCssURL 225 } 226 return "" 227 } 228 229 type GoogleAnalyticsConfig struct { 230 TrackingID string `protobuf:"bytes,1,opt,name=trackingID,proto3" json:"trackingID,omitempty"` 231 AnonymizeUsers bool `protobuf:"varint,2,opt,name=anonymizeUsers,proto3" json:"anonymizeUsers,omitempty"` 232 XXX_NoUnkeyedLiteral struct{} `json:"-"` 233 XXX_unrecognized []byte `json:"-"` 234 XXX_sizecache int32 `json:"-"` 235 } 236 237 func (m *GoogleAnalyticsConfig) Reset() { *m = GoogleAnalyticsConfig{} } 238 func (m *GoogleAnalyticsConfig) String() string { return proto.CompactTextString(m) } 239 func (*GoogleAnalyticsConfig) ProtoMessage() {} 240 func (*GoogleAnalyticsConfig) Descriptor() ([]byte, []int) { 241 return fileDescriptor_a480d494da040caa, []int{2} 242 } 243 func (m *GoogleAnalyticsConfig) XXX_Unmarshal(b []byte) error { 244 return m.Unmarshal(b) 245 } 246 func (m *GoogleAnalyticsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 247 if deterministic { 248 return xxx_messageInfo_GoogleAnalyticsConfig.Marshal(b, m, deterministic) 249 } else { 250 b = b[:cap(b)] 251 n, err := m.MarshalToSizedBuffer(b) 252 if err != nil { 253 return nil, err 254 } 255 return b[:n], nil 256 } 257 } 258 func (m *GoogleAnalyticsConfig) XXX_Merge(src proto.Message) { 259 xxx_messageInfo_GoogleAnalyticsConfig.Merge(m, src) 260 } 261 func (m *GoogleAnalyticsConfig) XXX_Size() int { 262 return m.Size() 263 } 264 func (m *GoogleAnalyticsConfig) XXX_DiscardUnknown() { 265 xxx_messageInfo_GoogleAnalyticsConfig.DiscardUnknown(m) 266 } 267 268 var xxx_messageInfo_GoogleAnalyticsConfig proto.InternalMessageInfo 269 270 func (m *GoogleAnalyticsConfig) GetTrackingID() string { 271 if m != nil { 272 return m.TrackingID 273 } 274 return "" 275 } 276 277 func (m *GoogleAnalyticsConfig) GetAnonymizeUsers() bool { 278 if m != nil { 279 return m.AnonymizeUsers 280 } 281 return false 282 } 283 284 // Help settings 285 type Help struct { 286 // the URL for getting chat help, this will typically be your Slack channel for support 287 ChatUrl string `protobuf:"bytes,1,opt,name=chatUrl,proto3" json:"chatUrl,omitempty"` 288 // the text for getting chat help, defaults to "Chat now!" 289 ChatText string `protobuf:"bytes,2,opt,name=chatText,proto3" json:"chatText,omitempty"` 290 XXX_NoUnkeyedLiteral struct{} `json:"-"` 291 XXX_unrecognized []byte `json:"-"` 292 XXX_sizecache int32 `json:"-"` 293 } 294 295 func (m *Help) Reset() { *m = Help{} } 296 func (m *Help) String() string { return proto.CompactTextString(m) } 297 func (*Help) ProtoMessage() {} 298 func (*Help) Descriptor() ([]byte, []int) { 299 return fileDescriptor_a480d494da040caa, []int{3} 300 } 301 func (m *Help) XXX_Unmarshal(b []byte) error { 302 return m.Unmarshal(b) 303 } 304 func (m *Help) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 305 if deterministic { 306 return xxx_messageInfo_Help.Marshal(b, m, deterministic) 307 } else { 308 b = b[:cap(b)] 309 n, err := m.MarshalToSizedBuffer(b) 310 if err != nil { 311 return nil, err 312 } 313 return b[:n], nil 314 } 315 } 316 func (m *Help) XXX_Merge(src proto.Message) { 317 xxx_messageInfo_Help.Merge(m, src) 318 } 319 func (m *Help) XXX_Size() int { 320 return m.Size() 321 } 322 func (m *Help) XXX_DiscardUnknown() { 323 xxx_messageInfo_Help.DiscardUnknown(m) 324 } 325 326 var xxx_messageInfo_Help proto.InternalMessageInfo 327 328 func (m *Help) GetChatUrl() string { 329 if m != nil { 330 return m.ChatUrl 331 } 332 return "" 333 } 334 335 func (m *Help) GetChatText() string { 336 if m != nil { 337 return m.ChatText 338 } 339 return "" 340 } 341 342 // Plugin settings 343 type Plugin struct { 344 // the name of the plugin, e.g. "kasane" 345 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 346 XXX_NoUnkeyedLiteral struct{} `json:"-"` 347 XXX_unrecognized []byte `json:"-"` 348 XXX_sizecache int32 `json:"-"` 349 } 350 351 func (m *Plugin) Reset() { *m = Plugin{} } 352 func (m *Plugin) String() string { return proto.CompactTextString(m) } 353 func (*Plugin) ProtoMessage() {} 354 func (*Plugin) Descriptor() ([]byte, []int) { 355 return fileDescriptor_a480d494da040caa, []int{4} 356 } 357 func (m *Plugin) XXX_Unmarshal(b []byte) error { 358 return m.Unmarshal(b) 359 } 360 func (m *Plugin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 361 if deterministic { 362 return xxx_messageInfo_Plugin.Marshal(b, m, deterministic) 363 } else { 364 b = b[:cap(b)] 365 n, err := m.MarshalToSizedBuffer(b) 366 if err != nil { 367 return nil, err 368 } 369 return b[:n], nil 370 } 371 } 372 func (m *Plugin) XXX_Merge(src proto.Message) { 373 xxx_messageInfo_Plugin.Merge(m, src) 374 } 375 func (m *Plugin) XXX_Size() int { 376 return m.Size() 377 } 378 func (m *Plugin) XXX_DiscardUnknown() { 379 xxx_messageInfo_Plugin.DiscardUnknown(m) 380 } 381 382 var xxx_messageInfo_Plugin proto.InternalMessageInfo 383 384 func (m *Plugin) GetName() string { 385 if m != nil { 386 return m.Name 387 } 388 return "" 389 } 390 391 type DexConfig struct { 392 Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"` 393 XXX_NoUnkeyedLiteral struct{} `json:"-"` 394 XXX_unrecognized []byte `json:"-"` 395 XXX_sizecache int32 `json:"-"` 396 } 397 398 func (m *DexConfig) Reset() { *m = DexConfig{} } 399 func (m *DexConfig) String() string { return proto.CompactTextString(m) } 400 func (*DexConfig) ProtoMessage() {} 401 func (*DexConfig) Descriptor() ([]byte, []int) { 402 return fileDescriptor_a480d494da040caa, []int{5} 403 } 404 func (m *DexConfig) XXX_Unmarshal(b []byte) error { 405 return m.Unmarshal(b) 406 } 407 func (m *DexConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 408 if deterministic { 409 return xxx_messageInfo_DexConfig.Marshal(b, m, deterministic) 410 } else { 411 b = b[:cap(b)] 412 n, err := m.MarshalToSizedBuffer(b) 413 if err != nil { 414 return nil, err 415 } 416 return b[:n], nil 417 } 418 } 419 func (m *DexConfig) XXX_Merge(src proto.Message) { 420 xxx_messageInfo_DexConfig.Merge(m, src) 421 } 422 func (m *DexConfig) XXX_Size() int { 423 return m.Size() 424 } 425 func (m *DexConfig) XXX_DiscardUnknown() { 426 xxx_messageInfo_DexConfig.DiscardUnknown(m) 427 } 428 429 var xxx_messageInfo_DexConfig proto.InternalMessageInfo 430 431 func (m *DexConfig) GetConnectors() []*Connector { 432 if m != nil { 433 return m.Connectors 434 } 435 return nil 436 } 437 438 type Connector struct { 439 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 440 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 441 XXX_NoUnkeyedLiteral struct{} `json:"-"` 442 XXX_unrecognized []byte `json:"-"` 443 XXX_sizecache int32 `json:"-"` 444 } 445 446 func (m *Connector) Reset() { *m = Connector{} } 447 func (m *Connector) String() string { return proto.CompactTextString(m) } 448 func (*Connector) ProtoMessage() {} 449 func (*Connector) Descriptor() ([]byte, []int) { 450 return fileDescriptor_a480d494da040caa, []int{6} 451 } 452 func (m *Connector) XXX_Unmarshal(b []byte) error { 453 return m.Unmarshal(b) 454 } 455 func (m *Connector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 456 if deterministic { 457 return xxx_messageInfo_Connector.Marshal(b, m, deterministic) 458 } else { 459 b = b[:cap(b)] 460 n, err := m.MarshalToSizedBuffer(b) 461 if err != nil { 462 return nil, err 463 } 464 return b[:n], nil 465 } 466 } 467 func (m *Connector) XXX_Merge(src proto.Message) { 468 xxx_messageInfo_Connector.Merge(m, src) 469 } 470 func (m *Connector) XXX_Size() int { 471 return m.Size() 472 } 473 func (m *Connector) XXX_DiscardUnknown() { 474 xxx_messageInfo_Connector.DiscardUnknown(m) 475 } 476 477 var xxx_messageInfo_Connector proto.InternalMessageInfo 478 479 func (m *Connector) GetName() string { 480 if m != nil { 481 return m.Name 482 } 483 return "" 484 } 485 486 func (m *Connector) GetType() string { 487 if m != nil { 488 return m.Type 489 } 490 return "" 491 } 492 493 type OIDCConfig struct { 494 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 495 Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` 496 ClientID string `protobuf:"bytes,3,opt,name=clientID,proto3" json:"clientID,omitempty"` 497 CLIClientID string `protobuf:"bytes,4,opt,name=cliClientID,proto3" json:"cliClientID,omitempty"` 498 Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` 499 IDTokenClaims map[string]*oidc.Claim `protobuf:"bytes,6,rep,name=idTokenClaims,proto3" json:"idTokenClaims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 500 XXX_NoUnkeyedLiteral struct{} `json:"-"` 501 XXX_unrecognized []byte `json:"-"` 502 XXX_sizecache int32 `json:"-"` 503 } 504 505 func (m *OIDCConfig) Reset() { *m = OIDCConfig{} } 506 func (m *OIDCConfig) String() string { return proto.CompactTextString(m) } 507 func (*OIDCConfig) ProtoMessage() {} 508 func (*OIDCConfig) Descriptor() ([]byte, []int) { 509 return fileDescriptor_a480d494da040caa, []int{7} 510 } 511 func (m *OIDCConfig) XXX_Unmarshal(b []byte) error { 512 return m.Unmarshal(b) 513 } 514 func (m *OIDCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 515 if deterministic { 516 return xxx_messageInfo_OIDCConfig.Marshal(b, m, deterministic) 517 } else { 518 b = b[:cap(b)] 519 n, err := m.MarshalToSizedBuffer(b) 520 if err != nil { 521 return nil, err 522 } 523 return b[:n], nil 524 } 525 } 526 func (m *OIDCConfig) XXX_Merge(src proto.Message) { 527 xxx_messageInfo_OIDCConfig.Merge(m, src) 528 } 529 func (m *OIDCConfig) XXX_Size() int { 530 return m.Size() 531 } 532 func (m *OIDCConfig) XXX_DiscardUnknown() { 533 xxx_messageInfo_OIDCConfig.DiscardUnknown(m) 534 } 535 536 var xxx_messageInfo_OIDCConfig proto.InternalMessageInfo 537 538 func (m *OIDCConfig) GetName() string { 539 if m != nil { 540 return m.Name 541 } 542 return "" 543 } 544 545 func (m *OIDCConfig) GetIssuer() string { 546 if m != nil { 547 return m.Issuer 548 } 549 return "" 550 } 551 552 func (m *OIDCConfig) GetClientID() string { 553 if m != nil { 554 return m.ClientID 555 } 556 return "" 557 } 558 559 func (m *OIDCConfig) GetCLIClientID() string { 560 if m != nil { 561 return m.CLIClientID 562 } 563 return "" 564 } 565 566 func (m *OIDCConfig) GetScopes() []string { 567 if m != nil { 568 return m.Scopes 569 } 570 return nil 571 } 572 573 func (m *OIDCConfig) GetIDTokenClaims() map[string]*oidc.Claim { 574 if m != nil { 575 return m.IDTokenClaims 576 } 577 return nil 578 } 579 580 func init() { 581 proto.RegisterType((*SettingsQuery)(nil), "cluster.SettingsQuery") 582 proto.RegisterType((*Settings)(nil), "cluster.Settings") 583 proto.RegisterMapType((map[string]*v1alpha1.ResourceOverride)(nil), "cluster.Settings.ResourceOverridesEntry") 584 proto.RegisterType((*GoogleAnalyticsConfig)(nil), "cluster.GoogleAnalyticsConfig") 585 proto.RegisterType((*Help)(nil), "cluster.Help") 586 proto.RegisterType((*Plugin)(nil), "cluster.Plugin") 587 proto.RegisterType((*DexConfig)(nil), "cluster.DexConfig") 588 proto.RegisterType((*Connector)(nil), "cluster.Connector") 589 proto.RegisterType((*OIDCConfig)(nil), "cluster.OIDCConfig") 590 proto.RegisterMapType((map[string]*oidc.Claim)(nil), "cluster.OIDCConfig.IdTokenClaimsEntry") 591 } 592 593 func init() { proto.RegisterFile("server/settings/settings.proto", fileDescriptor_a480d494da040caa) } 594 595 var fileDescriptor_a480d494da040caa = []byte{ 596 // 942 bytes of a gzipped FileDescriptorProto 597 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x6f, 0x1b, 0xc5, 598 0x17, 0xd7, 0xc6, 0x69, 0x6c, 0x3f, 0xd7, 0x71, 0x32, 0xdf, 0x2f, 0x61, 0xb1, 0x2a, 0xdb, 0xf8, 599 0x50, 0x19, 0x09, 0x76, 0x89, 0x7b, 0x00, 0x21, 0x10, 0x60, 0xbb, 0x6a, 0x4d, 0x5c, 0xa5, 0x9d, 600 0x36, 0x3d, 0x20, 0xa1, 0x68, 0xb2, 0x1e, 0x36, 0x83, 0xd7, 0x33, 0xab, 0x99, 0x59, 0x53, 0x73, 601 0xe4, 0x86, 0x38, 0x21, 0xfe, 0x29, 0x8e, 0x48, 0xdc, 0x2d, 0x64, 0xf1, 0x1f, 0xf0, 0x0f, 0xa0, 602 0x9d, 0xfd, 0x91, 0x8d, 0x6d, 0x2a, 0xa4, 0xde, 0xde, 0xbc, 0xcf, 0xfb, 0x35, 0x6f, 0x3e, 0xf3, 603 0x1e, 0xb4, 0x14, 0x95, 0x0b, 0x2a, 0x5d, 0x45, 0xb5, 0x66, 0xdc, 0x57, 0xb9, 0xe0, 0x84, 0x52, 604 0x68, 0x81, 0xca, 0x5e, 0x10, 0x29, 0x4d, 0x65, 0xf3, 0xff, 0xbe, 0xf0, 0x85, 0xd1, 0xb9, 0xb1, 605 0x94, 0xc0, 0xcd, 0x7b, 0xbe, 0x10, 0x7e, 0x40, 0x5d, 0x12, 0x32, 0x97, 0x70, 0x2e, 0x34, 0xd1, 606 0x4c, 0xf0, 0xd4, 0xb9, 0x39, 0xf6, 0x99, 0xbe, 0x8e, 0xae, 0x1c, 0x4f, 0xcc, 0x5d, 0x22, 0x8d, 607 0xfb, 0x77, 0x46, 0xf8, 0xc0, 0x9b, 0xba, 0xe1, 0xcc, 0x8f, 0xdd, 0x94, 0x4b, 0xc2, 0x30, 0x60, 608 0x9e, 0x71, 0x74, 0x17, 0xa7, 0x24, 0x08, 0xaf, 0xc9, 0xa9, 0xeb, 0x53, 0x4e, 0x25, 0xd1, 0x74, 609 0x9a, 0x86, 0xfa, 0xec, 0x75, 0xa1, 0x36, 0xef, 0x20, 0xd8, 0xd4, 0x73, 0xbd, 0x80, 0xb0, 0x79, 610 0x5a, 0x49, 0xb7, 0x01, 0xf5, 0xe7, 0x29, 0xfa, 0x2c, 0xa2, 0x72, 0xd9, 0xfd, 0xbb, 0x0c, 0x95, 611 0x4c, 0x83, 0xde, 0x81, 0x52, 0x24, 0x03, 0xdb, 0xea, 0x58, 0xbd, 0xea, 0xa0, 0xbc, 0x5e, 0xb5, 612 0x4b, 0x17, 0x78, 0x82, 0x63, 0x1d, 0xfa, 0x10, 0xaa, 0x53, 0xfa, 0x6a, 0x28, 0xf8, 0xb7, 0xcc, 613 0xb7, 0xf7, 0x3a, 0x56, 0xaf, 0xd6, 0x47, 0x4e, 0xda, 0x13, 0x67, 0x94, 0x21, 0xf8, 0xc6, 0x08, 614 0x0d, 0x01, 0xe2, 0xfc, 0xa9, 0x4b, 0xc9, 0xb8, 0xfc, 0x2f, 0x77, 0x39, 0x1f, 0x8f, 0x86, 0x09, 615 0x34, 0x38, 0x5c, 0xaf, 0xda, 0x70, 0x73, 0xc6, 0x05, 0x37, 0xd4, 0x81, 0x1a, 0x09, 0xc3, 0x09, 616 0xb9, 0xa2, 0xc1, 0x19, 0x5d, 0xda, 0xfb, 0x71, 0x65, 0xb8, 0xa8, 0x42, 0x2f, 0xe1, 0x58, 0x52, 617 0x25, 0x22, 0xe9, 0xd1, 0xf3, 0x05, 0x95, 0x92, 0x4d, 0xa9, 0xb2, 0xef, 0x74, 0x4a, 0xbd, 0x5a, 618 0xbf, 0x97, 0x67, 0xcb, 0x6e, 0xe8, 0xe0, 0x4d, 0xd3, 0x87, 0x5c, 0xcb, 0x25, 0xde, 0x0e, 0x81, 619 0x1c, 0x40, 0x4a, 0x13, 0x1d, 0xa9, 0x01, 0x99, 0xfa, 0xf4, 0x21, 0x27, 0x57, 0x01, 0x9d, 0xda, 620 0x07, 0x1d, 0xab, 0x57, 0xc1, 0x3b, 0x10, 0xf4, 0x18, 0x1a, 0x09, 0x07, 0xbe, 0xe4, 0x24, 0x58, 621 0x6a, 0xe6, 0x29, 0xbb, 0x6c, 0xee, 0xdc, 0xca, 0xab, 0x78, 0x74, 0x1b, 0x4f, 0xaf, 0xbb, 0xe9, 622 0x86, 0xbe, 0x87, 0xa3, 0x59, 0xa4, 0xb4, 0x98, 0xb3, 0x1f, 0xe8, 0x79, 0x68, 0x78, 0x64, 0x57, 623 0x4c, 0xa8, 0x33, 0xe7, 0xe6, 0xf5, 0x9d, 0xec, 0xf5, 0x8d, 0x70, 0xe9, 0x4d, 0x9d, 0x70, 0xe6, 624 0x3b, 0x31, 0x91, 0x9c, 0x02, 0x91, 0x9c, 0x8c, 0x48, 0xce, 0xd9, 0x46, 0x48, 0xbc, 0x95, 0x04, 625 0xbd, 0x0b, 0xfb, 0xd7, 0x34, 0x08, 0xed, 0xaa, 0x49, 0x56, 0xcf, 0xeb, 0x7e, 0x4c, 0x83, 0x10, 626 0x1b, 0x08, 0xbd, 0x07, 0xe5, 0x30, 0x88, 0x7c, 0xc6, 0x95, 0x0d, 0xa6, 0xc7, 0x8d, 0xdc, 0xea, 627 0xa9, 0xd1, 0xe3, 0x0c, 0x8f, 0x1b, 0x18, 0x29, 0x2a, 0x27, 0x22, 0x3e, 0x8d, 0x98, 0x4a, 0x1a, 628 0x58, 0x4b, 0x1a, 0xb8, 0x8d, 0xa0, 0x9f, 0x2d, 0x78, 0xdb, 0x33, 0x2d, 0x79, 0x42, 0x38, 0xf1, 629 0xe9, 0x9c, 0x72, 0xfd, 0x34, 0xcd, 0x75, 0xd7, 0xe4, 0x7a, 0xf6, 0x06, 0xd7, 0x1f, 0xee, 0x8c, 630 0x8c, 0xff, 0x2d, 0x23, 0x7a, 0x1f, 0x8e, 0xf3, 0xfe, 0xbc, 0xa4, 0x52, 0x99, 0x57, 0xa8, 0x77, 631 0x4a, 0xbd, 0x2a, 0xde, 0x06, 0x50, 0x13, 0x2a, 0x11, 0x1b, 0x2a, 0x75, 0x81, 0x27, 0xf6, 0xa1, 632 0xe1, 0x68, 0x7e, 0x6e, 0xfe, 0x62, 0xc1, 0xc9, 0x6e, 0xda, 0xa1, 0x23, 0x28, 0xcd, 0xe8, 0x32, 633 0xf9, 0x6f, 0x38, 0x16, 0x11, 0x81, 0x3b, 0x0b, 0x12, 0x44, 0x34, 0xfd, 0x62, 0x6f, 0xf2, 0xe0, 634 0x9b, 0x39, 0x71, 0x12, 0xf9, 0x93, 0xbd, 0x8f, 0xad, 0xee, 0x25, 0xbc, 0xb5, 0x93, 0x8c, 0xa8, 635 0x05, 0xa0, 0x25, 0xf1, 0x66, 0x8c, 0xfb, 0xe3, 0x51, 0x5a, 0x58, 0x41, 0x83, 0xee, 0xc3, 0x21, 636 0xe1, 0x82, 0x2f, 0xe3, 0xdb, 0x5f, 0x28, 0x2a, 0x95, 0x29, 0xb4, 0x82, 0x37, 0xb4, 0xdd, 0x4f, 637 0x61, 0x3f, 0x66, 0x0d, 0xb2, 0xa1, 0xec, 0x5d, 0x13, 0x7d, 0x91, 0x4d, 0x15, 0x9c, 0x1d, 0xe3, 638 0x96, 0xc5, 0xe2, 0x0b, 0xfa, 0x4a, 0x9b, 0x18, 0x55, 0x9c, 0x9f, 0xbb, 0xf7, 0xe0, 0x20, 0x79, 639 0x07, 0x84, 0x60, 0x9f, 0x93, 0x39, 0x4d, 0x9d, 0x8d, 0xdc, 0xfd, 0x1c, 0xaa, 0xf9, 0xc0, 0x41, 640 0x7d, 0x00, 0x4f, 0x70, 0x4e, 0x3d, 0x2d, 0xa4, 0xb2, 0x2d, 0xc3, 0x93, 0x9b, 0xc1, 0x34, 0xcc, 641 0x20, 0x5c, 0xb0, 0xea, 0x3e, 0x80, 0x6a, 0x0e, 0xec, 0xca, 0x10, 0xeb, 0xf4, 0x32, 0xa4, 0x69, 642 0x5d, 0x46, 0xee, 0xfe, 0x54, 0x82, 0xc2, 0x90, 0xda, 0xe9, 0x76, 0x02, 0x07, 0x4c, 0xa9, 0x88, 643 0xca, 0xd4, 0x31, 0x3d, 0xa1, 0x1e, 0x54, 0xbc, 0x80, 0x51, 0xae, 0xc7, 0x23, 0x33, 0x07, 0xab, 644 0x83, 0xbb, 0xeb, 0x55, 0xbb, 0x32, 0x4c, 0x75, 0x38, 0x47, 0xd1, 0x29, 0xd4, 0xbc, 0x80, 0x65, 645 0x40, 0x32, 0xee, 0x06, 0x8d, 0xf5, 0xaa, 0x5d, 0x1b, 0x4e, 0xc6, 0xb9, 0x7d, 0xd1, 0x26, 0x4e, 646 0xaa, 0x3c, 0x11, 0xa6, 0x43, 0xaf, 0x8a, 0xd3, 0x13, 0xba, 0x84, 0x3a, 0x9b, 0xbe, 0x10, 0x33, 647 0xca, 0x87, 0x66, 0x01, 0xd8, 0x07, 0xa6, 0x37, 0xf7, 0x77, 0x4c, 0x60, 0x67, 0x5c, 0x34, 0x34, 648 0xd4, 0x1c, 0x1c, 0xaf, 0x57, 0xed, 0xfa, 0x78, 0x54, 0xd0, 0xe3, 0xdb, 0xf1, 0x9a, 0x4b, 0x40, 649 0xdb, 0x7e, 0x3b, 0x28, 0xfd, 0xe4, 0x36, 0xa5, 0x3f, 0x7a, 0x2d, 0xa5, 0x93, 0x0d, 0xe6, 0xe4, 650 0xcb, 0x37, 0x5e, 0x05, 0x8e, 0x89, 0x5f, 0xa0, 0x6f, 0xff, 0x1b, 0x68, 0x64, 0x13, 0xfd, 0x39, 651 0x95, 0x0b, 0xe6, 0x51, 0xf4, 0x15, 0x94, 0x1e, 0x51, 0x8d, 0x4e, 0xb6, 0x46, 0xbe, 0x59, 0x73, 652 0xcd, 0xe3, 0x2d, 0x7d, 0xd7, 0xfe, 0xf1, 0x8f, 0xbf, 0x7e, 0xdd, 0x43, 0xe8, 0xc8, 0x2c, 0xed, 653 0xc5, 0x69, 0xbe, 0x36, 0x07, 0x5f, 0xfc, 0xb6, 0x6e, 0x59, 0xbf, 0xaf, 0x5b, 0xd6, 0x9f, 0xeb, 654 0x96, 0xf5, 0x75, 0xff, 0x3f, 0x2c, 0xef, 0xe4, 0x01, 0xf3, 0x08, 0x57, 0x07, 0x66, 0xdb, 0x3e, 655 0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0xde, 0x07, 0xc4, 0xab, 0x56, 0x08, 0x00, 0x00, 656 } 657 658 // Reference imports to suppress errors if they are not otherwise used. 659 var _ context.Context 660 var _ grpc.ClientConn 661 662 // This is a compile-time assertion to ensure that this generated file 663 // is compatible with the grpc package it is being compiled against. 664 const _ = grpc.SupportPackageIsVersion4 665 666 // SettingsServiceClient is the client API for SettingsService service. 667 // 668 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 669 type SettingsServiceClient interface { 670 // Get returns Argo CD settings 671 Get(ctx context.Context, in *SettingsQuery, opts ...grpc.CallOption) (*Settings, error) 672 } 673 674 type settingsServiceClient struct { 675 cc *grpc.ClientConn 676 } 677 678 func NewSettingsServiceClient(cc *grpc.ClientConn) SettingsServiceClient { 679 return &settingsServiceClient{cc} 680 } 681 682 func (c *settingsServiceClient) Get(ctx context.Context, in *SettingsQuery, opts ...grpc.CallOption) (*Settings, error) { 683 out := new(Settings) 684 err := c.cc.Invoke(ctx, "/cluster.SettingsService/Get", in, out, opts...) 685 if err != nil { 686 return nil, err 687 } 688 return out, nil 689 } 690 691 // SettingsServiceServer is the server API for SettingsService service. 692 type SettingsServiceServer interface { 693 // Get returns Argo CD settings 694 Get(context.Context, *SettingsQuery) (*Settings, error) 695 } 696 697 // UnimplementedSettingsServiceServer can be embedded to have forward compatible implementations. 698 type UnimplementedSettingsServiceServer struct { 699 } 700 701 func (*UnimplementedSettingsServiceServer) Get(ctx context.Context, req *SettingsQuery) (*Settings, error) { 702 return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") 703 } 704 705 func RegisterSettingsServiceServer(s *grpc.Server, srv SettingsServiceServer) { 706 s.RegisterService(&_SettingsService_serviceDesc, srv) 707 } 708 709 func _SettingsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 710 in := new(SettingsQuery) 711 if err := dec(in); err != nil { 712 return nil, err 713 } 714 if interceptor == nil { 715 return srv.(SettingsServiceServer).Get(ctx, in) 716 } 717 info := &grpc.UnaryServerInfo{ 718 Server: srv, 719 FullMethod: "/cluster.SettingsService/Get", 720 } 721 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 722 return srv.(SettingsServiceServer).Get(ctx, req.(*SettingsQuery)) 723 } 724 return interceptor(ctx, in, info, handler) 725 } 726 727 var _SettingsService_serviceDesc = grpc.ServiceDesc{ 728 ServiceName: "cluster.SettingsService", 729 HandlerType: (*SettingsServiceServer)(nil), 730 Methods: []grpc.MethodDesc{ 731 { 732 MethodName: "Get", 733 Handler: _SettingsService_Get_Handler, 734 }, 735 }, 736 Streams: []grpc.StreamDesc{}, 737 Metadata: "server/settings/settings.proto", 738 } 739 740 func (m *SettingsQuery) Marshal() (dAtA []byte, err error) { 741 size := m.Size() 742 dAtA = make([]byte, size) 743 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 744 if err != nil { 745 return nil, err 746 } 747 return dAtA[:n], nil 748 } 749 750 func (m *SettingsQuery) MarshalTo(dAtA []byte) (int, error) { 751 size := m.Size() 752 return m.MarshalToSizedBuffer(dAtA[:size]) 753 } 754 755 func (m *SettingsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 756 i := len(dAtA) 757 _ = i 758 var l int 759 _ = l 760 if m.XXX_unrecognized != nil { 761 i -= len(m.XXX_unrecognized) 762 copy(dAtA[i:], m.XXX_unrecognized) 763 } 764 return len(dAtA) - i, nil 765 } 766 767 func (m *Settings) Marshal() (dAtA []byte, err error) { 768 size := m.Size() 769 dAtA = make([]byte, size) 770 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 771 if err != nil { 772 return nil, err 773 } 774 return dAtA[:n], nil 775 } 776 777 func (m *Settings) MarshalTo(dAtA []byte) (int, error) { 778 size := m.Size() 779 return m.MarshalToSizedBuffer(dAtA[:size]) 780 } 781 782 func (m *Settings) MarshalToSizedBuffer(dAtA []byte) (int, error) { 783 i := len(dAtA) 784 _ = i 785 var l int 786 _ = l 787 if m.XXX_unrecognized != nil { 788 i -= len(m.XXX_unrecognized) 789 copy(dAtA[i:], m.XXX_unrecognized) 790 } 791 if len(m.UiCssURL) > 0 { 792 i -= len(m.UiCssURL) 793 copy(dAtA[i:], m.UiCssURL) 794 i = encodeVarintSettings(dAtA, i, uint64(len(m.UiCssURL))) 795 i-- 796 dAtA[i] = 0x72 797 } 798 if len(m.KustomizeVersions) > 0 { 799 for iNdEx := len(m.KustomizeVersions) - 1; iNdEx >= 0; iNdEx-- { 800 i -= len(m.KustomizeVersions[iNdEx]) 801 copy(dAtA[i:], m.KustomizeVersions[iNdEx]) 802 i = encodeVarintSettings(dAtA, i, uint64(len(m.KustomizeVersions[iNdEx]))) 803 i-- 804 dAtA[i] = 0x6a 805 } 806 } 807 if len(m.ConfigManagementPlugins) > 0 { 808 for iNdEx := len(m.ConfigManagementPlugins) - 1; iNdEx >= 0; iNdEx-- { 809 { 810 size, err := m.ConfigManagementPlugins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 811 if err != nil { 812 return 0, err 813 } 814 i -= size 815 i = encodeVarintSettings(dAtA, i, uint64(size)) 816 } 817 i-- 818 dAtA[i] = 0x62 819 } 820 } 821 if m.UserLoginsDisabled { 822 i-- 823 if m.UserLoginsDisabled { 824 dAtA[i] = 1 825 } else { 826 dAtA[i] = 0 827 } 828 i-- 829 dAtA[i] = 0x58 830 } 831 if len(m.Plugins) > 0 { 832 for iNdEx := len(m.Plugins) - 1; iNdEx >= 0; iNdEx-- { 833 { 834 size, err := m.Plugins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 835 if err != nil { 836 return 0, err 837 } 838 i -= size 839 i = encodeVarintSettings(dAtA, i, uint64(size)) 840 } 841 i-- 842 dAtA[i] = 0x52 843 } 844 } 845 if m.Help != nil { 846 { 847 size, err := m.Help.MarshalToSizedBuffer(dAtA[:i]) 848 if err != nil { 849 return 0, err 850 } 851 i -= size 852 i = encodeVarintSettings(dAtA, i, uint64(size)) 853 } 854 i-- 855 dAtA[i] = 0x4a 856 } 857 if m.KustomizeOptions != nil { 858 { 859 size, err := m.KustomizeOptions.MarshalToSizedBuffer(dAtA[:i]) 860 if err != nil { 861 return 0, err 862 } 863 i -= size 864 i = encodeVarintSettings(dAtA, i, uint64(size)) 865 } 866 i-- 867 dAtA[i] = 0x42 868 } 869 if m.GoogleAnalytics != nil { 870 { 871 size, err := m.GoogleAnalytics.MarshalToSizedBuffer(dAtA[:i]) 872 if err != nil { 873 return 0, err 874 } 875 i -= size 876 i = encodeVarintSettings(dAtA, i, uint64(size)) 877 } 878 i-- 879 dAtA[i] = 0x3a 880 } 881 if m.StatusBadgeEnabled { 882 i-- 883 if m.StatusBadgeEnabled { 884 dAtA[i] = 1 885 } else { 886 dAtA[i] = 0 887 } 888 i-- 889 dAtA[i] = 0x30 890 } 891 if len(m.ResourceOverrides) > 0 { 892 for k := range m.ResourceOverrides { 893 v := m.ResourceOverrides[k] 894 baseI := i 895 if v != nil { 896 { 897 size, err := v.MarshalToSizedBuffer(dAtA[:i]) 898 if err != nil { 899 return 0, err 900 } 901 i -= size 902 i = encodeVarintSettings(dAtA, i, uint64(size)) 903 } 904 i-- 905 dAtA[i] = 0x12 906 } 907 i -= len(k) 908 copy(dAtA[i:], k) 909 i = encodeVarintSettings(dAtA, i, uint64(len(k))) 910 i-- 911 dAtA[i] = 0xa 912 i = encodeVarintSettings(dAtA, i, uint64(baseI-i)) 913 i-- 914 dAtA[i] = 0x2a 915 } 916 } 917 if len(m.AppLabelKey) > 0 { 918 i -= len(m.AppLabelKey) 919 copy(dAtA[i:], m.AppLabelKey) 920 i = encodeVarintSettings(dAtA, i, uint64(len(m.AppLabelKey))) 921 i-- 922 dAtA[i] = 0x22 923 } 924 if m.OIDCConfig != nil { 925 { 926 size, err := m.OIDCConfig.MarshalToSizedBuffer(dAtA[:i]) 927 if err != nil { 928 return 0, err 929 } 930 i -= size 931 i = encodeVarintSettings(dAtA, i, uint64(size)) 932 } 933 i-- 934 dAtA[i] = 0x1a 935 } 936 if m.DexConfig != nil { 937 { 938 size, err := m.DexConfig.MarshalToSizedBuffer(dAtA[:i]) 939 if err != nil { 940 return 0, err 941 } 942 i -= size 943 i = encodeVarintSettings(dAtA, i, uint64(size)) 944 } 945 i-- 946 dAtA[i] = 0x12 947 } 948 if len(m.URL) > 0 { 949 i -= len(m.URL) 950 copy(dAtA[i:], m.URL) 951 i = encodeVarintSettings(dAtA, i, uint64(len(m.URL))) 952 i-- 953 dAtA[i] = 0xa 954 } 955 return len(dAtA) - i, nil 956 } 957 958 func (m *GoogleAnalyticsConfig) Marshal() (dAtA []byte, err error) { 959 size := m.Size() 960 dAtA = make([]byte, size) 961 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 962 if err != nil { 963 return nil, err 964 } 965 return dAtA[:n], nil 966 } 967 968 func (m *GoogleAnalyticsConfig) MarshalTo(dAtA []byte) (int, error) { 969 size := m.Size() 970 return m.MarshalToSizedBuffer(dAtA[:size]) 971 } 972 973 func (m *GoogleAnalyticsConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 974 i := len(dAtA) 975 _ = i 976 var l int 977 _ = l 978 if m.XXX_unrecognized != nil { 979 i -= len(m.XXX_unrecognized) 980 copy(dAtA[i:], m.XXX_unrecognized) 981 } 982 if m.AnonymizeUsers { 983 i-- 984 if m.AnonymizeUsers { 985 dAtA[i] = 1 986 } else { 987 dAtA[i] = 0 988 } 989 i-- 990 dAtA[i] = 0x10 991 } 992 if len(m.TrackingID) > 0 { 993 i -= len(m.TrackingID) 994 copy(dAtA[i:], m.TrackingID) 995 i = encodeVarintSettings(dAtA, i, uint64(len(m.TrackingID))) 996 i-- 997 dAtA[i] = 0xa 998 } 999 return len(dAtA) - i, nil 1000 } 1001 1002 func (m *Help) Marshal() (dAtA []byte, err error) { 1003 size := m.Size() 1004 dAtA = make([]byte, size) 1005 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1006 if err != nil { 1007 return nil, err 1008 } 1009 return dAtA[:n], nil 1010 } 1011 1012 func (m *Help) MarshalTo(dAtA []byte) (int, error) { 1013 size := m.Size() 1014 return m.MarshalToSizedBuffer(dAtA[:size]) 1015 } 1016 1017 func (m *Help) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1018 i := len(dAtA) 1019 _ = i 1020 var l int 1021 _ = l 1022 if m.XXX_unrecognized != nil { 1023 i -= len(m.XXX_unrecognized) 1024 copy(dAtA[i:], m.XXX_unrecognized) 1025 } 1026 if len(m.ChatText) > 0 { 1027 i -= len(m.ChatText) 1028 copy(dAtA[i:], m.ChatText) 1029 i = encodeVarintSettings(dAtA, i, uint64(len(m.ChatText))) 1030 i-- 1031 dAtA[i] = 0x12 1032 } 1033 if len(m.ChatUrl) > 0 { 1034 i -= len(m.ChatUrl) 1035 copy(dAtA[i:], m.ChatUrl) 1036 i = encodeVarintSettings(dAtA, i, uint64(len(m.ChatUrl))) 1037 i-- 1038 dAtA[i] = 0xa 1039 } 1040 return len(dAtA) - i, nil 1041 } 1042 1043 func (m *Plugin) Marshal() (dAtA []byte, err error) { 1044 size := m.Size() 1045 dAtA = make([]byte, size) 1046 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1047 if err != nil { 1048 return nil, err 1049 } 1050 return dAtA[:n], nil 1051 } 1052 1053 func (m *Plugin) MarshalTo(dAtA []byte) (int, error) { 1054 size := m.Size() 1055 return m.MarshalToSizedBuffer(dAtA[:size]) 1056 } 1057 1058 func (m *Plugin) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1059 i := len(dAtA) 1060 _ = i 1061 var l int 1062 _ = l 1063 if m.XXX_unrecognized != nil { 1064 i -= len(m.XXX_unrecognized) 1065 copy(dAtA[i:], m.XXX_unrecognized) 1066 } 1067 if len(m.Name) > 0 { 1068 i -= len(m.Name) 1069 copy(dAtA[i:], m.Name) 1070 i = encodeVarintSettings(dAtA, i, uint64(len(m.Name))) 1071 i-- 1072 dAtA[i] = 0xa 1073 } 1074 return len(dAtA) - i, nil 1075 } 1076 1077 func (m *DexConfig) Marshal() (dAtA []byte, err error) { 1078 size := m.Size() 1079 dAtA = make([]byte, size) 1080 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1081 if err != nil { 1082 return nil, err 1083 } 1084 return dAtA[:n], nil 1085 } 1086 1087 func (m *DexConfig) MarshalTo(dAtA []byte) (int, error) { 1088 size := m.Size() 1089 return m.MarshalToSizedBuffer(dAtA[:size]) 1090 } 1091 1092 func (m *DexConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1093 i := len(dAtA) 1094 _ = i 1095 var l int 1096 _ = l 1097 if m.XXX_unrecognized != nil { 1098 i -= len(m.XXX_unrecognized) 1099 copy(dAtA[i:], m.XXX_unrecognized) 1100 } 1101 if len(m.Connectors) > 0 { 1102 for iNdEx := len(m.Connectors) - 1; iNdEx >= 0; iNdEx-- { 1103 { 1104 size, err := m.Connectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1105 if err != nil { 1106 return 0, err 1107 } 1108 i -= size 1109 i = encodeVarintSettings(dAtA, i, uint64(size)) 1110 } 1111 i-- 1112 dAtA[i] = 0xa 1113 } 1114 } 1115 return len(dAtA) - i, nil 1116 } 1117 1118 func (m *Connector) Marshal() (dAtA []byte, err error) { 1119 size := m.Size() 1120 dAtA = make([]byte, size) 1121 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1122 if err != nil { 1123 return nil, err 1124 } 1125 return dAtA[:n], nil 1126 } 1127 1128 func (m *Connector) MarshalTo(dAtA []byte) (int, error) { 1129 size := m.Size() 1130 return m.MarshalToSizedBuffer(dAtA[:size]) 1131 } 1132 1133 func (m *Connector) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1134 i := len(dAtA) 1135 _ = i 1136 var l int 1137 _ = l 1138 if m.XXX_unrecognized != nil { 1139 i -= len(m.XXX_unrecognized) 1140 copy(dAtA[i:], m.XXX_unrecognized) 1141 } 1142 if len(m.Type) > 0 { 1143 i -= len(m.Type) 1144 copy(dAtA[i:], m.Type) 1145 i = encodeVarintSettings(dAtA, i, uint64(len(m.Type))) 1146 i-- 1147 dAtA[i] = 0x12 1148 } 1149 if len(m.Name) > 0 { 1150 i -= len(m.Name) 1151 copy(dAtA[i:], m.Name) 1152 i = encodeVarintSettings(dAtA, i, uint64(len(m.Name))) 1153 i-- 1154 dAtA[i] = 0xa 1155 } 1156 return len(dAtA) - i, nil 1157 } 1158 1159 func (m *OIDCConfig) Marshal() (dAtA []byte, err error) { 1160 size := m.Size() 1161 dAtA = make([]byte, size) 1162 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1163 if err != nil { 1164 return nil, err 1165 } 1166 return dAtA[:n], nil 1167 } 1168 1169 func (m *OIDCConfig) MarshalTo(dAtA []byte) (int, error) { 1170 size := m.Size() 1171 return m.MarshalToSizedBuffer(dAtA[:size]) 1172 } 1173 1174 func (m *OIDCConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1175 i := len(dAtA) 1176 _ = i 1177 var l int 1178 _ = l 1179 if m.XXX_unrecognized != nil { 1180 i -= len(m.XXX_unrecognized) 1181 copy(dAtA[i:], m.XXX_unrecognized) 1182 } 1183 if len(m.IDTokenClaims) > 0 { 1184 for k := range m.IDTokenClaims { 1185 v := m.IDTokenClaims[k] 1186 baseI := i 1187 if v != nil { 1188 { 1189 size, err := v.MarshalToSizedBuffer(dAtA[:i]) 1190 if err != nil { 1191 return 0, err 1192 } 1193 i -= size 1194 i = encodeVarintSettings(dAtA, i, uint64(size)) 1195 } 1196 i-- 1197 dAtA[i] = 0x12 1198 } 1199 i -= len(k) 1200 copy(dAtA[i:], k) 1201 i = encodeVarintSettings(dAtA, i, uint64(len(k))) 1202 i-- 1203 dAtA[i] = 0xa 1204 i = encodeVarintSettings(dAtA, i, uint64(baseI-i)) 1205 i-- 1206 dAtA[i] = 0x32 1207 } 1208 } 1209 if len(m.Scopes) > 0 { 1210 for iNdEx := len(m.Scopes) - 1; iNdEx >= 0; iNdEx-- { 1211 i -= len(m.Scopes[iNdEx]) 1212 copy(dAtA[i:], m.Scopes[iNdEx]) 1213 i = encodeVarintSettings(dAtA, i, uint64(len(m.Scopes[iNdEx]))) 1214 i-- 1215 dAtA[i] = 0x2a 1216 } 1217 } 1218 if len(m.CLIClientID) > 0 { 1219 i -= len(m.CLIClientID) 1220 copy(dAtA[i:], m.CLIClientID) 1221 i = encodeVarintSettings(dAtA, i, uint64(len(m.CLIClientID))) 1222 i-- 1223 dAtA[i] = 0x22 1224 } 1225 if len(m.ClientID) > 0 { 1226 i -= len(m.ClientID) 1227 copy(dAtA[i:], m.ClientID) 1228 i = encodeVarintSettings(dAtA, i, uint64(len(m.ClientID))) 1229 i-- 1230 dAtA[i] = 0x1a 1231 } 1232 if len(m.Issuer) > 0 { 1233 i -= len(m.Issuer) 1234 copy(dAtA[i:], m.Issuer) 1235 i = encodeVarintSettings(dAtA, i, uint64(len(m.Issuer))) 1236 i-- 1237 dAtA[i] = 0x12 1238 } 1239 if len(m.Name) > 0 { 1240 i -= len(m.Name) 1241 copy(dAtA[i:], m.Name) 1242 i = encodeVarintSettings(dAtA, i, uint64(len(m.Name))) 1243 i-- 1244 dAtA[i] = 0xa 1245 } 1246 return len(dAtA) - i, nil 1247 } 1248 1249 func encodeVarintSettings(dAtA []byte, offset int, v uint64) int { 1250 offset -= sovSettings(v) 1251 base := offset 1252 for v >= 1<<7 { 1253 dAtA[offset] = uint8(v&0x7f | 0x80) 1254 v >>= 7 1255 offset++ 1256 } 1257 dAtA[offset] = uint8(v) 1258 return base 1259 } 1260 func (m *SettingsQuery) Size() (n int) { 1261 if m == nil { 1262 return 0 1263 } 1264 var l int 1265 _ = l 1266 if m.XXX_unrecognized != nil { 1267 n += len(m.XXX_unrecognized) 1268 } 1269 return n 1270 } 1271 1272 func (m *Settings) Size() (n int) { 1273 if m == nil { 1274 return 0 1275 } 1276 var l int 1277 _ = l 1278 l = len(m.URL) 1279 if l > 0 { 1280 n += 1 + l + sovSettings(uint64(l)) 1281 } 1282 if m.DexConfig != nil { 1283 l = m.DexConfig.Size() 1284 n += 1 + l + sovSettings(uint64(l)) 1285 } 1286 if m.OIDCConfig != nil { 1287 l = m.OIDCConfig.Size() 1288 n += 1 + l + sovSettings(uint64(l)) 1289 } 1290 l = len(m.AppLabelKey) 1291 if l > 0 { 1292 n += 1 + l + sovSettings(uint64(l)) 1293 } 1294 if len(m.ResourceOverrides) > 0 { 1295 for k, v := range m.ResourceOverrides { 1296 _ = k 1297 _ = v 1298 l = 0 1299 if v != nil { 1300 l = v.Size() 1301 l += 1 + sovSettings(uint64(l)) 1302 } 1303 mapEntrySize := 1 + len(k) + sovSettings(uint64(len(k))) + l 1304 n += mapEntrySize + 1 + sovSettings(uint64(mapEntrySize)) 1305 } 1306 } 1307 if m.StatusBadgeEnabled { 1308 n += 2 1309 } 1310 if m.GoogleAnalytics != nil { 1311 l = m.GoogleAnalytics.Size() 1312 n += 1 + l + sovSettings(uint64(l)) 1313 } 1314 if m.KustomizeOptions != nil { 1315 l = m.KustomizeOptions.Size() 1316 n += 1 + l + sovSettings(uint64(l)) 1317 } 1318 if m.Help != nil { 1319 l = m.Help.Size() 1320 n += 1 + l + sovSettings(uint64(l)) 1321 } 1322 if len(m.Plugins) > 0 { 1323 for _, e := range m.Plugins { 1324 l = e.Size() 1325 n += 1 + l + sovSettings(uint64(l)) 1326 } 1327 } 1328 if m.UserLoginsDisabled { 1329 n += 2 1330 } 1331 if len(m.ConfigManagementPlugins) > 0 { 1332 for _, e := range m.ConfigManagementPlugins { 1333 l = e.Size() 1334 n += 1 + l + sovSettings(uint64(l)) 1335 } 1336 } 1337 if len(m.KustomizeVersions) > 0 { 1338 for _, s := range m.KustomizeVersions { 1339 l = len(s) 1340 n += 1 + l + sovSettings(uint64(l)) 1341 } 1342 } 1343 l = len(m.UiCssURL) 1344 if l > 0 { 1345 n += 1 + l + sovSettings(uint64(l)) 1346 } 1347 if m.XXX_unrecognized != nil { 1348 n += len(m.XXX_unrecognized) 1349 } 1350 return n 1351 } 1352 1353 func (m *GoogleAnalyticsConfig) Size() (n int) { 1354 if m == nil { 1355 return 0 1356 } 1357 var l int 1358 _ = l 1359 l = len(m.TrackingID) 1360 if l > 0 { 1361 n += 1 + l + sovSettings(uint64(l)) 1362 } 1363 if m.AnonymizeUsers { 1364 n += 2 1365 } 1366 if m.XXX_unrecognized != nil { 1367 n += len(m.XXX_unrecognized) 1368 } 1369 return n 1370 } 1371 1372 func (m *Help) Size() (n int) { 1373 if m == nil { 1374 return 0 1375 } 1376 var l int 1377 _ = l 1378 l = len(m.ChatUrl) 1379 if l > 0 { 1380 n += 1 + l + sovSettings(uint64(l)) 1381 } 1382 l = len(m.ChatText) 1383 if l > 0 { 1384 n += 1 + l + sovSettings(uint64(l)) 1385 } 1386 if m.XXX_unrecognized != nil { 1387 n += len(m.XXX_unrecognized) 1388 } 1389 return n 1390 } 1391 1392 func (m *Plugin) Size() (n int) { 1393 if m == nil { 1394 return 0 1395 } 1396 var l int 1397 _ = l 1398 l = len(m.Name) 1399 if l > 0 { 1400 n += 1 + l + sovSettings(uint64(l)) 1401 } 1402 if m.XXX_unrecognized != nil { 1403 n += len(m.XXX_unrecognized) 1404 } 1405 return n 1406 } 1407 1408 func (m *DexConfig) Size() (n int) { 1409 if m == nil { 1410 return 0 1411 } 1412 var l int 1413 _ = l 1414 if len(m.Connectors) > 0 { 1415 for _, e := range m.Connectors { 1416 l = e.Size() 1417 n += 1 + l + sovSettings(uint64(l)) 1418 } 1419 } 1420 if m.XXX_unrecognized != nil { 1421 n += len(m.XXX_unrecognized) 1422 } 1423 return n 1424 } 1425 1426 func (m *Connector) Size() (n int) { 1427 if m == nil { 1428 return 0 1429 } 1430 var l int 1431 _ = l 1432 l = len(m.Name) 1433 if l > 0 { 1434 n += 1 + l + sovSettings(uint64(l)) 1435 } 1436 l = len(m.Type) 1437 if l > 0 { 1438 n += 1 + l + sovSettings(uint64(l)) 1439 } 1440 if m.XXX_unrecognized != nil { 1441 n += len(m.XXX_unrecognized) 1442 } 1443 return n 1444 } 1445 1446 func (m *OIDCConfig) Size() (n int) { 1447 if m == nil { 1448 return 0 1449 } 1450 var l int 1451 _ = l 1452 l = len(m.Name) 1453 if l > 0 { 1454 n += 1 + l + sovSettings(uint64(l)) 1455 } 1456 l = len(m.Issuer) 1457 if l > 0 { 1458 n += 1 + l + sovSettings(uint64(l)) 1459 } 1460 l = len(m.ClientID) 1461 if l > 0 { 1462 n += 1 + l + sovSettings(uint64(l)) 1463 } 1464 l = len(m.CLIClientID) 1465 if l > 0 { 1466 n += 1 + l + sovSettings(uint64(l)) 1467 } 1468 if len(m.Scopes) > 0 { 1469 for _, s := range m.Scopes { 1470 l = len(s) 1471 n += 1 + l + sovSettings(uint64(l)) 1472 } 1473 } 1474 if len(m.IDTokenClaims) > 0 { 1475 for k, v := range m.IDTokenClaims { 1476 _ = k 1477 _ = v 1478 l = 0 1479 if v != nil { 1480 l = v.Size() 1481 l += 1 + sovSettings(uint64(l)) 1482 } 1483 mapEntrySize := 1 + len(k) + sovSettings(uint64(len(k))) + l 1484 n += mapEntrySize + 1 + sovSettings(uint64(mapEntrySize)) 1485 } 1486 } 1487 if m.XXX_unrecognized != nil { 1488 n += len(m.XXX_unrecognized) 1489 } 1490 return n 1491 } 1492 1493 func sovSettings(x uint64) (n int) { 1494 return (math_bits.Len64(x|1) + 6) / 7 1495 } 1496 func sozSettings(x uint64) (n int) { 1497 return sovSettings(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1498 } 1499 func (m *SettingsQuery) Unmarshal(dAtA []byte) error { 1500 l := len(dAtA) 1501 iNdEx := 0 1502 for iNdEx < l { 1503 preIndex := iNdEx 1504 var wire uint64 1505 for shift := uint(0); ; shift += 7 { 1506 if shift >= 64 { 1507 return ErrIntOverflowSettings 1508 } 1509 if iNdEx >= l { 1510 return io.ErrUnexpectedEOF 1511 } 1512 b := dAtA[iNdEx] 1513 iNdEx++ 1514 wire |= uint64(b&0x7F) << shift 1515 if b < 0x80 { 1516 break 1517 } 1518 } 1519 fieldNum := int32(wire >> 3) 1520 wireType := int(wire & 0x7) 1521 if wireType == 4 { 1522 return fmt.Errorf("proto: SettingsQuery: wiretype end group for non-group") 1523 } 1524 if fieldNum <= 0 { 1525 return fmt.Errorf("proto: SettingsQuery: illegal tag %d (wire type %d)", fieldNum, wire) 1526 } 1527 switch fieldNum { 1528 default: 1529 iNdEx = preIndex 1530 skippy, err := skipSettings(dAtA[iNdEx:]) 1531 if err != nil { 1532 return err 1533 } 1534 if skippy < 0 { 1535 return ErrInvalidLengthSettings 1536 } 1537 if (iNdEx + skippy) < 0 { 1538 return ErrInvalidLengthSettings 1539 } 1540 if (iNdEx + skippy) > l { 1541 return io.ErrUnexpectedEOF 1542 } 1543 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1544 iNdEx += skippy 1545 } 1546 } 1547 1548 if iNdEx > l { 1549 return io.ErrUnexpectedEOF 1550 } 1551 return nil 1552 } 1553 func (m *Settings) Unmarshal(dAtA []byte) error { 1554 l := len(dAtA) 1555 iNdEx := 0 1556 for iNdEx < l { 1557 preIndex := iNdEx 1558 var wire uint64 1559 for shift := uint(0); ; shift += 7 { 1560 if shift >= 64 { 1561 return ErrIntOverflowSettings 1562 } 1563 if iNdEx >= l { 1564 return io.ErrUnexpectedEOF 1565 } 1566 b := dAtA[iNdEx] 1567 iNdEx++ 1568 wire |= uint64(b&0x7F) << shift 1569 if b < 0x80 { 1570 break 1571 } 1572 } 1573 fieldNum := int32(wire >> 3) 1574 wireType := int(wire & 0x7) 1575 if wireType == 4 { 1576 return fmt.Errorf("proto: Settings: wiretype end group for non-group") 1577 } 1578 if fieldNum <= 0 { 1579 return fmt.Errorf("proto: Settings: illegal tag %d (wire type %d)", fieldNum, wire) 1580 } 1581 switch fieldNum { 1582 case 1: 1583 if wireType != 2 { 1584 return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) 1585 } 1586 var stringLen uint64 1587 for shift := uint(0); ; shift += 7 { 1588 if shift >= 64 { 1589 return ErrIntOverflowSettings 1590 } 1591 if iNdEx >= l { 1592 return io.ErrUnexpectedEOF 1593 } 1594 b := dAtA[iNdEx] 1595 iNdEx++ 1596 stringLen |= uint64(b&0x7F) << shift 1597 if b < 0x80 { 1598 break 1599 } 1600 } 1601 intStringLen := int(stringLen) 1602 if intStringLen < 0 { 1603 return ErrInvalidLengthSettings 1604 } 1605 postIndex := iNdEx + intStringLen 1606 if postIndex < 0 { 1607 return ErrInvalidLengthSettings 1608 } 1609 if postIndex > l { 1610 return io.ErrUnexpectedEOF 1611 } 1612 m.URL = string(dAtA[iNdEx:postIndex]) 1613 iNdEx = postIndex 1614 case 2: 1615 if wireType != 2 { 1616 return fmt.Errorf("proto: wrong wireType = %d for field DexConfig", wireType) 1617 } 1618 var msglen int 1619 for shift := uint(0); ; shift += 7 { 1620 if shift >= 64 { 1621 return ErrIntOverflowSettings 1622 } 1623 if iNdEx >= l { 1624 return io.ErrUnexpectedEOF 1625 } 1626 b := dAtA[iNdEx] 1627 iNdEx++ 1628 msglen |= int(b&0x7F) << shift 1629 if b < 0x80 { 1630 break 1631 } 1632 } 1633 if msglen < 0 { 1634 return ErrInvalidLengthSettings 1635 } 1636 postIndex := iNdEx + msglen 1637 if postIndex < 0 { 1638 return ErrInvalidLengthSettings 1639 } 1640 if postIndex > l { 1641 return io.ErrUnexpectedEOF 1642 } 1643 if m.DexConfig == nil { 1644 m.DexConfig = &DexConfig{} 1645 } 1646 if err := m.DexConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1647 return err 1648 } 1649 iNdEx = postIndex 1650 case 3: 1651 if wireType != 2 { 1652 return fmt.Errorf("proto: wrong wireType = %d for field OIDCConfig", wireType) 1653 } 1654 var msglen int 1655 for shift := uint(0); ; shift += 7 { 1656 if shift >= 64 { 1657 return ErrIntOverflowSettings 1658 } 1659 if iNdEx >= l { 1660 return io.ErrUnexpectedEOF 1661 } 1662 b := dAtA[iNdEx] 1663 iNdEx++ 1664 msglen |= int(b&0x7F) << shift 1665 if b < 0x80 { 1666 break 1667 } 1668 } 1669 if msglen < 0 { 1670 return ErrInvalidLengthSettings 1671 } 1672 postIndex := iNdEx + msglen 1673 if postIndex < 0 { 1674 return ErrInvalidLengthSettings 1675 } 1676 if postIndex > l { 1677 return io.ErrUnexpectedEOF 1678 } 1679 if m.OIDCConfig == nil { 1680 m.OIDCConfig = &OIDCConfig{} 1681 } 1682 if err := m.OIDCConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1683 return err 1684 } 1685 iNdEx = postIndex 1686 case 4: 1687 if wireType != 2 { 1688 return fmt.Errorf("proto: wrong wireType = %d for field AppLabelKey", wireType) 1689 } 1690 var stringLen uint64 1691 for shift := uint(0); ; shift += 7 { 1692 if shift >= 64 { 1693 return ErrIntOverflowSettings 1694 } 1695 if iNdEx >= l { 1696 return io.ErrUnexpectedEOF 1697 } 1698 b := dAtA[iNdEx] 1699 iNdEx++ 1700 stringLen |= uint64(b&0x7F) << shift 1701 if b < 0x80 { 1702 break 1703 } 1704 } 1705 intStringLen := int(stringLen) 1706 if intStringLen < 0 { 1707 return ErrInvalidLengthSettings 1708 } 1709 postIndex := iNdEx + intStringLen 1710 if postIndex < 0 { 1711 return ErrInvalidLengthSettings 1712 } 1713 if postIndex > l { 1714 return io.ErrUnexpectedEOF 1715 } 1716 m.AppLabelKey = string(dAtA[iNdEx:postIndex]) 1717 iNdEx = postIndex 1718 case 5: 1719 if wireType != 2 { 1720 return fmt.Errorf("proto: wrong wireType = %d for field ResourceOverrides", wireType) 1721 } 1722 var msglen int 1723 for shift := uint(0); ; shift += 7 { 1724 if shift >= 64 { 1725 return ErrIntOverflowSettings 1726 } 1727 if iNdEx >= l { 1728 return io.ErrUnexpectedEOF 1729 } 1730 b := dAtA[iNdEx] 1731 iNdEx++ 1732 msglen |= int(b&0x7F) << shift 1733 if b < 0x80 { 1734 break 1735 } 1736 } 1737 if msglen < 0 { 1738 return ErrInvalidLengthSettings 1739 } 1740 postIndex := iNdEx + msglen 1741 if postIndex < 0 { 1742 return ErrInvalidLengthSettings 1743 } 1744 if postIndex > l { 1745 return io.ErrUnexpectedEOF 1746 } 1747 if m.ResourceOverrides == nil { 1748 m.ResourceOverrides = make(map[string]*v1alpha1.ResourceOverride) 1749 } 1750 var mapkey string 1751 var mapvalue *v1alpha1.ResourceOverride 1752 for iNdEx < postIndex { 1753 entryPreIndex := iNdEx 1754 var wire uint64 1755 for shift := uint(0); ; shift += 7 { 1756 if shift >= 64 { 1757 return ErrIntOverflowSettings 1758 } 1759 if iNdEx >= l { 1760 return io.ErrUnexpectedEOF 1761 } 1762 b := dAtA[iNdEx] 1763 iNdEx++ 1764 wire |= uint64(b&0x7F) << shift 1765 if b < 0x80 { 1766 break 1767 } 1768 } 1769 fieldNum := int32(wire >> 3) 1770 if fieldNum == 1 { 1771 var stringLenmapkey uint64 1772 for shift := uint(0); ; shift += 7 { 1773 if shift >= 64 { 1774 return ErrIntOverflowSettings 1775 } 1776 if iNdEx >= l { 1777 return io.ErrUnexpectedEOF 1778 } 1779 b := dAtA[iNdEx] 1780 iNdEx++ 1781 stringLenmapkey |= uint64(b&0x7F) << shift 1782 if b < 0x80 { 1783 break 1784 } 1785 } 1786 intStringLenmapkey := int(stringLenmapkey) 1787 if intStringLenmapkey < 0 { 1788 return ErrInvalidLengthSettings 1789 } 1790 postStringIndexmapkey := iNdEx + intStringLenmapkey 1791 if postStringIndexmapkey < 0 { 1792 return ErrInvalidLengthSettings 1793 } 1794 if postStringIndexmapkey > l { 1795 return io.ErrUnexpectedEOF 1796 } 1797 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 1798 iNdEx = postStringIndexmapkey 1799 } else if fieldNum == 2 { 1800 var mapmsglen int 1801 for shift := uint(0); ; shift += 7 { 1802 if shift >= 64 { 1803 return ErrIntOverflowSettings 1804 } 1805 if iNdEx >= l { 1806 return io.ErrUnexpectedEOF 1807 } 1808 b := dAtA[iNdEx] 1809 iNdEx++ 1810 mapmsglen |= int(b&0x7F) << shift 1811 if b < 0x80 { 1812 break 1813 } 1814 } 1815 if mapmsglen < 0 { 1816 return ErrInvalidLengthSettings 1817 } 1818 postmsgIndex := iNdEx + mapmsglen 1819 if postmsgIndex < 0 { 1820 return ErrInvalidLengthSettings 1821 } 1822 if postmsgIndex > l { 1823 return io.ErrUnexpectedEOF 1824 } 1825 mapvalue = &v1alpha1.ResourceOverride{} 1826 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 1827 return err 1828 } 1829 iNdEx = postmsgIndex 1830 } else { 1831 iNdEx = entryPreIndex 1832 skippy, err := skipSettings(dAtA[iNdEx:]) 1833 if err != nil { 1834 return err 1835 } 1836 if skippy < 0 { 1837 return ErrInvalidLengthSettings 1838 } 1839 if (iNdEx + skippy) > postIndex { 1840 return io.ErrUnexpectedEOF 1841 } 1842 iNdEx += skippy 1843 } 1844 } 1845 m.ResourceOverrides[mapkey] = mapvalue 1846 iNdEx = postIndex 1847 case 6: 1848 if wireType != 0 { 1849 return fmt.Errorf("proto: wrong wireType = %d for field StatusBadgeEnabled", wireType) 1850 } 1851 var v int 1852 for shift := uint(0); ; shift += 7 { 1853 if shift >= 64 { 1854 return ErrIntOverflowSettings 1855 } 1856 if iNdEx >= l { 1857 return io.ErrUnexpectedEOF 1858 } 1859 b := dAtA[iNdEx] 1860 iNdEx++ 1861 v |= int(b&0x7F) << shift 1862 if b < 0x80 { 1863 break 1864 } 1865 } 1866 m.StatusBadgeEnabled = bool(v != 0) 1867 case 7: 1868 if wireType != 2 { 1869 return fmt.Errorf("proto: wrong wireType = %d for field GoogleAnalytics", wireType) 1870 } 1871 var msglen int 1872 for shift := uint(0); ; shift += 7 { 1873 if shift >= 64 { 1874 return ErrIntOverflowSettings 1875 } 1876 if iNdEx >= l { 1877 return io.ErrUnexpectedEOF 1878 } 1879 b := dAtA[iNdEx] 1880 iNdEx++ 1881 msglen |= int(b&0x7F) << shift 1882 if b < 0x80 { 1883 break 1884 } 1885 } 1886 if msglen < 0 { 1887 return ErrInvalidLengthSettings 1888 } 1889 postIndex := iNdEx + msglen 1890 if postIndex < 0 { 1891 return ErrInvalidLengthSettings 1892 } 1893 if postIndex > l { 1894 return io.ErrUnexpectedEOF 1895 } 1896 if m.GoogleAnalytics == nil { 1897 m.GoogleAnalytics = &GoogleAnalyticsConfig{} 1898 } 1899 if err := m.GoogleAnalytics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1900 return err 1901 } 1902 iNdEx = postIndex 1903 case 8: 1904 if wireType != 2 { 1905 return fmt.Errorf("proto: wrong wireType = %d for field KustomizeOptions", wireType) 1906 } 1907 var msglen int 1908 for shift := uint(0); ; shift += 7 { 1909 if shift >= 64 { 1910 return ErrIntOverflowSettings 1911 } 1912 if iNdEx >= l { 1913 return io.ErrUnexpectedEOF 1914 } 1915 b := dAtA[iNdEx] 1916 iNdEx++ 1917 msglen |= int(b&0x7F) << shift 1918 if b < 0x80 { 1919 break 1920 } 1921 } 1922 if msglen < 0 { 1923 return ErrInvalidLengthSettings 1924 } 1925 postIndex := iNdEx + msglen 1926 if postIndex < 0 { 1927 return ErrInvalidLengthSettings 1928 } 1929 if postIndex > l { 1930 return io.ErrUnexpectedEOF 1931 } 1932 if m.KustomizeOptions == nil { 1933 m.KustomizeOptions = &v1alpha1.KustomizeOptions{} 1934 } 1935 if err := m.KustomizeOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1936 return err 1937 } 1938 iNdEx = postIndex 1939 case 9: 1940 if wireType != 2 { 1941 return fmt.Errorf("proto: wrong wireType = %d for field Help", wireType) 1942 } 1943 var msglen int 1944 for shift := uint(0); ; shift += 7 { 1945 if shift >= 64 { 1946 return ErrIntOverflowSettings 1947 } 1948 if iNdEx >= l { 1949 return io.ErrUnexpectedEOF 1950 } 1951 b := dAtA[iNdEx] 1952 iNdEx++ 1953 msglen |= int(b&0x7F) << shift 1954 if b < 0x80 { 1955 break 1956 } 1957 } 1958 if msglen < 0 { 1959 return ErrInvalidLengthSettings 1960 } 1961 postIndex := iNdEx + msglen 1962 if postIndex < 0 { 1963 return ErrInvalidLengthSettings 1964 } 1965 if postIndex > l { 1966 return io.ErrUnexpectedEOF 1967 } 1968 if m.Help == nil { 1969 m.Help = &Help{} 1970 } 1971 if err := m.Help.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1972 return err 1973 } 1974 iNdEx = postIndex 1975 case 10: 1976 if wireType != 2 { 1977 return fmt.Errorf("proto: wrong wireType = %d for field Plugins", wireType) 1978 } 1979 var msglen int 1980 for shift := uint(0); ; shift += 7 { 1981 if shift >= 64 { 1982 return ErrIntOverflowSettings 1983 } 1984 if iNdEx >= l { 1985 return io.ErrUnexpectedEOF 1986 } 1987 b := dAtA[iNdEx] 1988 iNdEx++ 1989 msglen |= int(b&0x7F) << shift 1990 if b < 0x80 { 1991 break 1992 } 1993 } 1994 if msglen < 0 { 1995 return ErrInvalidLengthSettings 1996 } 1997 postIndex := iNdEx + msglen 1998 if postIndex < 0 { 1999 return ErrInvalidLengthSettings 2000 } 2001 if postIndex > l { 2002 return io.ErrUnexpectedEOF 2003 } 2004 m.Plugins = append(m.Plugins, &Plugin{}) 2005 if err := m.Plugins[len(m.Plugins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2006 return err 2007 } 2008 iNdEx = postIndex 2009 case 11: 2010 if wireType != 0 { 2011 return fmt.Errorf("proto: wrong wireType = %d for field UserLoginsDisabled", wireType) 2012 } 2013 var v int 2014 for shift := uint(0); ; shift += 7 { 2015 if shift >= 64 { 2016 return ErrIntOverflowSettings 2017 } 2018 if iNdEx >= l { 2019 return io.ErrUnexpectedEOF 2020 } 2021 b := dAtA[iNdEx] 2022 iNdEx++ 2023 v |= int(b&0x7F) << shift 2024 if b < 0x80 { 2025 break 2026 } 2027 } 2028 m.UserLoginsDisabled = bool(v != 0) 2029 case 12: 2030 if wireType != 2 { 2031 return fmt.Errorf("proto: wrong wireType = %d for field ConfigManagementPlugins", wireType) 2032 } 2033 var msglen int 2034 for shift := uint(0); ; shift += 7 { 2035 if shift >= 64 { 2036 return ErrIntOverflowSettings 2037 } 2038 if iNdEx >= l { 2039 return io.ErrUnexpectedEOF 2040 } 2041 b := dAtA[iNdEx] 2042 iNdEx++ 2043 msglen |= int(b&0x7F) << shift 2044 if b < 0x80 { 2045 break 2046 } 2047 } 2048 if msglen < 0 { 2049 return ErrInvalidLengthSettings 2050 } 2051 postIndex := iNdEx + msglen 2052 if postIndex < 0 { 2053 return ErrInvalidLengthSettings 2054 } 2055 if postIndex > l { 2056 return io.ErrUnexpectedEOF 2057 } 2058 m.ConfigManagementPlugins = append(m.ConfigManagementPlugins, &v1alpha1.ConfigManagementPlugin{}) 2059 if err := m.ConfigManagementPlugins[len(m.ConfigManagementPlugins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2060 return err 2061 } 2062 iNdEx = postIndex 2063 case 13: 2064 if wireType != 2 { 2065 return fmt.Errorf("proto: wrong wireType = %d for field KustomizeVersions", wireType) 2066 } 2067 var stringLen uint64 2068 for shift := uint(0); ; shift += 7 { 2069 if shift >= 64 { 2070 return ErrIntOverflowSettings 2071 } 2072 if iNdEx >= l { 2073 return io.ErrUnexpectedEOF 2074 } 2075 b := dAtA[iNdEx] 2076 iNdEx++ 2077 stringLen |= uint64(b&0x7F) << shift 2078 if b < 0x80 { 2079 break 2080 } 2081 } 2082 intStringLen := int(stringLen) 2083 if intStringLen < 0 { 2084 return ErrInvalidLengthSettings 2085 } 2086 postIndex := iNdEx + intStringLen 2087 if postIndex < 0 { 2088 return ErrInvalidLengthSettings 2089 } 2090 if postIndex > l { 2091 return io.ErrUnexpectedEOF 2092 } 2093 m.KustomizeVersions = append(m.KustomizeVersions, string(dAtA[iNdEx:postIndex])) 2094 iNdEx = postIndex 2095 case 14: 2096 if wireType != 2 { 2097 return fmt.Errorf("proto: wrong wireType = %d for field UiCssURL", wireType) 2098 } 2099 var stringLen uint64 2100 for shift := uint(0); ; shift += 7 { 2101 if shift >= 64 { 2102 return ErrIntOverflowSettings 2103 } 2104 if iNdEx >= l { 2105 return io.ErrUnexpectedEOF 2106 } 2107 b := dAtA[iNdEx] 2108 iNdEx++ 2109 stringLen |= uint64(b&0x7F) << shift 2110 if b < 0x80 { 2111 break 2112 } 2113 } 2114 intStringLen := int(stringLen) 2115 if intStringLen < 0 { 2116 return ErrInvalidLengthSettings 2117 } 2118 postIndex := iNdEx + intStringLen 2119 if postIndex < 0 { 2120 return ErrInvalidLengthSettings 2121 } 2122 if postIndex > l { 2123 return io.ErrUnexpectedEOF 2124 } 2125 m.UiCssURL = string(dAtA[iNdEx:postIndex]) 2126 iNdEx = postIndex 2127 default: 2128 iNdEx = preIndex 2129 skippy, err := skipSettings(dAtA[iNdEx:]) 2130 if err != nil { 2131 return err 2132 } 2133 if skippy < 0 { 2134 return ErrInvalidLengthSettings 2135 } 2136 if (iNdEx + skippy) < 0 { 2137 return ErrInvalidLengthSettings 2138 } 2139 if (iNdEx + skippy) > l { 2140 return io.ErrUnexpectedEOF 2141 } 2142 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2143 iNdEx += skippy 2144 } 2145 } 2146 2147 if iNdEx > l { 2148 return io.ErrUnexpectedEOF 2149 } 2150 return nil 2151 } 2152 func (m *GoogleAnalyticsConfig) Unmarshal(dAtA []byte) error { 2153 l := len(dAtA) 2154 iNdEx := 0 2155 for iNdEx < l { 2156 preIndex := iNdEx 2157 var wire uint64 2158 for shift := uint(0); ; shift += 7 { 2159 if shift >= 64 { 2160 return ErrIntOverflowSettings 2161 } 2162 if iNdEx >= l { 2163 return io.ErrUnexpectedEOF 2164 } 2165 b := dAtA[iNdEx] 2166 iNdEx++ 2167 wire |= uint64(b&0x7F) << shift 2168 if b < 0x80 { 2169 break 2170 } 2171 } 2172 fieldNum := int32(wire >> 3) 2173 wireType := int(wire & 0x7) 2174 if wireType == 4 { 2175 return fmt.Errorf("proto: GoogleAnalyticsConfig: wiretype end group for non-group") 2176 } 2177 if fieldNum <= 0 { 2178 return fmt.Errorf("proto: GoogleAnalyticsConfig: illegal tag %d (wire type %d)", fieldNum, wire) 2179 } 2180 switch fieldNum { 2181 case 1: 2182 if wireType != 2 { 2183 return fmt.Errorf("proto: wrong wireType = %d for field TrackingID", wireType) 2184 } 2185 var stringLen uint64 2186 for shift := uint(0); ; shift += 7 { 2187 if shift >= 64 { 2188 return ErrIntOverflowSettings 2189 } 2190 if iNdEx >= l { 2191 return io.ErrUnexpectedEOF 2192 } 2193 b := dAtA[iNdEx] 2194 iNdEx++ 2195 stringLen |= uint64(b&0x7F) << shift 2196 if b < 0x80 { 2197 break 2198 } 2199 } 2200 intStringLen := int(stringLen) 2201 if intStringLen < 0 { 2202 return ErrInvalidLengthSettings 2203 } 2204 postIndex := iNdEx + intStringLen 2205 if postIndex < 0 { 2206 return ErrInvalidLengthSettings 2207 } 2208 if postIndex > l { 2209 return io.ErrUnexpectedEOF 2210 } 2211 m.TrackingID = string(dAtA[iNdEx:postIndex]) 2212 iNdEx = postIndex 2213 case 2: 2214 if wireType != 0 { 2215 return fmt.Errorf("proto: wrong wireType = %d for field AnonymizeUsers", wireType) 2216 } 2217 var v int 2218 for shift := uint(0); ; shift += 7 { 2219 if shift >= 64 { 2220 return ErrIntOverflowSettings 2221 } 2222 if iNdEx >= l { 2223 return io.ErrUnexpectedEOF 2224 } 2225 b := dAtA[iNdEx] 2226 iNdEx++ 2227 v |= int(b&0x7F) << shift 2228 if b < 0x80 { 2229 break 2230 } 2231 } 2232 m.AnonymizeUsers = bool(v != 0) 2233 default: 2234 iNdEx = preIndex 2235 skippy, err := skipSettings(dAtA[iNdEx:]) 2236 if err != nil { 2237 return err 2238 } 2239 if skippy < 0 { 2240 return ErrInvalidLengthSettings 2241 } 2242 if (iNdEx + skippy) < 0 { 2243 return ErrInvalidLengthSettings 2244 } 2245 if (iNdEx + skippy) > l { 2246 return io.ErrUnexpectedEOF 2247 } 2248 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2249 iNdEx += skippy 2250 } 2251 } 2252 2253 if iNdEx > l { 2254 return io.ErrUnexpectedEOF 2255 } 2256 return nil 2257 } 2258 func (m *Help) Unmarshal(dAtA []byte) error { 2259 l := len(dAtA) 2260 iNdEx := 0 2261 for iNdEx < l { 2262 preIndex := iNdEx 2263 var wire uint64 2264 for shift := uint(0); ; shift += 7 { 2265 if shift >= 64 { 2266 return ErrIntOverflowSettings 2267 } 2268 if iNdEx >= l { 2269 return io.ErrUnexpectedEOF 2270 } 2271 b := dAtA[iNdEx] 2272 iNdEx++ 2273 wire |= uint64(b&0x7F) << shift 2274 if b < 0x80 { 2275 break 2276 } 2277 } 2278 fieldNum := int32(wire >> 3) 2279 wireType := int(wire & 0x7) 2280 if wireType == 4 { 2281 return fmt.Errorf("proto: Help: wiretype end group for non-group") 2282 } 2283 if fieldNum <= 0 { 2284 return fmt.Errorf("proto: Help: illegal tag %d (wire type %d)", fieldNum, wire) 2285 } 2286 switch fieldNum { 2287 case 1: 2288 if wireType != 2 { 2289 return fmt.Errorf("proto: wrong wireType = %d for field ChatUrl", wireType) 2290 } 2291 var stringLen uint64 2292 for shift := uint(0); ; shift += 7 { 2293 if shift >= 64 { 2294 return ErrIntOverflowSettings 2295 } 2296 if iNdEx >= l { 2297 return io.ErrUnexpectedEOF 2298 } 2299 b := dAtA[iNdEx] 2300 iNdEx++ 2301 stringLen |= uint64(b&0x7F) << shift 2302 if b < 0x80 { 2303 break 2304 } 2305 } 2306 intStringLen := int(stringLen) 2307 if intStringLen < 0 { 2308 return ErrInvalidLengthSettings 2309 } 2310 postIndex := iNdEx + intStringLen 2311 if postIndex < 0 { 2312 return ErrInvalidLengthSettings 2313 } 2314 if postIndex > l { 2315 return io.ErrUnexpectedEOF 2316 } 2317 m.ChatUrl = string(dAtA[iNdEx:postIndex]) 2318 iNdEx = postIndex 2319 case 2: 2320 if wireType != 2 { 2321 return fmt.Errorf("proto: wrong wireType = %d for field ChatText", wireType) 2322 } 2323 var stringLen uint64 2324 for shift := uint(0); ; shift += 7 { 2325 if shift >= 64 { 2326 return ErrIntOverflowSettings 2327 } 2328 if iNdEx >= l { 2329 return io.ErrUnexpectedEOF 2330 } 2331 b := dAtA[iNdEx] 2332 iNdEx++ 2333 stringLen |= uint64(b&0x7F) << shift 2334 if b < 0x80 { 2335 break 2336 } 2337 } 2338 intStringLen := int(stringLen) 2339 if intStringLen < 0 { 2340 return ErrInvalidLengthSettings 2341 } 2342 postIndex := iNdEx + intStringLen 2343 if postIndex < 0 { 2344 return ErrInvalidLengthSettings 2345 } 2346 if postIndex > l { 2347 return io.ErrUnexpectedEOF 2348 } 2349 m.ChatText = string(dAtA[iNdEx:postIndex]) 2350 iNdEx = postIndex 2351 default: 2352 iNdEx = preIndex 2353 skippy, err := skipSettings(dAtA[iNdEx:]) 2354 if err != nil { 2355 return err 2356 } 2357 if skippy < 0 { 2358 return ErrInvalidLengthSettings 2359 } 2360 if (iNdEx + skippy) < 0 { 2361 return ErrInvalidLengthSettings 2362 } 2363 if (iNdEx + skippy) > l { 2364 return io.ErrUnexpectedEOF 2365 } 2366 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2367 iNdEx += skippy 2368 } 2369 } 2370 2371 if iNdEx > l { 2372 return io.ErrUnexpectedEOF 2373 } 2374 return nil 2375 } 2376 func (m *Plugin) Unmarshal(dAtA []byte) error { 2377 l := len(dAtA) 2378 iNdEx := 0 2379 for iNdEx < l { 2380 preIndex := iNdEx 2381 var wire uint64 2382 for shift := uint(0); ; shift += 7 { 2383 if shift >= 64 { 2384 return ErrIntOverflowSettings 2385 } 2386 if iNdEx >= l { 2387 return io.ErrUnexpectedEOF 2388 } 2389 b := dAtA[iNdEx] 2390 iNdEx++ 2391 wire |= uint64(b&0x7F) << shift 2392 if b < 0x80 { 2393 break 2394 } 2395 } 2396 fieldNum := int32(wire >> 3) 2397 wireType := int(wire & 0x7) 2398 if wireType == 4 { 2399 return fmt.Errorf("proto: Plugin: wiretype end group for non-group") 2400 } 2401 if fieldNum <= 0 { 2402 return fmt.Errorf("proto: Plugin: illegal tag %d (wire type %d)", fieldNum, wire) 2403 } 2404 switch fieldNum { 2405 case 1: 2406 if wireType != 2 { 2407 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 2408 } 2409 var stringLen uint64 2410 for shift := uint(0); ; shift += 7 { 2411 if shift >= 64 { 2412 return ErrIntOverflowSettings 2413 } 2414 if iNdEx >= l { 2415 return io.ErrUnexpectedEOF 2416 } 2417 b := dAtA[iNdEx] 2418 iNdEx++ 2419 stringLen |= uint64(b&0x7F) << shift 2420 if b < 0x80 { 2421 break 2422 } 2423 } 2424 intStringLen := int(stringLen) 2425 if intStringLen < 0 { 2426 return ErrInvalidLengthSettings 2427 } 2428 postIndex := iNdEx + intStringLen 2429 if postIndex < 0 { 2430 return ErrInvalidLengthSettings 2431 } 2432 if postIndex > l { 2433 return io.ErrUnexpectedEOF 2434 } 2435 m.Name = string(dAtA[iNdEx:postIndex]) 2436 iNdEx = postIndex 2437 default: 2438 iNdEx = preIndex 2439 skippy, err := skipSettings(dAtA[iNdEx:]) 2440 if err != nil { 2441 return err 2442 } 2443 if skippy < 0 { 2444 return ErrInvalidLengthSettings 2445 } 2446 if (iNdEx + skippy) < 0 { 2447 return ErrInvalidLengthSettings 2448 } 2449 if (iNdEx + skippy) > l { 2450 return io.ErrUnexpectedEOF 2451 } 2452 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2453 iNdEx += skippy 2454 } 2455 } 2456 2457 if iNdEx > l { 2458 return io.ErrUnexpectedEOF 2459 } 2460 return nil 2461 } 2462 func (m *DexConfig) Unmarshal(dAtA []byte) error { 2463 l := len(dAtA) 2464 iNdEx := 0 2465 for iNdEx < l { 2466 preIndex := iNdEx 2467 var wire uint64 2468 for shift := uint(0); ; shift += 7 { 2469 if shift >= 64 { 2470 return ErrIntOverflowSettings 2471 } 2472 if iNdEx >= l { 2473 return io.ErrUnexpectedEOF 2474 } 2475 b := dAtA[iNdEx] 2476 iNdEx++ 2477 wire |= uint64(b&0x7F) << shift 2478 if b < 0x80 { 2479 break 2480 } 2481 } 2482 fieldNum := int32(wire >> 3) 2483 wireType := int(wire & 0x7) 2484 if wireType == 4 { 2485 return fmt.Errorf("proto: DexConfig: wiretype end group for non-group") 2486 } 2487 if fieldNum <= 0 { 2488 return fmt.Errorf("proto: DexConfig: illegal tag %d (wire type %d)", fieldNum, wire) 2489 } 2490 switch fieldNum { 2491 case 1: 2492 if wireType != 2 { 2493 return fmt.Errorf("proto: wrong wireType = %d for field Connectors", wireType) 2494 } 2495 var msglen int 2496 for shift := uint(0); ; shift += 7 { 2497 if shift >= 64 { 2498 return ErrIntOverflowSettings 2499 } 2500 if iNdEx >= l { 2501 return io.ErrUnexpectedEOF 2502 } 2503 b := dAtA[iNdEx] 2504 iNdEx++ 2505 msglen |= int(b&0x7F) << shift 2506 if b < 0x80 { 2507 break 2508 } 2509 } 2510 if msglen < 0 { 2511 return ErrInvalidLengthSettings 2512 } 2513 postIndex := iNdEx + msglen 2514 if postIndex < 0 { 2515 return ErrInvalidLengthSettings 2516 } 2517 if postIndex > l { 2518 return io.ErrUnexpectedEOF 2519 } 2520 m.Connectors = append(m.Connectors, &Connector{}) 2521 if err := m.Connectors[len(m.Connectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2522 return err 2523 } 2524 iNdEx = postIndex 2525 default: 2526 iNdEx = preIndex 2527 skippy, err := skipSettings(dAtA[iNdEx:]) 2528 if err != nil { 2529 return err 2530 } 2531 if skippy < 0 { 2532 return ErrInvalidLengthSettings 2533 } 2534 if (iNdEx + skippy) < 0 { 2535 return ErrInvalidLengthSettings 2536 } 2537 if (iNdEx + skippy) > l { 2538 return io.ErrUnexpectedEOF 2539 } 2540 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2541 iNdEx += skippy 2542 } 2543 } 2544 2545 if iNdEx > l { 2546 return io.ErrUnexpectedEOF 2547 } 2548 return nil 2549 } 2550 func (m *Connector) Unmarshal(dAtA []byte) error { 2551 l := len(dAtA) 2552 iNdEx := 0 2553 for iNdEx < l { 2554 preIndex := iNdEx 2555 var wire uint64 2556 for shift := uint(0); ; shift += 7 { 2557 if shift >= 64 { 2558 return ErrIntOverflowSettings 2559 } 2560 if iNdEx >= l { 2561 return io.ErrUnexpectedEOF 2562 } 2563 b := dAtA[iNdEx] 2564 iNdEx++ 2565 wire |= uint64(b&0x7F) << shift 2566 if b < 0x80 { 2567 break 2568 } 2569 } 2570 fieldNum := int32(wire >> 3) 2571 wireType := int(wire & 0x7) 2572 if wireType == 4 { 2573 return fmt.Errorf("proto: Connector: wiretype end group for non-group") 2574 } 2575 if fieldNum <= 0 { 2576 return fmt.Errorf("proto: Connector: illegal tag %d (wire type %d)", fieldNum, wire) 2577 } 2578 switch fieldNum { 2579 case 1: 2580 if wireType != 2 { 2581 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 2582 } 2583 var stringLen uint64 2584 for shift := uint(0); ; shift += 7 { 2585 if shift >= 64 { 2586 return ErrIntOverflowSettings 2587 } 2588 if iNdEx >= l { 2589 return io.ErrUnexpectedEOF 2590 } 2591 b := dAtA[iNdEx] 2592 iNdEx++ 2593 stringLen |= uint64(b&0x7F) << shift 2594 if b < 0x80 { 2595 break 2596 } 2597 } 2598 intStringLen := int(stringLen) 2599 if intStringLen < 0 { 2600 return ErrInvalidLengthSettings 2601 } 2602 postIndex := iNdEx + intStringLen 2603 if postIndex < 0 { 2604 return ErrInvalidLengthSettings 2605 } 2606 if postIndex > l { 2607 return io.ErrUnexpectedEOF 2608 } 2609 m.Name = string(dAtA[iNdEx:postIndex]) 2610 iNdEx = postIndex 2611 case 2: 2612 if wireType != 2 { 2613 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 2614 } 2615 var stringLen uint64 2616 for shift := uint(0); ; shift += 7 { 2617 if shift >= 64 { 2618 return ErrIntOverflowSettings 2619 } 2620 if iNdEx >= l { 2621 return io.ErrUnexpectedEOF 2622 } 2623 b := dAtA[iNdEx] 2624 iNdEx++ 2625 stringLen |= uint64(b&0x7F) << shift 2626 if b < 0x80 { 2627 break 2628 } 2629 } 2630 intStringLen := int(stringLen) 2631 if intStringLen < 0 { 2632 return ErrInvalidLengthSettings 2633 } 2634 postIndex := iNdEx + intStringLen 2635 if postIndex < 0 { 2636 return ErrInvalidLengthSettings 2637 } 2638 if postIndex > l { 2639 return io.ErrUnexpectedEOF 2640 } 2641 m.Type = string(dAtA[iNdEx:postIndex]) 2642 iNdEx = postIndex 2643 default: 2644 iNdEx = preIndex 2645 skippy, err := skipSettings(dAtA[iNdEx:]) 2646 if err != nil { 2647 return err 2648 } 2649 if skippy < 0 { 2650 return ErrInvalidLengthSettings 2651 } 2652 if (iNdEx + skippy) < 0 { 2653 return ErrInvalidLengthSettings 2654 } 2655 if (iNdEx + skippy) > l { 2656 return io.ErrUnexpectedEOF 2657 } 2658 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2659 iNdEx += skippy 2660 } 2661 } 2662 2663 if iNdEx > l { 2664 return io.ErrUnexpectedEOF 2665 } 2666 return nil 2667 } 2668 func (m *OIDCConfig) Unmarshal(dAtA []byte) error { 2669 l := len(dAtA) 2670 iNdEx := 0 2671 for iNdEx < l { 2672 preIndex := iNdEx 2673 var wire uint64 2674 for shift := uint(0); ; shift += 7 { 2675 if shift >= 64 { 2676 return ErrIntOverflowSettings 2677 } 2678 if iNdEx >= l { 2679 return io.ErrUnexpectedEOF 2680 } 2681 b := dAtA[iNdEx] 2682 iNdEx++ 2683 wire |= uint64(b&0x7F) << shift 2684 if b < 0x80 { 2685 break 2686 } 2687 } 2688 fieldNum := int32(wire >> 3) 2689 wireType := int(wire & 0x7) 2690 if wireType == 4 { 2691 return fmt.Errorf("proto: OIDCConfig: wiretype end group for non-group") 2692 } 2693 if fieldNum <= 0 { 2694 return fmt.Errorf("proto: OIDCConfig: illegal tag %d (wire type %d)", fieldNum, wire) 2695 } 2696 switch fieldNum { 2697 case 1: 2698 if wireType != 2 { 2699 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 2700 } 2701 var stringLen uint64 2702 for shift := uint(0); ; shift += 7 { 2703 if shift >= 64 { 2704 return ErrIntOverflowSettings 2705 } 2706 if iNdEx >= l { 2707 return io.ErrUnexpectedEOF 2708 } 2709 b := dAtA[iNdEx] 2710 iNdEx++ 2711 stringLen |= uint64(b&0x7F) << shift 2712 if b < 0x80 { 2713 break 2714 } 2715 } 2716 intStringLen := int(stringLen) 2717 if intStringLen < 0 { 2718 return ErrInvalidLengthSettings 2719 } 2720 postIndex := iNdEx + intStringLen 2721 if postIndex < 0 { 2722 return ErrInvalidLengthSettings 2723 } 2724 if postIndex > l { 2725 return io.ErrUnexpectedEOF 2726 } 2727 m.Name = string(dAtA[iNdEx:postIndex]) 2728 iNdEx = postIndex 2729 case 2: 2730 if wireType != 2 { 2731 return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) 2732 } 2733 var stringLen uint64 2734 for shift := uint(0); ; shift += 7 { 2735 if shift >= 64 { 2736 return ErrIntOverflowSettings 2737 } 2738 if iNdEx >= l { 2739 return io.ErrUnexpectedEOF 2740 } 2741 b := dAtA[iNdEx] 2742 iNdEx++ 2743 stringLen |= uint64(b&0x7F) << shift 2744 if b < 0x80 { 2745 break 2746 } 2747 } 2748 intStringLen := int(stringLen) 2749 if intStringLen < 0 { 2750 return ErrInvalidLengthSettings 2751 } 2752 postIndex := iNdEx + intStringLen 2753 if postIndex < 0 { 2754 return ErrInvalidLengthSettings 2755 } 2756 if postIndex > l { 2757 return io.ErrUnexpectedEOF 2758 } 2759 m.Issuer = string(dAtA[iNdEx:postIndex]) 2760 iNdEx = postIndex 2761 case 3: 2762 if wireType != 2 { 2763 return fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType) 2764 } 2765 var stringLen uint64 2766 for shift := uint(0); ; shift += 7 { 2767 if shift >= 64 { 2768 return ErrIntOverflowSettings 2769 } 2770 if iNdEx >= l { 2771 return io.ErrUnexpectedEOF 2772 } 2773 b := dAtA[iNdEx] 2774 iNdEx++ 2775 stringLen |= uint64(b&0x7F) << shift 2776 if b < 0x80 { 2777 break 2778 } 2779 } 2780 intStringLen := int(stringLen) 2781 if intStringLen < 0 { 2782 return ErrInvalidLengthSettings 2783 } 2784 postIndex := iNdEx + intStringLen 2785 if postIndex < 0 { 2786 return ErrInvalidLengthSettings 2787 } 2788 if postIndex > l { 2789 return io.ErrUnexpectedEOF 2790 } 2791 m.ClientID = string(dAtA[iNdEx:postIndex]) 2792 iNdEx = postIndex 2793 case 4: 2794 if wireType != 2 { 2795 return fmt.Errorf("proto: wrong wireType = %d for field CLIClientID", wireType) 2796 } 2797 var stringLen uint64 2798 for shift := uint(0); ; shift += 7 { 2799 if shift >= 64 { 2800 return ErrIntOverflowSettings 2801 } 2802 if iNdEx >= l { 2803 return io.ErrUnexpectedEOF 2804 } 2805 b := dAtA[iNdEx] 2806 iNdEx++ 2807 stringLen |= uint64(b&0x7F) << shift 2808 if b < 0x80 { 2809 break 2810 } 2811 } 2812 intStringLen := int(stringLen) 2813 if intStringLen < 0 { 2814 return ErrInvalidLengthSettings 2815 } 2816 postIndex := iNdEx + intStringLen 2817 if postIndex < 0 { 2818 return ErrInvalidLengthSettings 2819 } 2820 if postIndex > l { 2821 return io.ErrUnexpectedEOF 2822 } 2823 m.CLIClientID = string(dAtA[iNdEx:postIndex]) 2824 iNdEx = postIndex 2825 case 5: 2826 if wireType != 2 { 2827 return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) 2828 } 2829 var stringLen uint64 2830 for shift := uint(0); ; shift += 7 { 2831 if shift >= 64 { 2832 return ErrIntOverflowSettings 2833 } 2834 if iNdEx >= l { 2835 return io.ErrUnexpectedEOF 2836 } 2837 b := dAtA[iNdEx] 2838 iNdEx++ 2839 stringLen |= uint64(b&0x7F) << shift 2840 if b < 0x80 { 2841 break 2842 } 2843 } 2844 intStringLen := int(stringLen) 2845 if intStringLen < 0 { 2846 return ErrInvalidLengthSettings 2847 } 2848 postIndex := iNdEx + intStringLen 2849 if postIndex < 0 { 2850 return ErrInvalidLengthSettings 2851 } 2852 if postIndex > l { 2853 return io.ErrUnexpectedEOF 2854 } 2855 m.Scopes = append(m.Scopes, string(dAtA[iNdEx:postIndex])) 2856 iNdEx = postIndex 2857 case 6: 2858 if wireType != 2 { 2859 return fmt.Errorf("proto: wrong wireType = %d for field IDTokenClaims", wireType) 2860 } 2861 var msglen int 2862 for shift := uint(0); ; shift += 7 { 2863 if shift >= 64 { 2864 return ErrIntOverflowSettings 2865 } 2866 if iNdEx >= l { 2867 return io.ErrUnexpectedEOF 2868 } 2869 b := dAtA[iNdEx] 2870 iNdEx++ 2871 msglen |= int(b&0x7F) << shift 2872 if b < 0x80 { 2873 break 2874 } 2875 } 2876 if msglen < 0 { 2877 return ErrInvalidLengthSettings 2878 } 2879 postIndex := iNdEx + msglen 2880 if postIndex < 0 { 2881 return ErrInvalidLengthSettings 2882 } 2883 if postIndex > l { 2884 return io.ErrUnexpectedEOF 2885 } 2886 if m.IDTokenClaims == nil { 2887 m.IDTokenClaims = make(map[string]*oidc.Claim) 2888 } 2889 var mapkey string 2890 var mapvalue *oidc.Claim 2891 for iNdEx < postIndex { 2892 entryPreIndex := iNdEx 2893 var wire uint64 2894 for shift := uint(0); ; shift += 7 { 2895 if shift >= 64 { 2896 return ErrIntOverflowSettings 2897 } 2898 if iNdEx >= l { 2899 return io.ErrUnexpectedEOF 2900 } 2901 b := dAtA[iNdEx] 2902 iNdEx++ 2903 wire |= uint64(b&0x7F) << shift 2904 if b < 0x80 { 2905 break 2906 } 2907 } 2908 fieldNum := int32(wire >> 3) 2909 if fieldNum == 1 { 2910 var stringLenmapkey uint64 2911 for shift := uint(0); ; shift += 7 { 2912 if shift >= 64 { 2913 return ErrIntOverflowSettings 2914 } 2915 if iNdEx >= l { 2916 return io.ErrUnexpectedEOF 2917 } 2918 b := dAtA[iNdEx] 2919 iNdEx++ 2920 stringLenmapkey |= uint64(b&0x7F) << shift 2921 if b < 0x80 { 2922 break 2923 } 2924 } 2925 intStringLenmapkey := int(stringLenmapkey) 2926 if intStringLenmapkey < 0 { 2927 return ErrInvalidLengthSettings 2928 } 2929 postStringIndexmapkey := iNdEx + intStringLenmapkey 2930 if postStringIndexmapkey < 0 { 2931 return ErrInvalidLengthSettings 2932 } 2933 if postStringIndexmapkey > l { 2934 return io.ErrUnexpectedEOF 2935 } 2936 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 2937 iNdEx = postStringIndexmapkey 2938 } else if fieldNum == 2 { 2939 var mapmsglen int 2940 for shift := uint(0); ; shift += 7 { 2941 if shift >= 64 { 2942 return ErrIntOverflowSettings 2943 } 2944 if iNdEx >= l { 2945 return io.ErrUnexpectedEOF 2946 } 2947 b := dAtA[iNdEx] 2948 iNdEx++ 2949 mapmsglen |= int(b&0x7F) << shift 2950 if b < 0x80 { 2951 break 2952 } 2953 } 2954 if mapmsglen < 0 { 2955 return ErrInvalidLengthSettings 2956 } 2957 postmsgIndex := iNdEx + mapmsglen 2958 if postmsgIndex < 0 { 2959 return ErrInvalidLengthSettings 2960 } 2961 if postmsgIndex > l { 2962 return io.ErrUnexpectedEOF 2963 } 2964 mapvalue = &oidc.Claim{} 2965 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 2966 return err 2967 } 2968 iNdEx = postmsgIndex 2969 } else { 2970 iNdEx = entryPreIndex 2971 skippy, err := skipSettings(dAtA[iNdEx:]) 2972 if err != nil { 2973 return err 2974 } 2975 if skippy < 0 { 2976 return ErrInvalidLengthSettings 2977 } 2978 if (iNdEx + skippy) > postIndex { 2979 return io.ErrUnexpectedEOF 2980 } 2981 iNdEx += skippy 2982 } 2983 } 2984 m.IDTokenClaims[mapkey] = mapvalue 2985 iNdEx = postIndex 2986 default: 2987 iNdEx = preIndex 2988 skippy, err := skipSettings(dAtA[iNdEx:]) 2989 if err != nil { 2990 return err 2991 } 2992 if skippy < 0 { 2993 return ErrInvalidLengthSettings 2994 } 2995 if (iNdEx + skippy) < 0 { 2996 return ErrInvalidLengthSettings 2997 } 2998 if (iNdEx + skippy) > l { 2999 return io.ErrUnexpectedEOF 3000 } 3001 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3002 iNdEx += skippy 3003 } 3004 } 3005 3006 if iNdEx > l { 3007 return io.ErrUnexpectedEOF 3008 } 3009 return nil 3010 } 3011 func skipSettings(dAtA []byte) (n int, err error) { 3012 l := len(dAtA) 3013 iNdEx := 0 3014 depth := 0 3015 for iNdEx < l { 3016 var wire uint64 3017 for shift := uint(0); ; shift += 7 { 3018 if shift >= 64 { 3019 return 0, ErrIntOverflowSettings 3020 } 3021 if iNdEx >= l { 3022 return 0, io.ErrUnexpectedEOF 3023 } 3024 b := dAtA[iNdEx] 3025 iNdEx++ 3026 wire |= (uint64(b) & 0x7F) << shift 3027 if b < 0x80 { 3028 break 3029 } 3030 } 3031 wireType := int(wire & 0x7) 3032 switch wireType { 3033 case 0: 3034 for shift := uint(0); ; shift += 7 { 3035 if shift >= 64 { 3036 return 0, ErrIntOverflowSettings 3037 } 3038 if iNdEx >= l { 3039 return 0, io.ErrUnexpectedEOF 3040 } 3041 iNdEx++ 3042 if dAtA[iNdEx-1] < 0x80 { 3043 break 3044 } 3045 } 3046 case 1: 3047 iNdEx += 8 3048 case 2: 3049 var length int 3050 for shift := uint(0); ; shift += 7 { 3051 if shift >= 64 { 3052 return 0, ErrIntOverflowSettings 3053 } 3054 if iNdEx >= l { 3055 return 0, io.ErrUnexpectedEOF 3056 } 3057 b := dAtA[iNdEx] 3058 iNdEx++ 3059 length |= (int(b) & 0x7F) << shift 3060 if b < 0x80 { 3061 break 3062 } 3063 } 3064 if length < 0 { 3065 return 0, ErrInvalidLengthSettings 3066 } 3067 iNdEx += length 3068 case 3: 3069 depth++ 3070 case 4: 3071 if depth == 0 { 3072 return 0, ErrUnexpectedEndOfGroupSettings 3073 } 3074 depth-- 3075 case 5: 3076 iNdEx += 4 3077 default: 3078 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 3079 } 3080 if iNdEx < 0 { 3081 return 0, ErrInvalidLengthSettings 3082 } 3083 if depth == 0 { 3084 return iNdEx, nil 3085 } 3086 } 3087 return 0, io.ErrUnexpectedEOF 3088 } 3089 3090 var ( 3091 ErrInvalidLengthSettings = fmt.Errorf("proto: negative length found during unmarshaling") 3092 ErrIntOverflowSettings = fmt.Errorf("proto: integer overflow") 3093 ErrUnexpectedEndOfGroupSettings = fmt.Errorf("proto: unexpected end of group") 3094 )