423 lines
16 KiB
Go
423 lines
16 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.27.1
|
|
// protoc v3.17.3
|
|
// source: proto/network/v1/slot_status.proto
|
|
|
|
package networkv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// Update type
|
|
type SlotStatus_UpdateType int32
|
|
|
|
const (
|
|
SlotStatus_UPDATE_TYPE_UNSPECIFIED SlotStatus_UpdateType = 0
|
|
SlotStatus_UPDATE_TYPE_FIRST_SHRED_RECEIVED SlotStatus_UpdateType = 1
|
|
SlotStatus_UPDATE_TYPE_COMPLETED SlotStatus_UpdateType = 2
|
|
SlotStatus_UPDATE_TYPE_CREATED_BANK SlotStatus_UpdateType = 3
|
|
SlotStatus_UPDATE_TYPE_FROZEN SlotStatus_UpdateType = 4
|
|
SlotStatus_UPDATE_TYPE_DEAD SlotStatus_UpdateType = 5
|
|
SlotStatus_UPDATE_TYPE_OPTIMISTIC_CONFIRMATION SlotStatus_UpdateType = 6
|
|
SlotStatus_UPDATE_TYPE_ROOT SlotStatus_UpdateType = 7
|
|
)
|
|
|
|
// Enum value maps for SlotStatus_UpdateType.
|
|
var (
|
|
SlotStatus_UpdateType_name = map[int32]string{
|
|
0: "UPDATE_TYPE_UNSPECIFIED",
|
|
1: "UPDATE_TYPE_FIRST_SHRED_RECEIVED",
|
|
2: "UPDATE_TYPE_COMPLETED",
|
|
3: "UPDATE_TYPE_CREATED_BANK",
|
|
4: "UPDATE_TYPE_FROZEN",
|
|
5: "UPDATE_TYPE_DEAD",
|
|
6: "UPDATE_TYPE_OPTIMISTIC_CONFIRMATION",
|
|
7: "UPDATE_TYPE_ROOT",
|
|
}
|
|
SlotStatus_UpdateType_value = map[string]int32{
|
|
"UPDATE_TYPE_UNSPECIFIED": 0,
|
|
"UPDATE_TYPE_FIRST_SHRED_RECEIVED": 1,
|
|
"UPDATE_TYPE_COMPLETED": 2,
|
|
"UPDATE_TYPE_CREATED_BANK": 3,
|
|
"UPDATE_TYPE_FROZEN": 4,
|
|
"UPDATE_TYPE_DEAD": 5,
|
|
"UPDATE_TYPE_OPTIMISTIC_CONFIRMATION": 6,
|
|
"UPDATE_TYPE_ROOT": 7,
|
|
}
|
|
)
|
|
|
|
func (x SlotStatus_UpdateType) Enum() *SlotStatus_UpdateType {
|
|
p := new(SlotStatus_UpdateType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SlotStatus_UpdateType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SlotStatus_UpdateType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_proto_network_v1_slot_status_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (SlotStatus_UpdateType) Type() protoreflect.EnumType {
|
|
return &file_proto_network_v1_slot_status_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x SlotStatus_UpdateType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SlotStatus_UpdateType.Descriptor instead.
|
|
func (SlotStatus_UpdateType) EnumDescriptor() ([]byte, []int) {
|
|
return file_proto_network_v1_slot_status_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
// See client/src/rpc_response.rs.
|
|
type SlotStatus struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Slot number
|
|
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
|
|
// Millisecond UNIX timestamp of the observation on the Solana node.
|
|
// Depends on accurate local clocks.
|
|
Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
// One-way delay between the Solana node and the client.
|
|
Delay uint64 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"`
|
|
Type SlotStatus_UpdateType `protobuf:"varint,4,opt,name=type,proto3,enum=proto.network.v1.SlotStatus_UpdateType" json:"type,omitempty"`
|
|
// For type == CREATED_BANK, the parent slot number is included.
|
|
Parent uint64 `protobuf:"varint,5,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
// For type == FROZEN, extra transaction stats are included.
|
|
Stats *TxStats `protobuf:"bytes,6,opt,name=stats,proto3" json:"stats,omitempty"`
|
|
// For type == DEAD, an error is included.
|
|
// TODO: solana-go doesn't currently expose this
|
|
Err string `protobuf:"bytes,7,opt,name=err,proto3" json:"err,omitempty"`
|
|
// Slot's leader as base58 string (looked up by the ingester)
|
|
Leader string `protobuf:"bytes,8,opt,name=leader,proto3" json:"leader,omitempty"`
|
|
// Source node identifier
|
|
Source string `protobuf:"bytes,9,opt,name=source,proto3" json:"source,omitempty"`
|
|
}
|
|
|
|
func (x *SlotStatus) Reset() {
|
|
*x = SlotStatus{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_network_v1_slot_status_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SlotStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SlotStatus) ProtoMessage() {}
|
|
|
|
func (x *SlotStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_network_v1_slot_status_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SlotStatus.ProtoReflect.Descriptor instead.
|
|
func (*SlotStatus) Descriptor() ([]byte, []int) {
|
|
return file_proto_network_v1_slot_status_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *SlotStatus) GetSlot() uint64 {
|
|
if x != nil {
|
|
return x.Slot
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SlotStatus) GetTimestamp() uint64 {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SlotStatus) GetDelay() uint64 {
|
|
if x != nil {
|
|
return x.Delay
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SlotStatus) GetType() SlotStatus_UpdateType {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return SlotStatus_UPDATE_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *SlotStatus) GetParent() uint64 {
|
|
if x != nil {
|
|
return x.Parent
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SlotStatus) GetStats() *TxStats {
|
|
if x != nil {
|
|
return x.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SlotStatus) GetErr() string {
|
|
if x != nil {
|
|
return x.Err
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SlotStatus) GetLeader() string {
|
|
if x != nil {
|
|
return x.Leader
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SlotStatus) GetSource() string {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TxStats struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
NumTransactionEntries uint64 `protobuf:"varint,1,opt,name=num_transaction_entries,json=numTransactionEntries,proto3" json:"num_transaction_entries,omitempty"`
|
|
NumSuccessfulTransactions uint64 `protobuf:"varint,2,opt,name=num_successful_transactions,json=numSuccessfulTransactions,proto3" json:"num_successful_transactions,omitempty"`
|
|
NumFailedTransactions uint64 `protobuf:"varint,3,opt,name=num_failed_transactions,json=numFailedTransactions,proto3" json:"num_failed_transactions,omitempty"`
|
|
MaxTransactionsPerEntry uint64 `protobuf:"varint,4,opt,name=max_transactions_per_entry,json=maxTransactionsPerEntry,proto3" json:"max_transactions_per_entry,omitempty"`
|
|
}
|
|
|
|
func (x *TxStats) Reset() {
|
|
*x = TxStats{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_network_v1_slot_status_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TxStats) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TxStats) ProtoMessage() {}
|
|
|
|
func (x *TxStats) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_network_v1_slot_status_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TxStats.ProtoReflect.Descriptor instead.
|
|
func (*TxStats) Descriptor() ([]byte, []int) {
|
|
return file_proto_network_v1_slot_status_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *TxStats) GetNumTransactionEntries() uint64 {
|
|
if x != nil {
|
|
return x.NumTransactionEntries
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TxStats) GetNumSuccessfulTransactions() uint64 {
|
|
if x != nil {
|
|
return x.NumSuccessfulTransactions
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TxStats) GetNumFailedTransactions() uint64 {
|
|
if x != nil {
|
|
return x.NumFailedTransactions
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TxStats) GetMaxTransactionsPerEntry() uint64 {
|
|
if x != nil {
|
|
return x.MaxTransactionsPerEntry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_proto_network_v1_slot_status_proto protoreflect.FileDescriptor
|
|
|
|
var file_proto_network_v1_slot_status_proto_rawDesc = []byte{
|
|
0x0a, 0x22, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f,
|
|
0x76, 0x31, 0x2f, 0x73, 0x6c, 0x6f, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x77,
|
|
0x6f, 0x72, 0x6b, 0x2e, 0x76, 0x31, 0x22, 0x94, 0x04, 0x0a, 0x0a, 0x53, 0x6c, 0x6f, 0x74, 0x53,
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x6f, 0x74, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x6c, 0x6f, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d,
|
|
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69,
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x3b, 0x0a,
|
|
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x53,
|
|
0x6c, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61,
|
|
0x72, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
|
|
0x6e, 0x74, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
|
|
0x6b, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x78, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74,
|
|
0x61, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x72, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x03, 0x65, 0x72, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
|
|
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a,
|
|
0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,
|
|
0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xf5, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54,
|
|
0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
|
|
0x00, 0x12, 0x24, 0x0a, 0x20, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,
|
|
0x5f, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x53, 0x48, 0x52, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x43,
|
|
0x45, 0x49, 0x56, 0x45, 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x50, 0x44, 0x41, 0x54,
|
|
0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44,
|
|
0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50,
|
|
0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x42, 0x41, 0x4e, 0x4b, 0x10, 0x03,
|
|
0x12, 0x16, 0x0a, 0x12, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
|
|
0x46, 0x52, 0x4f, 0x5a, 0x45, 0x4e, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x50, 0x44, 0x41,
|
|
0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x41, 0x44, 0x10, 0x05, 0x12, 0x27,
|
|
0x0a, 0x23, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x50,
|
|
0x54, 0x49, 0x4d, 0x49, 0x53, 0x54, 0x49, 0x43, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d,
|
|
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x50, 0x44, 0x41, 0x54,
|
|
0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x4f, 0x4f, 0x54, 0x10, 0x07, 0x22, 0xf6, 0x01,
|
|
0x0a, 0x07, 0x54, 0x78, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x6e, 0x75, 0x6d,
|
|
0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74,
|
|
0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x6e, 0x75, 0x6d, 0x54,
|
|
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65,
|
|
0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
0x66, 0x75, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x19, 0x6e, 0x75, 0x6d, 0x53, 0x75, 0x63, 0x63, 0x65,
|
|
0x73, 0x73, 0x66, 0x75, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x73, 0x12, 0x36, 0x0a, 0x17, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f,
|
|
0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01,
|
|
0x28, 0x04, 0x52, 0x15, 0x6e, 0x75, 0x6d, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x54, 0x72, 0x61,
|
|
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x6d, 0x61, 0x78,
|
|
0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x70, 0x65,
|
|
0x72, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d,
|
|
0x61, 0x78, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x65,
|
|
0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x66, 0x69, 0x72,
|
|
0x65, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x61, 0x64, 0x69, 0x61,
|
|
0x6e, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
|
|
0x6b, 0x3b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_proto_network_v1_slot_status_proto_rawDescOnce sync.Once
|
|
file_proto_network_v1_slot_status_proto_rawDescData = file_proto_network_v1_slot_status_proto_rawDesc
|
|
)
|
|
|
|
func file_proto_network_v1_slot_status_proto_rawDescGZIP() []byte {
|
|
file_proto_network_v1_slot_status_proto_rawDescOnce.Do(func() {
|
|
file_proto_network_v1_slot_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_network_v1_slot_status_proto_rawDescData)
|
|
})
|
|
return file_proto_network_v1_slot_status_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_network_v1_slot_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_proto_network_v1_slot_status_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_proto_network_v1_slot_status_proto_goTypes = []interface{}{
|
|
(SlotStatus_UpdateType)(0), // 0: proto.network.v1.SlotStatus.UpdateType
|
|
(*SlotStatus)(nil), // 1: proto.network.v1.SlotStatus
|
|
(*TxStats)(nil), // 2: proto.network.v1.TxStats
|
|
}
|
|
var file_proto_network_v1_slot_status_proto_depIdxs = []int32{
|
|
0, // 0: proto.network.v1.SlotStatus.type:type_name -> proto.network.v1.SlotStatus.UpdateType
|
|
2, // 1: proto.network.v1.SlotStatus.stats:type_name -> proto.network.v1.TxStats
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_network_v1_slot_status_proto_init() }
|
|
func file_proto_network_v1_slot_status_proto_init() {
|
|
if File_proto_network_v1_slot_status_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_proto_network_v1_slot_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*SlotStatus); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_network_v1_slot_status_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TxStats); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_proto_network_v1_slot_status_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_proto_network_v1_slot_status_proto_goTypes,
|
|
DependencyIndexes: file_proto_network_v1_slot_status_proto_depIdxs,
|
|
EnumInfos: file_proto_network_v1_slot_status_proto_enumTypes,
|
|
MessageInfos: file_proto_network_v1_slot_status_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_network_v1_slot_status_proto = out.File
|
|
file_proto_network_v1_slot_status_proto_rawDesc = nil
|
|
file_proto_network_v1_slot_status_proto_goTypes = nil
|
|
file_proto_network_v1_slot_status_proto_depIdxs = nil
|
|
}
|