1// Code generated by protoc-gen-gogo. DO NOT EDIT.
2// source: tags.proto
3
4package tags
5
6import (
7	fmt "fmt"
8	_ "github.com/gogo/protobuf/gogoproto"
9	proto "github.com/gogo/protobuf/proto"
10	math "math"
11)
12
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
22const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
23
24type Outside struct {
25	*Inside              `protobuf:"bytes,1,opt,name=Inside,embedded=Inside" json:""`
26	Field2               *string  `protobuf:"bytes,2,opt,name=Field2" json:"MyField2" xml:",comment"`
27	XXX_NoUnkeyedLiteral struct{} `json:"-"`
28	XXX_unrecognized     []byte   `json:"-"`
29	XXX_sizecache        int32    `json:"-"`
30}
31
32func (m *Outside) Reset()         { *m = Outside{} }
33func (m *Outside) String() string { return proto.CompactTextString(m) }
34func (*Outside) ProtoMessage()    {}
35func (*Outside) Descriptor() ([]byte, []int) {
36	return fileDescriptor_e7d9cbcae1e528f6, []int{0}
37}
38func (m *Outside) XXX_Unmarshal(b []byte) error {
39	return xxx_messageInfo_Outside.Unmarshal(m, b)
40}
41func (m *Outside) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
42	return xxx_messageInfo_Outside.Marshal(b, m, deterministic)
43}
44func (m *Outside) XXX_Merge(src proto.Message) {
45	xxx_messageInfo_Outside.Merge(m, src)
46}
47func (m *Outside) XXX_Size() int {
48	return xxx_messageInfo_Outside.Size(m)
49}
50func (m *Outside) XXX_DiscardUnknown() {
51	xxx_messageInfo_Outside.DiscardUnknown(m)
52}
53
54var xxx_messageInfo_Outside proto.InternalMessageInfo
55
56func (m *Outside) GetField2() string {
57	if m != nil && m.Field2 != nil {
58		return *m.Field2
59	}
60	return ""
61}
62
63type Inside struct {
64	Field1               *string  `protobuf:"bytes,1,opt,name=Field1" json:"MyField1" xml:",chardata"`
65	XXX_NoUnkeyedLiteral struct{} `json:"-"`
66	XXX_unrecognized     []byte   `json:"-"`
67	XXX_sizecache        int32    `json:"-"`
68}
69
70func (m *Inside) Reset()         { *m = Inside{} }
71func (m *Inside) String() string { return proto.CompactTextString(m) }
72func (*Inside) ProtoMessage()    {}
73func (*Inside) Descriptor() ([]byte, []int) {
74	return fileDescriptor_e7d9cbcae1e528f6, []int{1}
75}
76func (m *Inside) XXX_Unmarshal(b []byte) error {
77	return xxx_messageInfo_Inside.Unmarshal(m, b)
78}
79func (m *Inside) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
80	return xxx_messageInfo_Inside.Marshal(b, m, deterministic)
81}
82func (m *Inside) XXX_Merge(src proto.Message) {
83	xxx_messageInfo_Inside.Merge(m, src)
84}
85func (m *Inside) XXX_Size() int {
86	return xxx_messageInfo_Inside.Size(m)
87}
88func (m *Inside) XXX_DiscardUnknown() {
89	xxx_messageInfo_Inside.DiscardUnknown(m)
90}
91
92var xxx_messageInfo_Inside proto.InternalMessageInfo
93
94func (m *Inside) GetField1() string {
95	if m != nil && m.Field1 != nil {
96		return *m.Field1
97	}
98	return ""
99}
100
101func init() {
102	proto.RegisterType((*Outside)(nil), "tags.Outside")
103	proto.RegisterType((*Inside)(nil), "tags.Inside")
104}
105
106func init() { proto.RegisterFile("tags.proto", fileDescriptor_e7d9cbcae1e528f6) }
107
108var fileDescriptor_e7d9cbcae1e528f6 = []byte{
109	// 203 bytes of a gzipped FileDescriptorProto
110	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x49, 0x4c, 0x2f,
111	0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0xa5, 0x74, 0xd3, 0x33, 0x4b, 0x32,
112	0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 0xc1, 0x92, 0x49, 0xa5,
113	0x69, 0x60, 0x1e, 0x98, 0x03, 0x66, 0x41, 0x34, 0x29, 0x15, 0x72, 0xb1, 0xfb, 0x97, 0x96, 0x14,
114	0x67, 0xa6, 0xa4, 0x0a, 0xe9, 0x71, 0xb1, 0x79, 0xe6, 0x81, 0x58, 0x12, 0x8c, 0x0a, 0x8c, 0x1a,
115	0xdc, 0x46, 0x3c, 0x7a, 0x60, 0xc3, 0x21, 0x62, 0x4e, 0x1c, 0x17, 0xee, 0xc9, 0x33, 0xbe, 0xba,
116	0x27, 0xcf, 0x10, 0x04, 0x55, 0x25, 0x64, 0xc6, 0xc5, 0xe6, 0x96, 0x99, 0x9a, 0x93, 0x62, 0x24,
117	0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0xe9, 0x24, 0xf7, 0xea, 0x9e, 0x3c, 0x87, 0x6f, 0x25, 0x44, 0xec,
118	0xd3, 0x3d, 0x79, 0xbe, 0x8a, 0xdc, 0x1c, 0x2b, 0x25, 0x9d, 0xe4, 0xfc, 0xdc, 0xdc, 0xd4, 0xbc,
119	0x12, 0xa5, 0x20, 0xa8, 0x6a, 0x25, 0x47, 0x98, 0x3d, 0x42, 0xe6, 0x50, 0x13, 0x0c, 0xc1, 0x36,
120	0x72, 0x3a, 0xc9, 0x23, 0x99, 0x60, 0xf8, 0xe9, 0x9e, 0x3c, 0x3f, 0xd4, 0x84, 0x8c, 0xc4, 0xa2,
121	0x94, 0xc4, 0x92, 0x44, 0x98, 0x11, 0x86, 0x4e, 0x2c, 0x3f, 0x1e, 0xca, 0x31, 0x02, 0x02, 0x00,
122	0x00, 0xff, 0xff, 0x57, 0x12, 0x09, 0x10, 0xfd, 0x00, 0x00, 0x00,
123}
124
125func NewPopulatedOutside(r randyTags, easy bool) *Outside {
126	this := &Outside{}
127	if r.Intn(10) != 0 {
128		this.Inside = NewPopulatedInside(r, easy)
129	}
130	if r.Intn(10) != 0 {
131		v1 := string(randStringTags(r))
132		this.Field2 = &v1
133	}
134	if !easy && r.Intn(10) != 0 {
135		this.XXX_unrecognized = randUnrecognizedTags(r, 3)
136	}
137	return this
138}
139
140func NewPopulatedInside(r randyTags, easy bool) *Inside {
141	this := &Inside{}
142	if r.Intn(10) != 0 {
143		v2 := string(randStringTags(r))
144		this.Field1 = &v2
145	}
146	if !easy && r.Intn(10) != 0 {
147		this.XXX_unrecognized = randUnrecognizedTags(r, 2)
148	}
149	return this
150}
151
152type randyTags interface {
153	Float32() float32
154	Float64() float64
155	Int63() int64
156	Int31() int32
157	Uint32() uint32
158	Intn(n int) int
159}
160
161func randUTF8RuneTags(r randyTags) rune {
162	ru := r.Intn(62)
163	if ru < 10 {
164		return rune(ru + 48)
165	} else if ru < 36 {
166		return rune(ru + 55)
167	}
168	return rune(ru + 61)
169}
170func randStringTags(r randyTags) string {
171	v3 := r.Intn(100)
172	tmps := make([]rune, v3)
173	for i := 0; i < v3; i++ {
174		tmps[i] = randUTF8RuneTags(r)
175	}
176	return string(tmps)
177}
178func randUnrecognizedTags(r randyTags, maxFieldNumber int) (dAtA []byte) {
179	l := r.Intn(5)
180	for i := 0; i < l; i++ {
181		wire := r.Intn(4)
182		if wire == 3 {
183			wire = 5
184		}
185		fieldNumber := maxFieldNumber + r.Intn(100)
186		dAtA = randFieldTags(dAtA, r, fieldNumber, wire)
187	}
188	return dAtA
189}
190func randFieldTags(dAtA []byte, r randyTags, fieldNumber int, wire int) []byte {
191	key := uint32(fieldNumber)<<3 | uint32(wire)
192	switch wire {
193	case 0:
194		dAtA = encodeVarintPopulateTags(dAtA, uint64(key))
195		v4 := r.Int63()
196		if r.Intn(2) == 0 {
197			v4 *= -1
198		}
199		dAtA = encodeVarintPopulateTags(dAtA, uint64(v4))
200	case 1:
201		dAtA = encodeVarintPopulateTags(dAtA, uint64(key))
202		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)))
203	case 2:
204		dAtA = encodeVarintPopulateTags(dAtA, uint64(key))
205		ll := r.Intn(100)
206		dAtA = encodeVarintPopulateTags(dAtA, uint64(ll))
207		for j := 0; j < ll; j++ {
208			dAtA = append(dAtA, byte(r.Intn(256)))
209		}
210	default:
211		dAtA = encodeVarintPopulateTags(dAtA, uint64(key))
212		dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
213	}
214	return dAtA
215}
216func encodeVarintPopulateTags(dAtA []byte, v uint64) []byte {
217	for v >= 1<<7 {
218		dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
219		v >>= 7
220	}
221	dAtA = append(dAtA, uint8(v))
222	return dAtA
223}
224