github.com/argoproj/argo-cd/v2@v2.10.9/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 // 195 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, 0x72, 105 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0xa3, 0x8c, 0x11, 106 0x8e, 0xd2, 0x87, 0x39, 0x0a, 0xcc, 0xd0, 0x4d, 0x4e, 0xd1, 0x2f, 0x33, 0xd2, 0xc7, 0xe6, 0xad, 107 0x24, 0x36, 0xb0, 0x87, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x04, 0xe3, 0x4e, 0xf5, 108 0x00, 0x00, 0x00, 109 } 110 111 func (m *Claim) Marshal() (dAtA []byte, err error) { 112 size := m.Size() 113 dAtA = make([]byte, size) 114 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 115 if err != nil { 116 return nil, err 117 } 118 return dAtA[:n], nil 119 } 120 121 func (m *Claim) MarshalTo(dAtA []byte) (int, error) { 122 size := m.Size() 123 return m.MarshalToSizedBuffer(dAtA[:size]) 124 } 125 126 func (m *Claim) MarshalToSizedBuffer(dAtA []byte) (int, error) { 127 i := len(dAtA) 128 _ = i 129 var l int 130 _ = l 131 if m.XXX_unrecognized != nil { 132 i -= len(m.XXX_unrecognized) 133 copy(dAtA[i:], m.XXX_unrecognized) 134 } 135 if len(m.Values) > 0 { 136 for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { 137 i -= len(m.Values[iNdEx]) 138 copy(dAtA[i:], m.Values[iNdEx]) 139 i = encodeVarintClaims(dAtA, i, uint64(len(m.Values[iNdEx]))) 140 i-- 141 dAtA[i] = 0x1a 142 } 143 } 144 if len(m.Value) > 0 { 145 i -= len(m.Value) 146 copy(dAtA[i:], m.Value) 147 i = encodeVarintClaims(dAtA, i, uint64(len(m.Value))) 148 i-- 149 dAtA[i] = 0x12 150 } 151 if m.Essential { 152 i-- 153 if m.Essential { 154 dAtA[i] = 1 155 } else { 156 dAtA[i] = 0 157 } 158 i-- 159 dAtA[i] = 0x8 160 } 161 return len(dAtA) - i, nil 162 } 163 164 func encodeVarintClaims(dAtA []byte, offset int, v uint64) int { 165 offset -= sovClaims(v) 166 base := offset 167 for v >= 1<<7 { 168 dAtA[offset] = uint8(v&0x7f | 0x80) 169 v >>= 7 170 offset++ 171 } 172 dAtA[offset] = uint8(v) 173 return base 174 } 175 func (m *Claim) Size() (n int) { 176 if m == nil { 177 return 0 178 } 179 var l int 180 _ = l 181 if m.Essential { 182 n += 2 183 } 184 l = len(m.Value) 185 if l > 0 { 186 n += 1 + l + sovClaims(uint64(l)) 187 } 188 if len(m.Values) > 0 { 189 for _, s := range m.Values { 190 l = len(s) 191 n += 1 + l + sovClaims(uint64(l)) 192 } 193 } 194 if m.XXX_unrecognized != nil { 195 n += len(m.XXX_unrecognized) 196 } 197 return n 198 } 199 200 func sovClaims(x uint64) (n int) { 201 return (math_bits.Len64(x|1) + 6) / 7 202 } 203 func sozClaims(x uint64) (n int) { 204 return sovClaims(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 205 } 206 func (m *Claim) Unmarshal(dAtA []byte) error { 207 l := len(dAtA) 208 iNdEx := 0 209 for iNdEx < l { 210 preIndex := iNdEx 211 var wire uint64 212 for shift := uint(0); ; shift += 7 { 213 if shift >= 64 { 214 return ErrIntOverflowClaims 215 } 216 if iNdEx >= l { 217 return io.ErrUnexpectedEOF 218 } 219 b := dAtA[iNdEx] 220 iNdEx++ 221 wire |= uint64(b&0x7F) << shift 222 if b < 0x80 { 223 break 224 } 225 } 226 fieldNum := int32(wire >> 3) 227 wireType := int(wire & 0x7) 228 if wireType == 4 { 229 return fmt.Errorf("proto: Claim: wiretype end group for non-group") 230 } 231 if fieldNum <= 0 { 232 return fmt.Errorf("proto: Claim: illegal tag %d (wire type %d)", fieldNum, wire) 233 } 234 switch fieldNum { 235 case 1: 236 if wireType != 0 { 237 return fmt.Errorf("proto: wrong wireType = %d for field Essential", wireType) 238 } 239 var v int 240 for shift := uint(0); ; shift += 7 { 241 if shift >= 64 { 242 return ErrIntOverflowClaims 243 } 244 if iNdEx >= l { 245 return io.ErrUnexpectedEOF 246 } 247 b := dAtA[iNdEx] 248 iNdEx++ 249 v |= int(b&0x7F) << shift 250 if b < 0x80 { 251 break 252 } 253 } 254 m.Essential = bool(v != 0) 255 case 2: 256 if wireType != 2 { 257 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 258 } 259 var stringLen uint64 260 for shift := uint(0); ; shift += 7 { 261 if shift >= 64 { 262 return ErrIntOverflowClaims 263 } 264 if iNdEx >= l { 265 return io.ErrUnexpectedEOF 266 } 267 b := dAtA[iNdEx] 268 iNdEx++ 269 stringLen |= uint64(b&0x7F) << shift 270 if b < 0x80 { 271 break 272 } 273 } 274 intStringLen := int(stringLen) 275 if intStringLen < 0 { 276 return ErrInvalidLengthClaims 277 } 278 postIndex := iNdEx + intStringLen 279 if postIndex < 0 { 280 return ErrInvalidLengthClaims 281 } 282 if postIndex > l { 283 return io.ErrUnexpectedEOF 284 } 285 m.Value = string(dAtA[iNdEx:postIndex]) 286 iNdEx = postIndex 287 case 3: 288 if wireType != 2 { 289 return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) 290 } 291 var stringLen uint64 292 for shift := uint(0); ; shift += 7 { 293 if shift >= 64 { 294 return ErrIntOverflowClaims 295 } 296 if iNdEx >= l { 297 return io.ErrUnexpectedEOF 298 } 299 b := dAtA[iNdEx] 300 iNdEx++ 301 stringLen |= uint64(b&0x7F) << shift 302 if b < 0x80 { 303 break 304 } 305 } 306 intStringLen := int(stringLen) 307 if intStringLen < 0 { 308 return ErrInvalidLengthClaims 309 } 310 postIndex := iNdEx + intStringLen 311 if postIndex < 0 { 312 return ErrInvalidLengthClaims 313 } 314 if postIndex > l { 315 return io.ErrUnexpectedEOF 316 } 317 m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) 318 iNdEx = postIndex 319 default: 320 iNdEx = preIndex 321 skippy, err := skipClaims(dAtA[iNdEx:]) 322 if err != nil { 323 return err 324 } 325 if (skippy < 0) || (iNdEx+skippy) < 0 { 326 return ErrInvalidLengthClaims 327 } 328 if (iNdEx + skippy) > l { 329 return io.ErrUnexpectedEOF 330 } 331 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 332 iNdEx += skippy 333 } 334 } 335 336 if iNdEx > l { 337 return io.ErrUnexpectedEOF 338 } 339 return nil 340 } 341 func skipClaims(dAtA []byte) (n int, err error) { 342 l := len(dAtA) 343 iNdEx := 0 344 depth := 0 345 for iNdEx < l { 346 var wire uint64 347 for shift := uint(0); ; shift += 7 { 348 if shift >= 64 { 349 return 0, ErrIntOverflowClaims 350 } 351 if iNdEx >= l { 352 return 0, io.ErrUnexpectedEOF 353 } 354 b := dAtA[iNdEx] 355 iNdEx++ 356 wire |= (uint64(b) & 0x7F) << shift 357 if b < 0x80 { 358 break 359 } 360 } 361 wireType := int(wire & 0x7) 362 switch wireType { 363 case 0: 364 for shift := uint(0); ; shift += 7 { 365 if shift >= 64 { 366 return 0, ErrIntOverflowClaims 367 } 368 if iNdEx >= l { 369 return 0, io.ErrUnexpectedEOF 370 } 371 iNdEx++ 372 if dAtA[iNdEx-1] < 0x80 { 373 break 374 } 375 } 376 case 1: 377 iNdEx += 8 378 case 2: 379 var length int 380 for shift := uint(0); ; shift += 7 { 381 if shift >= 64 { 382 return 0, ErrIntOverflowClaims 383 } 384 if iNdEx >= l { 385 return 0, io.ErrUnexpectedEOF 386 } 387 b := dAtA[iNdEx] 388 iNdEx++ 389 length |= (int(b) & 0x7F) << shift 390 if b < 0x80 { 391 break 392 } 393 } 394 if length < 0 { 395 return 0, ErrInvalidLengthClaims 396 } 397 iNdEx += length 398 case 3: 399 depth++ 400 case 4: 401 if depth == 0 { 402 return 0, ErrUnexpectedEndOfGroupClaims 403 } 404 depth-- 405 case 5: 406 iNdEx += 4 407 default: 408 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 409 } 410 if iNdEx < 0 { 411 return 0, ErrInvalidLengthClaims 412 } 413 if depth == 0 { 414 return iNdEx, nil 415 } 416 } 417 return 0, io.ErrUnexpectedEOF 418 } 419 420 var ( 421 ErrInvalidLengthClaims = fmt.Errorf("proto: negative length found during unmarshaling") 422 ErrIntOverflowClaims = fmt.Errorf("proto: integer overflow") 423 ErrUnexpectedEndOfGroupClaims = fmt.Errorf("proto: unexpected end of group") 424 )