Debian Codegraph @

api/v0/messenger/testmessage/testmessage.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-gogo.
2 // source: testmessage.proto
3 // DO NOT EDIT!
4
5 /*
6 Package testmessage is a generated protocol buffer package.
7
8 It is generated from these files:
9 testmessage.proto
10
11 It has these top-level messages:
12 SmallMessage
13 MediumMessage
14 BigMessage
15 LargeMessage
16 */
17 package testmessage
18
19 import proto "github.com/gogo/protobuf/proto"
20 import math "math"
21
22 // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto/gogo.pb"
23
24 import io "io"
25 import fmt "fmt"
26 import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
27
28 import fmt1 "fmt"
29 import strings "strings"
30 import reflect "reflect"
31
32 import fmt2 "fmt"
33 import strings1 "strings"
34 import github_com_gogo_protobuf_proto1 "github.com/gogo/protobuf/proto"
35 import sort "sort"
36 import strconv "strconv"
37 import reflect1 "reflect"
38
39 import fmt3 "fmt"
40 import bytes "bytes"
41
42 // Reference imports to suppress errors if they are not otherwise used.
43 var _ = proto.Marshal
44 var _ = math.Inf
45
46 type SmallMessage struct {
47 Values []string `protobuf:"bytes,1,rep" json:"Values,omitempty"`
48 XXX_unrecognized []byte `json:"-"`
49 }
50
51 func (m *SmallMessage) Reset() { *m = SmallMessage{} }
52 func (*SmallMessage) ProtoMessage() {}
53
54 func (m *SmallMessage) GetValues() []string {
55 if m != nil {
56 return m.Values
57 }
58 return nil
59 }
60
61 type MediumMessage struct {
62 Values []string `protobuf:"bytes,1,rep" json:"Values,omitempty"`
63 XXX_unrecognized []byte `json:"-"`
64 }
65
66 func (m *MediumMessage) Reset() { *m = MediumMessage{} }
67 func (*MediumMessage) ProtoMessage() {}
68
69 func (m *MediumMessage) GetValues() []string {
70 if m != nil {
71 return m.Values
72 }
73 return nil
74 }
75
76 type BigMessage struct {
77 Values []string `protobuf:"bytes,1,rep" json:"Values,omitempty"`
78 XXX_unrecognized []byte `json:"-"`
79 }
80
81 func (m *BigMessage) Reset() { *m = BigMessage{} }
82 func (*BigMessage) ProtoMessage() {}
83
84 func (m *BigMessage) GetValues() []string {
85 if m != nil {
86 return m.Values
87 }
88 return nil
89 }
90
91 type LargeMessage struct {
92 Values []string `protobuf:"bytes,1,rep" json:"Values,omitempty"`
93 XXX_unrecognized []byte `json:"-"`
94 }
95
96 func (m *LargeMessage) Reset() { *m = LargeMessage{} }
97 func (*LargeMessage) ProtoMessage() {}
98
99 func (m *LargeMessage) GetValues() []string {
100 if m != nil {
101 return m.Values
102 }
103 return nil
104 }
105
106 func init() {
107 }
108 func (m *SmallMessage) Unmarshal(data []byte) error {
109 l := len(data)
110 index := 0
111 for index < l {
112 var wire uint64
113 for shift := uint(0); ; shift += 7 {
114 if index >= l {
115 return io.ErrUnexpectedEOF
116 }
117 b := data[index]
118 index++
119 wire |= (uint64(b) & 0x7F) << shift
120 if b < 0x80 {
121 break
122 }
123 }
124 fieldNum := int32(wire >> 3)
125 wireType := int(wire & 0x7)
126 switch fieldNum {
127 case 1:
128 if wireType != 2 {
129 return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
130 }
131 var stringLen uint64
132 for shift := uint(0); ; shift += 7 {
133 if index >= l {
134 return io.ErrUnexpectedEOF
135 }
136 b := data[index]
137 index++
138 stringLen |= (uint64(b) & 0x7F) << shift
139 if b < 0x80 {
140 break
141 }
142 }
143 postIndex := index + int(stringLen)
144 if postIndex > l {
145 return io.ErrUnexpectedEOF
146 }
147 m.Values = append(m.Values, string(data[index:postIndex]))
148 index = postIndex
149 default:
150 var sizeOfWire int
151 for {
152 sizeOfWire++
153 wire >>= 7
154 if wire == 0 {
155 break
156 }
157 }
158 index -= sizeOfWire
159 skippy, err := github_com_gogo_protobuf_proto.Skip(data[index:])
160 if err != nil {
161 return err
162 }
163 if (index + skippy) > l {
164 return io.ErrUnexpectedEOF
165 }
166 m.XXX_unrecognized = append(m.XXX_unrecognized, data[index:index+skippy]...)
167 index += skippy
168 }
169 }
170 return nil
171 }
172 func (m *MediumMessage) Unmarshal(data []byte) error {
173 l := len(data)
174 index := 0
175 for index < l {
176 var wire uint64
177 for shift := uint(0); ; shift += 7 {
178 if index >= l {
179 return io.ErrUnexpectedEOF
180 }
181 b := data[index]
182 index++
183 wire |= (uint64(b) & 0x7F) << shift
184 if b < 0x80 {
185 break
186 }
187 }
188 fieldNum := int32(wire >> 3)
189 wireType := int(wire & 0x7)
190 switch fieldNum {
191 case 1:
192 if wireType != 2 {
193 return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
194 }
195 var stringLen uint64
196 for shift := uint(0); ; shift += 7 {
197 if index >= l {
198 return io.ErrUnexpectedEOF
199 }
200 b := data[index]
201 index++
202 stringLen |= (uint64(b) & 0x7F) << shift
203 if b < 0x80 {
204 break
205 }
206 }
207 postIndex := index + int(stringLen)
208 if postIndex > l {
209 return io.ErrUnexpectedEOF
210 }
211 m.Values = append(m.Values, string(data[index:postIndex]))
212 index = postIndex
213 default:
214 var sizeOfWire int
215 for {
216 sizeOfWire++
217 wire >>= 7
218 if wire == 0 {
219 break
220 }
221 }
222 index -= sizeOfWire
223 skippy, err := github_com_gogo_protobuf_proto.Skip(data[index:])
224 if err != nil {
225 return err
226 }
227 if (index + skippy) > l {
228 return io.ErrUnexpectedEOF
229 }
230 m.XXX_unrecognized = append(m.XXX_unrecognized, data[index:index+skippy]...)
231 index += skippy
232 }
233 }
234 return nil
235 }
236 func (m *BigMessage) Unmarshal(data []byte) error {
237 l := len(data)
238 index := 0
239 for index < l {
240 var wire uint64
241 for shift := uint(0); ; shift += 7 {
242 if index >= l {
243 return io.ErrUnexpectedEOF
244 }
245 b := data[index]
246 index++
247 wire |= (uint64(b) & 0x7F) << shift
248 if b < 0x80 {
249 break
250 }
251 }
252 fieldNum := int32(wire >> 3)
253 wireType := int(wire & 0x7)
254 switch fieldNum {
255 case 1:
256 if wireType != 2 {
257 return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
258 }
259 var stringLen uint64
260 for shift := uint(0); ; shift += 7 {
261 if index >= l {
262 return io.ErrUnexpectedEOF
263 }
264 b := data[index]
265 index++
266 stringLen |= (uint64(b) & 0x7F) << shift
267 if b < 0x80 {
268 break
269 }
270 }
271 postIndex := index + int(stringLen)
272 if postIndex > l {
273 return io.ErrUnexpectedEOF
274 }
275 m.Values = append(m.Values, string(data[index:postIndex]))
276 index = postIndex
277 default:
278 var sizeOfWire int
279 for {
280 sizeOfWire++
281 wire >>= 7
282 if wire == 0 {
283 break
284 }
285 }
286 index -= sizeOfWire
287 skippy, err := github_com_gogo_protobuf_proto.Skip(data[index:])
288 if err != nil {
289 return err
290 }
291 if (index + skippy) > l {
292 return io.ErrUnexpectedEOF
293 }
294 m.XXX_unrecognized = append(m.XXX_unrecognized, data[index:index+skippy]...)
295 index += skippy
296 }
297 }
298 return nil
299 }
300 func (m *LargeMessage) Unmarshal(data []byte) error {
301 l := len(data)
302 index := 0
303 for index < l {
304 var wire uint64
305 for shift := uint(0); ; shift += 7 {
306 if index >= l {
307 return io.ErrUnexpectedEOF
308 }
309 b := data[index]
310 index++
311 wire |= (uint64(b) & 0x7F) << shift
312 if b < 0x80 {
313 break
314 }
315 }
316 fieldNum := int32(wire >> 3)
317 wireType := int(wire & 0x7)
318 switch fieldNum {
319 case 1:
320 if wireType != 2 {
321 return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
322 }
323 var stringLen uint64
324 for shift := uint(0); ; shift += 7 {
325 if index >= l {
326 return io.ErrUnexpectedEOF
327 }
328 b := data[index]
329 index++
330 stringLen |= (uint64(b) & 0x7F) << shift
331 if b < 0x80 {
332 break
333 }
334 }
335 postIndex := index + int(stringLen)
336 if postIndex > l {
337 return io.ErrUnexpectedEOF
338 }
339 m.Values = append(m.Values, string(data[index:postIndex]))
340 index = postIndex
341 default:
342 var sizeOfWire int
343 for {
344 sizeOfWire++
345 wire >>= 7
346 if wire == 0 {
347 break
348 }
349 }
350 index -= sizeOfWire
351 skippy, err := github_com_gogo_protobuf_proto.Skip(data[index:])
352 if err != nil {
353 return err
354 }
355 if (index + skippy) > l {
356 return io.ErrUnexpectedEOF
357 }
358 m.XXX_unrecognized = append(m.XXX_unrecognized, data[index:index+skippy]...)
359 index += skippy
360 }
361 }
362 return nil
363 }
364 func (this *SmallMessage) String() string {
365 if this == nil {
366 return "nil"
367 }
368 s := strings.Join([]string{`&SmallMessage{`,
369 `Values:` + fmt1.Sprintf("%v", this.Values) + `,`,
370 `XXX_unrecognized:` + fmt1.Sprintf("%v", this.XXX_unrecognized) + `,`,
371 `}`,
372 }, "")
373 return s
374 }
375 func (this *MediumMessage) String() string {
376 if this == nil {
377 return "nil"
378 }
379 s := strings.Join([]string{`&MediumMessage{`,
380 `Values:` + fmt1.Sprintf("%v", this.Values) + `,`,
381 `XXX_unrecognized:` + fmt1.Sprintf("%v", this.XXX_unrecognized) + `,`,
382 `}`,
383 }, "")
384 return s
385 }
386 func (this *BigMessage) String() string {
387 if this == nil {
388 return "nil"
389 }
390 s := strings.Join([]string{`&BigMessage{`,
391 `Values:` + fmt1.Sprintf("%v", this.Values) + `,`,
392 `XXX_unrecognized:` + fmt1.Sprintf("%v", this.XXX_unrecognized) + `,`,
393 `}`,
394 }, "")
395 return s
396 }
397 func (this *LargeMessage) String() string {
398 if this == nil {
399 return "nil"
400 }
401 s := strings.Join([]string{`&LargeMessage{`,
402 `Values:` + fmt1.Sprintf("%v", this.Values) + `,`,
403 `XXX_unrecognized:` + fmt1.Sprintf("%v", this.XXX_unrecognized) + `,`,
404 `}`,
405 }, "")
406 return s
407 }
408 func valueToStringTestmessage(v interface{}) string {
409 rv := reflect.ValueOf(v)
410 if rv.IsNil() {
411 return "nil"
412 }
413 pv := reflect.Indirect(rv).Interface()
414 return fmt1.Sprintf("*%v", pv)
415 }
416 func (m *SmallMessage) Size() (n int) {
417 var l int
418 _ = l
419 if len(m.Values) > 0 {
420 for _, s := range m.Values {
421 l = len(s)
422 n += 1 + l + sovTestmessage(uint64(l))
423 }
424 }
425 if m.XXX_unrecognized != nil {
426 n += len(m.XXX_unrecognized)
427 }
428 return n
429 }
430
431 func (m *MediumMessage) Size() (n int) {
432 var l int
433 _ = l
434 if len(m.Values) > 0 {
435 for _, s := range m.Values {
436 l = len(s)
437 n += 1 + l + sovTestmessage(uint64(l))
438 }
439 }
440 if m.XXX_unrecognized != nil {
441 n += len(m.XXX_unrecognized)
442 }
443 return n
444 }
445
446 func (m *BigMessage) Size() (n int) {
447 var l int
448 _ = l
449 if len(m.Values) > 0 {
450 for _, s := range m.Values {
451 l = len(s)
452 n += 1 + l + sovTestmessage(uint64(l))
453 }
454 }
455 if m.XXX_unrecognized != nil {
456 n += len(m.XXX_unrecognized)
457 }
458 return n
459 }
460
461 func (m *LargeMessage) Size() (n int) {
462 var l int
463 _ = l
464 if len(m.Values) > 0 {
465 for _, s := range m.Values {
466 l = len(s)
467 n += 1 + l + sovTestmessage(uint64(l))
468 }
469 }
470 if m.XXX_unrecognized != nil {
471 n += len(m.XXX_unrecognized)
472 }
473 return n
474 }
475
476 func sovTestmessage(x uint64) (n int) {
477 for {
478 n++
479 x >>= 7
480 if x == 0 {
481 break
482 }
483 }
484 return n
485 }
486 func sozTestmessage(x uint64) (n int) {
487 return sovTestmessage(uint64((x << 1) ^ uint64((int64(x) >> 63))))
488 }
489 func NewPopulatedSmallMessage(r randyTestmessage, easy bool) *SmallMessage {
490 this := &SmallMessage{}
491 if r.Intn(10) != 0 {
492 v1 := r.Intn(10)
493 this.Values = make([]string, v1)
494 for i := 0; i < v1; i++ {
495 this.Values[i] = randStringTestmessage(r)
496 }
497 }
498 if !easy && r.Intn(10) != 0 {
499 this.XXX_unrecognized = randUnrecognizedTestmessage(r, 2)
500 }
501 return this
502 }
503
504 func NewPopulatedMediumMessage(r randyTestmessage, easy bool) *MediumMessage {
505 this := &MediumMessage{}
506 if r.Intn(10) != 0 {
507 v2 := r.Intn(10)
508 this.Values = make([]string, v2)
509 for i := 0; i < v2; i++ {
510 this.Values[i] = randStringTestmessage(r)
511 }
512 }
513 if !easy && r.Intn(10) != 0 {
514 this.XXX_unrecognized = randUnrecognizedTestmessage(r, 2)
515 }
516 return this
517 }
518
519 func NewPopulatedBigMessage(r randyTestmessage, easy bool) *BigMessage {
520 this := &BigMessage{}
521 if r.Intn(10) != 0 {
522 v3 := r.Intn(10)
523 this.Values = make([]string, v3)
524 for i := 0; i < v3; i++ {
525 this.Values[i] = randStringTestmessage(r)
526 }
527 }
528 if !easy && r.Intn(10) != 0 {
529 this.XXX_unrecognized = randUnrecognizedTestmessage(r, 2)
530 }
531 return this
532 }
533
534 func NewPopulatedLargeMessage(r randyTestmessage, easy bool) *LargeMessage {
535 this := &LargeMessage{}
536 if r.Intn(10) != 0 {
537 v4 := r.Intn(10)
538 this.Values = make([]string, v4)
539 for i := 0; i < v4; i++ {
540 this.Values[i] = randStringTestmessage(r)
541 }
542 }
543 if !easy && r.Intn(10) != 0 {
544 this.XXX_unrecognized = randUnrecognizedTestmessage(r, 2)
545 }
546 return this
547 }
548
549 type randyTestmessage interface {
550 Float32() float32
551 Float64() float64
552 Int63() int64
553 Int31() int32
554 Uint32() uint32
555 Intn(n int) int
556 }
557
558 func randUTF8RuneTestmessage(r randyTestmessage) rune {
559 res := rune(r.Uint32() % 1112064)
560 if 55296 <= res {
561 res += 2047
562 }
563 return res
564 }
565 func randStringTestmessage(r randyTestmessage) string {
566 v5 := r.Intn(100)
567 tmps := make([]rune, v5)
568 for i := 0; i < v5; i++ {
569 tmps[i] = randUTF8RuneTestmessage(r)
570 }
571 return string(tmps)
572 }
573 func randUnrecognizedTestmessage(r randyTestmessage, maxFieldNumber int) (data []byte) {
574 l := r.Intn(5)
575 for i := 0; i < l; i++ {
576 wire := r.Intn(4)
577 if wire == 3 {
578 wire = 5
579 }
580 fieldNumber := maxFieldNumber + r.Intn(100)
581 data = randFieldTestmessage(data, r, fieldNumber, wire)
582 }
583 return data
584 }
585 func randFieldTestmessage(data []byte, r randyTestmessage, fieldNumber int, wire int) []byte {
586 key := uint32(fieldNumber)<<3 | uint32(wire)
587 switch wire {
588 case 0:
589 data = encodeVarintPopulateTestmessage(data, uint64(key))
590 v6 := r.Int63()
591 if r.Intn(2) == 0 {
592 v6 *= -1
593 }
594 data = encodeVarintPopulateTestmessage(data, uint64(v6))
595 case 1:
596 data = encodeVarintPopulateTestmessage(data, uint64(key))
597 data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
598 case 2:
599 data = encodeVarintPopulateTestmessage(data, uint64(key))
600 ll := r.Intn(100)
601 data = encodeVarintPopulateTestmessage(data, uint64(ll))
602 for j := 0; j < ll; j++ {
603 data = append(data, byte(r.Intn(256)))
604 }
605 default:
606 data = encodeVarintPopulateTestmessage(data, uint64(key))
607 data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
608 }
609 return data
610 }
611 func encodeVarintPopulateTestmessage(data []byte, v uint64) []byte {
612 for v >= 1<<7 {
613 data = append(data, uint8(uint64(v)&0x7f|0x80))
614 v >>= 7
615 }
616 data = append(data, uint8(v))
617 return data
618 }
619 func (m *SmallMessage) Marshal() (data []byte, err error) {
620 size := m.Size()
621 data = make([]byte, size)
622 n, err := m.MarshalTo(data)
623 if err != nil {
624 return nil, err
625 }
626 return data[:n], nil
627 }
628
629 func (m *SmallMessage) MarshalTo(data []byte) (n int, err error) {
630 var i int
631 _ = i
632 var l int
633 _ = l
634 if len(m.Values) > 0 {
635 for _, s := range m.Values {
636 data[i] = 0xa
637 i++
638 l = len(s)
639 for l >= 1<<7 {
640 data[i] = uint8(uint64(l)&0x7f | 0x80)
641 l >>= 7
642 i++
643 }
644 data[i] = uint8(l)
645 i++
646 i += copy(data[i:], s)
647 }
648 }
649 if m.XXX_unrecognized != nil {
650 i += copy(data[i:], m.XXX_unrecognized)
651 }
652 return i, nil
653 }
654
655 func (m *MediumMessage) Marshal() (data []byte, err error) {
656 size := m.Size()
657 data = make([]byte, size)
658 n, err := m.MarshalTo(data)
659 if err != nil {
660 return nil, err
661 }
662 return data[:n], nil
663 }
664
665 func (m *MediumMessage) MarshalTo(data []byte) (n int, err error) {
666 var i int
667 _ = i
668 var l int
669 _ = l
670 if len(m.Values) > 0 {
671 for _, s := range m.Values {
672 data[i] = 0xa
673 i++
674 l = len(s)
675 for l >= 1<<7 {
676 data[i] = uint8(uint64(l)&0x7f | 0x80)
677 l >>= 7
678 i++
679 }
680 data[i] = uint8(l)
681 i++
682 i += copy(data[i:], s)
683 }
684 }
685 if m.XXX_unrecognized != nil {
686 i += copy(data[i:], m.XXX_unrecognized)
687 }
688 return i, nil
689 }
690
691 func (m *BigMessage) Marshal() (data []byte, err error) {
692 size := m.Size()
693 data = make([]byte, size)
694 n, err := m.MarshalTo(data)
695 if err != nil {
696 return nil, err
697 }
698 return data[:n], nil
699 }
700
701 func (m *BigMessage) MarshalTo(data []byte) (n int, err error) {
702 var i int
703 _ = i
704 var l int
705 _ = l
706 if len(m.Values) > 0 {
707 for _, s := range m.Values {
708 data[i] = 0xa
709 i++
710 l = len(s)
711 for l >= 1<<7 {
712 data[i] = uint8(uint64(l)&0x7f | 0x80)
713 l >>= 7
714 i++
715 }
716 data[i] = uint8(l)
717 i++
718 i += copy(data[i:], s)
719 }
720 }
721 if m.XXX_unrecognized != nil {
722 i += copy(data[i:], m.XXX_unrecognized)
723 }
724 return i, nil
725 }
726
727 func (m *LargeMessage) Marshal() (data []byte, err error) {
728 size := m.Size()
729 data = make([]byte, size)
730 n, err := m.MarshalTo(data)
731 if err != nil {
732 return nil, err
733 }
734 return data[:n], nil
735 }
736
737 func (m *LargeMessage) MarshalTo(data []byte) (n int, err error) {
738 var i int
739 _ = i
740 var l int
741 _ = l
742 if len(m.Values) > 0 {
743 for _, s := range m.Values {
744 data[i] = 0xa
745 i++
746 l = len(s)
747 for l >= 1<<7 {
748 data[i] = uint8(uint64(l)&0x7f | 0x80)
749 l >>= 7
750 i++
751 }
752 data[i] = uint8(l)
753 i++
754 i += copy(data[i:], s)
755 }
756 }
757 if m.XXX_unrecognized != nil {
758 i += copy(data[i:], m.XXX_unrecognized)
759 }
760 return i, nil
761 }
762
763 func encodeFixed64Testmessage(data []byte, offset int, v uint64) int {
764 data[offset] = uint8(v)
765 data[offset+1] = uint8(v >> 8)
766 data[offset+2] = uint8(v >> 16)
767 data[offset+3] = uint8(v >> 24)
768 data[offset+4] = uint8(v >> 32)
769 data[offset+5] = uint8(v >> 40)
770 data[offset+6] = uint8(v >> 48)
771 data[offset+7] = uint8(v >> 56)
772 return offset + 8
773 }
774 func encodeFixed32Testmessage(data []byte, offset int, v uint32) int {
775 data[offset] = uint8(v)
776 data[offset+1] = uint8(v >> 8)
777 data[offset+2] = uint8(v >> 16)
778 data[offset+3] = uint8(v >> 24)
779 return offset + 4
780 }
781 func encodeVarintTestmessage(data []byte, offset int, v uint64) int {
782 for v >= 1<<7 {
783 data[offset] = uint8(v&0x7f | 0x80)
784 v >>= 7
785 offset++
786 }
787 data[offset] = uint8(v)
788 return offset + 1
789 }
790 func (this *SmallMessage) GoString() string {
791 if this == nil {
792 return "nil"
793 }
794 s := strings1.Join([]string{`&testmessage.SmallMessage{` +
795 `Values:` + fmt2.Sprintf("%#v", this.Values),
796 `XXX_unrecognized:` + fmt2.Sprintf("%#v", this.XXX_unrecognized) + `}`}, ", ")
797 return s
798 }
799 func (this *MediumMessage) GoString() string {
800 if this == nil {
801 return "nil"
802 }
803 s := strings1.Join([]string{`&testmessage.MediumMessage{` +
804 `Values:` + fmt2.Sprintf("%#v", this.Values),
805 `XXX_unrecognized:` + fmt2.Sprintf("%#v", this.XXX_unrecognized) + `}`}, ", ")
806 return s
807 }
808 func (this *BigMessage) GoString() string {
809 if this == nil {
810 return "nil"
811 }
812 s := strings1.Join([]string{`&testmessage.BigMessage{` +
813 `Values:` + fmt2.Sprintf("%#v", this.Values),
814 `XXX_unrecognized:` + fmt2.Sprintf("%#v", this.XXX_unrecognized) + `}`}, ", ")
815 return s
816 }
817 func (this *LargeMessage) GoString() string {
818 if this == nil {
819 return "nil"
820 }
821 s := strings1.Join([]string{`&testmessage.LargeMessage{` +
822 `Values:` + fmt2.Sprintf("%#v", this.Values),
823 `XXX_unrecognized:` + fmt2.Sprintf("%#v", this.XXX_unrecognized) + `}`}, ", ")
824 return s
825 }
826 func valueToGoStringTestmessage(v interface{}, typ string) string {
827 rv := reflect1.ValueOf(v)
828 if rv.IsNil() {
829 return "nil"
830 }
831 pv := reflect1.Indirect(rv).Interface()
832 return fmt2.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
833 }
834 func extensionToGoStringTestmessage(e map[int32]github_com_gogo_protobuf_proto1.Extension) string {
835 if e == nil {
836 return "nil"
837 }
838 s := "map[int32]proto.Extension{"
839 keys := make([]int, 0, len(e))
840 for k := range e {
841 keys = append(keys, int(k))
842 }
843 sort.Ints(keys)
844 ss := []string{}
845 for _, k := range keys {
846 ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
847 }
848 s += strings1.Join(ss, ",") + "}"
849 return s
850 }
851 func (this *SmallMessage) VerboseEqual(that interface{}) error {
852 if that == nil {
853 if this == nil {
854 return nil
855 }
856 return fmt3.Errorf("that == nil && this != nil")
857 }
858
859 that1, ok := that.(*SmallMessage)
860 if !ok {
861 return fmt3.Errorf("that is not of type *SmallMessage")
862 }
863 if that1 == nil {
864 if this == nil {
865 return nil
866 }
867 return fmt3.Errorf("that is type *SmallMessage but is nil && this != nil")
868 } else if this == nil {
869 return fmt3.Errorf("that is type *SmallMessagebut is not nil && this == nil")
870 }
871 if len(this.Values) != len(that1.Values) {
872 return fmt3.Errorf("Values this(%v) Not Equal that(%v)", len(this.Values), len(that1.Values))
873 }
874 for i := range this.Values {
875 if this.Values[i] != that1.Values[i] {
876 return fmt3.Errorf("Values this[%v](%v) Not Equal that[%v](%v)", i, this.Values[i], i, that1.Values[i])
877 }
878 }
879 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
880 return fmt3.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
881 }
882 return nil
883 }
884 func (this *SmallMessage) Equal(that interface{}) bool {
885 if that == nil {
886 if this == nil {
887 return true
888 }
889 return false
890 }
891
892 that1, ok := that.(*SmallMessage)
893 if !ok {
894 return false
895 }
896 if that1 == nil {
897 if this == nil {
898 return true
899 }
900 return false
901 } else if this == nil {
902 return false
903 }
904 if len(this.Values) != len(that1.Values) {
905 return false
906 }
907 for i := range this.Values {
908 if this.Values[i] != that1.Values[i] {
909 return false
910 }
911 }
912 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
913 return false
914 }
915 return true
916 }
917 func (this *MediumMessage) VerboseEqual(that interface{}) error {
918 if that == nil {
919 if this == nil {
920 return nil
921 }
922 return fmt3.Errorf("that == nil && this != nil")
923 }
924
925 that1, ok := that.(*MediumMessage)
926 if !ok {
927 return fmt3.Errorf("that is not of type *MediumMessage")
928 }
929 if that1 == nil {
930 if this == nil {
931 return nil
932 }
933 return fmt3.Errorf("that is type *MediumMessage but is nil && this != nil")
934 } else if this == nil {
935 return fmt3.Errorf("that is type *MediumMessagebut is not nil && this == nil")
936 }
937 if len(this.Values) != len(that1.Values) {
938 return fmt3.Errorf("Values this(%v) Not Equal that(%v)", len(this.Values), len(that1.Values))
939 }
940 for i := range this.Values {
941 if this.Values[i] != that1.Values[i] {
942 return fmt3.Errorf("Values this[%v](%v) Not Equal that[%v](%v)", i, this.Values[i], i, that1.Values[i])
943 }
944 }
945 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
946 return fmt3.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
947 }
948 return nil
949 }
950 func (this *MediumMessage) Equal(that interface{}) bool {
951 if that == nil {
952 if this == nil {
953 return true
954 }
955 return false
956 }
957
958 that1, ok := that.(*MediumMessage)
959 if !ok {
960 return false
961 }
962 if that1 == nil {
963 if this == nil {
964 return true
965 }
966 return false
967 } else if this == nil {
968 return false
969 }
970 if len(this.Values) != len(that1.Values) {
971 return false
972 }
973 for i := range this.Values {
974 if this.Values[i] != that1.Values[i] {
975 return false
976 }
977 }
978 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
979 return false
980 }
981 return true
982 }
983 func (this *BigMessage) VerboseEqual(that interface{}) error {
984 if that == nil {
985 if this == nil {
986 return nil
987 }
988 return fmt3.Errorf("that == nil && this != nil")
989 }
990
991 that1, ok := that.(*BigMessage)
992 if !ok {
993 return fmt3.Errorf("that is not of type *BigMessage")
994 }
995 if that1 == nil {
996 if this == nil {
997 return nil
998 }
999 return fmt3.Errorf("that is type *BigMessage but is nil && this != nil")
1000 } else if this == nil {
1001 return fmt3.Errorf("that is type *BigMessagebut is not nil && this == nil")
1002 }
1003 if len(this.Values) != len(that1.Values) {
1004 return fmt3.Errorf("Values this(%v) Not Equal that(%v)", len(this.Values), len(that1.Values))
1005 }
1006 for i := range this.Values {
1007 if this.Values[i] != that1.Values[i] {
1008 return fmt3.Errorf("Values this[%v](%v) Not Equal that[%v](%v)", i, this.Values[i], i, that1.Values[i])
1009 }
1010 }
1011 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1012 return fmt3.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1013 }
1014 return nil
1015 }
1016 func (this *BigMessage) Equal(that interface{}) bool {
1017 if that == nil {
1018 if this == nil {
1019 return true
1020 }
1021 return false
1022 }
1023
1024 that1, ok := that.(*BigMessage)
1025 if !ok {
1026 return false
1027 }
1028 if that1 == nil {
1029 if this == nil {
1030 return true
1031 }
1032 return false
1033 } else if this == nil {
1034 return false
1035 }
1036 if len(this.Values) != len(that1.Values) {
1037 return false
1038 }
1039 for i := range this.Values {
1040 if this.Values[i] != that1.Values[i] {
1041 return false
1042 }
1043 }
1044 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1045 return false
1046 }
1047 return true
1048 }
1049 func (this *LargeMessage) VerboseEqual(that interface{}) error {
1050 if that == nil {
1051 if this == nil {
1052 return nil
1053 }
1054 return fmt3.Errorf("that == nil && this != nil")
1055 }
1056
1057 that1, ok := that.(*LargeMessage)
1058 if !ok {
1059 return fmt3.Errorf("that is not of type *LargeMessage")
1060 }
1061 if that1 == nil {
1062 if this == nil {
1063 return nil
1064 }
1065 return fmt3.Errorf("that is type *LargeMessage but is nil && this != nil")
1066 } else if this == nil {
1067 return fmt3.Errorf("that is type *LargeMessagebut is not nil && this == nil")
1068 }
1069 if len(this.Values) != len(that1.Values) {
1070 return fmt3.Errorf("Values this(%v) Not Equal that(%v)", len(this.Values), len(that1.Values))
1071 }
1072 for i := range this.Values {
1073 if this.Values[i] != that1.Values[i] {
1074 return fmt3.Errorf("Values this[%v](%v) Not Equal that[%v](%v)", i, this.Values[i], i, that1.Values[i])
1075 }
1076 }
1077 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1078 return fmt3.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1079 }
1080 return nil
1081 }
1082 func (this *LargeMessage) Equal(that interface{}) bool {
1083 if that == nil {
1084 if this == nil {
1085 return true
1086 }
1087 return false
1088 }
1089
1090 that1, ok := that.(*LargeMessage)
1091 if !ok {
1092 return false
1093 }
1094 if that1 == nil {
1095 if this == nil {
1096 return true
1097 }
1098 return false
1099 } else if this == nil {
1100 return false
1101 }
1102 if len(this.Values) != len(that1.Values) {
1103 return false
1104 }
1105 for i := range this.Values {
1106 if this.Values[i] != that1.Values[i] {
1107 return false
1108 }
1109 }
1110 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1111 return false
1112 }
1113 return true
1114 }