github.com/argoproj/argo-cd@v1.8.7/server/settings/oidc/claims.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: server/settings/oidc/claims.proto 3 4 package oidc 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 io "io" 10 math "math" 11 math_bits "math/bits" 12 ) 13 14 // Reference imports to suppress errors if they are not otherwise used. 15 var _ = proto.Marshal 16 var _ = fmt.Errorf 17 var _ = math.Inf 18 19 // This is a compile-time assertion to ensure that this generated file 20 // is compatible with the proto package it is being compiled against. 21 // A compilation error at this line likely means your copy of the 22 // proto package needs to be updated. 23 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 24 25 type Claim struct { 26 Essential bool `protobuf:"varint,1,opt,name=essential,proto3" json:"essential,omitempty"` 27 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 28 Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32 } 33 34 func (m *Claim) Reset() { *m = Claim{} } 35 func (m *Claim) String() string { return proto.CompactTextString(m) } 36 func (*Claim) ProtoMessage() {} 37 func (*Claim) Descriptor() ([]byte, []int) { 38 return fileDescriptor_7d353f964edf8c0f, []int{0} 39 } 40 func (m *Claim) XXX_Unmarshal(b []byte) error { 41 return m.Unmarshal(b) 42 } 43 func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 if deterministic { 45 return xxx_messageInfo_Claim.Marshal(b, m, deterministic) 46 } else { 47 b = b[:cap(b)] 48 n, err := m.MarshalToSizedBuffer(b) 49 if err != nil { 50 return nil, err 51 } 52 return b[:n], nil 53 } 54 } 55 func (m *Claim) XXX_Merge(src proto.Message) { 56 xxx_messageInfo_Claim.Merge(m, src) 57 } 58 func (m *Claim) XXX_Size() int { 59 return m.Size() 60 } 61 func (m *Claim) XXX_DiscardUnknown() { 62 xxx_messageInfo_Claim.DiscardUnknown(m) 63 } 64 65 var xxx_messageInfo_Claim proto.InternalMessageInfo 66 67 func (m *Claim) GetEssential() bool { 68 if m != nil { 69 return m.Essential 70 } 71 return false 72 } 73 74 func (m *Claim) GetValue() string { 75 if m != nil { 76 return m.Value 77 } 78 return "" 79 } 80 81 func (m *Claim) GetValues() []string { 82 if m != nil { 83 return m.Values 84 } 85 return nil 86 } 87 88 func init() { 89 proto.RegisterType((*Claim)(nil), "github.com.argoproj.argo_cd.server.settings.oidc.Claim") 90 } 91 92 func init() { proto.RegisterFile("server/settings/oidc/claims.proto", fileDescriptor_7d353f964edf8c0f) } 93 94 var fileDescriptor_7d353f964edf8c0f = []byte{ 95 // 191 bytes of a gzipped FileDescriptorProto 96 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x4e, 0x2d, 0x2a, 97 0x4b, 0x2d, 0xd2, 0x2f, 0x4e, 0x2d, 0x29, 0xc9, 0xcc, 0x4b, 0x2f, 0xd6, 0xcf, 0xcf, 0x4c, 0x49, 98 0xd6, 0x4f, 0xce, 0x49, 0xcc, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x32, 0x48, 99 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4b, 0x2c, 0x4a, 0xcf, 0x2f, 0x28, 100 0xca, 0xcf, 0x02, 0x33, 0xe2, 0x93, 0x53, 0xf4, 0x20, 0xda, 0xf5, 0x60, 0xda, 0xf5, 0x40, 0xda, 101 0x95, 0x82, 0xb9, 0x58, 0x9d, 0x41, 0x26, 0x08, 0xc9, 0x70, 0x71, 0xa6, 0x16, 0x17, 0xa7, 0xe6, 102 0x95, 0x64, 0x26, 0xe6, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x04, 0x21, 0x04, 0x84, 0x44, 0xb8, 103 0x58, 0xcb, 0x12, 0x73, 0x4a, 0x53, 0x25, 0x98, 0x14, 0x18, 0x35, 0x38, 0x83, 0x20, 0x1c, 0x21, 104 0x31, 0x2e, 0x36, 0x30, 0xa3, 0x58, 0x82, 0x59, 0x81, 0x59, 0x83, 0x33, 0x08, 0xca, 0x73, 0xb2, 105 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0xa3, 0x90, 0x1c, 106 0xa5, 0x0f, 0x73, 0x14, 0x98, 0xa1, 0x9b, 0x9c, 0xa2, 0x8f, 0xcd, 0x4f, 0x49, 0x6c, 0x60, 0xdf, 107 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x85, 0xca, 0x05, 0xf2, 0x00, 0x00, 0x00, 108 } 109 110 func (m *Claim) Marshal() (dAtA []byte, err error) { 111 size := m.Size() 112 dAtA = make([]byte, size) 113 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 114 if err != nil { 115 return nil, err 116 } 117 return dAtA[:n], nil 118 } 119 120 func (m *Claim) MarshalTo(dAtA []byte) (int, error) { 121 size := m.Size() 122 return m.MarshalToSizedBuffer(dAtA[:size]) 123 } 124 125 func (m *Claim) MarshalToSizedBuffer(dAtA []byte) (int, error) { 126 i := len(dAtA) 127 _ = i 128 var l int 129 _ = l 130 if m.XXX_unrecognized != nil { 131 i -= len(m.XXX_unrecognized) 132 copy(dAtA[i:], m.XXX_unrecognized) 133 } 134 if len(m.Values) > 0 { 135 for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { 136 i -= len(m.Values[iNdEx]) 137 copy(dAtA[i:], m.Values[iNdEx]) 138 i = encodeVarintClaims(dAtA, i, uint64(len(m.Values[iNdEx]))) 139 i-- 140 dAtA[i] = 0x1a 141 } 142 } 143 if len(m.Value) > 0 { 144 i -= len(m.Value) 145 copy(dAtA[i:], m.Value) 146 i = encodeVarintClaims(dAtA, i, uint64(len(m.Value))) 147 i-- 148 dAtA[i] = 0x12 149 } 150 if m.Essential { 151 i-- 152 if m.Essential { 153 dAtA[i] = 1 154 } else { 155 dAtA[i] = 0 156 } 157 i-- 158 dAtA[i] = 0x8 159 } 160 return len(dAtA) - i, nil 161 } 162 163 func encodeVarintClaims(dAtA []byte, offset int, v uint64) int { 164 offset -= sovClaims(v) 165 base := offset 166 for v >= 1<<7 { 167 dAtA[offset] = uint8(v&0x7f | 0x80) 168 v >>= 7 169 offset++ 170 } 171 dAtA[offset] = uint8(v) 172 return base 173 } 174 func (m *Claim) Size() (n int) { 175 if m == nil { 176 return 0 177 } 178 var l int 179 _ = l 180 if m.Essential { 181 n += 2 182 } 183 l = len(m.Value) 184 if l > 0 { 185 n += 1 + l + sovClaims(uint64(l)) 186 } 187 if len(m.Values) > 0 { 188 for _, s := range m.Values { 189 l = len(s) 190 n += 1 + l + sovClaims(uint64(l)) 191 } 192 } 193 if m.XXX_unrecognized != nil { 194 n += len(m.XXX_unrecognized) 195 } 196 return n 197 } 198 199 func sovClaims(x uint64) (n int) { 200 return (math_bits.Len64(x|1) + 6) / 7 201 } 202 func sozClaims(x uint64) (n int) { 203 return sovClaims(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 204 } 205 func (m *Claim) Unmarshal(dAtA []byte) error { 206 l := len(dAtA) 207 iNdEx := 0 208 for iNdEx < l { 209 preIndex := iNdEx 210 var wire uint64 211 for shift := uint(0); ; shift += 7 { 212 if shift >= 64 { 213 return ErrIntOverflowClaims 214 } 215 if iNdEx >= l { 216 return io.ErrUnexpectedEOF 217 } 218 b := dAtA[iNdEx] 219 iNdEx++ 220 wire |= uint64(b&0x7F) << shift 221 if b < 0x80 { 222 break 223 } 224 } 225 fieldNum := int32(wire >> 3) 226 wireType := int(wire & 0x7) 227 if wireType == 4 { 228 return fmt.Errorf("proto: Claim: wiretype end group for non-group") 229 } 230 if fieldNum <= 0 { 231 return fmt.Errorf("proto: Claim: illegal tag %d (wire type %d)", fieldNum, wire) 232 } 233 switch fieldNum { 234 case 1: 235 if wireType != 0 { 236 return fmt.Errorf("proto: wrong wireType = %d for field Essential", wireType) 237 } 238 var v int 239 for shift := uint(0); ; shift += 7 { 240 if shift >= 64 { 241 return ErrIntOverflowClaims 242 } 243 if iNdEx >= l { 244 return io.ErrUnexpectedEOF 245 } 246 b := dAtA[iNdEx] 247 iNdEx++ 248 v |= int(b&0x7F) << shift 249 if b < 0x80 { 250 break 251 } 252 } 253 m.Essential = bool(v != 0) 254 case 2: 255 if wireType != 2 { 256 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 257 } 258 var stringLen uint64 259 for shift := uint(0); ; shift += 7 { 260 if shift >= 64 { 261 return ErrIntOverflowClaims 262 } 263 if iNdEx >= l { 264 return io.ErrUnexpectedEOF 265 } 266 b := dAtA[iNdEx] 267 iNdEx++ 268 stringLen |= uint64(b&0x7F) << shift 269 if b < 0x80 { 270 break 271 } 272 } 273 intStringLen := int(stringLen) 274 if intStringLen < 0 { 275 return ErrInvalidLengthClaims 276 } 277 postIndex := iNdEx + intStringLen 278 if postIndex < 0 { 279 return ErrInvalidLengthClaims 280 } 281 if postIndex > l { 282 return io.ErrUnexpectedEOF 283 } 284 m.Value = string(dAtA[iNdEx:postIndex]) 285 iNdEx = postIndex 286 case 3: 287 if wireType != 2 { 288 return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) 289 } 290 var stringLen uint64 291 for shift := uint(0); ; shift += 7 { 292 if shift >= 64 { 293 return ErrIntOverflowClaims 294 } 295 if iNdEx >= l { 296 return io.ErrUnexpectedEOF 297 } 298 b := dAtA[iNdEx] 299 iNdEx++ 300 stringLen |= uint64(b&0x7F) << shift 301 if b < 0x80 { 302 break 303 } 304 } 305 intStringLen := int(stringLen) 306 if intStringLen < 0 { 307 return ErrInvalidLengthClaims 308 } 309 postIndex := iNdEx + intStringLen 310 if postIndex < 0 { 311 return ErrInvalidLengthClaims 312 } 313 if postIndex > l { 314 return io.ErrUnexpectedEOF 315 } 316 m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) 317 iNdEx = postIndex 318 default: 319 iNdEx = preIndex 320 skippy, err := skipClaims(dAtA[iNdEx:]) 321 if err != nil { 322 return err 323 } 324 if skippy < 0 { 325 return ErrInvalidLengthClaims 326 } 327 if (iNdEx + skippy) < 0 { 328 return ErrInvalidLengthClaims 329 } 330 if (iNdEx + skippy) > l { 331 return io.ErrUnexpectedEOF 332 } 333 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 334 iNdEx += skippy 335 } 336 } 337 338 if iNdEx > l { 339 return io.ErrUnexpectedEOF 340 } 341 return nil 342 } 343 func skipClaims(dAtA []byte) (n int, err error) { 344 l := len(dAtA) 345 iNdEx := 0 346 depth := 0 347 for iNdEx < l { 348 var wire uint64 349 for shift := uint(0); ; shift += 7 { 350 if shift >= 64 { 351 return 0, ErrIntOverflowClaims 352 } 353 if iNdEx >= l { 354 return 0, io.ErrUnexpectedEOF 355 } 356 b := dAtA[iNdEx] 357 iNdEx++ 358 wire |= (uint64(b) & 0x7F) << shift 359 if b < 0x80 { 360 break 361 } 362 } 363 wireType := int(wire & 0x7) 364 switch wireType { 365 case 0: 366 for shift := uint(0); ; shift += 7 { 367 if shift >= 64 { 368 return 0, ErrIntOverflowClaims 369 } 370 if iNdEx >= l { 371 return 0, io.ErrUnexpectedEOF 372 } 373 iNdEx++ 374 if dAtA[iNdEx-1] < 0x80 { 375 break 376 } 377 } 378 case 1: 379 iNdEx += 8 380 case 2: 381 var length int 382 for shift := uint(0); ; shift += 7 { 383 if shift >= 64 { 384 return 0, ErrIntOverflowClaims 385 } 386 if iNdEx >= l { 387 return 0, io.ErrUnexpectedEOF 388 } 389 b := dAtA[iNdEx] 390 iNdEx++ 391 length |= (int(b) & 0x7F) << shift 392 if b < 0x80 { 393 break 394 } 395 } 396 if length < 0 { 397 return 0, ErrInvalidLengthClaims 398 } 399 iNdEx += length 400 case 3: 401 depth++ 402 case 4: 403 if depth == 0 { 404 return 0, ErrUnexpectedEndOfGroupClaims 405 } 406 depth-- 407 case 5: 408 iNdEx += 4 409 default: 410 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 411 } 412 if iNdEx < 0 { 413 return 0, ErrInvalidLengthClaims 414 } 415 if depth == 0 { 416 return iNdEx, nil 417 } 418 } 419 return 0, io.ErrUnexpectedEOF 420 } 421 422 var ( 423 ErrInvalidLengthClaims = fmt.Errorf("proto: negative length found during unmarshaling") 424 ErrIntOverflowClaims = fmt.Errorf("proto: integer overflow") 425 ErrUnexpectedEndOfGroupClaims = fmt.Errorf("proto: unexpected end of group") 426 )