// Code generated by protoc-gen-go-vtproto. DO NOT EDIT.
// protoc-gen-go-vtproto version: v0.6.0
// source: frostdb/wal/v1alpha1/wal.proto

package walv1alpha1

import (
	fmt 
	protohelpers 
	v1alpha1 
	protoimpl 
	io 
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

func ( *Record) () ( []byte,  error) {
	if  == nil {
		return nil, nil
	}
	 := .SizeVT()
	 = make([]byte, )
	,  := .MarshalToSizedBufferVT([:])
	if  != nil {
		return nil, 
	}
	return [:], nil
}

func ( *Record) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Record) ( []byte) (int, error) {
	if  == nil {
		return 0, nil
	}
	 := len()
	_ = 
	var  int
	_ = 
	if .unknownFields != nil {
		 -= len(.unknownFields)
		copy([:], .unknownFields)
	}
	if .Entry != nil {
		,  := .Entry.MarshalToSizedBufferVT([:])
		if  != nil {
			return 0, 
		}
		 -= 
		 = protohelpers.EncodeVarint(, , uint64())
		--
		[] = 0xa
	}
	return len() - , nil
}

func ( *Entry_Write) () ( []byte,  error) {
	if  == nil {
		return nil, nil
	}
	 := .SizeVT()
	 = make([]byte, )
	,  := .MarshalToSizedBufferVT([:])
	if  != nil {
		return nil, 
	}
	return [:], nil
}

func ( *Entry_Write) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_Write) ( []byte) (int, error) {
	if  == nil {
		return 0, nil
	}
	 := len()
	_ = 
	var  int
	_ = 
	if .unknownFields != nil {
		 -= len(.unknownFields)
		copy([:], .unknownFields)
	}
	if .Arrow {
		--
		if .Arrow {
			[] = 1
		} else {
			[] = 0
		}
		--
		[] = 0x18
	}
	if len(.Data) > 0 {
		 -= len(.Data)
		copy([:], .Data)
		 = protohelpers.EncodeVarint(, , uint64(len(.Data)))
		--
		[] = 0x12
	}
	if len(.TableName) > 0 {
		 -= len(.TableName)
		copy([:], .TableName)
		 = protohelpers.EncodeVarint(, , uint64(len(.TableName)))
		--
		[] = 0xa
	}
	return len() - , nil
}

func ( *Entry_NewTableBlock) () ( []byte,  error) {
	if  == nil {
		return nil, nil
	}
	 := .SizeVT()
	 = make([]byte, )
	,  := .MarshalToSizedBufferVT([:])
	if  != nil {
		return nil, 
	}
	return [:], nil
}

func ( *Entry_NewTableBlock) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_NewTableBlock) ( []byte) (int, error) {
	if  == nil {
		return 0, nil
	}
	 := len()
	_ = 
	var  int
	_ = 
	if .unknownFields != nil {
		 -= len(.unknownFields)
		copy([:], .unknownFields)
	}
	if .Config != nil {
		,  := .Config.MarshalToSizedBufferVT([:])
		if  != nil {
			return 0, 
		}
		 -= 
		 = protohelpers.EncodeVarint(, , uint64())
		--
		[] = 0x2a
	}
	if len(.BlockId) > 0 {
		 -= len(.BlockId)
		copy([:], .BlockId)
		 = protohelpers.EncodeVarint(, , uint64(len(.BlockId)))
		--
		[] = 0x12
	}
	if len(.TableName) > 0 {
		 -= len(.TableName)
		copy([:], .TableName)
		 = protohelpers.EncodeVarint(, , uint64(len(.TableName)))
		--
		[] = 0xa
	}
	return len() - , nil
}

func ( *Entry_TableBlockPersisted) () ( []byte,  error) {
	if  == nil {
		return nil, nil
	}
	 := .SizeVT()
	 = make([]byte, )
	,  := .MarshalToSizedBufferVT([:])
	if  != nil {
		return nil, 
	}
	return [:], nil
}

