Files
prysm/proto/beacon/rpc/v1/debug.pb.go
Preston Van Loon eb694ab5d5 Update rules_go and fix proto conflicts (#8596)
* Update rules_go and fix proto conflicts

* gaz

* Update generated code

* more emptypb fixes

* gaz

Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-03-11 18:03:19 -06:00

4568 lines
123 KiB
Go
Executable File
Generated

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: proto/beacon/rpc/v1/debug.proto
package ethereum_beacon_rpc_v1
import (
context "context"
encoding_binary "encoding/binary"
fmt "fmt"
io "io"
math "math"
math_bits "math/bits"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types"
v1alpha1 "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
v1 "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// 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 LoggingLevelRequest_Level int32
const (
LoggingLevelRequest_INFO LoggingLevelRequest_Level = 0
LoggingLevelRequest_DEBUG LoggingLevelRequest_Level = 1
LoggingLevelRequest_TRACE LoggingLevelRequest_Level = 2
)
var LoggingLevelRequest_Level_name = map[int32]string{
0: "INFO",
1: "DEBUG",
2: "TRACE",
}
var LoggingLevelRequest_Level_value = map[string]int32{
"INFO": 0,
"DEBUG": 1,
"TRACE": 2,
}
func (x LoggingLevelRequest_Level) String() string {
return proto.EnumName(LoggingLevelRequest_Level_name, int32(x))
}
func (LoggingLevelRequest_Level) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{5, 0}
}
type InclusionSlotRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,2,opt,name=slot,proto3,casttype=github.com/prysmaticlabs/eth2-types.Slot" json:"slot,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InclusionSlotRequest) Reset() { *m = InclusionSlotRequest{} }
func (m *InclusionSlotRequest) String() string { return proto.CompactTextString(m) }
func (*InclusionSlotRequest) ProtoMessage() {}
func (*InclusionSlotRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{0}
}
func (m *InclusionSlotRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *InclusionSlotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_InclusionSlotRequest.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 *InclusionSlotRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_InclusionSlotRequest.Merge(m, src)
}
func (m *InclusionSlotRequest) XXX_Size() int {
return m.Size()
}
func (m *InclusionSlotRequest) XXX_DiscardUnknown() {
xxx_messageInfo_InclusionSlotRequest.DiscardUnknown(m)
}
var xxx_messageInfo_InclusionSlotRequest proto.InternalMessageInfo
func (m *InclusionSlotRequest) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *InclusionSlotRequest) GetSlot() github_com_prysmaticlabs_eth2_types.Slot {
if m != nil {
return m.Slot
}
return 0
}
type InclusionSlotResponse struct {
Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,2,opt,name=slot,proto3,casttype=github.com/prysmaticlabs/eth2-types.Slot" json:"slot,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InclusionSlotResponse) Reset() { *m = InclusionSlotResponse{} }
func (m *InclusionSlotResponse) String() string { return proto.CompactTextString(m) }
func (*InclusionSlotResponse) ProtoMessage() {}
func (*InclusionSlotResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{1}
}
func (m *InclusionSlotResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *InclusionSlotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_InclusionSlotResponse.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 *InclusionSlotResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_InclusionSlotResponse.Merge(m, src)
}
func (m *InclusionSlotResponse) XXX_Size() int {
return m.Size()
}
func (m *InclusionSlotResponse) XXX_DiscardUnknown() {
xxx_messageInfo_InclusionSlotResponse.DiscardUnknown(m)
}
var xxx_messageInfo_InclusionSlotResponse proto.InternalMessageInfo
func (m *InclusionSlotResponse) GetSlot() github_com_prysmaticlabs_eth2_types.Slot {
if m != nil {
return m.Slot
}
return 0
}
type BeaconStateRequest struct {
// Types that are valid to be assigned to QueryFilter:
// *BeaconStateRequest_Slot
// *BeaconStateRequest_BlockRoot
QueryFilter isBeaconStateRequest_QueryFilter `protobuf_oneof:"query_filter"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BeaconStateRequest) Reset() { *m = BeaconStateRequest{} }
func (m *BeaconStateRequest) String() string { return proto.CompactTextString(m) }
func (*BeaconStateRequest) ProtoMessage() {}
func (*BeaconStateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{2}
}
func (m *BeaconStateRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BeaconStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BeaconStateRequest.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 *BeaconStateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BeaconStateRequest.Merge(m, src)
}
func (m *BeaconStateRequest) XXX_Size() int {
return m.Size()
}
func (m *BeaconStateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BeaconStateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BeaconStateRequest proto.InternalMessageInfo
type isBeaconStateRequest_QueryFilter interface {
isBeaconStateRequest_QueryFilter()
MarshalTo([]byte) (int, error)
Size() int
}
type BeaconStateRequest_Slot struct {
Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,1,opt,name=slot,proto3,oneof,casttype=github.com/prysmaticlabs/eth2-types.Slot" json:"slot,omitempty"`
}
type BeaconStateRequest_BlockRoot struct {
BlockRoot []byte `protobuf:"bytes,2,opt,name=block_root,json=blockRoot,proto3,oneof" json:"block_root,omitempty"`
}
func (*BeaconStateRequest_Slot) isBeaconStateRequest_QueryFilter() {}
func (*BeaconStateRequest_BlockRoot) isBeaconStateRequest_QueryFilter() {}
func (m *BeaconStateRequest) GetQueryFilter() isBeaconStateRequest_QueryFilter {
if m != nil {
return m.QueryFilter
}
return nil
}
func (m *BeaconStateRequest) GetSlot() github_com_prysmaticlabs_eth2_types.Slot {
if x, ok := m.GetQueryFilter().(*BeaconStateRequest_Slot); ok {
return x.Slot
}
return 0
}
func (m *BeaconStateRequest) GetBlockRoot() []byte {
if x, ok := m.GetQueryFilter().(*BeaconStateRequest_BlockRoot); ok {
return x.BlockRoot
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*BeaconStateRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*BeaconStateRequest_Slot)(nil),
(*BeaconStateRequest_BlockRoot)(nil),
}
}
type BlockRequest struct {
BlockRoot []byte `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockRequest) Reset() { *m = BlockRequest{} }
func (m *BlockRequest) String() string { return proto.CompactTextString(m) }
func (*BlockRequest) ProtoMessage() {}
func (*BlockRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{3}
}
func (m *BlockRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BlockRequest.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 *BlockRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockRequest.Merge(m, src)
}
func (m *BlockRequest) XXX_Size() int {
return m.Size()
}
func (m *BlockRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BlockRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BlockRequest proto.InternalMessageInfo
func (m *BlockRequest) GetBlockRoot() []byte {
if m != nil {
return m.BlockRoot
}
return nil
}
type SSZResponse struct {
Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSZResponse) Reset() { *m = SSZResponse{} }
func (m *SSZResponse) String() string { return proto.CompactTextString(m) }
func (*SSZResponse) ProtoMessage() {}
func (*SSZResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{4}
}
func (m *SSZResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SSZResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SSZResponse.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 *SSZResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSZResponse.Merge(m, src)
}
func (m *SSZResponse) XXX_Size() int {
return m.Size()
}
func (m *SSZResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SSZResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SSZResponse proto.InternalMessageInfo
func (m *SSZResponse) GetEncoded() []byte {
if m != nil {
return m.Encoded
}
return nil
}
type LoggingLevelRequest struct {
Level LoggingLevelRequest_Level `protobuf:"varint,1,opt,name=level,proto3,enum=ethereum.beacon.rpc.v1.LoggingLevelRequest_Level" json:"level,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoggingLevelRequest) Reset() { *m = LoggingLevelRequest{} }
func (m *LoggingLevelRequest) String() string { return proto.CompactTextString(m) }
func (*LoggingLevelRequest) ProtoMessage() {}
func (*LoggingLevelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{5}
}
func (m *LoggingLevelRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *LoggingLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_LoggingLevelRequest.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 *LoggingLevelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoggingLevelRequest.Merge(m, src)
}
func (m *LoggingLevelRequest) XXX_Size() int {
return m.Size()
}
func (m *LoggingLevelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LoggingLevelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LoggingLevelRequest proto.InternalMessageInfo
func (m *LoggingLevelRequest) GetLevel() LoggingLevelRequest_Level {
if m != nil {
return m.Level
}
return LoggingLevelRequest_INFO
}
type ProtoArrayForkChoiceResponse struct {
PruneThreshold uint64 `protobuf:"varint,1,opt,name=prune_threshold,json=pruneThreshold,proto3" json:"prune_threshold,omitempty"`
JustifiedEpoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,2,opt,name=justified_epoch,json=justifiedEpoch,proto3,casttype=github.com/prysmaticlabs/eth2-types.Epoch" json:"justified_epoch,omitempty"`
FinalizedEpoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,3,opt,name=finalized_epoch,json=finalizedEpoch,proto3,casttype=github.com/prysmaticlabs/eth2-types.Epoch" json:"finalized_epoch,omitempty"`
ProtoArrayNodes []*ProtoArrayNode `protobuf:"bytes,4,rep,name=proto_array_nodes,json=protoArrayNodes,proto3" json:"proto_array_nodes,omitempty"`
Indices map[string]uint64 `protobuf:"bytes,5,rep,name=indices,proto3" json:"indices,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProtoArrayForkChoiceResponse) Reset() { *m = ProtoArrayForkChoiceResponse{} }
func (m *ProtoArrayForkChoiceResponse) String() string { return proto.CompactTextString(m) }
func (*ProtoArrayForkChoiceResponse) ProtoMessage() {}
func (*ProtoArrayForkChoiceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{6}
}
func (m *ProtoArrayForkChoiceResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ProtoArrayForkChoiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ProtoArrayForkChoiceResponse.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 *ProtoArrayForkChoiceResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProtoArrayForkChoiceResponse.Merge(m, src)
}
func (m *ProtoArrayForkChoiceResponse) XXX_Size() int {
return m.Size()
}
func (m *ProtoArrayForkChoiceResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ProtoArrayForkChoiceResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ProtoArrayForkChoiceResponse proto.InternalMessageInfo
func (m *ProtoArrayForkChoiceResponse) GetPruneThreshold() uint64 {
if m != nil {
return m.PruneThreshold
}
return 0
}
func (m *ProtoArrayForkChoiceResponse) GetJustifiedEpoch() github_com_prysmaticlabs_eth2_types.Epoch {
if m != nil {
return m.JustifiedEpoch
}
return 0
}
func (m *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() github_com_prysmaticlabs_eth2_types.Epoch {
if m != nil {
return m.FinalizedEpoch
}
return 0
}
func (m *ProtoArrayForkChoiceResponse) GetProtoArrayNodes() []*ProtoArrayNode {
if m != nil {
return m.ProtoArrayNodes
}
return nil
}
func (m *ProtoArrayForkChoiceResponse) GetIndices() map[string]uint64 {
if m != nil {
return m.Indices
}
return nil
}
type ProtoArrayNode struct {
Slot github_com_prysmaticlabs_eth2_types.Slot `protobuf:"varint,1,opt,name=slot,proto3,casttype=github.com/prysmaticlabs/eth2-types.Slot" json:"slot,omitempty"`
Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
Parent uint64 `protobuf:"varint,3,opt,name=parent,proto3" json:"parent,omitempty"`
JustifiedEpoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,4,opt,name=justified_epoch,json=justifiedEpoch,proto3,casttype=github.com/prysmaticlabs/eth2-types.Epoch" json:"justified_epoch,omitempty"`
FinalizedEpoch github_com_prysmaticlabs_eth2_types.Epoch `protobuf:"varint,5,opt,name=finalized_epoch,json=finalizedEpoch,proto3,casttype=github.com/prysmaticlabs/eth2-types.Epoch" json:"finalized_epoch,omitempty"`
Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
BestChild uint64 `protobuf:"varint,7,opt,name=best_child,json=bestChild,proto3" json:"best_child,omitempty"`
BestDescendant uint64 `protobuf:"varint,8,opt,name=best_descendant,json=bestDescendant,proto3" json:"best_descendant,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProtoArrayNode) Reset() { *m = ProtoArrayNode{} }
func (m *ProtoArrayNode) String() string { return proto.CompactTextString(m) }
func (*ProtoArrayNode) ProtoMessage() {}
func (*ProtoArrayNode) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{7}
}
func (m *ProtoArrayNode) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ProtoArrayNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ProtoArrayNode.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 *ProtoArrayNode) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProtoArrayNode.Merge(m, src)
}
func (m *ProtoArrayNode) XXX_Size() int {
return m.Size()
}
func (m *ProtoArrayNode) XXX_DiscardUnknown() {
xxx_messageInfo_ProtoArrayNode.DiscardUnknown(m)
}
var xxx_messageInfo_ProtoArrayNode proto.InternalMessageInfo
func (m *ProtoArrayNode) GetSlot() github_com_prysmaticlabs_eth2_types.Slot {
if m != nil {
return m.Slot
}
return 0
}
func (m *ProtoArrayNode) GetRoot() []byte {
if m != nil {
return m.Root
}
return nil
}
func (m *ProtoArrayNode) GetParent() uint64 {
if m != nil {
return m.Parent
}
return 0
}
func (m *ProtoArrayNode) GetJustifiedEpoch() github_com_prysmaticlabs_eth2_types.Epoch {
if m != nil {
return m.JustifiedEpoch
}
return 0
}
func (m *ProtoArrayNode) GetFinalizedEpoch() github_com_prysmaticlabs_eth2_types.Epoch {
if m != nil {
return m.FinalizedEpoch
}
return 0
}
func (m *ProtoArrayNode) GetWeight() uint64 {
if m != nil {
return m.Weight
}
return 0
}
func (m *ProtoArrayNode) GetBestChild() uint64 {
if m != nil {
return m.BestChild
}
return 0
}
func (m *ProtoArrayNode) GetBestDescendant() uint64 {
if m != nil {
return m.BestDescendant
}
return 0
}
type DebugPeerResponses struct {
Responses []*DebugPeerResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugPeerResponses) Reset() { *m = DebugPeerResponses{} }
func (m *DebugPeerResponses) String() string { return proto.CompactTextString(m) }
func (*DebugPeerResponses) ProtoMessage() {}
func (*DebugPeerResponses) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{8}
}
func (m *DebugPeerResponses) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DebugPeerResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DebugPeerResponses.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 *DebugPeerResponses) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugPeerResponses.Merge(m, src)
}
func (m *DebugPeerResponses) XXX_Size() int {
return m.Size()
}
func (m *DebugPeerResponses) XXX_DiscardUnknown() {
xxx_messageInfo_DebugPeerResponses.DiscardUnknown(m)
}
var xxx_messageInfo_DebugPeerResponses proto.InternalMessageInfo
func (m *DebugPeerResponses) GetResponses() []*DebugPeerResponse {
if m != nil {
return m.Responses
}
return nil
}
type DebugPeerResponse struct {
ListeningAddresses []string `protobuf:"bytes,1,rep,name=listening_addresses,json=listeningAddresses,proto3" json:"listening_addresses,omitempty"`
Direction v1alpha1.PeerDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=ethereum.eth.v1alpha1.PeerDirection" json:"direction,omitempty"`
ConnectionState v1alpha1.ConnectionState `protobuf:"varint,3,opt,name=connection_state,json=connectionState,proto3,enum=ethereum.eth.v1alpha1.ConnectionState" json:"connection_state,omitempty"`
PeerId string `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
Enr string `protobuf:"bytes,5,opt,name=enr,proto3" json:"enr,omitempty"`
PeerInfo *DebugPeerResponse_PeerInfo `protobuf:"bytes,6,opt,name=peer_info,json=peerInfo,proto3" json:"peer_info,omitempty"`
PeerStatus *v1.Status `protobuf:"bytes,7,opt,name=peer_status,json=peerStatus,proto3" json:"peer_status,omitempty"`
LastUpdated uint64 `protobuf:"varint,8,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
ScoreInfo *ScoreInfo `protobuf:"bytes,9,opt,name=score_info,json=scoreInfo,proto3" json:"score_info,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugPeerResponse) Reset() { *m = DebugPeerResponse{} }
func (m *DebugPeerResponse) String() string { return proto.CompactTextString(m) }
func (*DebugPeerResponse) ProtoMessage() {}
func (*DebugPeerResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{9}
}
func (m *DebugPeerResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DebugPeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DebugPeerResponse.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 *DebugPeerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugPeerResponse.Merge(m, src)
}
func (m *DebugPeerResponse) XXX_Size() int {
return m.Size()
}
func (m *DebugPeerResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DebugPeerResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DebugPeerResponse proto.InternalMessageInfo
func (m *DebugPeerResponse) GetListeningAddresses() []string {
if m != nil {
return m.ListeningAddresses
}
return nil
}
func (m *DebugPeerResponse) GetDirection() v1alpha1.PeerDirection {
if m != nil {
return m.Direction
}
return v1alpha1.PeerDirection_UNKNOWN
}
func (m *DebugPeerResponse) GetConnectionState() v1alpha1.ConnectionState {
if m != nil {
return m.ConnectionState
}
return v1alpha1.ConnectionState_DISCONNECTED
}
func (m *DebugPeerResponse) GetPeerId() string {
if m != nil {
return m.PeerId
}
return ""
}
func (m *DebugPeerResponse) GetEnr() string {
if m != nil {
return m.Enr
}
return ""
}
func (m *DebugPeerResponse) GetPeerInfo() *DebugPeerResponse_PeerInfo {
if m != nil {
return m.PeerInfo
}
return nil
}
func (m *DebugPeerResponse) GetPeerStatus() *v1.Status {
if m != nil {
return m.PeerStatus
}
return nil
}
func (m *DebugPeerResponse) GetLastUpdated() uint64 {
if m != nil {
return m.LastUpdated
}
return 0
}
func (m *DebugPeerResponse) GetScoreInfo() *ScoreInfo {
if m != nil {
return m.ScoreInfo
}
return nil
}
type DebugPeerResponse_PeerInfo struct {
Metadata *v1.MetaData `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Protocols []string `protobuf:"bytes,2,rep,name=protocols,proto3" json:"protocols,omitempty"`
FaultCount uint64 `protobuf:"varint,3,opt,name=fault_count,json=faultCount,proto3" json:"fault_count,omitempty"`
ProtocolVersion string `protobuf:"bytes,4,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
AgentVersion string `protobuf:"bytes,5,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
PeerLatency uint64 `protobuf:"varint,6,opt,name=peer_latency,json=peerLatency,proto3" json:"peer_latency,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugPeerResponse_PeerInfo) Reset() { *m = DebugPeerResponse_PeerInfo{} }
func (m *DebugPeerResponse_PeerInfo) String() string { return proto.CompactTextString(m) }
func (*DebugPeerResponse_PeerInfo) ProtoMessage() {}
func (*DebugPeerResponse_PeerInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{9, 0}
}
func (m *DebugPeerResponse_PeerInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DebugPeerResponse_PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DebugPeerResponse_PeerInfo.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 *DebugPeerResponse_PeerInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugPeerResponse_PeerInfo.Merge(m, src)
}
func (m *DebugPeerResponse_PeerInfo) XXX_Size() int {
return m.Size()
}
func (m *DebugPeerResponse_PeerInfo) XXX_DiscardUnknown() {
xxx_messageInfo_DebugPeerResponse_PeerInfo.DiscardUnknown(m)
}
var xxx_messageInfo_DebugPeerResponse_PeerInfo proto.InternalMessageInfo
func (m *DebugPeerResponse_PeerInfo) GetMetadata() *v1.MetaData {
if m != nil {
return m.Metadata
}
return nil
}
func (m *DebugPeerResponse_PeerInfo) GetProtocols() []string {
if m != nil {
return m.Protocols
}
return nil
}
func (m *DebugPeerResponse_PeerInfo) GetFaultCount() uint64 {
if m != nil {
return m.FaultCount
}
return 0
}
func (m *DebugPeerResponse_PeerInfo) GetProtocolVersion() string {
if m != nil {
return m.ProtocolVersion
}
return ""
}
func (m *DebugPeerResponse_PeerInfo) GetAgentVersion() string {
if m != nil {
return m.AgentVersion
}
return ""
}
func (m *DebugPeerResponse_PeerInfo) GetPeerLatency() uint64 {
if m != nil {
return m.PeerLatency
}
return 0
}
type ScoreInfo struct {
OverallScore float32 `protobuf:"fixed32,1,opt,name=overall_score,json=overallScore,proto3" json:"overall_score,omitempty"`
ProcessedBlocks uint64 `protobuf:"varint,2,opt,name=processed_blocks,json=processedBlocks,proto3" json:"processed_blocks,omitempty"`
BlockProviderScore float32 `protobuf:"fixed32,3,opt,name=block_provider_score,json=blockProviderScore,proto3" json:"block_provider_score,omitempty"`
TopicScores map[string]*TopicScoreSnapshot `protobuf:"bytes,4,rep,name=topic_scores,json=topicScores,proto3" json:"topic_scores,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
GossipScore float32 `protobuf:"fixed32,5,opt,name=gossip_score,json=gossipScore,proto3" json:"gossip_score,omitempty"`
BehaviourPenalty float32 `protobuf:"fixed32,6,opt,name=behaviour_penalty,json=behaviourPenalty,proto3" json:"behaviour_penalty,omitempty"`
ValidationError string `protobuf:"bytes,7,opt,name=validation_error,json=validationError,proto3" json:"validation_error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScoreInfo) Reset() { *m = ScoreInfo{} }
func (m *ScoreInfo) String() string { return proto.CompactTextString(m) }
func (*ScoreInfo) ProtoMessage() {}
func (*ScoreInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{10}
}
func (m *ScoreInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ScoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ScoreInfo.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 *ScoreInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScoreInfo.Merge(m, src)
}
func (m *ScoreInfo) XXX_Size() int {
return m.Size()
}
func (m *ScoreInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ScoreInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ScoreInfo proto.InternalMessageInfo
func (m *ScoreInfo) GetOverallScore() float32 {
if m != nil {
return m.OverallScore
}
return 0
}
func (m *ScoreInfo) GetProcessedBlocks() uint64 {
if m != nil {
return m.ProcessedBlocks
}
return 0
}
func (m *ScoreInfo) GetBlockProviderScore() float32 {
if m != nil {
return m.BlockProviderScore
}
return 0
}
func (m *ScoreInfo) GetTopicScores() map[string]*TopicScoreSnapshot {
if m != nil {
return m.TopicScores
}
return nil
}
func (m *ScoreInfo) GetGossipScore() float32 {
if m != nil {
return m.GossipScore
}
return 0
}
func (m *ScoreInfo) GetBehaviourPenalty() float32 {
if m != nil {
return m.BehaviourPenalty
}
return 0
}
func (m *ScoreInfo) GetValidationError() string {
if m != nil {
return m.ValidationError
}
return ""
}
type TopicScoreSnapshot struct {
TimeInMesh uint64 `protobuf:"varint,1,opt,name=time_in_mesh,json=timeInMesh,proto3" json:"time_in_mesh,omitempty"`
FirstMessageDeliveries float32 `protobuf:"fixed32,2,opt,name=first_message_deliveries,json=firstMessageDeliveries,proto3" json:"first_message_deliveries,omitempty"`
MeshMessageDeliveries float32 `protobuf:"fixed32,3,opt,name=mesh_message_deliveries,json=meshMessageDeliveries,proto3" json:"mesh_message_deliveries,omitempty"`
InvalidMessageDeliveries float32 `protobuf:"fixed32,4,opt,name=invalid_message_deliveries,json=invalidMessageDeliveries,proto3" json:"invalid_message_deliveries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TopicScoreSnapshot) Reset() { *m = TopicScoreSnapshot{} }
func (m *TopicScoreSnapshot) String() string { return proto.CompactTextString(m) }
func (*TopicScoreSnapshot) ProtoMessage() {}
func (*TopicScoreSnapshot) Descriptor() ([]byte, []int) {
return fileDescriptor_851e5cb2de3d61dd, []int{11}
}
func (m *TopicScoreSnapshot) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TopicScoreSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TopicScoreSnapshot.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 *TopicScoreSnapshot) XXX_Merge(src proto.Message) {
xxx_messageInfo_TopicScoreSnapshot.Merge(m, src)
}
func (m *TopicScoreSnapshot) XXX_Size() int {
return m.Size()
}
func (m *TopicScoreSnapshot) XXX_DiscardUnknown() {
xxx_messageInfo_TopicScoreSnapshot.DiscardUnknown(m)
}
var xxx_messageInfo_TopicScoreSnapshot proto.InternalMessageInfo
func (m *TopicScoreSnapshot) GetTimeInMesh() uint64 {
if m != nil {
return m.TimeInMesh
}
return 0
}
func (m *TopicScoreSnapshot) GetFirstMessageDeliveries() float32 {
if m != nil {
return m.FirstMessageDeliveries
}
return 0
}
func (m *TopicScoreSnapshot) GetMeshMessageDeliveries() float32 {
if m != nil {
return m.MeshMessageDeliveries
}
return 0
}
func (m *TopicScoreSnapshot) GetInvalidMessageDeliveries() float32 {
if m != nil {
return m.InvalidMessageDeliveries
}
return 0
}
func init() {
proto.RegisterEnum("ethereum.beacon.rpc.v1.LoggingLevelRequest_Level", LoggingLevelRequest_Level_name, LoggingLevelRequest_Level_value)
proto.RegisterType((*InclusionSlotRequest)(nil), "ethereum.beacon.rpc.v1.InclusionSlotRequest")
proto.RegisterType((*InclusionSlotResponse)(nil), "ethereum.beacon.rpc.v1.InclusionSlotResponse")
proto.RegisterType((*BeaconStateRequest)(nil), "ethereum.beacon.rpc.v1.BeaconStateRequest")
proto.RegisterType((*BlockRequest)(nil), "ethereum.beacon.rpc.v1.BlockRequest")
proto.RegisterType((*SSZResponse)(nil), "ethereum.beacon.rpc.v1.SSZResponse")
proto.RegisterType((*LoggingLevelRequest)(nil), "ethereum.beacon.rpc.v1.LoggingLevelRequest")
proto.RegisterType((*ProtoArrayForkChoiceResponse)(nil), "ethereum.beacon.rpc.v1.ProtoArrayForkChoiceResponse")
proto.RegisterMapType((map[string]uint64)(nil), "ethereum.beacon.rpc.v1.ProtoArrayForkChoiceResponse.IndicesEntry")
proto.RegisterType((*ProtoArrayNode)(nil), "ethereum.beacon.rpc.v1.ProtoArrayNode")
proto.RegisterType((*DebugPeerResponses)(nil), "ethereum.beacon.rpc.v1.DebugPeerResponses")
proto.RegisterType((*DebugPeerResponse)(nil), "ethereum.beacon.rpc.v1.DebugPeerResponse")
proto.RegisterType((*DebugPeerResponse_PeerInfo)(nil), "ethereum.beacon.rpc.v1.DebugPeerResponse.PeerInfo")
proto.RegisterType((*ScoreInfo)(nil), "ethereum.beacon.rpc.v1.ScoreInfo")
proto.RegisterMapType((map[string]*TopicScoreSnapshot)(nil), "ethereum.beacon.rpc.v1.ScoreInfo.TopicScoresEntry")
proto.RegisterType((*TopicScoreSnapshot)(nil), "ethereum.beacon.rpc.v1.TopicScoreSnapshot")
}
func init() { proto.RegisterFile("proto/beacon/rpc/v1/debug.proto", fileDescriptor_851e5cb2de3d61dd) }
var fileDescriptor_851e5cb2de3d61dd = []byte{
// 1587 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcd, 0x6f, 0x1b, 0xc7,
0x15, 0xf7, 0x52, 0xa2, 0xa4, 0x7d, 0x64, 0x29, 0x7a, 0xe2, 0xc8, 0x2c, 0x6d, 0x4b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 0xb7,
0x5c, 0xf9, 0x65, 0xc6, 0x2f, 0xbf, 0xa6, 0x78, 0x9b, 0xc6, 0x79, 0x97, 0x74, 0xe6, 0x39, 0x27,
0x7f, 0x77, 0xa0, 0x7d, 0x80, 0xea, 0xdc, 0x0b, 0x93, 0xbc, 0x37, 0xcf, 0xc3, 0xac, 0x27, 0x6f,
0x77, 0xeb, 0x92, 0xda, 0x45, 0x4c, 0x3f, 0x32, 0x31, 0x6d, 0x90, 0x5b, 0xb3, 0x62, 0x62, 0xa5,
0xc9, 0x4e, 0xf3, 0x9f, 0x2f, 0xd6, 0x9d, 0x7f, 0xbf, 0x58, 0x77, 0xfe, 0xfb, 0x62, 0xdd, 0x39,
0x5e, 0x32, 0x15, 0xf8, 0xc9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x0a, 0x6e, 0xd4, 0x57,
0x10, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// DebugClient is the client API for Debug service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DebugClient interface {
GetBeaconState(ctx context.Context, in *BeaconStateRequest, opts ...grpc.CallOption) (*SSZResponse, error)
GetBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*SSZResponse, error)
SetLoggingLevel(ctx context.Context, in *LoggingLevelRequest, opts ...grpc.CallOption) (*empty.Empty, error)
GetProtoArrayForkChoice(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProtoArrayForkChoiceResponse, error)
ListPeers(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DebugPeerResponses, error)
GetPeer(ctx context.Context, in *v1alpha1.PeerRequest, opts ...grpc.CallOption) (*DebugPeerResponse, error)
GetInclusionSlot(ctx context.Context, in *InclusionSlotRequest, opts ...grpc.CallOption) (*InclusionSlotResponse, error)
}
type debugClient struct {
cc *grpc.ClientConn
}
func NewDebugClient(cc *grpc.ClientConn) DebugClient {
return &debugClient{cc}
}
func (c *debugClient) GetBeaconState(ctx context.Context, in *BeaconStateRequest, opts ...grpc.CallOption) (*SSZResponse, error) {
out := new(SSZResponse)
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Debug/GetBeaconState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugClient) GetBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*SSZResponse, error) {
out := new(SSZResponse)
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Debug/GetBlock", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugClient) SetLoggingLevel(ctx context.Context, in *LoggingLevelRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Debug/SetLoggingLevel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugClient) GetProtoArrayForkChoice(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProtoArrayForkChoiceResponse, error) {
out := new(ProtoArrayForkChoiceResponse)
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Debug/GetProtoArrayForkChoice", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugClient) ListPeers(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DebugPeerResponses, error) {
out := new(DebugPeerResponses)
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Debug/ListPeers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugClient) GetPeer(ctx context.Context, in *v1alpha1.PeerRequest, opts ...grpc.CallOption) (*DebugPeerResponse, error) {
out := new(DebugPeerResponse)
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Debug/GetPeer", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *debugClient) GetInclusionSlot(ctx context.Context, in *InclusionSlotRequest, opts ...grpc.CallOption) (*InclusionSlotResponse, error) {
out := new(InclusionSlotResponse)
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.Debug/GetInclusionSlot", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DebugServer is the server API for Debug service.
type DebugServer interface {
GetBeaconState(context.Context, *BeaconStateRequest) (*SSZResponse, error)
GetBlock(context.Context, *BlockRequest) (*SSZResponse, error)
SetLoggingLevel(context.Context, *LoggingLevelRequest) (*empty.Empty, error)
GetProtoArrayForkChoice(context.Context, *empty.Empty) (*ProtoArrayForkChoiceResponse, error)
ListPeers(context.Context, *empty.Empty) (*DebugPeerResponses, error)
GetPeer(context.Context, *v1alpha1.PeerRequest) (*DebugPeerResponse, error)
GetInclusionSlot(context.Context, *InclusionSlotRequest) (*InclusionSlotResponse, error)
}
// UnimplementedDebugServer can be embedded to have forward compatible implementations.
type UnimplementedDebugServer struct {
}
func (*UnimplementedDebugServer) GetBeaconState(ctx context.Context, req *BeaconStateRequest) (*SSZResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBeaconState not implemented")
}
func (*UnimplementedDebugServer) GetBlock(ctx context.Context, req *BlockRequest) (*SSZResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBlock not implemented")
}
func (*UnimplementedDebugServer) SetLoggingLevel(ctx context.Context, req *LoggingLevelRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetLoggingLevel not implemented")
}
func (*UnimplementedDebugServer) GetProtoArrayForkChoice(ctx context.Context, req *empty.Empty) (*ProtoArrayForkChoiceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetProtoArrayForkChoice not implemented")
}
func (*UnimplementedDebugServer) ListPeers(ctx context.Context, req *empty.Empty) (*DebugPeerResponses, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPeers not implemented")
}
func (*UnimplementedDebugServer) GetPeer(ctx context.Context, req *v1alpha1.PeerRequest) (*DebugPeerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPeer not implemented")
}
func (*UnimplementedDebugServer) GetInclusionSlot(ctx context.Context, req *InclusionSlotRequest) (*InclusionSlotResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetInclusionSlot not implemented")
}
func RegisterDebugServer(s *grpc.Server, srv DebugServer) {
s.RegisterService(&_Debug_serviceDesc, srv)
}
func _Debug_GetBeaconState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BeaconStateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DebugServer).GetBeaconState(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethereum.beacon.rpc.v1.Debug/GetBeaconState",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DebugServer).GetBeaconState(ctx, req.(*BeaconStateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debug_GetBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BlockRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DebugServer).GetBlock(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethereum.beacon.rpc.v1.Debug/GetBlock",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DebugServer).GetBlock(ctx, req.(*BlockRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debug_SetLoggingLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LoggingLevelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DebugServer).SetLoggingLevel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethereum.beacon.rpc.v1.Debug/SetLoggingLevel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DebugServer).SetLoggingLevel(ctx, req.(*LoggingLevelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debug_GetProtoArrayForkChoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DebugServer).GetProtoArrayForkChoice(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethereum.beacon.rpc.v1.Debug/GetProtoArrayForkChoice",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DebugServer).GetProtoArrayForkChoice(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Debug_ListPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DebugServer).ListPeers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethereum.beacon.rpc.v1.Debug/ListPeers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DebugServer).ListPeers(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Debug_GetPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1alpha1.PeerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DebugServer).GetPeer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethereum.beacon.rpc.v1.Debug/GetPeer",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DebugServer).GetPeer(ctx, req.(*v1alpha1.PeerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Debug_GetInclusionSlot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InclusionSlotRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DebugServer).GetInclusionSlot(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ethereum.beacon.rpc.v1.Debug/GetInclusionSlot",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DebugServer).GetInclusionSlot(ctx, req.(*InclusionSlotRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Debug_serviceDesc = grpc.ServiceDesc{
ServiceName: "ethereum.beacon.rpc.v1.Debug",
HandlerType: (*DebugServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetBeaconState",
Handler: _Debug_GetBeaconState_Handler,
},
{
MethodName: "GetBlock",
Handler: _Debug_GetBlock_Handler,
},
{
MethodName: "SetLoggingLevel",
Handler: _Debug_SetLoggingLevel_Handler,
},
{
MethodName: "GetProtoArrayForkChoice",
Handler: _Debug_GetProtoArrayForkChoice_Handler,
},
{
MethodName: "ListPeers",
Handler: _Debug_ListPeers_Handler,
},
{
MethodName: "GetPeer",
Handler: _Debug_GetPeer_Handler,
},
{
MethodName: "GetInclusionSlot",
Handler: _Debug_GetInclusionSlot_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "proto/beacon/rpc/v1/debug.proto",
}
func (m *InclusionSlotRequest) 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 *InclusionSlotRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *InclusionSlotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Slot != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Slot))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *InclusionSlotResponse) 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 *InclusionSlotResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *InclusionSlotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Slot != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Slot))
i--
dAtA[i] = 0x10
}
return len(dAtA) - i, nil
}
func (m *BeaconStateRequest) 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 *BeaconStateRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BeaconStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.QueryFilter != nil {
{
size := m.QueryFilter.Size()
i -= size
if _, err := m.QueryFilter.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
}
}
return len(dAtA) - i, nil
}
func (m *BeaconStateRequest_Slot) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BeaconStateRequest_Slot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
i = encodeVarintDebug(dAtA, i, uint64(m.Slot))
i--
dAtA[i] = 0x8
return len(dAtA) - i, nil
}
func (m *BeaconStateRequest_BlockRoot) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BeaconStateRequest_BlockRoot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
if m.BlockRoot != nil {
i -= len(m.BlockRoot)
copy(dAtA[i:], m.BlockRoot)
i = encodeVarintDebug(dAtA, i, uint64(len(m.BlockRoot)))
i--
dAtA[i] = 0x12
}
return len(dAtA) - i, nil
}
func (m *BlockRequest) 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 *BlockRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.BlockRoot) > 0 {
i -= len(m.BlockRoot)
copy(dAtA[i:], m.BlockRoot)
i = encodeVarintDebug(dAtA, i, uint64(len(m.BlockRoot)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *SSZResponse) 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 *SSZResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SSZResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Encoded) > 0 {
i -= len(m.Encoded)
copy(dAtA[i:], m.Encoded)
i = encodeVarintDebug(dAtA, i, uint64(len(m.Encoded)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *LoggingLevelRequest) 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 *LoggingLevelRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *LoggingLevelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Level != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Level))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *ProtoArrayForkChoiceResponse) 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 *ProtoArrayForkChoiceResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ProtoArrayForkChoiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Indices) > 0 {
for k := range m.Indices {
v := m.Indices[k]
baseI := i
i = encodeVarintDebug(dAtA, i, uint64(v))
i--
dAtA[i] = 0x10
i -= len(k)
copy(dAtA[i:], k)
i = encodeVarintDebug(dAtA, i, uint64(len(k)))
i--
dAtA[i] = 0xa
i = encodeVarintDebug(dAtA, i, uint64(baseI-i))
i--
dAtA[i] = 0x2a
}
}
if len(m.ProtoArrayNodes) > 0 {
for iNdEx := len(m.ProtoArrayNodes) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.ProtoArrayNodes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDebug(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
}
if m.FinalizedEpoch != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.FinalizedEpoch))
i--
dAtA[i] = 0x18
}
if m.JustifiedEpoch != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.JustifiedEpoch))
i--
dAtA[i] = 0x10
}
if m.PruneThreshold != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.PruneThreshold))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *ProtoArrayNode) 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 *ProtoArrayNode) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ProtoArrayNode) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.BestDescendant != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.BestDescendant))
i--
dAtA[i] = 0x40
}
if m.BestChild != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.BestChild))
i--
dAtA[i] = 0x38
}
if m.Weight != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Weight))
i--
dAtA[i] = 0x30
}
if m.FinalizedEpoch != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.FinalizedEpoch))
i--
dAtA[i] = 0x28
}
if m.JustifiedEpoch != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.JustifiedEpoch))
i--
dAtA[i] = 0x20
}
if m.Parent != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Parent))
i--
dAtA[i] = 0x18
}
if len(m.Root) > 0 {
i -= len(m.Root)
copy(dAtA[i:], m.Root)
i = encodeVarintDebug(dAtA, i, uint64(len(m.Root)))
i--
dAtA[i] = 0x12
}
if m.Slot != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Slot))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *DebugPeerResponses) 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 *DebugPeerResponses) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DebugPeerResponses) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Responses) > 0 {
for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDebug(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *DebugPeerResponse) 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 *DebugPeerResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DebugPeerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.ScoreInfo != nil {
{
size, err := m.ScoreInfo.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDebug(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x4a
}
if m.LastUpdated != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.LastUpdated))
i--
dAtA[i] = 0x40
}
if m.PeerStatus != nil {
{
size, err := m.PeerStatus.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDebug(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x3a
}
if m.PeerInfo != nil {
{
size, err := m.PeerInfo.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDebug(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
if len(m.Enr) > 0 {
i -= len(m.Enr)
copy(dAtA[i:], m.Enr)
i = encodeVarintDebug(dAtA, i, uint64(len(m.Enr)))
i--
dAtA[i] = 0x2a
}
if len(m.PeerId) > 0 {
i -= len(m.PeerId)
copy(dAtA[i:], m.PeerId)
i = encodeVarintDebug(dAtA, i, uint64(len(m.PeerId)))
i--
dAtA[i] = 0x22
}
if m.ConnectionState != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.ConnectionState))
i--
dAtA[i] = 0x18
}
if m.Direction != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.Direction))
i--
dAtA[i] = 0x10
}
if len(m.ListeningAddresses) > 0 {
for iNdEx := len(m.ListeningAddresses) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.ListeningAddresses[iNdEx])
copy(dAtA[i:], m.ListeningAddresses[iNdEx])
i = encodeVarintDebug(dAtA, i, uint64(len(m.ListeningAddresses[iNdEx])))
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *DebugPeerResponse_PeerInfo) 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 *DebugPeerResponse_PeerInfo) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DebugPeerResponse_PeerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.PeerLatency != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.PeerLatency))
i--
dAtA[i] = 0x30
}
if len(m.AgentVersion) > 0 {
i -= len(m.AgentVersion)
copy(dAtA[i:], m.AgentVersion)
i = encodeVarintDebug(dAtA, i, uint64(len(m.AgentVersion)))
i--
dAtA[i] = 0x2a
}
if len(m.ProtocolVersion) > 0 {
i -= len(m.ProtocolVersion)
copy(dAtA[i:], m.ProtocolVersion)
i = encodeVarintDebug(dAtA, i, uint64(len(m.ProtocolVersion)))
i--
dAtA[i] = 0x22
}
if m.FaultCount != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.FaultCount))
i--
dAtA[i] = 0x18
}
if len(m.Protocols) > 0 {
for iNdEx := len(m.Protocols) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.Protocols[iNdEx])
copy(dAtA[i:], m.Protocols[iNdEx])
i = encodeVarintDebug(dAtA, i, uint64(len(m.Protocols[iNdEx])))
i--
dAtA[i] = 0x12
}
}
if m.Metadata != nil {
{
size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDebug(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *ScoreInfo) 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 *ScoreInfo) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ScoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.ValidationError) > 0 {
i -= len(m.ValidationError)
copy(dAtA[i:], m.ValidationError)
i = encodeVarintDebug(dAtA, i, uint64(len(m.ValidationError)))
i--
dAtA[i] = 0x3a
}
if m.BehaviourPenalty != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BehaviourPenalty))))
i--
dAtA[i] = 0x35
}
if m.GossipScore != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.GossipScore))))
i--
dAtA[i] = 0x2d
}
if len(m.TopicScores) > 0 {
for k := range m.TopicScores {
v := m.TopicScores[k]
baseI := i
if v != nil {
{
size, err := v.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDebug(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
i -= len(k)
copy(dAtA[i:], k)
i = encodeVarintDebug(dAtA, i, uint64(len(k)))
i--
dAtA[i] = 0xa
i = encodeVarintDebug(dAtA, i, uint64(baseI-i))
i--
dAtA[i] = 0x22
}
}
if m.BlockProviderScore != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BlockProviderScore))))
i--
dAtA[i] = 0x1d
}
if m.ProcessedBlocks != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.ProcessedBlocks))
i--
dAtA[i] = 0x10
}
if m.OverallScore != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.OverallScore))))
i--
dAtA[i] = 0xd
}
return len(dAtA) - i, nil
}
func (m *TopicScoreSnapshot) 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 *TopicScoreSnapshot) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *TopicScoreSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.InvalidMessageDeliveries != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.InvalidMessageDeliveries))))
i--
dAtA[i] = 0x25
}
if m.MeshMessageDeliveries != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.MeshMessageDeliveries))))
i--
dAtA[i] = 0x1d
}
if m.FirstMessageDeliveries != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.FirstMessageDeliveries))))
i--
dAtA[i] = 0x15
}
if m.TimeInMesh != 0 {
i = encodeVarintDebug(dAtA, i, uint64(m.TimeInMesh))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintDebug(dAtA []byte, offset int, v uint64) int {
offset -= sovDebug(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *InclusionSlotRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovDebug(uint64(m.Id))
}
if m.Slot != 0 {
n += 1 + sovDebug(uint64(m.Slot))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *InclusionSlotResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Slot != 0 {
n += 1 + sovDebug(uint64(m.Slot))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *BeaconStateRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.QueryFilter != nil {
n += m.QueryFilter.Size()
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *BeaconStateRequest_Slot) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
n += 1 + sovDebug(uint64(m.Slot))
return n
}
func (m *BeaconStateRequest_BlockRoot) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.BlockRoot != nil {
l = len(m.BlockRoot)
n += 1 + l + sovDebug(uint64(l))
}
return n
}
func (m *BlockRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.BlockRoot)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *SSZResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Encoded)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *LoggingLevelRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Level != 0 {
n += 1 + sovDebug(uint64(m.Level))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *ProtoArrayForkChoiceResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.PruneThreshold != 0 {
n += 1 + sovDebug(uint64(m.PruneThreshold))
}
if m.JustifiedEpoch != 0 {
n += 1 + sovDebug(uint64(m.JustifiedEpoch))
}
if m.FinalizedEpoch != 0 {
n += 1 + sovDebug(uint64(m.FinalizedEpoch))
}
if len(m.ProtoArrayNodes) > 0 {
for _, e := range m.ProtoArrayNodes {
l = e.Size()
n += 1 + l + sovDebug(uint64(l))
}
}
if len(m.Indices) > 0 {
for k, v := range m.Indices {
_ = k
_ = v
mapEntrySize := 1 + len(k) + sovDebug(uint64(len(k))) + 1 + sovDebug(uint64(v))
n += mapEntrySize + 1 + sovDebug(uint64(mapEntrySize))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *ProtoArrayNode) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Slot != 0 {
n += 1 + sovDebug(uint64(m.Slot))
}
l = len(m.Root)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
if m.Parent != 0 {
n += 1 + sovDebug(uint64(m.Parent))
}
if m.JustifiedEpoch != 0 {
n += 1 + sovDebug(uint64(m.JustifiedEpoch))
}
if m.FinalizedEpoch != 0 {
n += 1 + sovDebug(uint64(m.FinalizedEpoch))
}
if m.Weight != 0 {
n += 1 + sovDebug(uint64(m.Weight))
}
if m.BestChild != 0 {
n += 1 + sovDebug(uint64(m.BestChild))
}
if m.BestDescendant != 0 {
n += 1 + sovDebug(uint64(m.BestDescendant))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *DebugPeerResponses) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Responses) > 0 {
for _, e := range m.Responses {
l = e.Size()
n += 1 + l + sovDebug(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *DebugPeerResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.ListeningAddresses) > 0 {
for _, s := range m.ListeningAddresses {
l = len(s)
n += 1 + l + sovDebug(uint64(l))
}
}
if m.Direction != 0 {
n += 1 + sovDebug(uint64(m.Direction))
}
if m.ConnectionState != 0 {
n += 1 + sovDebug(uint64(m.ConnectionState))
}
l = len(m.PeerId)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
l = len(m.Enr)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
if m.PeerInfo != nil {
l = m.PeerInfo.Size()
n += 1 + l + sovDebug(uint64(l))
}
if m.PeerStatus != nil {
l = m.PeerStatus.Size()
n += 1 + l + sovDebug(uint64(l))
}
if m.LastUpdated != 0 {
n += 1 + sovDebug(uint64(m.LastUpdated))
}
if m.ScoreInfo != nil {
l = m.ScoreInfo.Size()
n += 1 + l + sovDebug(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *DebugPeerResponse_PeerInfo) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Metadata != nil {
l = m.Metadata.Size()
n += 1 + l + sovDebug(uint64(l))
}
if len(m.Protocols) > 0 {
for _, s := range m.Protocols {
l = len(s)
n += 1 + l + sovDebug(uint64(l))
}
}
if m.FaultCount != 0 {
n += 1 + sovDebug(uint64(m.FaultCount))
}
l = len(m.ProtocolVersion)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
l = len(m.AgentVersion)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
if m.PeerLatency != 0 {
n += 1 + sovDebug(uint64(m.PeerLatency))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *ScoreInfo) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.OverallScore != 0 {
n += 5
}
if m.ProcessedBlocks != 0 {
n += 1 + sovDebug(uint64(m.ProcessedBlocks))
}
if m.BlockProviderScore != 0 {
n += 5
}
if len(m.TopicScores) > 0 {
for k, v := range m.TopicScores {
_ = k
_ = v
l = 0
if v != nil {
l = v.Size()
l += 1 + sovDebug(uint64(l))
}
mapEntrySize := 1 + len(k) + sovDebug(uint64(len(k))) + l
n += mapEntrySize + 1 + sovDebug(uint64(mapEntrySize))
}
}
if m.GossipScore != 0 {
n += 5
}
if m.BehaviourPenalty != 0 {
n += 5
}
l = len(m.ValidationError)
if l > 0 {
n += 1 + l + sovDebug(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *TopicScoreSnapshot) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.TimeInMesh != 0 {
n += 1 + sovDebug(uint64(m.TimeInMesh))
}
if m.FirstMessageDeliveries != 0 {
n += 5
}
if m.MeshMessageDeliveries != 0 {
n += 5
}
if m.InvalidMessageDeliveries != 0 {
n += 5
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovDebug(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozDebug(x uint64) (n int) {
return sovDebug(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *InclusionSlotRequest) 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 ErrIntOverflowDebug
}
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: InclusionSlotRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: InclusionSlotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
m.Slot = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Slot |= github_com_prysmaticlabs_eth2_types.Slot(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *InclusionSlotResponse) 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 ErrIntOverflowDebug
}
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: InclusionSlotResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: InclusionSlotResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
m.Slot = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Slot |= github_com_prysmaticlabs_eth2_types.Slot(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *BeaconStateRequest) 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 ErrIntOverflowDebug
}
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: BeaconStateRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: BeaconStateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
var v github_com_prysmaticlabs_eth2_types.Slot
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= github_com_prysmaticlabs_eth2_types.Slot(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.QueryFilter = &BeaconStateRequest_Slot{v}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field BlockRoot", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := make([]byte, postIndex-iNdEx)
copy(v, dAtA[iNdEx:postIndex])
m.QueryFilter = &BeaconStateRequest_BlockRoot{v}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *BlockRequest) 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 ErrIntOverflowDebug
}
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: BlockRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: BlockRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field BlockRoot", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.BlockRoot = append(m.BlockRoot[:0], dAtA[iNdEx:postIndex]...)
if m.BlockRoot == nil {
m.BlockRoot = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SSZResponse) 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 ErrIntOverflowDebug
}
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: SSZResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SSZResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Encoded", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Encoded = append(m.Encoded[:0], dAtA[iNdEx:postIndex]...)
if m.Encoded == nil {
m.Encoded = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *LoggingLevelRequest) 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 ErrIntOverflowDebug
}
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: LoggingLevelRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: LoggingLevelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
}
m.Level = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Level |= LoggingLevelRequest_Level(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ProtoArrayForkChoiceResponse) 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 ErrIntOverflowDebug
}
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: ProtoArrayForkChoiceResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ProtoArrayForkChoiceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field PruneThreshold", wireType)
}
m.PruneThreshold = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.PruneThreshold |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field JustifiedEpoch", wireType)
}
m.JustifiedEpoch = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.JustifiedEpoch |= github_com_prysmaticlabs_eth2_types.Epoch(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FinalizedEpoch", wireType)
}
m.FinalizedEpoch = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.FinalizedEpoch |= github_com_prysmaticlabs_eth2_types.Epoch(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ProtoArrayNodes", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ProtoArrayNodes = append(m.ProtoArrayNodes, &ProtoArrayNode{})
if err := m.ProtoArrayNodes[len(m.ProtoArrayNodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Indices", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Indices == nil {
m.Indices = make(map[string]uint64)
}
var mapkey string
var mapvalue uint64
for iNdEx < postIndex {
entryPreIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
if fieldNum == 1 {
var stringLenmapkey uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLenmapkey |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLenmapkey := int(stringLenmapkey)
if intStringLenmapkey < 0 {
return ErrInvalidLengthDebug
}
postStringIndexmapkey := iNdEx + intStringLenmapkey
if postStringIndexmapkey < 0 {
return ErrInvalidLengthDebug
}
if postStringIndexmapkey > l {
return io.ErrUnexpectedEOF
}
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
iNdEx = postStringIndexmapkey
} else if fieldNum == 2 {
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
mapvalue |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
} else {
iNdEx = entryPreIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > postIndex {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
m.Indices[mapkey] = mapvalue
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ProtoArrayNode) 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 ErrIntOverflowDebug
}
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: ProtoArrayNode: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ProtoArrayNode: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
m.Slot = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Slot |= github_com_prysmaticlabs_eth2_types.Slot(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Root = append(m.Root[:0], dAtA[iNdEx:postIndex]...)
if m.Root == nil {
m.Root = []byte{}
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType)
}
m.Parent = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Parent |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field JustifiedEpoch", wireType)
}
m.JustifiedEpoch = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.JustifiedEpoch |= github_com_prysmaticlabs_eth2_types.Epoch(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FinalizedEpoch", wireType)
}
m.FinalizedEpoch = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.FinalizedEpoch |= github_com_prysmaticlabs_eth2_types.Epoch(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType)
}
m.Weight = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Weight |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field BestChild", wireType)
}
m.BestChild = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.BestChild |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field BestDescendant", wireType)
}
m.BestDescendant = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.BestDescendant |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *DebugPeerResponses) 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 ErrIntOverflowDebug
}
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: DebugPeerResponses: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DebugPeerResponses: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Responses = append(m.Responses, &DebugPeerResponse{})
if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *DebugPeerResponse) 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 ErrIntOverflowDebug
}
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: DebugPeerResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DebugPeerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ListeningAddresses", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
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 ErrInvalidLengthDebug
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ListeningAddresses = append(m.ListeningAddresses, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType)
}
m.Direction = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Direction |= v1alpha1.PeerDirection(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ConnectionState", wireType)
}
m.ConnectionState = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ConnectionState |= v1alpha1.ConnectionState(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PeerId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
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 ErrInvalidLengthDebug
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.PeerId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Enr", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
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 ErrInvalidLengthDebug
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Enr = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PeerInfo", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.PeerInfo == nil {
m.PeerInfo = &DebugPeerResponse_PeerInfo{}
}
if err := m.PeerInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PeerStatus", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.PeerStatus == nil {
m.PeerStatus = &v1.Status{}
}
if err := m.PeerStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 8:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field LastUpdated", wireType)
}
m.LastUpdated = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.LastUpdated |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ScoreInfo", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ScoreInfo == nil {
m.ScoreInfo = &ScoreInfo{}
}
if err := m.ScoreInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *DebugPeerResponse_PeerInfo) 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 ErrIntOverflowDebug
}
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: PeerInfo: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PeerInfo: 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 ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Metadata == nil {
m.Metadata = &v1.MetaData{}
}
if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Protocols", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
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 ErrInvalidLengthDebug
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Protocols = append(m.Protocols, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FaultCount", wireType)
}
m.FaultCount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.FaultCount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ProtocolVersion", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
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 ErrInvalidLengthDebug
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ProtocolVersion = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field AgentVersion", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
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 ErrInvalidLengthDebug
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.AgentVersion = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field PeerLatency", wireType)
}
m.PeerLatency = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.PeerLatency |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ScoreInfo) 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 ErrIntOverflowDebug
}
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: ScoreInfo: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ScoreInfo: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field OverallScore", wireType)
}
var v uint32
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
m.OverallScore = float32(math.Float32frombits(v))
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ProcessedBlocks", wireType)
}
m.ProcessedBlocks = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ProcessedBlocks |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field BlockProviderScore", wireType)
}
var v uint32
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
m.BlockProviderScore = float32(math.Float32frombits(v))
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TopicScores", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDebug
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TopicScores == nil {
m.TopicScores = make(map[string]*TopicScoreSnapshot)
}
var mapkey string
var mapvalue *TopicScoreSnapshot
for iNdEx < postIndex {
entryPreIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
if fieldNum == 1 {
var stringLenmapkey uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLenmapkey |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLenmapkey := int(stringLenmapkey)
if intStringLenmapkey < 0 {
return ErrInvalidLengthDebug
}
postStringIndexmapkey := iNdEx + intStringLenmapkey
if postStringIndexmapkey < 0 {
return ErrInvalidLengthDebug
}
if postStringIndexmapkey > l {
return io.ErrUnexpectedEOF
}
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
iNdEx = postStringIndexmapkey
} else if fieldNum == 2 {
var mapmsglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
mapmsglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if mapmsglen < 0 {
return ErrInvalidLengthDebug
}
postmsgIndex := iNdEx + mapmsglen
if postmsgIndex < 0 {
return ErrInvalidLengthDebug
}
if postmsgIndex > l {
return io.ErrUnexpectedEOF
}
mapvalue = &TopicScoreSnapshot{}
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
return err
}
iNdEx = postmsgIndex
} else {
iNdEx = entryPreIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > postIndex {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
m.TopicScores[mapkey] = mapvalue
iNdEx = postIndex
case 5:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field GossipScore", wireType)
}
var v uint32
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
m.GossipScore = float32(math.Float32frombits(v))
case 6:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field BehaviourPenalty", wireType)
}
var v uint32
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
m.BehaviourPenalty = float32(math.Float32frombits(v))
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ValidationError", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
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 ErrInvalidLengthDebug
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDebug
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ValidationError = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TopicScoreSnapshot) 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 ErrIntOverflowDebug
}
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: TopicScoreSnapshot: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TopicScoreSnapshot: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TimeInMesh", wireType)
}
m.TimeInMesh = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDebug
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TimeInMesh |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field FirstMessageDeliveries", wireType)
}
var v uint32
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
m.FirstMessageDeliveries = float32(math.Float32frombits(v))
case 3:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field MeshMessageDeliveries", wireType)
}
var v uint32
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
m.MeshMessageDeliveries = float32(math.Float32frombits(v))
case 4:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field InvalidMessageDeliveries", wireType)
}
var v uint32
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
m.InvalidMessageDeliveries = float32(math.Float32frombits(v))
default:
iNdEx = preIndex
skippy, err := skipDebug(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDebug
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipDebug(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, ErrIntOverflowDebug
}
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, ErrIntOverflowDebug
}
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, ErrIntOverflowDebug
}
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, ErrInvalidLengthDebug
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupDebug
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthDebug
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthDebug = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowDebug = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupDebug = fmt.Errorf("proto: unexpected end of group")
)