(dAtA []byte)
| 5166 | return nil |
| 5167 | } |
| 5168 | func (m *MetadataV2) Unmarshal(dAtA []byte) error { |
| 5169 | l := len(dAtA) |
| 5170 | iNdEx := 0 |
| 5171 | for iNdEx < l { |
| 5172 | preIndex := iNdEx |
| 5173 | var wire uint64 |
| 5174 | for shift := uint(0); ; shift += 7 { |
| 5175 | if shift >= 64 { |
| 5176 | return ErrIntOverflowCortex |
| 5177 | } |
| 5178 | if iNdEx >= l { |
| 5179 | return io.ErrUnexpectedEOF |
| 5180 | } |
| 5181 | b := dAtA[iNdEx] |
| 5182 | iNdEx++ |
| 5183 | wire |= uint64(b&0x7F) << shift |
| 5184 | if b < 0x80 { |
| 5185 | break |
| 5186 | } |
| 5187 | } |
| 5188 | fieldNum := int32(wire >> 3) |
| 5189 | wireType := int(wire & 0x7) |
| 5190 | if wireType == 4 { |
| 5191 | return fmt.Errorf("proto: MetadataV2: wiretype end group for non-group") |
| 5192 | } |
| 5193 | if fieldNum <= 0 { |
| 5194 | return fmt.Errorf("proto: MetadataV2: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5195 | } |
| 5196 | switch fieldNum { |
| 5197 | case 1: |
| 5198 | if wireType != 0 { |
| 5199 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 5200 | } |
| 5201 | m.Type = 0 |
| 5202 | for shift := uint(0); ; shift += 7 { |
| 5203 | if shift >= 64 { |
| 5204 | return ErrIntOverflowCortex |
| 5205 | } |
| 5206 | if iNdEx >= l { |
| 5207 | return io.ErrUnexpectedEOF |
| 5208 | } |
| 5209 | b := dAtA[iNdEx] |
| 5210 | iNdEx++ |
| 5211 | m.Type |= MetadataV2_MetricType(b&0x7F) << shift |
| 5212 | if b < 0x80 { |
| 5213 | break |
| 5214 | } |
| 5215 | } |
| 5216 | case 3: |
| 5217 | if wireType != 0 { |
| 5218 | return fmt.Errorf("proto: wrong wireType = %d for field HelpRef", wireType) |
| 5219 | } |
| 5220 | m.HelpRef = 0 |
| 5221 | for shift := uint(0); ; shift += 7 { |
| 5222 | if shift >= 64 { |
| 5223 | return ErrIntOverflowCortex |
| 5224 | } |
| 5225 | if iNdEx >= l { |
no test coverage detected