func (b *BasicMessage) SetNumbers() {
	if b.HBCIMessage == nil {
		panic(fmt.Errorf("HBCIMessage must be set"))
	}
	n := 0
	num := func() int {
		n++
		return n
	}
	b.Header.SetNumber(num)
	if b.SignatureBegin != nil {
		b.SignatureBegin.SetNumber(num)
	}
	for _, segment := range b.HBCIMessage.HBCISegments() {
		if !reflect.ValueOf(segment).IsNil() {
			segment.SetNumber(num)
		}
	}
	if b.SignatureEnd != nil {
		b.SignatureEnd.SetNumber(num)
	}
	b.End.SetNumber(num)
}
// SetNumbers sets the message number on every segment within the message
SetNumbers sets the message number on every segment within the message
// SetNumbers sets the message number on every segment within the message
func (b *BasicMessage) SetNumbers() {
	if b.HBCIMessage == nil {
		panic(fmt.Errorf("HBCIMessage must be set"))
	}
	n := 0
	num := func() int {
		n++
		return n
	}
	b.Header.SetNumber(num)
	if b.SignatureBegin != nil {
		b.SignatureBegin.SetNumber(num)
	}
	for _, segment := range b.HBCIMessage.HBCISegments() {
		if !reflect.ValueOf(segment).IsNil() {
			segment.SetNumber(num)
		}
	}
	if b.SignatureEnd != nil {
		b.SignatureEnd.SetNumber(num)
	}
	b.End.SetNumber(num)
}
func ( b * BasicMessage ) SetNumbers ( ) { if b . HBCIMessage == nil { panic ( fmt . Errorf ( " " ) ) } n := 0 num := func ( ) int { n ++ return n } b . Header . SetNumber ( num ) if b . SignatureBegin != nil { b . SignatureBegin . SetNumber ( num ) } for _ , segment := range b . HBCIMessage . HBCISegments ( ) { if ! reflect . ValueOf ( segment ) . IsNil ( ) { segment . SetNumber ( num ) } } if b . SignatureEnd != nil { b . SignatureEnd . SetNumber ( num ) } b . End . SetNumber ( num ) }
SetNumbers sets the message number on every segment within the message
SetNumbers sets the message number on every segment within the message