OLD | NEW |
1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
2 // source: unmarshal_test.proto | 2 // source: unmarshal_test.proto |
3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
4 | 4 |
5 /* | 5 /* |
6 Package flagpb is a generated protocol buffer package. | 6 Package flagpb is a generated protocol buffer package. |
7 | 7 |
8 It is generated from these files: | 8 It is generated from these files: |
9 unmarshal_test.proto | 9 unmarshal_test.proto |
10 | 10 |
11 It has these top-level messages: | 11 It has these top-level messages: |
12 M1 | 12 M1 |
13 M2 | 13 M2 |
14 M3 | 14 M3 |
| 15 MapContainer |
15 */ | 16 */ |
16 package flagpb | 17 package flagpb |
17 | 18 |
18 import proto "github.com/golang/protobuf/proto" | 19 import proto "github.com/golang/protobuf/proto" |
19 import fmt "fmt" | 20 import fmt "fmt" |
20 import math "math" | 21 import math "math" |
21 | 22 |
22 // Reference imports to suppress errors if they are not otherwise used. | 23 // Reference imports to suppress errors if they are not otherwise used. |
23 var _ = proto.Marshal | 24 var _ = proto.Marshal |
24 var _ = fmt.Errorf | 25 var _ = fmt.Errorf |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 return nil | 101 return nil |
101 } | 102 } |
102 | 103 |
103 func (m *M3) GetM2() *M2 { | 104 func (m *M3) GetM2() *M2 { |
104 if m != nil { | 105 if m != nil { |
105 return m.M2 | 106 return m.M2 |
106 } | 107 } |
107 return nil | 108 return nil |
108 } | 109 } |
109 | 110 |
| 111 type MapContainer struct { |
| 112 Ss map[string]string `protobuf:"bytes,1,rep,name=ss" json:"ss,omitempty
" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 113 Ii map[int32]int32 `protobuf:"bytes,2,rep,name=ii" json:"ii,omitempty
" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| 114 Sm1 map[string]*M1 `protobuf:"bytes,3,rep,name=sm1" json:"sm1,omitemp
ty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 115 } |
| 116 |
| 117 func (m *MapContainer) Reset() { *m = MapContainer{} } |
| 118 func (m *MapContainer) String() string { return proto.CompactTextStri
ng(m) } |
| 119 func (*MapContainer) ProtoMessage() {} |
| 120 func (*MapContainer) Descriptor() ([]byte, []int) { return fileDescriptor0, []in
t{3} } |
| 121 |
| 122 func (m *MapContainer) GetSs() map[string]string { |
| 123 if m != nil { |
| 124 return m.Ss |
| 125 } |
| 126 return nil |
| 127 } |
| 128 |
| 129 func (m *MapContainer) GetIi() map[int32]int32 { |
| 130 if m != nil { |
| 131 return m.Ii |
| 132 } |
| 133 return nil |
| 134 } |
| 135 |
| 136 func (m *MapContainer) GetSm1() map[string]*M1 { |
| 137 if m != nil { |
| 138 return m.Sm1 |
| 139 } |
| 140 return nil |
| 141 } |
| 142 |
110 func init() { | 143 func init() { |
111 proto.RegisterType((*M1)(nil), "flagpb.M1") | 144 proto.RegisterType((*M1)(nil), "flagpb.M1") |
112 proto.RegisterType((*M2)(nil), "flagpb.M2") | 145 proto.RegisterType((*M2)(nil), "flagpb.M2") |
113 proto.RegisterType((*M3)(nil), "flagpb.M3") | 146 proto.RegisterType((*M3)(nil), "flagpb.M3") |
| 147 proto.RegisterType((*MapContainer)(nil), "flagpb.MapContainer") |
114 proto.RegisterEnum("flagpb.E", E_name, E_value) | 148 proto.RegisterEnum("flagpb.E", E_name, E_value) |
115 } | 149 } |
116 | 150 |
117 var fileDescriptor0 = []byte{ | 151 var fileDescriptor0 = []byte{ |
118 » // 227 bytes of a gzipped FileDescriptorProto | 152 » // 350 bytes of a gzipped FileDescriptorProto |
119 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x90,
0x31, 0x4f, 0xc3, 0x30, | 153 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x52,
0x41, 0x4b, 0xc3, 0x30, |
120 » 0x10, 0x85, 0x39, 0xbb, 0xb5, 0xda, 0xa3, 0xaa, 0x2a, 0x83, 0x84, 0xc5,
0x54, 0x65, 0x42, 0x0c, | 154 » 0x14, 0x36, 0xc9, 0x5a, 0xb7, 0xe7, 0x18, 0x23, 0x0e, 0x2c, 0x43, 0x61,
0xf4, 0x24, 0x22, 0xd5, |
121 » 0x11, 0x76, 0x27, 0x7e, 0x40, 0xc7, 0x2e, 0x1e, 0x18, 0x41, 0xb1, 0x14,
0x68, 0xa4, 0x84, 0x44, | 155 » 0x76, 0x08, 0xea, 0x51, 0xd9, 0xc1, 0xc3, 0x2e, 0x11, 0x3c, 0x2a, 0x0d,
0x54, 0x17, 0xdc, 0xba, |
122 » 0xb1, 0xf9, 0xff, 0x9c, 0x2f, 0x4a, 0xc4, 0xc0, 0xe4, 0x7b, 0xfe, 0xf4,
0xfc, 0xde, 0x19, 0xef, | 156 » 0xd1, 0x64, 0xc2, 0x7e, 0xa4, 0xff, 0xc9, 0x97, 0xb4, 0x9d, 0x15, 0xea,
0xa9, 0xef, 0xeb, 0xf7, |
123 » 0x7f, 0xbe, 0xbb, 0x6a, 0x8c, 0xd7, 0xaa, 0xfd, 0x48, 0x75, 0x4c, 0xe5,
0x30, 0xf6, 0xa9, 0xd7, | 157 » 0x7d, 0xef, 0x7b, 0x2f, 0x09, 0x8c, 0xb6, 0xf9, 0x2a, 0x2d, 0xf4, 0x22,
0x5d, 0xbe, 0x99, 0x4c, |
124 » 0xea, 0xb3, 0xad, 0xbe, 0x86, 0x50, 0xbc, 0xa3, 0xb8, 0x58, 0xbd, 0x43,
0x88, 0x06, 0x8e, 0xf0, | 158 » 0x9b, 0x68, 0x53, 0xac, 0xcd, 0x9a, 0xfb, 0xef, 0xcb, 0xf4, 0x63, 0x23,
0xc3, 0x57, 0xa0, 0xf3, |
125 » 0xb4, 0xf5, 0x10, 0xb3, 0x6a, 0x8c, 0x20, 0xb5, 0xf6, 0xd0, 0xe8, 0x3d,
0x8a, 0xb1, 0x31, 0xf2, | 159 » 0x98, 0xf7, 0x81, 0xe8, 0x80, 0x4c, 0xc8, 0x79, 0x4f, 0x10, 0x6d, 0x91,
0x0a, 0x28, 0x22, 0x4f, |
126 » 0x28, 0x49, 0xd2, 0x94, 0x69, 0x30, 0x2b, 0xa2, 0x1b, 0x0f, 0x81, 0x69,
0x30, 0x8a, 0xe8, 0x86, | 160 » 0x10, 0xc5, 0x07, 0x40, 0x0b, 0x15, 0xb0, 0x09, 0x43, 0x88, 0x95, 0x65,
0x65, 0xd0, 0x41, 0xb6, |
127 » 0x28, 0xeb, 0x10, 0xcc, 0x9a, 0xf0, 0xce, 0xd3, 0x54, 0xbc, 0xd2, 0xfb,
0x4e, 0x3f, 0xa2, 0xe8, | 161 » 0x2b, 0x88, 0x74, 0xac, 0x0c, 0x7c, 0x64, 0xbb, 0xc8, 0x3a, 0x2c, 0x65,
0xe0, 0x21, 0xdd, 0x17, |
128 » 0x2c, 0x07, 0xdc, 0x3a, 0x2c, 0xa7, 0xe8, 0xf2, 0x62, 0x3d, 0xdd, 0xea,
0x07, 0x84, 0x9a, 0xd3, | 162 » 0x58, 0x85, 0x77, 0xd8, 0x3f, 0xe1, 0x63, 0xa0, 0xab, 0xd8, 0x05, 0x1c,
0x25, 0x10, 0x95, 0xd1, |
129 » 0xf6, 0x6e, 0x3b, 0xa3, 0xb3, 0x87, 0xba, 0xb8, 0x92, 0xf5, 0xb4, 0x58,
0xe5, 0x3f, 0xd6, 0xcc, | 163 » 0xd1, 0x3c, 0x16, 0xf8, 0x97, 0x9f, 0x00, 0xc9, 0x5c, 0xda, 0x20, 0xe9,
0xd5, 0xd4, 0x4c, 0x90, |
130 » 0x1c, 0x7b, 0xff, 0x32, 0x47, 0xcc, 0x4d, 0x35, 0xe5, 0x5c, 0x93, 0x17,
0x5c, 0xcd, 0x0b, 0xe6, | 164 » 0x2c, 0x5c, 0xa0, 0x75, 0xba, 0xb7, 0xb2, 0x16, 0xab, 0xe5, 0x12, 0xe7,
0x6d, 0x72, 0x09, 0x72, |
131 » 0x92, 0x69, 0x29, 0x99, 0x9e, 0xef, 0x10, 0xce, 0x5a, 0xa1, 0x78, 0x7b,
0x39, 0xdc, 0xf0, 0x69, | 165 » 0x49, 0x39, 0x26, 0xab, 0xc7, 0x74, 0x0b, 0x76, 0xea, 0x05, 0xed, 0x90,
0x66, 0x3f, 0xa4, 0x09, |
132 » 0x0f, 0x10, 0x14, 0x7f, 0xd4, 0xe9, 0x37, 0x00, 0x00, 0xff, 0xff, 0x02,
0xfe, 0x6a, 0x00, 0x40, | 166 » 0xbf, 0x29, 0xf4, 0xe7, 0xe9, 0xe6, 0x71, 0x9d, 0x9b, 0x54, 0xe5, 0x59,
0xc1, 0x2f, 0x81, 0x6a, |
133 » 0x01, 0x00, 0x00, | 167 » 0x5d, 0x85, 0x9e, 0xee, 0x1b, 0x37, 0x14, 0xd1, 0xb3, 0x9e, 0xe5, 0xa6,
0xd8, 0x09, 0xd4, 0x59, |
| 168 » 0xb5, 0xb2, 0x07, 0xf6, 0xbf, 0xfa, 0x49, 0x55, 0x6a, 0xa5, 0xf8, 0x15,
0x30, 0x8d, 0x1b, 0x31, |
| 169 » 0x27, 0x3f, 0x6b, 0x6f, 0xbe, 0x8a, 0x4b, 0xbd, 0x55, 0x8e, 0x6f, 0xe0,
0xb0, 0x4a, 0xe3, 0x43, |
| 170 » 0x60, 0x9f, 0xd9, 0xae, 0xba, 0x29, 0x5b, 0xf2, 0x11, 0x78, 0x5f, 0xe9,
0x72, 0x5b, 0x9e, 0x60, |
| 171 » 0x4f, 0x94, 0xe0, 0x9e, 0xde, 0x12, 0x6b, 0xab, 0x62, 0x9b, 0x36, 0xaf,
0xc5, 0xe6, 0x35, 0x6d, |
| 172 » 0x0f, 0xd0, 0xad, 0xe3, 0x5b, 0xe2, 0x26, 0x4d, 0xdf, 0xdf, 0x0b, 0xf9,
0xed, 0x71, 0x71, 0x0c, |
| 173 » 0x64, 0xc6, 0x7d, 0xa0, 0x2f, 0xd7, 0xc3, 0x03, 0xf7, 0x8d, 0x87, 0x44,
0xfa, 0xee, 0xe1, 0x4d, |
| 174 » 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcf, 0xa0, 0xa7, 0xeb, 0x90, 0x02,
0x00, 0x00, |
134 } | 175 } |
OLD | NEW |