-
Notifications
You must be signed in to change notification settings - Fork 0
/
http_response.pb.go
896 lines (871 loc) · 28.2 KB
/
http_response.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: policy/v1beta1/http_response.proto
package v1beta1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
io "io"
math "math"
reflect "reflect"
strconv "strconv"
strings "strings"
)
// 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
// HTTP response codes.
// For more details: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
type HttpStatusCode int32
const (
// Empty - This code not part of the HTTP status code specification, but it is needed for proto
// `enum` type.
Empty HttpStatusCode = 0
Continue HttpStatusCode = 100
OK HttpStatusCode = 200
Created HttpStatusCode = 201
Accepted HttpStatusCode = 202
NonAuthoritativeInformation HttpStatusCode = 203
NoContent HttpStatusCode = 204
ResetContent HttpStatusCode = 205
PartialContent HttpStatusCode = 206
MultiStatus HttpStatusCode = 207
AlreadyReported HttpStatusCode = 208
IMUsed HttpStatusCode = 226
MultipleChoices HttpStatusCode = 300
MovedPermanently HttpStatusCode = 301
Found HttpStatusCode = 302
SeeOther HttpStatusCode = 303
NotModified HttpStatusCode = 304
UseProxy HttpStatusCode = 305
TemporaryRedirect HttpStatusCode = 307
PermanentRedirect HttpStatusCode = 308
BadRequest HttpStatusCode = 400
Unauthorized HttpStatusCode = 401
PaymentRequired HttpStatusCode = 402
Forbidden HttpStatusCode = 403
NotFound HttpStatusCode = 404
MethodNotAllowed HttpStatusCode = 405
NotAcceptable HttpStatusCode = 406
ProxyAuthenticationRequired HttpStatusCode = 407
RequestTimeout HttpStatusCode = 408
Conflict HttpStatusCode = 409
Gone HttpStatusCode = 410
LengthRequired HttpStatusCode = 411
PreconditionFailed HttpStatusCode = 412
PayloadTooLarge HttpStatusCode = 413
URITooLong HttpStatusCode = 414
UnsupportedMediaType HttpStatusCode = 415
RangeNotSatisfiable HttpStatusCode = 416
ExpectationFailed HttpStatusCode = 417
MisdirectedRequest HttpStatusCode = 421
UnprocessableEntity HttpStatusCode = 422
Locked HttpStatusCode = 423
FailedDependency HttpStatusCode = 424
UpgradeRequired HttpStatusCode = 426
PreconditionRequired HttpStatusCode = 428
TooManyRequests HttpStatusCode = 429
RequestHeaderFieldsTooLarge HttpStatusCode = 431
InternalServerError HttpStatusCode = 500
NotImplemented HttpStatusCode = 501
BadGateway HttpStatusCode = 502
ServiceUnavailable HttpStatusCode = 503
GatewayTimeout HttpStatusCode = 504
HTTPVersionNotSupported HttpStatusCode = 505
VariantAlsoNegotiates HttpStatusCode = 506
InsufficientStorage HttpStatusCode = 507
LoopDetected HttpStatusCode = 508
NotExtended HttpStatusCode = 510
NetworkAuthenticationRequired HttpStatusCode = 511
)
var HttpStatusCode_name = map[int32]string{
0: "Empty",
100: "Continue",
200: "OK",
201: "Created",
202: "Accepted",
203: "NonAuthoritativeInformation",
204: "NoContent",
205: "ResetContent",
206: "PartialContent",
207: "MultiStatus",
208: "AlreadyReported",
226: "IMUsed",
300: "MultipleChoices",
301: "MovedPermanently",
302: "Found",
303: "SeeOther",
304: "NotModified",
305: "UseProxy",
307: "TemporaryRedirect",
308: "PermanentRedirect",
400: "BadRequest",
401: "Unauthorized",
402: "PaymentRequired",
403: "Forbidden",
404: "NotFound",
405: "MethodNotAllowed",
406: "NotAcceptable",
407: "ProxyAuthenticationRequired",
408: "RequestTimeout",
409: "Conflict",
410: "Gone",
411: "LengthRequired",
412: "PreconditionFailed",
413: "PayloadTooLarge",
414: "URITooLong",
415: "UnsupportedMediaType",
416: "RangeNotSatisfiable",
417: "ExpectationFailed",
421: "MisdirectedRequest",
422: "UnprocessableEntity",
423: "Locked",
424: "FailedDependency",
426: "UpgradeRequired",
428: "PreconditionRequired",
429: "TooManyRequests",
431: "RequestHeaderFieldsTooLarge",
500: "InternalServerError",
501: "NotImplemented",
502: "BadGateway",
503: "ServiceUnavailable",
504: "GatewayTimeout",
505: "HTTPVersionNotSupported",
506: "VariantAlsoNegotiates",
507: "InsufficientStorage",
508: "LoopDetected",
510: "NotExtended",
511: "NetworkAuthenticationRequired",
}
var HttpStatusCode_value = map[string]int32{
"Empty": 0,
"Continue": 100,
"OK": 200,
"Created": 201,
"Accepted": 202,
"NonAuthoritativeInformation": 203,
"NoContent": 204,
"ResetContent": 205,
"PartialContent": 206,
"MultiStatus": 207,
"AlreadyReported": 208,
"IMUsed": 226,
"MultipleChoices": 300,
"MovedPermanently": 301,
"Found": 302,
"SeeOther": 303,
"NotModified": 304,
"UseProxy": 305,
"TemporaryRedirect": 307,
"PermanentRedirect": 308,
"BadRequest": 400,
"Unauthorized": 401,
"PaymentRequired": 402,
"Forbidden": 403,
"NotFound": 404,
"MethodNotAllowed": 405,
"NotAcceptable": 406,
"ProxyAuthenticationRequired": 407,
"RequestTimeout": 408,
"Conflict": 409,
"Gone": 410,
"LengthRequired": 411,
"PreconditionFailed": 412,
"PayloadTooLarge": 413,
"URITooLong": 414,
"UnsupportedMediaType": 415,
"RangeNotSatisfiable": 416,
"ExpectationFailed": 417,
"MisdirectedRequest": 421,
"UnprocessableEntity": 422,
"Locked": 423,
"FailedDependency": 424,
"UpgradeRequired": 426,
"PreconditionRequired": 428,
"TooManyRequests": 429,
"RequestHeaderFieldsTooLarge": 431,
"InternalServerError": 500,
"NotImplemented": 501,
"BadGateway": 502,
"ServiceUnavailable": 503,
"GatewayTimeout": 504,
"HTTPVersionNotSupported": 505,
"VariantAlsoNegotiates": 506,
"InsufficientStorage": 507,
"LoopDetected": 508,
"NotExtended": 510,
"NetworkAuthenticationRequired": 511,
}
func (HttpStatusCode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_dffd274153c8a074, []int{0}
}
// Direct HTTP response for a client-facing error message which can be attached
// to an RPC error.
type DirectHttpResponse struct {
// Optional HTTP status code. If not set, RPC error code is used.
Code HttpStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=istio.policy.v1beta1.HttpStatusCode" json:"code,omitempty"`
// HTTP response body.
Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
// Optional HTTP response headers.
Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (m *DirectHttpResponse) Reset() { *m = DirectHttpResponse{} }
func (*DirectHttpResponse) ProtoMessage() {}
func (*DirectHttpResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_dffd274153c8a074, []int{0}
}
func (m *DirectHttpResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DirectHttpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DirectHttpResponse.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 (m *DirectHttpResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DirectHttpResponse.Merge(m, src)
}
func (m *DirectHttpResponse) XXX_Size() int {
return m.Size()
}
func (m *DirectHttpResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DirectHttpResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DirectHttpResponse proto.InternalMessageInfo
func (m *DirectHttpResponse) GetCode() HttpStatusCode {
if m != nil {
return m.Code
}
return Empty
}
func (m *DirectHttpResponse) GetBody() string {
if m != nil {
return m.Body
}
return ""
}
func (m *DirectHttpResponse) GetHeaders() map[string]string {
if m != nil {
return m.Headers
}
return nil
}
func init() {
proto.RegisterEnum("istio.policy.v1beta1.HttpStatusCode", HttpStatusCode_name, HttpStatusCode_value)
proto.RegisterType((*DirectHttpResponse)(nil), "istio.policy.v1beta1.DirectHttpResponse")
proto.RegisterMapType((map[string]string)(nil), "istio.policy.v1beta1.DirectHttpResponse.HeadersEntry")
}
func init() { proto.RegisterFile("policy/v1beta1/http_response.proto", fileDescriptor_dffd274153c8a074) }
var fileDescriptor_dffd274153c8a074 = []byte{
// 1042 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xcb, 0x6f, 0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, 0x32, 0x79, 0x45, 0xb5, 0xf8,
0x8b, 0xc9, 0x23, 0xfc, 0xc1, 0x2a, 0xd0, 0x25, 0x74, 0x17, 0xfe, 0x63, 0x37, 0xff, 0x66, 0xa7,
0x1e, 0xdf, 0xbc, 0x1d, 0x97, 0x6e, 0xdd, 0x8e, 0x4b, 0x77, 0x6f, 0xc7, 0xd1, 0xd3, 0xfd, 0x38,
0xba, 0xda, 0x8f, 0xa3, 0x9b, 0xfd, 0x38, 0xda, 0xec, 0xc7, 0xd1, 0x77, 0xfd, 0x38, 0xfa, 0xbe,
0x1f, 0x97, 0xee, 0xf6, 0xe3, 0xe8, 0xca, 0x9d, 0xb8, 0xb4, 0x79, 0x27, 0x2e, 0xdd, 0xba, 0x13,
0x97, 0x9e, 0x38, 0x3c, 0xf8, 0xd9, 0x1a, 0x9c, 0x57, 0x99, 0x99, 0xbf, 0xf7, 0xaa, 0xd8, 0xd8,
0x11, 0x6e, 0x87, 0x47, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xea, 0x47, 0xf8, 0xf5, 0x43, 0x06,
0x00, 0x00,
}
func (x HttpStatusCode) String() string {
s, ok := HttpStatusCode_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (this *DirectHttpResponse) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DirectHttpResponse)
if !ok {
that2, ok := that.(DirectHttpResponse)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.Code != that1.Code {
return false
}
if this.Body != that1.Body {
return false
}
if len(this.Headers) != len(that1.Headers) {
return false
}
for i := range this.Headers {
if this.Headers[i] != that1.Headers[i] {
return false
}
}
return true
}
func (this *DirectHttpResponse) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&v1beta1.DirectHttpResponse{")
s = append(s, "Code: "+fmt.Sprintf("%#v", this.Code)+",\n")
s = append(s, "Body: "+fmt.Sprintf("%#v", this.Body)+",\n")
keysForHeaders := make([]string, 0, len(this.Headers))
for k, _ := range this.Headers {
keysForHeaders = append(keysForHeaders, k)
}
github_com_gogo_protobuf_sortkeys.Strings(keysForHeaders)
mapStringForHeaders := "map[string]string{"
for _, k := range keysForHeaders {
mapStringForHeaders += fmt.Sprintf("%#v: %#v,", k, this.Headers[k])
}
mapStringForHeaders += "}"
if this.Headers != nil {
s = append(s, "Headers: "+mapStringForHeaders+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringHttpResponse(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
func (m *DirectHttpResponse) 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 *DirectHttpResponse) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Code != 0 {
dAtA[i] = 0x8
i++
i = encodeVarintHttpResponse(dAtA, i, uint64(m.Code))
}
if len(m.Body) > 0 {
dAtA[i] = 0x12
i++
i = encodeVarintHttpResponse(dAtA, i, uint64(len(m.Body)))
i += copy(dAtA[i:], m.Body)
}
if len(m.Headers) > 0 {
for k, _ := range m.Headers {
dAtA[i] = 0x1a
i++
v := m.Headers[k]
mapSize := 1 + len(k) + sovHttpResponse(uint64(len(k))) + 1 + len(v) + sovHttpResponse(uint64(len(v)))
i = encodeVarintHttpResponse(dAtA, i, uint64(mapSize))
dAtA[i] = 0xa
i++
i = encodeVarintHttpResponse(dAtA, i, uint64(len(k)))
i += copy(dAtA[i:], k)
dAtA[i] = 0x12
i++
i = encodeVarintHttpResponse(dAtA, i, uint64(len(v)))
i += copy(dAtA[i:], v)
}
}
return i, nil
}
func encodeVarintHttpResponse(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 *DirectHttpResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Code != 0 {
n += 1 + sovHttpResponse(uint64(m.Code))
}
l = len(m.Body)
if l > 0 {
n += 1 + l + sovHttpResponse(uint64(l))
}
if len(m.Headers) > 0 {
for k, v := range m.Headers {
_ = k
_ = v
mapEntrySize := 1 + len(k) + sovHttpResponse(uint64(len(k))) + 1 + len(v) + sovHttpResponse(uint64(len(v)))
n += mapEntrySize + 1 + sovHttpResponse(uint64(mapEntrySize))
}
}
return n
}
func sovHttpResponse(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozHttpResponse(x uint64) (n int) {
return sovHttpResponse(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *DirectHttpResponse) String() string {
if this == nil {
return "nil"
}
keysForHeaders := make([]string, 0, len(this.Headers))
for k, _ := range this.Headers {
keysForHeaders = append(keysForHeaders, k)
}
github_com_gogo_protobuf_sortkeys.Strings(keysForHeaders)
mapStringForHeaders := "map[string]string{"
for _, k := range keysForHeaders {
mapStringForHeaders += fmt.Sprintf("%v: %v,", k, this.Headers[k])
}
mapStringForHeaders += "}"
s := strings.Join([]string{`&DirectHttpResponse{`,
`Code:` + fmt.Sprintf("%v", this.Code) + `,`,
`Body:` + fmt.Sprintf("%v", this.Body) + `,`,
`Headers:` + mapStringForHeaders + `,`,
`}`,
}, "")
return s
}
func valueToStringHttpResponse(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *DirectHttpResponse) 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 ErrIntOverflowHttpResponse
}
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: DirectHttpResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DirectHttpResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
}
m.Code = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowHttpResponse
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Code |= HttpStatusCode(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowHttpResponse
}
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 ErrInvalidLengthHttpResponse
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthHttpResponse
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Body = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowHttpResponse
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthHttpResponse
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthHttpResponse
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Headers == nil {
m.Headers = make(map[string]string)
}
var mapkey string
var mapvalue string
for iNdEx < postIndex {
entryPreIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowHttpResponse
}
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 ErrIntOverflowHttpResponse
}
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 ErrInvalidLengthHttpResponse
}
postStringIndexmapkey := iNdEx + intStringLenmapkey
if postStringIndexmapkey < 0 {
return ErrInvalidLengthHttpResponse
}
if postStringIndexmapkey > l {
return io.ErrUnexpectedEOF
}
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
iNdEx = postStringIndexmapkey
} else if fieldNum == 2 {
var stringLenmapvalue uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowHttpResponse
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLenmapvalue |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLenmapvalue := int(stringLenmapvalue)
if intStringLenmapvalue < 0 {
return ErrInvalidLengthHttpResponse
}
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
if postStringIndexmapvalue < 0 {
return ErrInvalidLengthHttpResponse
}
if postStringIndexmapvalue > l {
return io.ErrUnexpectedEOF
}
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
iNdEx = postStringIndexmapvalue
} else {
iNdEx = entryPreIndex
skippy, err := skipHttpResponse(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthHttpResponse
}
if (iNdEx + skippy) > postIndex {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
m.Headers[mapkey] = mapvalue
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipHttpResponse(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthHttpResponse
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthHttpResponse
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipHttpResponse(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, ErrIntOverflowHttpResponse
}
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, ErrIntOverflowHttpResponse
}
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, ErrIntOverflowHttpResponse
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthHttpResponse
}
iNdEx += length
if iNdEx < 0 {
return 0, ErrInvalidLengthHttpResponse
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowHttpResponse
}
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 := skipHttpResponse(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
if iNdEx < 0 {
return 0, ErrInvalidLengthHttpResponse
}
}
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 (
ErrInvalidLengthHttpResponse = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowHttpResponse = fmt.Errorf("proto: integer overflow")
)