@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26 .0
// protoc v3.15.8
// protoc-gen-go v1.30 .0
// protoc v3.12.4
// source: message.proto
package message
@ -25,9 +25,9 @@ type ServiceType int32
const (
ServiceType_CONSENSUS ServiceType = 0
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
ServiceType_STAKING ServiceType = 1
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
ServiceType_DRAND ServiceType = 2
ServiceType_CLIENT_SUPPORT ServiceType = 3
)
@ -79,7 +79,7 @@ func (ServiceType) EnumDescriptor() ([]byte, []int) {
type MessageType int32
const (
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
MessageType_NEWNODE_BEACON_STAKING MessageType = 0
MessageType_ANNOUNCE MessageType = 1
MessageType_PREPARE MessageType = 2
@ -88,11 +88,11 @@ const (
MessageType_COMMITTED MessageType = 5
MessageType_VIEWCHANGE MessageType = 6
MessageType_NEWVIEW MessageType = 7
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
MessageType_DRAND_INIT MessageType = 10
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
MessageType_DRAND_COMMIT MessageType = 11
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
MessageType_LOTTERY_REQUEST MessageType = 12 // it should be either ENTER or GETPLAYERS but it will be removed later.
)
@ -156,11 +156,11 @@ func (MessageType) EnumDescriptor() ([]byte, []int) {
type LotteryRequest_Type int32
const (
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
LotteryRequest_ENTER LotteryRequest_Type = 0
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
LotteryRequest_RESULT LotteryRequest_Type = 1
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
LotteryRequest_PICK_WINNER LotteryRequest_Type = 2
)
@ -288,7 +288,7 @@ func (m *Message) GetRequest() isMessage_Request {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * Message ) GetStaking ( ) * StakingRequest {
if x , ok := x . GetRequest ( ) . ( * Message_Staking ) ; ok {
return x . Staking
@ -303,7 +303,7 @@ func (x *Message) GetConsensus() *ConsensusRequest {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * Message ) GetDrand ( ) * DrandRequest {
if x , ok := x . GetRequest ( ) . ( * Message_Drand ) ; ok {
return x . Drand
@ -318,7 +318,7 @@ func (x *Message) GetViewchange() *ViewChangeRequest {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * Message ) GetLotteryRequest ( ) * LotteryRequest {
if x , ok := x . GetRequest ( ) . ( * Message_LotteryRequest ) ; ok {
return x . LotteryRequest
@ -331,7 +331,7 @@ type isMessage_Request interface {
}
type Message_Staking struct {
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Staking * StakingRequest ` protobuf:"bytes,4,opt,name=staking,proto3,oneof" `
}
@ -340,7 +340,7 @@ type Message_Consensus struct {
}
type Message_Drand struct {
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Drand * DrandRequest ` protobuf:"bytes,6,opt,name=drand,proto3,oneof" `
}
@ -351,7 +351,7 @@ type Message_Viewchange struct {
type Message_LotteryRequest struct {
// Refactor this later after demo.
//
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
LotteryRequest * LotteryRequest ` protobuf:"bytes,8,opt,name=lottery_request,json=lotteryRequest,proto3,oneof" `
}
@ -431,7 +431,7 @@ func (m *Response) GetResponse() isResponse_Response {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * Response ) GetLotteryResponse ( ) * LotteryResponse {
if x , ok := x . GetResponse ( ) . ( * Response_LotteryResponse ) ; ok {
return x . LotteryResponse
@ -444,7 +444,7 @@ type isResponse_Response interface {
}
type Response_LotteryResponse struct {
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
LotteryResponse * LotteryResponse ` protobuf:"bytes,3,opt,name=lottery_response,json=lotteryResponse,proto3,oneof" `
}
@ -455,9 +455,9 @@ type LotteryResponse struct {
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Players [ ] string ` protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty" `
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Balances [ ] string ` protobuf:"bytes,3,rep,name=balances,proto3" json:"balances,omitempty" `
}
@ -493,7 +493,7 @@ func (*LotteryResponse) Descriptor() ([]byte, []int) {
return file_message_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * LotteryResponse ) GetPlayers ( ) [ ] string {
if x != nil {
return x . Players
@ -501,7 +501,7 @@ func (x *LotteryResponse) GetPlayers() []string {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * LotteryResponse ) GetBalances ( ) [ ] string {
if x != nil {
return x . Balances
@ -514,11 +514,11 @@ type LotteryRequest struct {
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Type LotteryRequest_Type ` protobuf:"varint,1,opt,name=type,proto3,enum=message.LotteryRequest_Type" json:"type,omitempty" `
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
PrivateKey string ` protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty" `
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Amount int64 ` protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty" `
}
@ -554,7 +554,7 @@ func (*LotteryRequest) Descriptor() ([]byte, []int) {
return file_message_proto_rawDescGZIP ( ) , [ ] int { 3 }
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * LotteryRequest ) GetType ( ) LotteryRequest_Type {
if x != nil {
return x . Type
@ -562,7 +562,7 @@ func (x *LotteryRequest) GetType() LotteryRequest_Type {
return LotteryRequest_ENTER
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * LotteryRequest ) GetPrivateKey ( ) string {
if x != nil {
return x . PrivateKey
@ -570,7 +570,7 @@ func (x *LotteryRequest) GetPrivateKey() string {
return ""
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * LotteryRequest ) GetAmount ( ) int64 {
if x != nil {
return x . Amount
@ -584,9 +584,9 @@ type StakingRequest struct {
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Transaction [ ] byte ` protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty" `
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
NodeId string ` protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" `
}
@ -622,7 +622,7 @@ func (*StakingRequest) Descriptor() ([]byte, []int) {
return file_message_proto_rawDescGZIP ( ) , [ ] int { 4 }
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * StakingRequest ) GetTransaction ( ) [ ] byte {
if x != nil {
return x . Transaction
@ -630,7 +630,7 @@ func (x *StakingRequest) GetTransaction() []byte {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * StakingRequest ) GetNodeId ( ) string {
if x != nil {
return x . NodeId
@ -746,13 +746,13 @@ type DrandRequest struct {
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
ShardId uint32 ` protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty" `
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
SenderPubkey [ ] byte ` protobuf:"bytes,2,opt,name=sender_pubkey,json=senderPubkey,proto3" json:"sender_pubkey,omitempty" `
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
BlockHash [ ] byte ` protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty" `
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
Payload [ ] byte ` protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty" `
}
@ -788,7 +788,7 @@ func (*DrandRequest) Descriptor() ([]byte, []int) {
return file_message_proto_rawDescGZIP ( ) , [ ] int { 6 }
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * DrandRequest ) GetShardId ( ) uint32 {
if x != nil {
return x . ShardId
@ -796,7 +796,7 @@ func (x *DrandRequest) GetShardId() uint32 {
return 0
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * DrandRequest ) GetSenderPubkey ( ) [ ] byte {
if x != nil {
return x . SenderPubkey
@ -804,7 +804,7 @@ func (x *DrandRequest) GetSenderPubkey() []byte {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * DrandRequest ) GetBlockHash ( ) [ ] byte {
if x != nil {
return x . BlockHash
@ -812,7 +812,7 @@ func (x *DrandRequest) GetBlockHash() []byte {
return nil
}
// Deprecated: Do not use .
// Deprecated: Marked as deprecated in message.proto .
func ( x * DrandRequest ) GetPayload ( ) [ ] byte {
if x != nil {
return x . Payload