mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 00:11:36 +01:00 
			
		
		
		
	This allows to roll all nodes to use a new CA, to refresh it, or e.g. when the `talosconfig` was exposed accidentally. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
		
			
				
	
	
		
			2193 lines
		
	
	
		
			46 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			2193 lines
		
	
	
		
			46 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by protoc-gen-go-vtproto. DO NOT EDIT.
 | |
| // protoc-gen-go-vtproto version: v0.6.0
 | |
| // source: common/common.proto
 | |
| 
 | |
| package common
 | |
| 
 | |
| import (
 | |
| 	fmt "fmt"
 | |
| 	io "io"
 | |
| 
 | |
| 	protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
 | |
| 	anypb "github.com/planetscale/vtprotobuf/types/known/anypb"
 | |
| 	status "google.golang.org/genproto/googleapis/rpc/status"
 | |
| 	proto "google.golang.org/protobuf/proto"
 | |
| 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | |
| 	anypb1 "google.golang.org/protobuf/types/known/anypb"
 | |
| )
 | |
| 
 | |
| 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 (m *Error) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *Error) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *Error) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Details) > 0 {
 | |
| 		for iNdEx := len(m.Details) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			size, err := (*anypb.Any)(m.Details[iNdEx]).MarshalToSizedBufferVT(dAtA[:i])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i -= size
 | |
| 			i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x1a
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Message) > 0 {
 | |
| 		i -= len(m.Message)
 | |
| 		copy(dAtA[i:], m.Message)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if m.Code != 0 {
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Code))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x8
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *Metadata) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *Metadata) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if m.Status != nil {
 | |
| 		if vtmsg, ok := interface{}(m.Status).(interface {
 | |
| 			MarshalToSizedBufferVT([]byte) (int, error)
 | |
| 		}); ok {
 | |
| 			size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i -= size
 | |
| 			i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
 | |
| 		} else {
 | |
| 			encoded, err := proto.Marshal(m.Status)
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i -= len(encoded)
 | |
| 			copy(dAtA[i:], encoded)
 | |
| 			i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 		}
 | |
| 		i--
 | |
| 		dAtA[i] = 0x1a
 | |
| 	}
 | |
| 	if len(m.Error) > 0 {
 | |
| 		i -= len(m.Error)
 | |
| 		copy(dAtA[i:], m.Error)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Error)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if len(m.Hostname) > 0 {
 | |
| 		i -= len(m.Hostname)
 | |
| 		copy(dAtA[i:], m.Hostname)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Hostname)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *Data) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *Data) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *Data) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Bytes) > 0 {
 | |
| 		i -= len(m.Bytes)
 | |
| 		copy(dAtA[i:], m.Bytes)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Bytes)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if m.Metadata != nil {
 | |
| 		size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i])
 | |
| 		if err != nil {
 | |
| 			return 0, err
 | |
| 		}
 | |
| 		i -= size
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *DataResponse) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *DataResponse) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *DataResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Messages) > 0 {
 | |
| 		for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			size, err := m.Messages[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i -= size
 | |
| 			i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *Empty) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *Empty) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *Empty) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if m.Metadata != nil {
 | |
| 		size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i])
 | |
| 		if err != nil {
 | |
| 			return 0, err
 | |
| 		}
 | |
| 		i -= size
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *EmptyResponse) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *EmptyResponse) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *EmptyResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Messages) > 0 {
 | |
| 		for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 			size, err := m.Messages[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i -= size
 | |
| 			i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *URL) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *URL) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *URL) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.FullPath) > 0 {
 | |
| 		i -= len(m.FullPath)
 | |
| 		copy(dAtA[i:], m.FullPath)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FullPath)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificateAndKey) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificateAndKey) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificateAndKey) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Key) > 0 {
 | |
| 		i -= len(m.Key)
 | |
| 		copy(dAtA[i:], m.Key)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Key)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if len(m.Crt) > 0 {
 | |
| 		i -= len(m.Crt)
 | |
| 		copy(dAtA[i:], m.Crt)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Crt)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedKey) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedKey) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedKey) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Key) > 0 {
 | |
| 		i -= len(m.Key)
 | |
| 		copy(dAtA[i:], m.Key)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Key)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificate) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificate) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificate) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Crt) > 0 {
 | |
| 		i -= len(m.Crt)
 | |
| 		copy(dAtA[i:], m.Crt)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Crt)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *NetIP) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *NetIP) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *NetIP) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if len(m.Ip) > 0 {
 | |
| 		i -= len(m.Ip)
 | |
| 		copy(dAtA[i:], m.Ip)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *NetIPPort) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *NetIPPort) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *NetIPPort) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if m.Port != 0 {
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Port))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x10
 | |
| 	}
 | |
| 	if len(m.Ip) > 0 {
 | |
| 		i -= len(m.Ip)
 | |
| 		copy(dAtA[i:], m.Ip)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *NetIPPrefix) MarshalVT() (dAtA []byte, err error) {
 | |
| 	if m == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	size := m.SizeVT()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *NetIPPrefix) MarshalToVT(dAtA []byte) (int, error) {
 | |
| 	size := m.SizeVT()
 | |
| 	return m.MarshalToSizedBufferVT(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *NetIPPrefix) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
 | |
| 	if m == nil {
 | |
| 		return 0, nil
 | |
| 	}
 | |
| 	i := len(dAtA)
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.unknownFields != nil {
 | |
| 		i -= len(m.unknownFields)
 | |
| 		copy(dAtA[i:], m.unknownFields)
 | |
| 	}
 | |
| 	if m.PrefixLength != 0 {
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PrefixLength))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x10
 | |
