@@ -122,6 +122,7 @@ func (p *Profile) preEncode() {
122122 }
123123
124124 p .defaultSampleTypeX = addString (strings , p .DefaultSampleType )
125+ p .docURLX = addString (strings , p .DocURL )
125126
126127 p .stringTable = make ([]string , len (strings ))
127128 for s , i := range strings {
@@ -156,6 +157,7 @@ func (p *Profile) encode(b *buffer) {
156157 encodeInt64Opt (b , 12 , p .Period )
157158 encodeInt64s (b , 13 , p .commentX )
158159 encodeInt64 (b , 14 , p .defaultSampleTypeX )
160+ encodeInt64Opt (b , 15 , p .docURLX )
159161}
160162
161163var profileDecoder = []decoder {
@@ -237,6 +239,8 @@ var profileDecoder = []decoder{
237239 func (b * buffer , m message ) error { return decodeInt64s (b , & m .(* Profile ).commentX ) },
238240 // int64 defaultSampleType = 14
239241 func (b * buffer , m message ) error { return decodeInt64 (b , & m .(* Profile ).defaultSampleTypeX ) },
242+ // string doc_link = 15;
243+ func (b * buffer , m message ) error { return decodeInt64 (b , & m .(* Profile ).docURLX ) },
240244}
241245
242246// postDecode takes the unexported fields populated by decode (with
@@ -384,6 +388,7 @@ func (p *Profile) postDecode() error {
384388
385389 p .commentX = nil
386390 p .DefaultSampleType , err = getString (p .stringTable , & p .defaultSampleTypeX , err )
391+ p .DocURL , err = getString (p .stringTable , & p .docURLX , err )
387392 p .stringTable = nil
388393 return err
389394}
0 commit comments