// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: server/settings/settings.proto package settings // import "github.com/argoproj/argo-cd/server/settings" /* Settings Service Settings Service API retrieves Argo CD settings */ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import v1alpha1 "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1" import _ "github.com/gogo/protobuf/gogoproto" import _ "google.golang.org/genproto/googleapis/api/annotations" import context "golang.org/x/net/context" import grpc "google.golang.org/grpc" import io "io" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package // SettingsQuery is a query for Argo CD settings type SettingsQuery struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SettingsQuery) Reset() { *m = SettingsQuery{} } func (m *SettingsQuery) String() string { return proto.CompactTextString(m) } func (*SettingsQuery) ProtoMessage() {} func (*SettingsQuery) Descriptor() ([]byte, []int) { return fileDescriptor_settings_f96c7d59ef70e4fa, []int{0} } func (m *SettingsQuery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SettingsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SettingsQuery.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *SettingsQuery) XXX_Merge(src proto.Message) { xxx_messageInfo_SettingsQuery.Merge(dst, src) } func (m *SettingsQuery) XXX_Size() int { return m.Size() } func (m *SettingsQuery) XXX_DiscardUnknown() { xxx_messageInfo_SettingsQuery.DiscardUnknown(m) } var xxx_messageInfo_SettingsQuery proto.InternalMessageInfo type Settings struct { URL string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` DexConfig *DexConfig `protobuf:"bytes,2,opt,name=dexConfig" json:"dexConfig,omitempty"` OIDCConfig *OIDCConfig `protobuf:"bytes,3,opt,name=oidcConfig" json:"oidcConfig,omitempty"` AppLabelKey string `protobuf:"bytes,4,opt,name=appLabelKey,proto3" json:"appLabelKey,omitempty"` ResourceOverrides map[string]*v1alpha1.ResourceOverride `protobuf:"bytes,5,rep,name=resourceOverrides" json:"resourceOverrides,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Settings) Reset() { *m = Settings{} } func (m *Settings) String() string { return proto.CompactTextString(m) } func (*Settings) ProtoMessage() {} func (*Settings) Descriptor() ([]byte, []int) { return fileDescriptor_settings_f96c7d59ef70e4fa, []int{1} } func (m *Settings) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Settings.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *Settings) XXX_Merge(src proto.Message) { xxx_messageInfo_Settings.Merge(dst, src) } func (m *Settings) XXX_Size() int { return m.Size() } func (m *Settings) XXX_DiscardUnknown() { xxx_messageInfo_Settings.DiscardUnknown(m) } var xxx_messageInfo_Settings proto.InternalMessageInfo func (m *Settings) GetURL() string { if m != nil { return m.URL } return "" } func (m *Settings) GetDexConfig() *DexConfig { if m != nil { return m.DexConfig } return nil } func (m *Settings) GetOIDCConfig() *OIDCConfig { if m != nil { return m.OIDCConfig } return nil } func (m *Settings) GetAppLabelKey() string { if m != nil { return m.AppLabelKey } return "" } func (m *Settings) GetResourceOverrides() map[string]*v1alpha1.ResourceOverride { if m != nil { return m.ResourceOverrides } return nil } type DexConfig struct { Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors" json:"connectors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DexConfig) Reset() { *m = DexConfig{} } func (m *DexConfig) String() string { return proto.CompactTextString(m) } func (*DexConfig) ProtoMessage() {} func (*DexConfig) Descriptor() ([]byte, []int) { return fileDescriptor_settings_f96c7d59ef70e4fa, []int{2} } func (m *DexConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DexConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DexConfig.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *DexConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_DexConfig.Merge(dst, src) } func (m *DexConfig) XXX_Size() int { return m.Size() } func (m *DexConfig) XXX_DiscardUnknown() { xxx_messageInfo_DexConfig.DiscardUnknown(m) } var xxx_messageInfo_DexConfig proto.InternalMessageInfo func (m *DexConfig) GetConnectors() []*Connector { if m != nil { return m.Connectors } return nil } type Connector struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Connector) Reset() { *m = Connector{} } func (m *Connector) String() string { return proto.CompactTextString(m) } func (*Connector) ProtoMessage() {} func (*Connector) Descriptor() ([]byte, []int) { return fileDescriptor_settings_f96c7d59ef70e4fa, []int{3} } func (m *Connector) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Connector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Connector.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *Connector) XXX_Merge(src proto.Message) { xxx_messageInfo_Connector.Merge(dst, src) } func (m *Connector) XXX_Size() int { return m.Size() } func (m *Connector) XXX_DiscardUnknown() { xxx_messageInfo_Connector.DiscardUnknown(m) } var xxx_messageInfo_Connector proto.InternalMessageInfo func (m *Connector) GetName() string { if m != nil { return m.Name } return "" } func (m *Connector) GetType() string { if m != nil { return m.Type } return "" } type OIDCConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` ClientID string `protobuf:"bytes,3,opt,name=clientID,proto3" json:"clientID,omitempty"` CLIClientID string `protobuf:"bytes,4,opt,name=cliClientID,proto3" json:"cliClientID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *OIDCConfig) Reset() { *m = OIDCConfig{} } func (m *OIDCConfig) String() string { return proto.CompactTextString(m) } func (*OIDCConfig) ProtoMessage() {} func (*OIDCConfig) Descriptor() ([]byte, []int) { return fileDescriptor_settings_f96c7d59ef70e4fa, []int{4} } func (m *OIDCConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *OIDCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_OIDCConfig.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *OIDCConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_OIDCConfig.Merge(dst, src) } func (m *OIDCConfig) XXX_Size() int { return m.Size() } func (m *OIDCConfig) XXX_DiscardUnknown() { xxx_messageInfo_OIDCConfig.DiscardUnknown(m) } var xxx_messageInfo_OIDCConfig proto.InternalMessageInfo func (m *OIDCConfig) GetName() string { if m != nil { return m.Name } return "" } func (m *OIDCConfig) GetIssuer() string { if m != nil { return m.Issuer } return "" } func (m *OIDCConfig) GetClientID() string { if m != nil { return m.ClientID } return "" } func (m *OIDCConfig) GetCLIClientID() string { if m != nil { return m.CLIClientID } return "" } func init() { proto.RegisterType((*SettingsQuery)(nil), "cluster.SettingsQuery") proto.RegisterType((*Settings)(nil), "cluster.Settings") proto.RegisterMapType((map[string]*v1alpha1.ResourceOverride)(nil), "cluster.Settings.ResourceOverridesEntry") proto.RegisterType((*DexConfig)(nil), "cluster.DexConfig") proto.RegisterType((*Connector)(nil), "cluster.Connector") proto.RegisterType((*OIDCConfig)(nil), "cluster.OIDCConfig") } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // Client API for SettingsService service type SettingsServiceClient interface { // Get returns Argo CD settings Get(ctx context.Context, in *SettingsQuery, opts ...grpc.CallOption) (*Settings, error) } type settingsServiceClient struct { cc *grpc.ClientConn } func NewSettingsServiceClient(cc *grpc.ClientConn) SettingsServiceClient { return &settingsServiceClient{cc} } func (c *settingsServiceClient) Get(ctx context.Context, in *SettingsQuery, opts ...grpc.CallOption) (*Settings, error) { out := new(Settings) err := c.cc.Invoke(ctx, "/cluster.SettingsService/Get", in, out, opts...) if err != nil { return nil, err } return out, nil } // Server API for SettingsService service type SettingsServiceServer interface { // Get returns Argo CD settings Get(context.Context, *SettingsQuery) (*Settings, error) } func RegisterSettingsServiceServer(s *grpc.Server, srv SettingsServiceServer) { s.RegisterService(&_SettingsService_serviceDesc, srv) } func _SettingsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SettingsQuery) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SettingsServiceServer).Get(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cluster.SettingsService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SettingsServiceServer).Get(ctx, req.(*SettingsQuery)) } return interceptor(ctx, in, info, handler) } var _SettingsService_serviceDesc = grpc.ServiceDesc{ ServiceName: "cluster.SettingsService", HandlerType: (*SettingsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _SettingsService_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "server/settings/settings.proto", } func (m *SettingsQuery) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SettingsQuery) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *Settings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Settings) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.URL) > 0 { dAtA[i] = 0xa i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.URL))) i += copy(dAtA[i:], m.URL) } if m.DexConfig != nil { dAtA[i] = 0x12 i++ i = encodeVarintSettings(dAtA, i, uint64(m.DexConfig.Size())) n1, err := m.DexConfig.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n1 } if m.OIDCConfig != nil { dAtA[i] = 0x1a i++ i = encodeVarintSettings(dAtA, i, uint64(m.OIDCConfig.Size())) n2, err := m.OIDCConfig.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n2 } if len(m.AppLabelKey) > 0 { dAtA[i] = 0x22 i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.AppLabelKey))) i += copy(dAtA[i:], m.AppLabelKey) } if len(m.ResourceOverrides) > 0 { for k, _ := range m.ResourceOverrides { dAtA[i] = 0x2a i++ v := m.ResourceOverrides[k] msgSize := 0 if v != nil { msgSize = v.Size() msgSize += 1 + sovSettings(uint64(msgSize)) } mapSize := 1 + len(k) + sovSettings(uint64(len(k))) + msgSize i = encodeVarintSettings(dAtA, i, uint64(mapSize)) dAtA[i] = 0xa i++ i = encodeVarintSettings(dAtA, i, uint64(len(k))) i += copy(dAtA[i:], k) if v != nil { dAtA[i] = 0x12 i++ i = encodeVarintSettings(dAtA, i, uint64(v.Size())) n3, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 } } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *DexConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *DexConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Connectors) > 0 { for _, msg := range m.Connectors { dAtA[i] = 0xa i++ i = encodeVarintSettings(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *Connector) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Connector) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Name) > 0 { dAtA[i] = 0xa i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.Name))) i += copy(dAtA[i:], m.Name) } if len(m.Type) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.Type))) i += copy(dAtA[i:], m.Type) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *OIDCConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *OIDCConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Name) > 0 { dAtA[i] = 0xa i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.Name))) i += copy(dAtA[i:], m.Name) } if len(m.Issuer) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.Issuer))) i += copy(dAtA[i:], m.Issuer) } if len(m.ClientID) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.ClientID))) i += copy(dAtA[i:], m.ClientID) } if len(m.CLIClientID) > 0 { dAtA[i] = 0x22 i++ i = encodeVarintSettings(dAtA, i, uint64(len(m.CLIClientID))) i += copy(dAtA[i:], m.CLIClientID) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func encodeVarintSettings(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return offset + 1 } func (m *SettingsQuery) Size() (n int) { var l int _ = l if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *Settings) Size() (n int) { var l int _ = l l = len(m.URL) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } if m.DexConfig != nil { l = m.DexConfig.Size() n += 1 + l + sovSettings(uint64(l)) } if m.OIDCConfig != nil { l = m.OIDCConfig.Size() n += 1 + l + sovSettings(uint64(l)) } l = len(m.AppLabelKey) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } if len(m.ResourceOverrides) > 0 { for k, v := range m.ResourceOverrides { _ = k _ = v l = 0 if v != nil { l = v.Size() l += 1 + sovSettings(uint64(l)) } mapEntrySize := 1 + len(k) + sovSettings(uint64(len(k))) + l n += mapEntrySize + 1 + sovSettings(uint64(mapEntrySize)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *DexConfig) Size() (n int) { var l int _ = l if len(m.Connectors) > 0 { for _, e := range m.Connectors { l = e.Size() n += 1 + l + sovSettings(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *Connector) Size() (n int) { var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } l = len(m.Type) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *OIDCConfig) Size() (n int) { var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } l = len(m.Issuer) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } l = len(m.ClientID) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } l = len(m.CLIClientID) if l > 0 { n += 1 + l + sovSettings(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovSettings(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } func sozSettings(x uint64) (n int) { return sovSettings(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *SettingsQuery) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SettingsQuery: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SettingsQuery: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipSettings(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSettings } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Settings) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Settings: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Settings: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.URL = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DexConfig", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.DexConfig == nil { m.DexConfig = &DexConfig{} } if err := m.DexConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OIDCConfig", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.OIDCConfig == nil { m.OIDCConfig = &OIDCConfig{} } if err := m.OIDCConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AppLabelKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.AppLabelKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceOverrides", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } if m.ResourceOverrides == nil { m.ResourceOverrides = make(map[string]*v1alpha1.ResourceOverride) } var mapkey string var mapvalue *v1alpha1.ResourceOverride for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) if fieldNum == 1 { var stringLenmapkey uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLenmapkey := int(stringLenmapkey) if intStringLenmapkey < 0 { return ErrInvalidLengthSettings } postStringIndexmapkey := iNdEx + intStringLenmapkey if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { var mapmsglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if mapmsglen < 0 { return ErrInvalidLengthSettings } postmsgIndex := iNdEx + mapmsglen if mapmsglen < 0 { return ErrInvalidLengthSettings } if postmsgIndex > l { return io.ErrUnexpectedEOF } mapvalue = &v1alpha1.ResourceOverride{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex } else { iNdEx = entryPreIndex skippy, err := skipSettings(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSettings } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.ResourceOverrides[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSettings(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSettings } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *DexConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: DexConfig: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DexConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Connectors", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } m.Connectors = append(m.Connectors, &Connector{}) if err := m.Connectors[len(m.Connectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSettings(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSettings } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Connector) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Connector: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Connector: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.Type = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSettings(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSettings } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *OIDCConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: OIDCConfig: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: OIDCConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.Issuer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.ClientID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CLIClientID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSettings } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSettings } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.CLIClientID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSettings(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSettings } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipSettings(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSettings } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSettings } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } return iNdEx, nil case 1: iNdEx += 8 return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSettings } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } iNdEx += length if length < 0 { return 0, ErrInvalidLengthSettings } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSettings } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } innerWireType := int(innerWire & 0x7) if innerWireType == 4 { break } next, err := skipSettings(dAtA[start:]) if err != nil { return 0, err } iNdEx = start + next } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreachable") } var ( ErrInvalidLengthSettings = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSettings = fmt.Errorf("proto: integer overflow") ) func init() { proto.RegisterFile("server/settings/settings.proto", fileDescriptor_settings_f96c7d59ef70e4fa) } var fileDescriptor_settings_f96c7d59ef70e4fa = []byte{ // 566 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x5d, 0x6b, 0x13, 0x41, 0x14, 0x65, 0xbb, 0xfd, 0xca, 0x8d, 0xda, 0x76, 0x94, 0x12, 0x83, 0x24, 0x21, 0x4f, 0x01, 0x71, 0xd7, 0xa4, 0x2f, 0xea, 0x8b, 0x90, 0x54, 0x24, 0xb6, 0x50, 0x9c, 0xa2, 0x0f, 0x82, 0xc8, 0x74, 0x72, 0xdd, 0x8e, 0xd9, 0xee, 0x2c, 0xb3, 0xb3, 0x8b, 0x79, 0xf5, 0x1f, 0x88, 0xf8, 0x27, 0xfc, 0x25, 0x3e, 0x0a, 0xbe, 0x07, 0x59, 0xfc, 0x21, 0xb2, 0xb3, 0x1f, 0x59, 0x9a, 0xe2, 0xdb, 0xd9, 0x73, 0xee, 0x99, 0x9d, 0x7b, 0xcf, 0x5c, 0xe8, 0x44, 0xa8, 0x12, 0x54, 0x6e, 0x84, 0x5a, 0x8b, 0xc0, 0x8b, 0x2a, 0xe0, 0x84, 0x4a, 0x6a, 0x49, 0x76, 0xb8, 0x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