// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: consensus/consensusproto/protos/consensus.proto package consensusproto import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type ErrCodes int32 const ( ErrCodes_Unexpected ErrCodes = 0 ErrCodes_LogExists ErrCodes = 1 ErrCodes_LogNotFound ErrCodes = 2 ErrCodes_RecordConflict ErrCodes = 3 ErrCodes_ErrorOffset ErrCodes = 300 ) var ErrCodes_name = map[int32]string{ 0: "Unexpected", 1: "LogExists", 2: "LogNotFound", 3: "RecordConflict", 300: "ErrorOffset", } var ErrCodes_value = map[string]int32{ "Unexpected": 0, "LogExists": 1, "LogNotFound": 2, "RecordConflict": 3, "ErrorOffset": 300, } func (x ErrCodes) String() string { return proto.EnumName(ErrCodes_name, int32(x)) } func (ErrCodes) EnumDescriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{0} } type Log struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Records []*Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` } func (m *Log) Reset() { *m = Log{} } func (m *Log) String() string { return proto.CompactTextString(m) } func (*Log) ProtoMessage() {} func (*Log) Descriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{0} } func (m *Log) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Log.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Log) XXX_Merge(src proto.Message) { xxx_messageInfo_Log.Merge(m, src) } func (m *Log) XXX_Size() int { return m.Size() } func (m *Log) XXX_DiscardUnknown() { xxx_messageInfo_Log.DiscardUnknown(m) } var xxx_messageInfo_Log proto.InternalMessageInfo func (m *Log) GetId() []byte { if m != nil { return m.Id } return nil } func (m *Log) GetRecords() []*Record { if m != nil { return m.Records } return nil } type Record struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PrevId []byte `protobuf:"bytes,2,opt,name=prevId,proto3" json:"prevId,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` CreatedUnix uint64 `protobuf:"varint,4,opt,name=createdUnix,proto3" json:"createdUnix,omitempty"` } func (m *Record) Reset() { *m = Record{} } func (m *Record) String() string { return proto.CompactTextString(m) } func (*Record) ProtoMessage() {} func (*Record) Descriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{1} } func (m *Record) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Record.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Record) XXX_Merge(src proto.Message) { xxx_messageInfo_Record.Merge(m, src) } func (m *Record) XXX_Size() int { return m.Size() } func (m *Record) XXX_DiscardUnknown() { xxx_messageInfo_Record.DiscardUnknown(m) } var xxx_messageInfo_Record proto.InternalMessageInfo func (m *Record) GetId() []byte { if m != nil { return m.Id } return nil } func (m *Record) GetPrevId() []byte { if m != nil { return m.PrevId } return nil } func (m *Record) GetPayload() []byte { if m != nil { return m.Payload } return nil } func (m *Record) GetCreatedUnix() uint64 { if m != nil { return m.CreatedUnix } return 0 } type Ok struct { } func (m *Ok) Reset() { *m = Ok{} } func (m *Ok) String() string { return proto.CompactTextString(m) } func (*Ok) ProtoMessage() {} func (*Ok) Descriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{2} } func (m *Ok) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Ok) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Ok.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Ok) XXX_Merge(src proto.Message) { xxx_messageInfo_Ok.Merge(m, src) } func (m *Ok) XXX_Size() int { return m.Size() } func (m *Ok) XXX_DiscardUnknown() { xxx_messageInfo_Ok.DiscardUnknown(m) } var xxx_messageInfo_Ok proto.InternalMessageInfo type AddLogRequest struct { Log *Log `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"` } func (m *AddLogRequest) Reset() { *m = AddLogRequest{} } func (m *AddLogRequest) String() string { return proto.CompactTextString(m) } func (*AddLogRequest) ProtoMessage() {} func (*AddLogRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{3} } func (m *AddLogRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AddLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AddLogRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *AddLogRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AddLogRequest.Merge(m, src) } func (m *AddLogRequest) XXX_Size() int { return m.Size() } func (m *AddLogRequest) XXX_DiscardUnknown() { xxx_messageInfo_AddLogRequest.DiscardUnknown(m) } var xxx_messageInfo_AddLogRequest proto.InternalMessageInfo func (m *AddLogRequest) GetLog() *Log { if m != nil { return m.Log } return nil } type AddRecordRequest struct { LogId []byte `protobuf:"bytes,1,opt,name=logId,proto3" json:"logId,omitempty"` Record *Record `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` } func (m *AddRecordRequest) Reset() { *m = AddRecordRequest{} } func (m *AddRecordRequest) String() string { return proto.CompactTextString(m) } func (*AddRecordRequest) ProtoMessage() {} func (*AddRecordRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{4} } func (m *AddRecordRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AddRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AddRecordRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *AddRecordRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AddRecordRequest.Merge(m, src) } func (m *AddRecordRequest) XXX_Size() int { return m.Size() } func (m *AddRecordRequest) XXX_DiscardUnknown() { xxx_messageInfo_AddRecordRequest.DiscardUnknown(m) } var xxx_messageInfo_AddRecordRequest proto.InternalMessageInfo func (m *AddRecordRequest) GetLogId() []byte { if m != nil { return m.LogId } return nil } func (m *AddRecordRequest) GetRecord() *Record { if m != nil { return m.Record } return nil } type WatchLogRequest struct { WatchIds [][]byte `protobuf:"bytes,1,rep,name=watchIds,proto3" json:"watchIds,omitempty"` UnwatchIds [][]byte `protobuf:"bytes,2,rep,name=unwatchIds,proto3" json:"unwatchIds,omitempty"` } func (m *WatchLogRequest) Reset() { *m = WatchLogRequest{} } func (m *WatchLogRequest) String() string { return proto.CompactTextString(m) } func (*WatchLogRequest) ProtoMessage() {} func (*WatchLogRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{5} } func (m *WatchLogRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *WatchLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_WatchLogRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *WatchLogRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_WatchLogRequest.Merge(m, src) } func (m *WatchLogRequest) XXX_Size() int { return m.Size() } func (m *WatchLogRequest) XXX_DiscardUnknown() { xxx_messageInfo_WatchLogRequest.DiscardUnknown(m) } var xxx_messageInfo_WatchLogRequest proto.InternalMessageInfo func (m *WatchLogRequest) GetWatchIds() [][]byte { if m != nil { return m.WatchIds } return nil } func (m *WatchLogRequest) GetUnwatchIds() [][]byte { if m != nil { return m.UnwatchIds } return nil } type WatchLogEvent struct { LogId []byte `protobuf:"bytes,1,opt,name=logId,proto3" json:"logId,omitempty"` Records []*Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` } func (m *WatchLogEvent) Reset() { *m = WatchLogEvent{} } func (m *WatchLogEvent) String() string { return proto.CompactTextString(m) } func (*WatchLogEvent) ProtoMessage() {} func (*WatchLogEvent) Descriptor() ([]byte, []int) { return fileDescriptor_b8d7f1c16b400059, []int{6} } func (m *WatchLogEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *WatchLogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_WatchLogEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *WatchLogEvent) XXX_Merge(src proto.Message) { xxx_messageInfo_WatchLogEvent.Merge(m, src) } func (m *WatchLogEvent) XXX_Size() int { return m.Size() } func (m *WatchLogEvent) XXX_DiscardUnknown() { xxx_messageInfo_WatchLogEvent.DiscardUnknown(m) } var xxx_messageInfo_WatchLogEvent proto.InternalMessageInfo func (m *WatchLogEvent) GetLogId() []byte { if m != nil { return m.LogId } return nil } func (m *WatchLogEvent) GetRecords() []*Record { if m != nil { return m.Records } return nil } func init() { proto.RegisterEnum("anyConsensus.ErrCodes", ErrCodes_name, ErrCodes_value) proto.RegisterType((*Log)(nil), "anyConsensus.Log") proto.RegisterType((*Record)(nil), "anyConsensus.Record") proto.RegisterType((*Ok)(nil), "anyConsensus.Ok") proto.RegisterType((*AddLogRequest)(nil), "anyConsensus.AddLogRequest") proto.RegisterType((*AddRecordRequest)(nil), "anyConsensus.AddRecordRequest") proto.RegisterType((*WatchLogRequest)(nil), "anyConsensus.WatchLogRequest") proto.RegisterType((*WatchLogEvent)(nil), "anyConsensus.WatchLogEvent") } func init() { proto.RegisterFile("consensus/consensusproto/protos/consensus.proto", fileDescriptor_b8d7f1c16b400059) } var fileDescriptor_b8d7f1c16b400059 = []byte{ // 474 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4f, 0x8b, 0xd3, 0x40, 0x14, 0xef, 0x24, 0xb5, 0xdb, 0xbe, 0xb4, 0xdd, 0xf8, 0x58, 0x24, 0x74, 0x31, 0x84, 0x78, 0x09, 0x22, 0x5d, 0xa9, 0x82, 0x27, 0x0f, 0x6b, 0xa9, 0x50, 0xa9, 0x16, 0x02, 0x55, 0xf0, 0x64, 0xcc, 0x4c, 0x63, 0xd8, 0x90, 0xa9, 0x33, 0xe9, 0xda, 0xfd, 0x16, 0x7e, 0x10, 0x3f, 0x88, 0x37, 0xf7, 0xe8, 0x51, 0xda, 0x2f, 0x22, 0x9d, 0x34, 0x35, 0x71, 0xb7, 0x87, 0xbd, 0x24, 0xf3, 0x7e, 0xbf, 0xf7, 0xe7, 0x37, 0xef, 0xc7, 0xc0, 0x59, 0xc8, 0x53, 0xc9, 0x52, 0xb9, 0x94, 0xff, 0x4e, 0x0b, 0xc1, 0x33, 0x7e, 0xa6, 0xbe, 0x25, 0xb4, 0xaf, 0x00, 0x6c, 0x07, 0xe9, 0xd5, 0xb0, 0xc0, 0xdc, 0x11, 0xe8, 0x13, 0x1e, 0x61, 0x17, 0xb4, 0x98, 0x5a, 0xc4, 0x21, 0x5e, 0xdb, 0xd7, 0x62, 0x8a, 0x7d, 0x38, 0x12, 0x2c, 0xe4, 0x82, 0x4a, 0x4b, 0x73, 0x74, 0xcf, 0x18, 0x9c, 0xf4, 0xcb, 0x65, 0x7d, 0x5f, 0x91, 0x7e, 0x91, 0xe4, 0x26, 0xd0, 0xc8, 0xa1, 0x1b, 0x9d, 0x1e, 0x40, 0x63, 0x21, 0xd8, 0xe5, 0x98, 0x5a, 0x9a, 0xc2, 0x76, 0x11, 0x5a, 0x70, 0xb4, 0x08, 0xae, 0x12, 0x1e, 0x50, 0x4b, 0x57, 0x44, 0x11, 0xa2, 0x03, 0x46, 0x28, 0x58, 0x90, 0x31, 0x3a, 0x4b, 0xe3, 0x95, 0x55, 0x77, 0x88, 0x57, 0xf7, 0xcb, 0x90, 0x5b, 0x07, 0x6d, 0x7a, 0xe1, 0x3e, 0x87, 0xce, 0x39, 0xa5, 0x13, 0x1e, 0xf9, 0xec, 0xeb, 0x92, 0xc9, 0x0c, 0x1f, 0x81, 0x9e, 0xf0, 0x48, 0xcd, 0x36, 0x06, 0xf7, 0xab, 0x82, 0xb7, 0x69, 0x5b, 0xd6, 0x7d, 0x0f, 0xe6, 0x39, 0xa5, 0x3b, 0xfd, 0xbb, 0xc2, 0x13, 0xb8, 0x97, 0xf0, 0x68, 0x5c, 0xc8, 0xce, 0x03, 0x7c, 0x02, 0x8d, 0xfc, 0x7a, 0x4a, 0xf9, 0xa1, 0x15, 0xec, 0x72, 0xdc, 0xb7, 0x70, 0xfc, 0x21, 0xc8, 0xc2, 0x2f, 0x25, 0x3d, 0x3d, 0x68, 0x7e, 0xdb, 0x42, 0x63, 0x2a, 0x2d, 0xe2, 0xe8, 0x5e, 0xdb, 0xdf, 0xc7, 0x68, 0x03, 0x2c, 0xd3, 0x3d, 0xab, 0x29, 0xb6, 0x84, 0xb8, 0x33, 0xe8, 0x14, 0xed, 0x46, 0x97, 0x2c, 0x3d, 0xa4, 0xf1, 0x8e, 0x3e, 0x3d, 0xfe, 0x04, 0xcd, 0x91, 0x10, 0x43, 0x4e, 0x99, 0xc4, 0x2e, 0xc0, 0x2c, 0x65, 0xab, 0x05, 0x0b, 0x33, 0x46, 0xcd, 0x1a, 0x76, 0xa0, 0xb5, 0x9d, 0xb6, 0x8a, 0x65, 0x26, 0x4d, 0x82, 0xc7, 0x60, 0x4c, 0x78, 0xf4, 0x8e, 0x67, 0xaf, 0xf9, 0x32, 0xa5, 0xa6, 0x86, 0x08, 0xdd, 0xbc, 0xdd, 0x90, 0xa7, 0xf3, 0x24, 0x0e, 0x33, 0x53, 0x47, 0x13, 0x8c, 0x91, 0x10, 0x5c, 0x4c, 0xe7, 0x73, 0xc9, 0x32, 0xf3, 0x87, 0x36, 0xf8, 0x45, 0xa0, 0xb5, 0x9f, 0x8f, 0x2f, 0xa0, 0x91, 0x7b, 0x84, 0xa7, 0x55, 0x61, 0x15, 0xe7, 0x7a, 0x66, 0x95, 0x9c, 0x5e, 0xe0, 0x4b, 0x68, 0xed, 0x6d, 0x42, 0xfb, 0x46, 0x6d, 0xc5, 0xbf, 0x5b, 0xca, 0xdf, 0x40, 0xb3, 0x58, 0x1f, 0x3e, 0xac, 0xb2, 0xff, 0xb9, 0xd4, 0x3b, 0xbd, 0x9d, 0x56, 0x5b, 0xf7, 0xc8, 0x53, 0xf2, 0x6a, 0xf0, 0x73, 0x6d, 0x93, 0xeb, 0xb5, 0x4d, 0xfe, 0xac, 0x6d, 0xf2, 0x7d, 0x63, 0xd7, 0xae, 0x37, 0x76, 0xed, 0xf7, 0xc6, 0xae, 0x7d, 0xb4, 0x0e, 0xbd, 0xbd, 0xcf, 0x0d, 0xf5, 0x7b, 0xf6, 0x37, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x6e, 0xb2, 0xf8, 0x9e, 0x03, 0x00, 0x00, } func (m *Log) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Log) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Records) > 0 { for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintConsensus(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintConsensus(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Record) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Record) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.CreatedUnix != 0 { i = encodeVarintConsensus(dAtA, i, uint64(m.CreatedUnix)) i-- dAtA[i] = 0x20 } if len(m.Payload) > 0 { i -= len(m.Payload) copy(dAtA[i:], m.Payload) i = encodeVarintConsensus(dAtA, i, uint64(len(m.Payload))) i-- dAtA[i] = 0x1a } if len(m.PrevId) > 0 { i -= len(m.PrevId) copy(dAtA[i:], m.PrevId) i = encodeVarintConsensus(dAtA, i, uint64(len(m.PrevId))) i-- dAtA[i] = 0x12 } if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintConsensus(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Ok) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Ok) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Ok) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *AddLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AddLogRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AddLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Log != nil { { size, err := m.Log.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintConsensus(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *AddRecordRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AddRecordRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AddRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Record != nil { { size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintConsensus(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.LogId) > 0 { i -= len(m.LogId) copy(dAtA[i:], m.LogId) i = encodeVarintConsensus(dAtA, i, uint64(len(m.LogId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *WatchLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *WatchLogRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *WatchLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.UnwatchIds) > 0 { for iNdEx := len(m.UnwatchIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.UnwatchIds[iNdEx]) copy(dAtA[i:], m.UnwatchIds[iNdEx]) i = encodeVarintConsensus(dAtA, i, uint64(len(m.UnwatchIds[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.WatchIds) > 0 { for iNdEx := len(m.WatchIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.WatchIds[iNdEx]) copy(dAtA[i:], m.WatchIds[iNdEx]) i = encodeVarintConsensus(dAtA, i, uint64(len(m.WatchIds[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *WatchLogEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *WatchLogEvent) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *WatchLogEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Records) > 0 { for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintConsensus(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.LogId) > 0 { i -= len(m.LogId) copy(dAtA[i:], m.LogId) i = encodeVarintConsensus(dAtA, i, uint64(len(m.LogId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintConsensus(dAtA []byte, offset int, v uint64) int { offset -= sovConsensus(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *Log) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovConsensus(uint64(l)) } if len(m.Records) > 0 { for _, e := range m.Records { l = e.Size() n += 1 + l + sovConsensus(uint64(l)) } } return n } func (m *Record) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovConsensus(uint64(l)) } l = len(m.PrevId) if l > 0 { n += 1 + l + sovConsensus(uint64(l)) } l = len(m.Payload) if l > 0 { n += 1 + l + sovConsensus(uint64(l)) } if m.CreatedUnix != 0 { n += 1 + sovConsensus(uint64(m.CreatedUnix)) } return n } func (m *Ok) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *AddLogRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Log != nil { l = m.Log.Size() n += 1 + l + sovConsensus(uint64(l)) } return n } func (m *AddRecordRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.LogId) if l > 0 { n += 1 + l + sovConsensus(uint64(l)) } if m.Record != nil { l = m.Record.Size() n += 1 + l + sovConsensus(uint64(l)) } return n } func (m *WatchLogRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.WatchIds) > 0 { for _, b := range m.WatchIds { l = len(b) n += 1 + l + sovConsensus(uint64(l)) } } if len(m.UnwatchIds) > 0 { for _, b := range m.UnwatchIds { l = len(b) n += 1 + l + sovConsensus(uint64(l)) } } return n } func (m *WatchLogEvent) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.LogId) if l > 0 { n += 1 + l + sovConsensus(uint64(l)) } if len(m.Records) > 0 { for _, e := range m.Records { l = e.Size() n += 1 + l + sovConsensus(uint64(l)) } } return n } func sovConsensus(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozConsensus(x uint64) (n int) { return sovConsensus(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Log) Unmarshal(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 ErrIntOverflowConsensus } 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: Log: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Log: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = append(m.Id[:0], dAtA[iNdEx:postIndex]...) if m.Id == nil { m.Id = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.Records = append(m.Records, &Record{}) if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipConsensus(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConsensus } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Record) Unmarshal(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 ErrIntOverflowConsensus } 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: Record: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Record: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = append(m.Id[:0], dAtA[iNdEx:postIndex]...) if m.Id == nil { m.Id = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PrevId", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.PrevId = append(m.PrevId[:0], dAtA[iNdEx:postIndex]...) if m.PrevId == nil { m.PrevId = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) if m.Payload == nil { m.Payload = []byte{} } iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field CreatedUnix", wireType) } m.CreatedUnix = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.CreatedUnix |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipConsensus(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConsensus } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Ok) Unmarshal(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 ErrIntOverflowConsensus } 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: Ok: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Ok: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipConsensus(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConsensus } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *AddLogRequest) Unmarshal(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 ErrIntOverflowConsensus } 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: AddLogRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AddLogRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } if m.Log == nil { m.Log = &Log{} } if err := m.Log.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipConsensus(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConsensus } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *AddRecordRequest) Unmarshal(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 ErrIntOverflowConsensus } 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: AddRecordRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AddRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LogId", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.LogId = append(m.LogId[:0], dAtA[iNdEx:postIndex]...) if m.LogId == nil { m.LogId = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Record", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } if m.Record == nil { m.Record = &Record{} } if err := m.Record.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipConsensus(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConsensus } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *WatchLogRequest) Unmarshal(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 ErrIntOverflowConsensus } 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: WatchLogRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: WatchLogRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WatchIds", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.WatchIds = append(m.WatchIds, make([]byte, postIndex-iNdEx)) copy(m.WatchIds[len(m.WatchIds)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UnwatchIds", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.UnwatchIds = append(m.UnwatchIds, make([]byte, postIndex-iNdEx)) copy(m.UnwatchIds[len(m.UnwatchIds)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipConsensus(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConsensus } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *WatchLogEvent) Unmarshal(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 ErrIntOverflowConsensus } 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: WatchLogEvent: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: WatchLogEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LogId", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.LogId = append(m.LogId[:0], dAtA[iNdEx:postIndex]...) if m.LogId == nil { m.LogId = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowConsensus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthConsensus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthConsensus } if postIndex > l { return io.ErrUnexpectedEOF } m.Records = append(m.Records, &Record{}) if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipConsensus(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConsensus } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipConsensus(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowConsensus } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowConsensus } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowConsensus } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthConsensus } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupConsensus } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthConsensus } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthConsensus = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConsensus = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConsensus = fmt.Errorf("proto: unexpected end of group") )