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