(dAtA []byte)
| 4121 | } |
| 4122 | |
| 4123 | func (m *TraceByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 4124 | i := len(dAtA) |
| 4125 | _ = i |
| 4126 | var l int |
| 4127 | _ = l |
| 4128 | if len(m.Message) > 0 { |
| 4129 | i -= len(m.Message) |
| 4130 | copy(dAtA[i:], m.Message) |
| 4131 | i = encodeVarintTempo(dAtA, i, uint64(len(m.Message))) |
| 4132 | i-- |
| 4133 | dAtA[i] = 0x22 |
| 4134 | } |
| 4135 | if m.Status != 0 { |
| 4136 | i = encodeVarintTempo(dAtA, i, uint64(m.Status)) |
| 4137 | i-- |
| 4138 | dAtA[i] = 0x18 |
| 4139 | } |
| 4140 | if m.Metrics != nil { |
| 4141 | { |
| 4142 | size, err := m.Metrics.MarshalToSizedBuffer(dAtA[:i]) |
| 4143 | if err != nil { |
| 4144 | return 0, err |
| 4145 | } |
| 4146 | i -= size |
| 4147 | i = encodeVarintTempo(dAtA, i, uint64(size)) |
| 4148 | } |
| 4149 | i-- |
| 4150 | dAtA[i] = 0x12 |
| 4151 | } |
| 4152 | if m.Trace != nil { |
| 4153 | { |
| 4154 | size, err := m.Trace.MarshalToSizedBuffer(dAtA[:i]) |
| 4155 | if err != nil { |
| 4156 | return 0, err |
| 4157 | } |
| 4158 | i -= size |
| 4159 | i = encodeVarintTempo(dAtA, i, uint64(size)) |
| 4160 | } |
| 4161 | i-- |
| 4162 | dAtA[i] = 0xa |
| 4163 | } |
| 4164 | return len(dAtA) - i, nil |
| 4165 | } |
| 4166 | |
| 4167 | func (m *TraceByIDMetrics) Marshal() (dAtA []byte, err error) { |
| 4168 | size := m.Size() |
no test coverage detected