| 	}
 | |
| 	if len(m.Ip) > 0 {
 | |
| 		i -= len(m.Ip)
 | |
| 		copy(dAtA[i:], m.Ip)
 | |
| 		i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *Error) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Code != 0 {
 | |
| 		n += 1 + protohelpers.SizeOfVarint(uint64(m.Code))
 | |
| 	}
 | |
| 	l = len(m.Message)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	if len(m.Details) > 0 {
 | |
| 		for _, e := range m.Details {
 | |
| 			l = (*anypb.Any)(e).SizeVT()
 | |
| 			n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *Metadata) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Hostname)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Error)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	if m.Status != nil {
 | |
| 		if size, ok := interface{}(m.Status).(interface {
 | |
| 			SizeVT() int
 | |
| 		}); ok {
 | |
| 			l = size.SizeVT()
 | |
| 		} else {
 | |
| 			l = proto.Size(m.Status)
 | |
| 		}
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *Data) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Metadata != nil {
 | |
| 		l = m.Metadata.SizeVT()
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Bytes)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *DataResponse) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.Messages) > 0 {
 | |
| 		for _, e := range m.Messages {
 | |
| 			l = e.SizeVT()
 | |
| 			n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *Empty) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Metadata != nil {
 | |
| 		l = m.Metadata.SizeVT()
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *EmptyResponse) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.Messages) > 0 {
 | |
| 		for _, e := range m.Messages {
 | |
| 			l = e.SizeVT()
 | |
| 			n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *URL) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.FullPath)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificateAndKey) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Crt)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Key)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedKey) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Key)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *PEMEncodedCertificate) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Crt)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *NetIP) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Ip)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *NetIPPort) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Ip)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	if m.Port != 0 {
 | |
| 		n += 1 + protohelpers.SizeOfVarint(uint64(m.Port))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *NetIPPrefix) SizeVT() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Ip)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
 | |
| 	}
 | |
| 	if m.PrefixLength != 0 {
 | |
| 		n += 1 + protohelpers.SizeOfVarint(uint64(m.PrefixLength))
 | |
| 	}
 | |
| 	n += len(m.unknownFields)
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *Error) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: Error: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
 | |
| 			}
 | |
| 			m.Code = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Code |= Code(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Message = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Details = append(m.Details, &anypb1.Any{})
 | |
| 			if err := (*anypb.Any)(m.Details[len(m.Details)-1]).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *Metadata) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: Metadata: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Hostname = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Error = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Status == nil {
 | |
| 				m.Status = &status.Status{}
 | |
| 			}
 | |
| 			if unmarshal, ok := interface{}(m.Status).(interface {
 | |
| 				UnmarshalVT([]byte) error
 | |
| 			}); ok {
 | |
| 				if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 					return err
 | |
| 				}
 | |
| 			} else {
 | |
| 				if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Status); err != nil {
 | |
| 					return err
 | |
| 				}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *Data) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: Data: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Metadata == nil {
 | |
| 				m.Metadata = &Metadata{}
 | |
| 			}
 | |
| 			if err := m.Metadata.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Bytes = append(m.Bytes[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Bytes == nil {
 | |
| 				m.Bytes = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *DataResponse) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: DataResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: DataResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Messages = append(m.Messages, &Data{})
 | |
| 			if err := m.Messages[len(m.Messages)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *Empty) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: Empty: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: Empty: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Metadata == nil {
 | |
| 				m.Metadata = &Metadata{}
 | |
| 			}
 | |
| 			if err := m.Metadata.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *EmptyResponse) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: EmptyResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: EmptyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Messages = append(m.Messages, &Empty{})
 | |
| 			if err := m.Messages[len(m.Messages)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *URL) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: URL: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: URL: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field FullPath", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.FullPath = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *PEMEncodedCertificateAndKey) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: PEMEncodedCertificateAndKey: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: PEMEncodedCertificateAndKey: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Crt", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Crt = append(m.Crt[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Crt == nil {
 | |
| 				m.Crt = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Key == nil {
 | |
| 				m.Key = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *PEMEncodedKey) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: PEMEncodedKey: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: PEMEncodedKey: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Key == nil {
 | |
| 				m.Key = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *PEMEncodedCertificate) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: PEMEncodedCertificate: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: PEMEncodedCertificate: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Crt", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Crt = append(m.Crt[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Crt == nil {
 | |
| 				m.Crt = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *NetIP) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: NetIP: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: NetIP: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Ip = append(m.Ip[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Ip == nil {
 | |
| 				m.Ip = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *NetIPPort) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: NetIPPort: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: NetIPPort: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Ip = append(m.Ip[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Ip == nil {
 | |
| 				m.Ip = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
 | |
| 			}
 | |
| 			m.Port = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Port |= int32(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *NetIPPrefix) UnmarshalVT(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return protohelpers.ErrIntOverflow
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= uint64(b&0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: NetIPPrefix: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: NetIPPrefix: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
 | |
| 			}
 | |
| 			var byteLen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				byteLen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if byteLen < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			postIndex := iNdEx + byteLen
 | |
| 			if postIndex < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Ip = append(m.Ip[:0], dAtA[iNdEx:postIndex]...)
 | |
| 			if m.Ip == nil {
 | |
| 				m.Ip = []byte{}
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field PrefixLength", wireType)
 | |
| 			}
 | |
| 			m.PrefixLength = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protohelpers.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.PrefixLength |= int32(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := protohelpers.Skip(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 				return protohelpers.ErrInvalidLength
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 |