mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-16 14:58:46 +00:00
671 lines
26 KiB
Go
Executable File
Generated
671 lines
26 KiB
Go
Executable File
Generated
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proto/beacon/rpc/v1/debug.proto
|
|
|
|
package ethereum_beacon_rpc_v1
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// 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.ProtoPackageIsVersion3 // 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{3, 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{0}
|
|
}
|
|
|
|
func (m *BeaconStateRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BeaconStateRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *BeaconStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BeaconStateRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BeaconStateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BeaconStateRequest.Merge(m, src)
|
|
}
|
|
func (m *BeaconStateRequest) XXX_Size() int {
|
|
return xxx_messageInfo_BeaconStateRequest.Size(m)
|
|
}
|
|
func (m *BeaconStateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BeaconStateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BeaconStateRequest proto.InternalMessageInfo
|
|
|
|
type isBeaconStateRequest_QueryFilter interface {
|
|
isBeaconStateRequest_QueryFilter()
|
|
}
|
|
|
|
type BeaconStateRequest_Slot struct {
|
|
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3,oneof"`
|
|
}
|
|
|
|
type BeaconStateRequest_BlockRoot struct {
|
|
BlockRoot []byte `protobuf:"bytes,2,opt,name=block_root,json=blockRoot,proto3,oneof"`
|
|
}
|
|
|
|
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() uint64 {
|
|
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{1}
|
|
}
|
|
|
|
func (m *BlockRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BlockRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BlockRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BlockRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockRequest.Merge(m, src)
|
|
}
|
|
func (m *BlockRequest) XXX_Size() int {
|
|
return xxx_messageInfo_BlockRequest.Size(m)
|
|
}
|
|
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{2}
|
|
}
|
|
|
|
func (m *SSZResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SSZResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *SSZResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SSZResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SSZResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SSZResponse.Merge(m, src)
|
|
}
|
|
func (m *SSZResponse) XXX_Size() int {
|
|
return xxx_messageInfo_SSZResponse.Size(m)
|
|
}
|
|
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{3}
|
|
}
|
|
|
|
func (m *LoggingLevelRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LoggingLevelRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *LoggingLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LoggingLevelRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LoggingLevelRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LoggingLevelRequest.Merge(m, src)
|
|
}
|
|
func (m *LoggingLevelRequest) XXX_Size() int {
|
|
return xxx_messageInfo_LoggingLevelRequest.Size(m)
|
|
}
|
|
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 uint64 `protobuf:"varint,2,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty"`
|
|
FinalizedEpoch uint64 `protobuf:"varint,3,opt,name=finalized_epoch,json=finalizedEpoch,proto3" 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{4}
|
|
}
|
|
|
|
func (m *ProtoArrayForkChoiceResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ProtoArrayForkChoiceResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ProtoArrayForkChoiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ProtoArrayForkChoiceResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ProtoArrayForkChoiceResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProtoArrayForkChoiceResponse.Merge(m, src)
|
|
}
|
|
func (m *ProtoArrayForkChoiceResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ProtoArrayForkChoiceResponse.Size(m)
|
|
}
|
|
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() uint64 {
|
|
if m != nil {
|
|
return m.JustifiedEpoch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() uint64 {
|
|
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 uint64 `protobuf:"varint,1,opt,name=slot,proto3" 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 uint64 `protobuf:"varint,4,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty"`
|
|
FinalizedEpoch uint64 `protobuf:"varint,5,opt,name=finalized_epoch,json=finalizedEpoch,proto3" 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{5}
|
|
}
|
|
|
|
func (m *ProtoArrayNode) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ProtoArrayNode.Unmarshal(m, b)
|
|
}
|
|
func (m *ProtoArrayNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ProtoArrayNode.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ProtoArrayNode) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProtoArrayNode.Merge(m, src)
|
|
}
|
|
func (m *ProtoArrayNode) XXX_Size() int {
|
|
return xxx_messageInfo_ProtoArrayNode.Size(m)
|
|
}
|
|
func (m *ProtoArrayNode) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProtoArrayNode.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProtoArrayNode proto.InternalMessageInfo
|
|
|
|
func (m *ProtoArrayNode) GetSlot() uint64 {
|
|
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() uint64 {
|
|
if m != nil {
|
|
return m.JustifiedEpoch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoArrayNode) GetFinalizedEpoch() uint64 {
|
|
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
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("ethereum.beacon.rpc.v1.LoggingLevelRequest_Level", LoggingLevelRequest_Level_name, LoggingLevelRequest_Level_value)
|
|
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")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proto/beacon/rpc/v1/debug.proto", fileDescriptor_851e5cb2de3d61dd) }
|
|
|
|
var fileDescriptor_851e5cb2de3d61dd = []byte{
|
|
// 743 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
|
|
0x10, 0xae, 0x13, 0x27, 0x6d, 0xb6, 0x51, 0x1a, 0x96, 0x2a, 0x98, 0xb4, 0xa5, 0xc1, 0x45, 0x6d,
|
|
0x05, 0xc2, 0x56, 0x02, 0x07, 0xd4, 0x5b, 0xd3, 0xa6, 0x69, 0xa5, 0xaa, 0x20, 0xa7, 0x5c, 0xe8,
|
|
0x21, 0x72, 0xec, 0x49, 0x6c, 0xe2, 0x7a, 0x5d, 0x7b, 0x1d, 0x08, 0xdc, 0x2a, 0x04, 0x47, 0x0e,
|
|
0x1c, 0x78, 0x30, 0x5e, 0x81, 0x07, 0x41, 0xbb, 0xeb, 0xa4, 0x89, 0x9a, 0x88, 0x1f, 0x71, 0xdb,
|
|
0xf9, 0xe6, 0x9b, 0x6f, 0x76, 0x67, 0x76, 0x06, 0x6d, 0x06, 0x21, 0xa1, 0x44, 0xef, 0x80, 0x69,
|
|
0x11, 0x5f, 0x0f, 0x03, 0x4b, 0x1f, 0x54, 0x75, 0x1b, 0x3a, 0x71, 0x4f, 0xe3, 0x1e, 0x5c, 0x02,
|
|
0xea, 0x40, 0x08, 0xf1, 0xa5, 0x26, 0x38, 0x5a, 0x18, 0x58, 0xda, 0xa0, 0x5a, 0x9e, 0x0e, 0x0c,
|
|
0x6a, 0x01, 0x0b, 0xa4, 0xc3, 0x00, 0x22, 0x11, 0x58, 0x5e, 0xef, 0x11, 0xd2, 0xf3, 0x40, 0x37,
|
|
0x03, 0x57, 0x37, 0x7d, 0x9f, 0x50, 0x93, 0xba, 0xc4, 0x1f, 0x79, 0xd7, 0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f, 0xbd, 0xa1,
|
|
0xae, 0xcd, 0x4a, 0xed, 0x09, 0x21, 0xfc, 0x55, 0x42, 0xf7, 0x9a, 0x40, 0x67, 0x8d, 0x00, 0x9e,
|
|
0x23, 0x5c, 0x7e, 0xfe, 0x2f, 0x83, 0xa4, 0x6e, 0xf3, 0xeb, 0x54, 0xf0, 0x83, 0x59, 0xd7, 0xe9,
|
|
0x92, 0xb0, 0x6f, 0x71, 0x7e, 0x27, 0xcb, 0xb3, 0x3d, 0xfb, 0x15, 0x00, 0x00, 0xff, 0xff, 0x87,
|
|
0x62, 0x7e, 0x5b, 0x84, 0x06, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConnInterface
|
|
|
|
// 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.SupportPackageIsVersion6
|
|
|
|
// 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)
|
|
}
|
|
|
|
type debugClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewDebugClient(cc grpc.ClientConnInterface) 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
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
|
|
// 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 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)
|
|
}
|
|
|
|
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,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/beacon/rpc/v1/debug.proto",
|
|
}
|