github.com/lirm/aeron-go@v0.0.0-20230415210743-920325491dc4/archive/codecs/RecordingDescriptor.go (about)

     1  // Generated SBE (Simple Binary Encoding) message codec
     2  
     3  package codecs
     4  
     5  import (
     6  	"fmt"
     7  	"io"
     8  	"io/ioutil"
     9  	"math"
    10  )
    11  
    12  type RecordingDescriptor struct {
    13  	ControlSessionId  int64
    14  	CorrelationId     int64
    15  	RecordingId       int64
    16  	StartTimestamp    int64
    17  	StopTimestamp     int64
    18  	StartPosition     int64
    19  	StopPosition      int64
    20  	InitialTermId     int32
    21  	SegmentFileLength int32
    22  	TermBufferLength  int32
    23  	MtuLength         int32
    24  	SessionId         int32
    25  	StreamId          int32
    26  	StrippedChannel   []uint8
    27  	OriginalChannel   []uint8
    28  	SourceIdentity    []uint8
    29  }
    30  
    31  func (r *RecordingDescriptor) Encode(_m *SbeGoMarshaller, _w io.Writer, doRangeCheck bool) error {
    32  	if doRangeCheck {
    33  		if err := r.RangeCheck(r.SbeSchemaVersion(), r.SbeSchemaVersion()); err != nil {
    34  			return err
    35  		}
    36  	}
    37  	if err := _m.WriteInt64(_w, r.ControlSessionId); err != nil {
    38  		return err
    39  	}
    40  	if err := _m.WriteInt64(_w, r.CorrelationId); err != nil {
    41  		return err
    42  	}
    43  	if err := _m.WriteInt64(_w, r.RecordingId); err != nil {
    44  		return err
    45  	}
    46  	if err := _m.WriteInt64(_w, r.StartTimestamp); err != nil {
    47  		return err
    48  	}
    49  	if err := _m.WriteInt64(_w, r.StopTimestamp); err != nil {
    50  		return err
    51  	}
    52  	if err := _m.WriteInt64(_w, r.StartPosition); err != nil {
    53  		return err
    54  	}
    55  	if err := _m.WriteInt64(_w, r.StopPosition); err != nil {
    56  		return err
    57  	}
    58  	if err := _m.WriteInt32(_w, r.InitialTermId); err != nil {
    59  		return err
    60  	}
    61  	if err := _m.WriteInt32(_w, r.SegmentFileLength); err != nil {
    62  		return err
    63  	}
    64  	if err := _m.WriteInt32(_w, r.TermBufferLength); err != nil {
    65  		return err
    66  	}
    67  	if err := _m.WriteInt32(_w, r.MtuLength); err != nil {
    68  		return err
    69  	}
    70  	if err := _m.WriteInt32(_w, r.SessionId); err != nil {
    71  		return err
    72  	}
    73  	if err := _m.WriteInt32(_w, r.StreamId); err != nil {
    74  		return err
    75  	}
    76  	if err := _m.WriteUint32(_w, uint32(len(r.StrippedChannel))); err != nil {
    77  		return err
    78  	}
    79  	if err := _m.WriteBytes(_w, r.StrippedChannel); err != nil {
    80  		return err
    81  	}
    82  	if err := _m.WriteUint32(_w, uint32(len(r.OriginalChannel))); err != nil {
    83  		return err
    84  	}
    85  	if err := _m.WriteBytes(_w, r.OriginalChannel); err != nil {
    86  		return err
    87  	}
    88  	if err := _m.WriteUint32(_w, uint32(len(r.SourceIdentity))); err != nil {
    89  		return err
    90  	}
    91  	if err := _m.WriteBytes(_w, r.SourceIdentity); err != nil {
    92  		return err
    93  	}
    94  	return nil
    95  }
    96  
    97  func (r *RecordingDescriptor) Decode(_m *SbeGoMarshaller, _r io.Reader, actingVersion uint16, blockLength uint16, doRangeCheck bool) error {
    98  	if !r.ControlSessionIdInActingVersion(actingVersion) {
    99  		r.ControlSessionId = r.ControlSessionIdNullValue()
   100  	} else {
   101  		if err := _m.ReadInt64(_r, &r.ControlSessionId); err != nil {
   102  			return err
   103  		}
   104  	}
   105  	if !r.CorrelationIdInActingVersion(actingVersion) {
   106  		r.CorrelationId = r.CorrelationIdNullValue()
   107  	} else {
   108  		if err := _m.ReadInt64(_r, &r.CorrelationId); err != nil {
   109  			return err
   110  		}
   111  	}
   112  	if !r.RecordingIdInActingVersion(actingVersion) {
   113  		r.RecordingId = r.RecordingIdNullValue()
   114  	} else {
   115  		if err := _m.ReadInt64(_r, &r.RecordingId); err != nil {
   116  			return err
   117  		}
   118  	}
   119  	if !r.StartTimestampInActingVersion(actingVersion) {
   120  		r.StartTimestamp = r.StartTimestampNullValue()
   121  	} else {
   122  		if err := _m.ReadInt64(_r, &r.StartTimestamp); err != nil {
   123  			return err
   124  		}
   125  	}
   126  	if !r.StopTimestampInActingVersion(actingVersion) {
   127  		r.StopTimestamp = r.StopTimestampNullValue()
   128  	} else {
   129  		if err := _m.ReadInt64(_r, &r.StopTimestamp); err != nil {
   130  			return err
   131  		}
   132  	}
   133  	if !r.StartPositionInActingVersion(actingVersion) {
   134  		r.StartPosition = r.StartPositionNullValue()
   135  	} else {
   136  		if err := _m.ReadInt64(_r, &r.StartPosition); err != nil {
   137  			return err
   138  		}
   139  	}
   140  	if !r.StopPositionInActingVersion(actingVersion) {
   141  		r.StopPosition = r.StopPositionNullValue()
   142  	} else {
   143  		if err := _m.ReadInt64(_r, &r.StopPosition); err != nil {
   144  			return err
   145  		}
   146  	}
   147  	if !r.InitialTermIdInActingVersion(actingVersion) {
   148  		r.InitialTermId = r.InitialTermIdNullValue()
   149  	} else {
   150  		if err := _m.ReadInt32(_r, &r.InitialTermId); err != nil {
   151  			return err
   152  		}
   153  	}
   154  	if !r.SegmentFileLengthInActingVersion(actingVersion) {
   155  		r.SegmentFileLength = r.SegmentFileLengthNullValue()
   156  	} else {
   157  		if err := _m.ReadInt32(_r, &r.SegmentFileLength); err != nil {
   158  			return err
   159  		}
   160  	}
   161  	if !r.TermBufferLengthInActingVersion(actingVersion) {
   162  		r.TermBufferLength = r.TermBufferLengthNullValue()
   163  	} else {
   164  		if err := _m.ReadInt32(_r, &r.TermBufferLength); err != nil {
   165  			return err
   166  		}
   167  	}
   168  	if !r.MtuLengthInActingVersion(actingVersion) {
   169  		r.MtuLength = r.MtuLengthNullValue()
   170  	} else {
   171  		if err := _m.ReadInt32(_r, &r.MtuLength); err != nil {
   172  			return err
   173  		}
   174  	}
   175  	if !r.SessionIdInActingVersion(actingVersion) {
   176  		r.SessionId = r.SessionIdNullValue()
   177  	} else {
   178  		if err := _m.ReadInt32(_r, &r.SessionId); err != nil {
   179  			return err
   180  		}
   181  	}
   182  	if !r.StreamIdInActingVersion(actingVersion) {
   183  		r.StreamId = r.StreamIdNullValue()
   184  	} else {
   185  		if err := _m.ReadInt32(_r, &r.StreamId); err != nil {
   186  			return err
   187  		}
   188  	}
   189  	if actingVersion > r.SbeSchemaVersion() && blockLength > r.SbeBlockLength() {
   190  		io.CopyN(ioutil.Discard, _r, int64(blockLength-r.SbeBlockLength()))
   191  	}
   192  
   193  	if r.StrippedChannelInActingVersion(actingVersion) {
   194  		var StrippedChannelLength uint32
   195  		if err := _m.ReadUint32(_r, &StrippedChannelLength); err != nil {
   196  			return err
   197  		}
   198  		if cap(r.StrippedChannel) < int(StrippedChannelLength) {
   199  			r.StrippedChannel = make([]uint8, StrippedChannelLength)
   200  		}
   201  		r.StrippedChannel = r.StrippedChannel[:StrippedChannelLength]
   202  		if err := _m.ReadBytes(_r, r.StrippedChannel); err != nil {
   203  			return err
   204  		}
   205  	}
   206  
   207  	if r.OriginalChannelInActingVersion(actingVersion) {
   208  		var OriginalChannelLength uint32
   209  		if err := _m.ReadUint32(_r, &OriginalChannelLength); err != nil {
   210  			return err
   211  		}
   212  		if cap(r.OriginalChannel) < int(OriginalChannelLength) {
   213  			r.OriginalChannel = make([]uint8, OriginalChannelLength)
   214  		}
   215  		r.OriginalChannel = r.OriginalChannel[:OriginalChannelLength]
   216  		if err := _m.ReadBytes(_r, r.OriginalChannel); err != nil {
   217  			return err
   218  		}
   219  	}
   220  
   221  	if r.SourceIdentityInActingVersion(actingVersion) {
   222  		var SourceIdentityLength uint32
   223  		if err := _m.ReadUint32(_r, &SourceIdentityLength); err != nil {
   224  			return err
   225  		}
   226  		if cap(r.SourceIdentity) < int(SourceIdentityLength) {
   227  			r.SourceIdentity = make([]uint8, SourceIdentityLength)
   228  		}
   229  		r.SourceIdentity = r.SourceIdentity[:SourceIdentityLength]
   230  		if err := _m.ReadBytes(_r, r.SourceIdentity); err != nil {
   231  			return err
   232  		}
   233  	}
   234  	if doRangeCheck {
   235  		if err := r.RangeCheck(actingVersion, r.SbeSchemaVersion()); err != nil {
   236  			return err
   237  		}
   238  	}
   239  	return nil
   240  }
   241  
   242  func (r *RecordingDescriptor) RangeCheck(actingVersion uint16, schemaVersion uint16) error {
   243  	if r.ControlSessionIdInActingVersion(actingVersion) {
   244  		if r.ControlSessionId < r.ControlSessionIdMinValue() || r.ControlSessionId > r.ControlSessionIdMaxValue() {
   245  			return fmt.Errorf("Range check failed on r.ControlSessionId (%v < %v > %v)", r.ControlSessionIdMinValue(), r.ControlSessionId, r.ControlSessionIdMaxValue())
   246  		}
   247  	}
   248  	if r.CorrelationIdInActingVersion(actingVersion) {
   249  		if r.CorrelationId < r.CorrelationIdMinValue() || r.CorrelationId > r.CorrelationIdMaxValue() {
   250  			return fmt.Errorf("Range check failed on r.CorrelationId (%v < %v > %v)", r.CorrelationIdMinValue(), r.CorrelationId, r.CorrelationIdMaxValue())
   251  		}
   252  	}
   253  	if r.RecordingIdInActingVersion(actingVersion) {
   254  		if r.RecordingId < r.RecordingIdMinValue() || r.RecordingId > r.RecordingIdMaxValue() {
   255  			return fmt.Errorf("Range check failed on r.RecordingId (%v < %v > %v)", r.RecordingIdMinValue(), r.RecordingId, r.RecordingIdMaxValue())
   256  		}
   257  	}
   258  	if r.StartTimestampInActingVersion(actingVersion) {
   259  		if r.StartTimestamp < r.StartTimestampMinValue() || r.StartTimestamp > r.StartTimestampMaxValue() {
   260  			return fmt.Errorf("Range check failed on r.StartTimestamp (%v < %v > %v)", r.StartTimestampMinValue(), r.StartTimestamp, r.StartTimestampMaxValue())
   261  		}
   262  	}
   263  	if r.StopTimestampInActingVersion(actingVersion) {
   264  		if r.StopTimestamp < r.StopTimestampMinValue() || r.StopTimestamp > r.StopTimestampMaxValue() {
   265  			return fmt.Errorf("Range check failed on r.StopTimestamp (%v < %v > %v)", r.StopTimestampMinValue(), r.StopTimestamp, r.StopTimestampMaxValue())
   266  		}
   267  	}
   268  	if r.StartPositionInActingVersion(actingVersion) {
   269  		if r.StartPosition < r.StartPositionMinValue() || r.StartPosition > r.StartPositionMaxValue() {
   270  			return fmt.Errorf("Range check failed on r.StartPosition (%v < %v > %v)", r.StartPositionMinValue(), r.StartPosition, r.StartPositionMaxValue())
   271  		}
   272  	}
   273  	if r.StopPositionInActingVersion(actingVersion) {
   274  		if r.StopPosition < r.StopPositionMinValue() || r.StopPosition > r.StopPositionMaxValue() {
   275  			return fmt.Errorf("Range check failed on r.StopPosition (%v < %v > %v)", r.StopPositionMinValue(), r.StopPosition, r.StopPositionMaxValue())
   276  		}
   277  	}
   278  	if r.InitialTermIdInActingVersion(actingVersion) {
   279  		if r.InitialTermId < r.InitialTermIdMinValue() || r.InitialTermId > r.InitialTermIdMaxValue() {
   280  			return fmt.Errorf("Range check failed on r.InitialTermId (%v < %v > %v)", r.InitialTermIdMinValue(), r.InitialTermId, r.InitialTermIdMaxValue())
   281  		}
   282  	}
   283  	if r.SegmentFileLengthInActingVersion(actingVersion) {
   284  		if r.SegmentFileLength < r.SegmentFileLengthMinValue() || r.SegmentFileLength > r.SegmentFileLengthMaxValue() {
   285  			return fmt.Errorf("Range check failed on r.SegmentFileLength (%v < %v > %v)", r.SegmentFileLengthMinValue(), r.SegmentFileLength, r.SegmentFileLengthMaxValue())
   286  		}
   287  	}
   288  	if r.TermBufferLengthInActingVersion(actingVersion) {
   289  		if r.TermBufferLength < r.TermBufferLengthMinValue() || r.TermBufferLength > r.TermBufferLengthMaxValue() {
   290  			return fmt.Errorf("Range check failed on r.TermBufferLength (%v < %v > %v)", r.TermBufferLengthMinValue(), r.TermBufferLength, r.TermBufferLengthMaxValue())
   291  		}
   292  	}
   293  	if r.MtuLengthInActingVersion(actingVersion) {
   294  		if r.MtuLength < r.MtuLengthMinValue() || r.MtuLength > r.MtuLengthMaxValue() {
   295  			return fmt.Errorf("Range check failed on r.MtuLength (%v < %v > %v)", r.MtuLengthMinValue(), r.MtuLength, r.MtuLengthMaxValue())
   296  		}
   297  	}
   298  	if r.SessionIdInActingVersion(actingVersion) {
   299  		if r.SessionId < r.SessionIdMinValue() || r.SessionId > r.SessionIdMaxValue() {
   300  			return fmt.Errorf("Range check failed on r.SessionId (%v < %v > %v)", r.SessionIdMinValue(), r.SessionId, r.SessionIdMaxValue())
   301  		}
   302  	}
   303  	if r.StreamIdInActingVersion(actingVersion) {
   304  		if r.StreamId < r.StreamIdMinValue() || r.StreamId > r.StreamIdMaxValue() {
   305  			return fmt.Errorf("Range check failed on r.StreamId (%v < %v > %v)", r.StreamIdMinValue(), r.StreamId, r.StreamIdMaxValue())
   306  		}
   307  	}
   308  	return nil
   309  }
   310  
   311  func RecordingDescriptorInit(r *RecordingDescriptor) {
   312  	return
   313  }
   314  
   315  func (*RecordingDescriptor) SbeBlockLength() (blockLength uint16) {
   316  	return 80
   317  }
   318  
   319  func (*RecordingDescriptor) SbeTemplateId() (templateId uint16) {
   320  	return 22
   321  }
   322  
   323  func (*RecordingDescriptor) SbeSchemaId() (schemaId uint16) {
   324  	return 101
   325  }
   326  
   327  func (*RecordingDescriptor) SbeSchemaVersion() (schemaVersion uint16) {
   328  	return 6
   329  }
   330  
   331  func (*RecordingDescriptor) SbeSemanticType() (semanticType []byte) {
   332  	return []byte("")
   333  }
   334  
   335  func (*RecordingDescriptor) ControlSessionIdId() uint16 {
   336  	return 1
   337  }
   338  
   339  func (*RecordingDescriptor) ControlSessionIdSinceVersion() uint16 {
   340  	return 0
   341  }
   342  
   343  func (r *RecordingDescriptor) ControlSessionIdInActingVersion(actingVersion uint16) bool {
   344  	return actingVersion >= r.ControlSessionIdSinceVersion()
   345  }
   346  
   347  func (*RecordingDescriptor) ControlSessionIdDeprecated() uint16 {
   348  	return 0
   349  }
   350  
   351  func (*RecordingDescriptor) ControlSessionIdMetaAttribute(meta int) string {
   352  	switch meta {
   353  	case 1:
   354  		return ""
   355  	case 2:
   356  		return ""
   357  	case 3:
   358  		return ""
   359  	case 4:
   360  		return "required"
   361  	}
   362  	return ""
   363  }
   364  
   365  func (*RecordingDescriptor) ControlSessionIdMinValue() int64 {
   366  	return math.MinInt64 + 1
   367  }
   368  
   369  func (*RecordingDescriptor) ControlSessionIdMaxValue() int64 {
   370  	return math.MaxInt64
   371  }
   372  
   373  func (*RecordingDescriptor) ControlSessionIdNullValue() int64 {
   374  	return math.MinInt64
   375  }
   376  
   377  func (*RecordingDescriptor) CorrelationIdId() uint16 {
   378  	return 2
   379  }
   380  
   381  func (*RecordingDescriptor) CorrelationIdSinceVersion() uint16 {
   382  	return 0
   383  }
   384  
   385  func (r *RecordingDescriptor) CorrelationIdInActingVersion(actingVersion uint16) bool {
   386  	return actingVersion >= r.CorrelationIdSinceVersion()
   387  }
   388  
   389  func (*RecordingDescriptor) CorrelationIdDeprecated() uint16 {
   390  	return 0
   391  }
   392  
   393  func (*RecordingDescriptor) CorrelationIdMetaAttribute(meta int) string {
   394  	switch meta {
   395  	case 1:
   396  		return ""
   397  	case 2:
   398  		return ""
   399  	case 3:
   400  		return ""
   401  	case 4:
   402  		return "required"
   403  	}
   404  	return ""
   405  }
   406  
   407  func (*RecordingDescriptor) CorrelationIdMinValue() int64 {
   408  	return math.MinInt64 + 1
   409  }
   410  
   411  func (*RecordingDescriptor) CorrelationIdMaxValue() int64 {
   412  	return math.MaxInt64
   413  }
   414  
   415  func (*RecordingDescriptor) CorrelationIdNullValue() int64 {
   416  	return math.MinInt64
   417  }
   418  
   419  func (*RecordingDescriptor) RecordingIdId() uint16 {
   420  	return 3
   421  }
   422  
   423  func (*RecordingDescriptor) RecordingIdSinceVersion() uint16 {
   424  	return 0
   425  }
   426  
   427  func (r *RecordingDescriptor) RecordingIdInActingVersion(actingVersion uint16) bool {
   428  	return actingVersion >= r.RecordingIdSinceVersion()
   429  }
   430  
   431  func (*RecordingDescriptor) RecordingIdDeprecated() uint16 {
   432  	return 0
   433  }
   434  
   435  func (*RecordingDescriptor) RecordingIdMetaAttribute(meta int) string {
   436  	switch meta {
   437  	case 1:
   438  		return ""
   439  	case 2:
   440  		return ""
   441  	case 3:
   442  		return ""
   443  	case 4:
   444  		return "required"
   445  	}
   446  	return ""
   447  }
   448  
   449  func (*RecordingDescriptor) RecordingIdMinValue() int64 {
   450  	return math.MinInt64 + 1
   451  }
   452  
   453  func (*RecordingDescriptor) RecordingIdMaxValue() int64 {
   454  	return math.MaxInt64
   455  }
   456  
   457  func (*RecordingDescriptor) RecordingIdNullValue() int64 {
   458  	return math.MinInt64
   459  }
   460  
   461  func (*RecordingDescriptor) StartTimestampId() uint16 {
   462  	return 4
   463  }
   464  
   465  func (*RecordingDescriptor) StartTimestampSinceVersion() uint16 {
   466  	return 0
   467  }
   468  
   469  func (r *RecordingDescriptor) StartTimestampInActingVersion(actingVersion uint16) bool {
   470  	return actingVersion >= r.StartTimestampSinceVersion()
   471  }
   472  
   473  func (*RecordingDescriptor) StartTimestampDeprecated() uint16 {
   474  	return 0
   475  }
   476  
   477  func (*RecordingDescriptor) StartTimestampMetaAttribute(meta int) string {
   478  	switch meta {
   479  	case 1:
   480  		return ""
   481  	case 2:
   482  		return ""
   483  	case 3:
   484  		return ""
   485  	case 4:
   486  		return "required"
   487  	}
   488  	return ""
   489  }
   490  
   491  func (*RecordingDescriptor) StartTimestampMinValue() int64 {
   492  	return math.MinInt64 + 1
   493  }
   494  
   495  func (*RecordingDescriptor) StartTimestampMaxValue() int64 {
   496  	return math.MaxInt64
   497  }
   498  
   499  func (*RecordingDescriptor) StartTimestampNullValue() int64 {
   500  	return math.MinInt64
   501  }
   502  
   503  func (*RecordingDescriptor) StopTimestampId() uint16 {
   504  	return 5
   505  }
   506  
   507  func (*RecordingDescriptor) StopTimestampSinceVersion() uint16 {
   508  	return 0
   509  }
   510  
   511  func (r *RecordingDescriptor) StopTimestampInActingVersion(actingVersion uint16) bool {
   512  	return actingVersion >= r.StopTimestampSinceVersion()
   513  }
   514  
   515  func (*RecordingDescriptor) StopTimestampDeprecated() uint16 {
   516  	return 0
   517  }
   518  
   519  func (*RecordingDescriptor) StopTimestampMetaAttribute(meta int) string {
   520  	switch meta {
   521  	case 1:
   522  		return ""
   523  	case 2:
   524  		return ""
   525  	case 3:
   526  		return ""
   527  	case 4:
   528  		return "required"
   529  	}
   530  	return ""
   531  }
   532  
   533  func (*RecordingDescriptor) StopTimestampMinValue() int64 {
   534  	return math.MinInt64 + 1
   535  }
   536  
   537  func (*RecordingDescriptor) StopTimestampMaxValue() int64 {
   538  	return math.MaxInt64
   539  }
   540  
   541  func (*RecordingDescriptor) StopTimestampNullValue() int64 {
   542  	return math.MinInt64
   543  }
   544  
   545  func (*RecordingDescriptor) StartPositionId() uint16 {
   546  	return 6
   547  }
   548  
   549  func (*RecordingDescriptor) StartPositionSinceVersion() uint16 {
   550  	return 0
   551  }
   552  
   553  func (r *RecordingDescriptor) StartPositionInActingVersion(actingVersion uint16) bool {
   554  	return actingVersion >= r.StartPositionSinceVersion()
   555  }
   556  
   557  func (*RecordingDescriptor) StartPositionDeprecated() uint16 {
   558  	return 0
   559  }
   560  
   561  func (*RecordingDescriptor) StartPositionMetaAttribute(meta int) string {
   562  	switch meta {
   563  	case 1:
   564  		return ""
   565  	case 2:
   566  		return ""
   567  	case 3:
   568  		return ""
   569  	case 4:
   570  		return "required"
   571  	}
   572  	return ""
   573  }
   574  
   575  func (*RecordingDescriptor) StartPositionMinValue() int64 {
   576  	return math.MinInt64 + 1
   577  }
   578  
   579  func (*RecordingDescriptor) StartPositionMaxValue() int64 {
   580  	return math.MaxInt64
   581  }
   582  
   583  func (*RecordingDescriptor) StartPositionNullValue() int64 {
   584  	return math.MinInt64
   585  }
   586  
   587  func (*RecordingDescriptor) StopPositionId() uint16 {
   588  	return 7
   589  }
   590  
   591  func (*RecordingDescriptor) StopPositionSinceVersion() uint16 {
   592  	return 0
   593  }
   594  
   595  func (r *RecordingDescriptor) StopPositionInActingVersion(actingVersion uint16) bool {
   596  	return actingVersion >= r.StopPositionSinceVersion()
   597  }
   598  
   599  func (*RecordingDescriptor) StopPositionDeprecated() uint16 {
   600  	return 0
   601  }
   602  
   603  func (*RecordingDescriptor) StopPositionMetaAttribute(meta int) string {
   604  	switch meta {
   605  	case 1:
   606  		return ""
   607  	case 2:
   608  		return ""
   609  	case 3:
   610  		return ""
   611  	case 4:
   612  		return "required"
   613  	}
   614  	return ""
   615  }
   616  
   617  func (*RecordingDescriptor) StopPositionMinValue() int64 {
   618  	return math.MinInt64 + 1
   619  }
   620  
   621  func (*RecordingDescriptor) StopPositionMaxValue() int64 {
   622  	return math.MaxInt64
   623  }
   624  
   625  func (*RecordingDescriptor) StopPositionNullValue() int64 {
   626  	return math.MinInt64
   627  }
   628  
   629  func (*RecordingDescriptor) InitialTermIdId() uint16 {
   630  	return 8
   631  }
   632  
   633  func (*RecordingDescriptor) InitialTermIdSinceVersion() uint16 {
   634  	return 0
   635  }
   636  
   637  func (r *RecordingDescriptor) InitialTermIdInActingVersion(actingVersion uint16) bool {
   638  	return actingVersion >= r.InitialTermIdSinceVersion()
   639  }
   640  
   641  func (*RecordingDescriptor) InitialTermIdDeprecated() uint16 {
   642  	return 0
   643  }
   644  
   645  func (*RecordingDescriptor) InitialTermIdMetaAttribute(meta int) string {
   646  	switch meta {
   647  	case 1:
   648  		return ""
   649  	case 2:
   650  		return ""
   651  	case 3:
   652  		return ""
   653  	case 4:
   654  		return "required"
   655  	}
   656  	return ""
   657  }
   658  
   659  func (*RecordingDescriptor) InitialTermIdMinValue() int32 {
   660  	return math.MinInt32 + 1
   661  }
   662  
   663  func (*RecordingDescriptor) InitialTermIdMaxValue() int32 {
   664  	return math.MaxInt32
   665  }
   666  
   667  func (*RecordingDescriptor) InitialTermIdNullValue() int32 {
   668  	return math.MinInt32
   669  }
   670  
   671  func (*RecordingDescriptor) SegmentFileLengthId() uint16 {
   672  	return 9
   673  }
   674  
   675  func (*RecordingDescriptor) SegmentFileLengthSinceVersion() uint16 {
   676  	return 0
   677  }
   678  
   679  func (r *RecordingDescriptor) SegmentFileLengthInActingVersion(actingVersion uint16) bool {
   680  	return actingVersion >= r.SegmentFileLengthSinceVersion()
   681  }
   682  
   683  func (*RecordingDescriptor) SegmentFileLengthDeprecated() uint16 {
   684  	return 0
   685  }
   686  
   687  func (*RecordingDescriptor) SegmentFileLengthMetaAttribute(meta int) string {
   688  	switch meta {
   689  	case 1:
   690  		return ""
   691  	case 2:
   692  		return ""
   693  	case 3:
   694  		return ""
   695  	case 4:
   696  		return "required"
   697  	}
   698  	return ""
   699  }
   700  
   701  func (*RecordingDescriptor) SegmentFileLengthMinValue() int32 {
   702  	return math.MinInt32 + 1
   703  }
   704  
   705  func (*RecordingDescriptor) SegmentFileLengthMaxValue() int32 {
   706  	return math.MaxInt32
   707  }
   708  
   709  func (*RecordingDescriptor) SegmentFileLengthNullValue() int32 {
   710  	return math.MinInt32
   711  }
   712  
   713  func (*RecordingDescriptor) TermBufferLengthId() uint16 {
   714  	return 10
   715  }
   716  
   717  func (*RecordingDescriptor) TermBufferLengthSinceVersion() uint16 {
   718  	return 0
   719  }
   720  
   721  func (r *RecordingDescriptor) TermBufferLengthInActingVersion(actingVersion uint16) bool {
   722  	return actingVersion >= r.TermBufferLengthSinceVersion()
   723  }
   724  
   725  func (*RecordingDescriptor) TermBufferLengthDeprecated() uint16 {
   726  	return 0
   727  }
   728  
   729  func (*RecordingDescriptor) TermBufferLengthMetaAttribute(meta int) string {
   730  	switch meta {
   731  	case 1:
   732  		return ""
   733  	case 2:
   734  		return ""
   735  	case 3:
   736  		return ""
   737  	case 4:
   738  		return "required"
   739  	}
   740  	return ""
   741  }
   742  
   743  func (*RecordingDescriptor) TermBufferLengthMinValue() int32 {
   744  	return math.MinInt32 + 1
   745  }
   746  
   747  func (*RecordingDescriptor) TermBufferLengthMaxValue() int32 {
   748  	return math.MaxInt32
   749  }
   750  
   751  func (*RecordingDescriptor) TermBufferLengthNullValue() int32 {
   752  	return math.MinInt32
   753  }
   754  
   755  func (*RecordingDescriptor) MtuLengthId() uint16 {
   756  	return 11
   757  }
   758  
   759  func (*RecordingDescriptor) MtuLengthSinceVersion() uint16 {
   760  	return 0
   761  }
   762  
   763  func (r *RecordingDescriptor) MtuLengthInActingVersion(actingVersion uint16) bool {
   764  	return actingVersion >= r.MtuLengthSinceVersion()
   765  }
   766  
   767  func (*RecordingDescriptor) MtuLengthDeprecated() uint16 {
   768  	return 0
   769  }
   770  
   771  func (*RecordingDescriptor) MtuLengthMetaAttribute(meta int) string {
   772  	switch meta {
   773  	case 1:
   774  		return ""
   775  	case 2:
   776  		return ""
   777  	case 3:
   778  		return ""
   779  	case 4:
   780  		return "required"
   781  	}
   782  	return ""
   783  }
   784  
   785  func (*RecordingDescriptor) MtuLengthMinValue() int32 {
   786  	return math.MinInt32 + 1
   787  }
   788  
   789  func (*RecordingDescriptor) MtuLengthMaxValue() int32 {
   790  	return math.MaxInt32
   791  }
   792  
   793  func (*RecordingDescriptor) MtuLengthNullValue() int32 {
   794  	return math.MinInt32
   795  }
   796  
   797  func (*RecordingDescriptor) SessionIdId() uint16 {
   798  	return 12
   799  }
   800  
   801  func (*RecordingDescriptor) SessionIdSinceVersion() uint16 {
   802  	return 0
   803  }
   804  
   805  func (r *RecordingDescriptor) SessionIdInActingVersion(actingVersion uint16) bool {
   806  	return actingVersion >= r.SessionIdSinceVersion()
   807  }
   808  
   809  func (*RecordingDescriptor) SessionIdDeprecated() uint16 {
   810  	return 0
   811  }
   812  
   813  func (*RecordingDescriptor) SessionIdMetaAttribute(meta int) string {
   814  	switch meta {
   815  	case 1:
   816  		return ""
   817  	case 2:
   818  		return ""
   819  	case 3:
   820  		return ""
   821  	case 4:
   822  		return "required"
   823  	}
   824  	return ""
   825  }
   826  
   827  func (*RecordingDescriptor) SessionIdMinValue() int32 {
   828  	return math.MinInt32 + 1
   829  }
   830  
   831  func (*RecordingDescriptor) SessionIdMaxValue() int32 {
   832  	return math.MaxInt32
   833  }
   834  
   835  func (*RecordingDescriptor) SessionIdNullValue() int32 {
   836  	return math.MinInt32
   837  }
   838  
   839  func (*RecordingDescriptor) StreamIdId() uint16 {
   840  	return 13
   841  }
   842  
   843  func (*RecordingDescriptor) StreamIdSinceVersion() uint16 {
   844  	return 0
   845  }
   846  
   847  func (r *RecordingDescriptor) StreamIdInActingVersion(actingVersion uint16) bool {
   848  	return actingVersion >= r.StreamIdSinceVersion()
   849  }
   850  
   851  func (*RecordingDescriptor) StreamIdDeprecated() uint16 {
   852  	return 0
   853  }
   854  
   855  func (*RecordingDescriptor) StreamIdMetaAttribute(meta int) string {
   856  	switch meta {
   857  	case 1:
   858  		return ""
   859  	case 2:
   860  		return ""
   861  	case 3:
   862  		return ""
   863  	case 4:
   864  		return "required"
   865  	}
   866  	return ""
   867  }
   868  
   869  func (*RecordingDescriptor) StreamIdMinValue() int32 {
   870  	return math.MinInt32 + 1
   871  }
   872  
   873  func (*RecordingDescriptor) StreamIdMaxValue() int32 {
   874  	return math.MaxInt32
   875  }
   876  
   877  func (*RecordingDescriptor) StreamIdNullValue() int32 {
   878  	return math.MinInt32
   879  }
   880  
   881  func (*RecordingDescriptor) StrippedChannelMetaAttribute(meta int) string {
   882  	switch meta {
   883  	case 1:
   884  		return ""
   885  	case 2:
   886  		return ""
   887  	case 3:
   888  		return ""
   889  	case 4:
   890  		return "required"
   891  	}
   892  	return ""
   893  }
   894  
   895  func (*RecordingDescriptor) StrippedChannelSinceVersion() uint16 {
   896  	return 0
   897  }
   898  
   899  func (r *RecordingDescriptor) StrippedChannelInActingVersion(actingVersion uint16) bool {
   900  	return actingVersion >= r.StrippedChannelSinceVersion()
   901  }
   902  
   903  func (*RecordingDescriptor) StrippedChannelDeprecated() uint16 {
   904  	return 0
   905  }
   906  
   907  func (RecordingDescriptor) StrippedChannelCharacterEncoding() string {
   908  	return "US-ASCII"
   909  }
   910  
   911  func (RecordingDescriptor) StrippedChannelHeaderLength() uint64 {
   912  	return 4
   913  }
   914  
   915  func (*RecordingDescriptor) OriginalChannelMetaAttribute(meta int) string {
   916  	switch meta {
   917  	case 1:
   918  		return ""
   919  	case 2:
   920  		return ""
   921  	case 3:
   922  		return ""
   923  	case 4:
   924  		return "required"
   925  	}
   926  	return ""
   927  }
   928  
   929  func (*RecordingDescriptor) OriginalChannelSinceVersion() uint16 {
   930  	return 0
   931  }
   932  
   933  func (r *RecordingDescriptor) OriginalChannelInActingVersion(actingVersion uint16) bool {
   934  	return actingVersion >= r.OriginalChannelSinceVersion()
   935  }
   936  
   937  func (*RecordingDescriptor) OriginalChannelDeprecated() uint16 {
   938  	return 0
   939  }
   940  
   941  func (RecordingDescriptor) OriginalChannelCharacterEncoding() string {
   942  	return "US-ASCII"
   943  }
   944  
   945  func (RecordingDescriptor) OriginalChannelHeaderLength() uint64 {
   946  	return 4
   947  }
   948  
   949  func (*RecordingDescriptor) SourceIdentityMetaAttribute(meta int) string {
   950  	switch meta {
   951  	case 1:
   952  		return ""
   953  	case 2:
   954  		return ""
   955  	case 3:
   956  		return ""
   957  	case 4:
   958  		return "required"
   959  	}
   960  	return ""
   961  }
   962  
   963  func (*RecordingDescriptor) SourceIdentitySinceVersion() uint16 {
   964  	return 0
   965  }
   966  
   967  func (r *RecordingDescriptor) SourceIdentityInActingVersion(actingVersion uint16) bool {
   968  	return actingVersion >= r.SourceIdentitySinceVersion()
   969  }
   970  
   971  func (*RecordingDescriptor) SourceIdentityDeprecated() uint16 {
   972  	return 0
   973  }
   974  
   975  func (RecordingDescriptor) SourceIdentityCharacterEncoding() string {
   976  	return "US-ASCII"
   977  }
   978  
   979  func (RecordingDescriptor) SourceIdentityHeaderLength() uint64 {
   980  	return 4
   981  }