func ( *Entry_TableBlockPersisted) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_TableBlockPersisted) ( []byte) (int, error) {
	if  == nil {
		return 0, nil
	}
	 := len()
	_ = 
	var  int
	_ = 
	if .unknownFields != nil {
		 -= len(.unknownFields)
		copy([:], .unknownFields)
	}
	if .NextTx != 0 {
		 = protohelpers.EncodeVarint(, , uint64(.NextTx))
		--
		[] = 0x18
	}
	if len(.BlockId) > 0 {
		 -= len(.BlockId)
		copy([:], .BlockId)
		 = protohelpers.EncodeVarint(, , uint64(len(.BlockId)))
		--
		[] = 0x12
	}
	if len(.TableName) > 0 {
		 -= len(.TableName)
		copy([:], .TableName)
		 = protohelpers.EncodeVarint(, , uint64(len(.TableName)))
		--
		[] = 0xa
	}
	return len() - , nil
}

func ( *Entry_Snapshot) () ( []byte,  error) {
	if  == nil {
		return nil, nil
	}
	 := .SizeVT()
	 = make([]byte, )
	,  := .MarshalToSizedBufferVT([:])
	if  != nil {
		return nil, 
	}
	return [:], nil
}

func ( *Entry_Snapshot) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_Snapshot) ( []byte) (int, error) {
	if  == nil {
		return 0, nil
	}
	 := len()
	_ = 
	var  int
	_ = 
	if .unknownFields != nil {
		 -= len(.unknownFields)
		copy([:], .unknownFields)
	}
	if .Tx != 0 {
		 = protohelpers.EncodeVarint(, , uint64(.Tx))
		--
		[] = 0x8
	}
	return len() - , nil
}

func ( *Entry) () ( []byte,  error) {
	if  == nil {
		return nil, nil
	}
	 := .SizeVT()
	 = make([]byte, )
	,  := .MarshalToSizedBufferVT([:])
	if  != nil {
		return nil, 
	}
	return [:], nil
}

func ( *Entry) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry) ( []byte) (int, error) {
	if  == nil {
		return 0, nil
	}
	 := len()
	_ = 
	var  int
	_ = 
	if .unknownFields != nil {
		 -= len(.unknownFields)
		copy([:], .unknownFields)
	}
	if ,  := .EntryType.(interface {
		([]byte) (int, error)
	});  {
		,  := .([:])
		if  != nil {
			return 0, 
		}
		 -= 
	}
	return len() - , nil
}

func ( *Entry_Write_) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_Write_) ( []byte) (int, error) {
	 := len()
	if .Write != nil {
		,  := .Write.MarshalToSizedBufferVT([:])
		if  != nil {
			return 0, 
		}
		 -= 
		 = protohelpers.EncodeVarint(, , uint64())
		--
		[] = 0xa
	}
	return len() - , nil
}
func ( *Entry_NewTableBlock_) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_NewTableBlock_) ( []byte) (int, error) {
	 := len()
	if .NewTableBlock != nil {
		,  := .NewTableBlock.MarshalToSizedBufferVT([:])
		if  != nil {
			return 0, 
		}
		 -= 
		 = protohelpers.EncodeVarint(, , uint64())
		--
		[] = 0x12
	}
	return len() - , nil
}
func ( *Entry_TableBlockPersisted_) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_TableBlockPersisted_) ( []byte) (int, error) {
	 := len()
	if .TableBlockPersisted != nil {
		,  := .TableBlockPersisted.MarshalToSizedBufferVT([:])
		if  != nil {
			return 0, 
		}
		 -= 
		 = protohelpers.EncodeVarint(, , uint64())
		--
		[] = 0x1a
	}
	return len() - , nil
}
func ( *Entry_Snapshot_) ( []byte) (int, error) {
	 := .SizeVT()
	return .MarshalToSizedBufferVT([:])
}

func ( *Entry_Snapshot_) ( []byte) (int, error) {
	 := len()
	if .Snapshot != nil {
		,  := .Snapshot.MarshalToSizedBufferVT([:])
		if  != nil {
			return 0, 
		}
		 -= 
		 = protohelpers.EncodeVarint(, , uint64())
		--
		[] = 0x22
	}
	return len() - , nil
}
func ( *Record) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	if .Entry != nil {
		 = .Entry.SizeVT()
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	 += len(.unknownFields)
	return 
}

func ( *Entry_Write) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	 = len(.TableName)
	if  > 0 {
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	 = len(.Data)
	if  > 0 {
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	if .Arrow {
		 += 2
	}
	 += len(.unknownFields)
	return 
}

func ( *Entry_NewTableBlock) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	 = len(.TableName)
	if  > 0 {
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	 = len(.BlockId)
	if  > 0 {
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	if .Config != nil {
		 = .Config.SizeVT()
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	 += len(.unknownFields)
	return 
}

func ( *Entry_TableBlockPersisted) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	 = len(.TableName)
	if  > 0 {
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	 = len(.BlockId)
	if  > 0 {
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	if .NextTx != 0 {
		 += 1 + protohelpers.SizeOfVarint(uint64(.NextTx))
	}
	 += len(.unknownFields)
	return 
}

func ( *Entry_Snapshot) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	if .Tx != 0 {
		 += 1 + protohelpers.SizeOfVarint(uint64(.Tx))
	}
	 += len(.unknownFields)
	return 
}

func ( *Entry) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	if ,  := .EntryType.(interface{ () int });  {
		 += .()
	}
	 += len(.unknownFields)
	return 
}

func ( *Entry_Write_) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	if .Write != nil {
		 = .Write.SizeVT()
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	return 
}
func ( *Entry_NewTableBlock_) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	if .NewTableBlock != nil {
		 = .NewTableBlock.SizeVT()
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	return 
}
func ( *Entry_TableBlockPersisted_) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	if .TableBlockPersisted != nil {
		 = .TableBlockPersisted.SizeVT()
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	return 
}
func ( *Entry_Snapshot_) () ( int) {
	if  == nil {
		return 0
	}
	var  int
	_ = 
	if .Snapshot != nil {
		 = .Snapshot.SizeVT()
		 += 1 +  + protohelpers.SizeOfVarint(uint64())
	}
	return 
}
func ( *Record) ( []byte) error {
	 := len()
	 := 0
	for  <  {
		 := 
		var  uint64
		for  := uint(0); ;  += 7 {
			if  >= 64 {
				return protohelpers.ErrIntOverflow
			}
			if  >=  {
				return io.ErrUnexpectedEOF
			}
			 := []
			++
			 |= uint64(&0x7F) << 
			if  < 0x80 {
				break
			}
		}
		 := int32( >> 3)
		 := int( & 0x7)
		if  == 4 {
			return fmt.Errorf("proto: Record: wiretype end group for non-group")
		}
		if  <= 0 {
			return fmt.Errorf("proto: Record: illegal tag %d (wire type %d)", , )
		}
		switch  {
		case 1:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Entry", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			if .Entry == nil {
				.Entry = &Entry{}
			}
			if  := .Entry.UnmarshalVT([:]);  != nil {
				return 
			}
			 = 
		default:
			 = 
			,  := protohelpers.Skip([:])
			if  != nil {
				return 
			}
			if ( < 0) || (+) < 0 {
				return protohelpers.ErrInvalidLength
			}
			if ( + ) >  {
				return io.ErrUnexpectedEOF
			}
			.unknownFields = append(.unknownFields, [:+]...)
			 += 
		}
	}

	if  >  {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func ( *Entry_Write) ( []byte) error {
	 := len()
	 := 0
	for  <  {
		 := 
		var  uint64
		for  := uint(0); ;  += 7 {
			if  >= 64 {
				return protohelpers.ErrIntOverflow
			}
			if  >=  {
				return io.ErrUnexpectedEOF
			}
			 := []
			++
			 |= uint64(&0x7F) << 
			if  < 0x80 {
				break
			}
		}
		 := int32( >> 3)
		 := int( & 0x7)
		if  == 4 {
			return fmt.Errorf("proto: Entry_Write: wiretype end group for non-group")
		}
		if  <= 0 {
			return fmt.Errorf("proto: Entry_Write: illegal tag %d (wire type %d)", , )
		}
		switch  {
		case 1:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field TableName", )
			}
			var  uint64
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= uint64(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			 := int()
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			.TableName = string([:])
			 = 
		case 2:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Data", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			.Data = append(.Data[:0], [:]...)
			if .Data == nil {
				.Data = []byte{}
			}
			 = 
		case 3:
			if  != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Arrow", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			.Arrow = bool( != 0)
		default:
			 = 
			,  := protohelpers.Skip([:])
			if  != nil {
				return 
			}
			if ( < 0) || (+) < 0 {
				return protohelpers.ErrInvalidLength
			}
			if ( + ) >  {
				return io.ErrUnexpectedEOF
			}
			.unknownFields = append(.unknownFields, [:+]...)
			 += 
		}
	}

	if  >  {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func ( *Entry_NewTableBlock) ( []byte) error {
	 := len()
	 := 0
	for  <  {
		 := 
		var  uint64
		for  := uint(0); ;  += 7 {
			if  >= 64 {
				return protohelpers.ErrIntOverflow
			}
			if  >=  {
				return io.ErrUnexpectedEOF
			}
			 := []
			++
			 |= uint64(&0x7F) << 
			if  < 0x80 {
				break
			}
		}
		 := int32( >> 3)
		 := int( & 0x7)
		if  == 4 {
			return fmt.Errorf("proto: Entry_NewTableBlock: wiretype end group for non-group")
		}
		if  <= 0 {
			return fmt.Errorf("proto: Entry_NewTableBlock: illegal tag %d (wire type %d)", , )
		}
		switch  {
		case 1:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field TableName", )
			}
			var  uint64
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= uint64(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			 := int()
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			.TableName = string([:])
			 = 
		case 2:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field BlockId", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			.BlockId = append(.BlockId[:0], [:]...)
			if .BlockId == nil {
				.BlockId = []byte{}
			}
			 = 
		case 5:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Config", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			if .Config == nil {
				.Config = &v1alpha1.TableConfig{}
			}
			if  := .Config.UnmarshalVT([:]);  != nil {
				return 
			}
			 = 
		default:
			 = 
			,  := protohelpers.Skip([:])
			if  != nil {
				return 
			}
			if ( < 0) || (+) < 0 {
				return protohelpers.ErrInvalidLength
			}
			if ( + ) >  {
				return io.ErrUnexpectedEOF
			}
			.unknownFields = append(.unknownFields, [:+]...)
			 += 
		}
	}

	if  >  {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func ( *Entry_TableBlockPersisted) ( []byte) error {
	 := len()
	 := 0
	for  <  {
		 := 
		var  uint64
		for  := uint(0); ;  += 7 {
			if  >= 64 {
				return protohelpers.ErrIntOverflow
			}
			if  >=  {
				return io.ErrUnexpectedEOF
			}
			 := []
			++
			 |= uint64(&0x7F) << 
			if  < 0x80 {
				break
			}
		}
		 := int32( >> 3)
		 := int( & 0x7)
		if  == 4 {
			return fmt.Errorf("proto: Entry_TableBlockPersisted: wiretype end group for non-group")
		}
		if  <= 0 {
			return fmt.Errorf("proto: Entry_TableBlockPersisted: illegal tag %d (wire type %d)", , )
		}
		switch  {
		case 1:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field TableName", )
			}
			var  uint64
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= uint64(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			 := int()
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			.TableName = string([:])
			 = 
		case 2:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field BlockId", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			.BlockId = append(.BlockId[:0], [:]...)
			if .BlockId == nil {
				.BlockId = []byte{}
			}
			 = 
		case 3:
			if  != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field NextTx", )
			}
			.NextTx = 0
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				.NextTx |= uint64(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
		default:
			 = 
			,  := protohelpers.Skip([:])
			if  != nil {
				return 
			}
			if ( < 0) || (+) < 0 {
				return protohelpers.ErrInvalidLength
			}
			if ( + ) >  {
				return io.ErrUnexpectedEOF
			}
			.unknownFields = append(.unknownFields, [:+]...)
			 += 
		}
	}

	if  >  {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func ( *Entry_Snapshot) ( []byte) error {
	 := len()
	 := 0
	for  <  {
		 := 
		var  uint64
		for  := uint(0); ;  += 7 {
			if  >= 64 {
				return protohelpers.ErrIntOverflow
			}
			if  >=  {
				return io.ErrUnexpectedEOF
			}
			 := []
			++
			 |= uint64(&0x7F) << 
			if  < 0x80 {
				break
			}
		}
		 := int32( >> 3)
		 := int( & 0x7)
		if  == 4 {
			return fmt.Errorf("proto: Entry_Snapshot: wiretype end group for non-group")
		}
		if  <= 0 {
			return fmt.Errorf("proto: Entry_Snapshot: illegal tag %d (wire type %d)", , )
		}
		switch  {
		case 1:
			if  != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Tx", )
			}
			.Tx = 0
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				.Tx |= uint64(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
		default:
			 = 
			,  := protohelpers.Skip([:])
			if  != nil {
				return 
			}
			if ( < 0) || (+) < 0 {
				return protohelpers.ErrInvalidLength
			}
			if ( + ) >  {
				return io.ErrUnexpectedEOF
			}
			.unknownFields = append(.unknownFields, [:+]...)
			 += 
		}
	}

	if  >  {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func ( *Entry) ( []byte) error {
	 := len()
	 := 0
	for  <  {
		 := 
		var  uint64
		for  := uint(0); ;  += 7 {
			if  >= 64 {
				return protohelpers.ErrIntOverflow
			}
			if  >=  {
				return io.ErrUnexpectedEOF
			}
			 := []
			++
			 |= uint64(&0x7F) << 
			if  < 0x80 {
				break
			}
		}
		 := int32( >> 3)
		 := int( & 0x7)
		if  == 4 {
			return fmt.Errorf("proto: Entry: wiretype end group for non-group")
		}
		if  <= 0 {
			return fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", , )
		}
		switch  {
		case 1:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Write", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			if ,  := .EntryType.(*Entry_Write_);  {
				if  := .Write.UnmarshalVT([:]);  != nil {
					return 
				}
			} else {
				 := &Entry_Write{}
				if  := .UnmarshalVT([:]);  != nil {
					return 
				}
				.EntryType = &Entry_Write_{Write: }
			}
			 = 
		case 2:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field NewTableBlock", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			if ,  := .EntryType.(*Entry_NewTableBlock_);  {
				if  := .NewTableBlock.UnmarshalVT([:]);  != nil {
					return 
				}
			} else {
				 := &Entry_NewTableBlock{}
				if  := .UnmarshalVT([:]);  != nil {
					return 
				}
				.EntryType = &Entry_NewTableBlock_{NewTableBlock: }
			}
			 = 
		case 3:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field TableBlockPersisted", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			if ,  := .EntryType.(*Entry_TableBlockPersisted_);  {
				if  := .TableBlockPersisted.UnmarshalVT([:]);  != nil {
					return 
				}
			} else {
				 := &Entry_TableBlockPersisted{}
				if  := .UnmarshalVT([:]);  != nil {
					return 
				}
				.EntryType = &Entry_TableBlockPersisted_{TableBlockPersisted: }
			}
			 = 
		case 4:
			if  != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", )
			}
			var  int
			for  := uint(0); ;  += 7 {
				if  >= 64 {
					return protohelpers.ErrIntOverflow
				}
				if  >=  {
					return io.ErrUnexpectedEOF
				}
				 := []
				++
				 |= int(&0x7F) << 
				if  < 0x80 {
					break
				}
			}
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			 :=  + 
			if  < 0 {
				return protohelpers.ErrInvalidLength
			}
			if  >  {
				return io.ErrUnexpectedEOF
			}
			if ,  := .EntryType.(*Entry_Snapshot_);  {
				if  := .Snapshot.UnmarshalVT([:]);  != nil {
					return 
				}
			} else {
				 := &Entry_Snapshot{}
				if  := .UnmarshalVT([:]);  != nil {
					return 
				}
				.EntryType = &Entry_Snapshot_{Snapshot: }
			}
			 = 
		default:
			 = 
			,  := protohelpers.Skip([:])
			if  != nil {
				return 
			}
			if ( < 0) || (+) < 0 {
				return protohelpers.ErrInvalidLength
			}
			if ( + ) >  {
				return io.ErrUnexpectedEOF
			}
			.unknownFields = append(.unknownFields, [:+]...)
			 += 
		}
	}

	if  >  {
		return io.ErrUnexpectedEOF
	}
	return nil
}