|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: message.proto
|
|
|
|
|
|
|
|
package message
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
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
|
|
|
|
|
|
|
|
// ServiceType indicates which service used to generate this message.
|
|
|
|
type ServiceType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
ServiceType_CONSENSUS ServiceType = 0
|
|
|
|
ServiceType_STAKING ServiceType = 1
|
|
|
|
ServiceType_DRAND ServiceType = 2
|
|
|
|
ServiceType_CLIENT_SUPPORT ServiceType = 3
|
|
|
|
)
|
|
|
|
|
|
|
|
var ServiceType_name = map[int32]string{
|
|
|
|
0: "CONSENSUS",
|
|
|
|
1: "STAKING",
|
|
|
|
2: "DRAND",
|
|
|
|
3: "CLIENT_SUPPORT",
|
|
|
|
}
|
|
|
|
|
|
|
|
var ServiceType_value = map[string]int32{
|
|
|
|
"CONSENSUS": 0,
|
|
|
|
"STAKING": 1,
|
|
|
|
"DRAND": 2,
|
|
|
|
"CLIENT_SUPPORT": 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x ServiceType) String() string {
|
|
|
|
return proto.EnumName(ServiceType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ServiceType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
// MessageType indicates what is the type of this message.
|
|
|
|
type MessageType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
MessageType_NEWNODE_BEACON_STAKING MessageType = 0
|
|
|
|
MessageType_ANNOUNCE MessageType = 1
|
|
|
|
MessageType_PREPARE MessageType = 2
|
|
|
|
MessageType_PREPARED MessageType = 3
|
|
|
|
MessageType_COMMIT MessageType = 4
|
|
|
|
MessageType_COMMITTED MessageType = 5
|
|
|
|
MessageType_VIEWCHANGE MessageType = 6
|
|
|
|
MessageType_NEWVIEW MessageType = 7
|
|
|
|
MessageType_DRAND_INIT MessageType = 10
|
|
|
|
MessageType_DRAND_COMMIT MessageType = 11
|
|
|
|
MessageType_LOTTERY_REQUEST MessageType = 12
|
|
|
|
)
|
|
|
|
|
|
|
|
var MessageType_name = map[int32]string{
|
|
|
|
0: "NEWNODE_BEACON_STAKING",
|
|
|
|
1: "ANNOUNCE",
|
|
|
|
2: "PREPARE",
|
|
|
|
3: "PREPARED",
|
|
|
|
4: "COMMIT",
|
|
|
|
5: "COMMITTED",
|
|
|
|
6: "VIEWCHANGE",
|
|
|
|
7: "NEWVIEW",
|
|
|
|
10: "DRAND_INIT",
|
|
|
|
11: "DRAND_COMMIT",
|
|
|
|
12: "LOTTERY_REQUEST",
|
|
|
|
}
|
|
|
|
|
|
|
|
var MessageType_value = map[string]int32{
|
|
|
|
"NEWNODE_BEACON_STAKING": 0,
|
|
|
|
"ANNOUNCE": 1,
|
|
|
|
"PREPARE": 2,
|
|
|
|
"PREPARED": 3,
|
|
|
|
"COMMIT": 4,
|
|
|
|
"COMMITTED": 5,
|
|
|
|
"VIEWCHANGE": 6,
|
|
|
|
"NEWVIEW": 7,
|
|
|
|
"DRAND_INIT": 10,
|
|
|
|
"DRAND_COMMIT": 11,
|
|
|
|
"LOTTERY_REQUEST": 12,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x MessageType) String() string {
|
|
|
|
return proto.EnumName(MessageType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (MessageType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
type LotteryRequest_Type int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
LotteryRequest_ENTER LotteryRequest_Type = 0
|
|
|
|
LotteryRequest_RESULT LotteryRequest_Type = 1
|
|
|
|
LotteryRequest_PICK_WINNER LotteryRequest_Type = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
var LotteryRequest_Type_name = map[int32]string{
|
|
|
|
0: "ENTER",
|
|
|
|
1: "RESULT",
|
|
|
|
2: "PICK_WINNER",
|
|
|
|
}
|
|
|
|
|
|
|
|
var LotteryRequest_Type_value = map[string]int32{
|
|
|
|
"ENTER": 0,
|
|
|
|
"RESULT": 1,
|
|
|
|
"PICK_WINNER": 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x LotteryRequest_Type) String() string {
|
|
|
|
return proto.EnumName(LotteryRequest_Type_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (LotteryRequest_Type) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{3, 0}
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is universal message for all communication protocols.
|
|
|
|
// There are different Requests for different message types.
|
|
|
|
// As we introduce a new type of message just add a new MessageType and new type of request in Message.
|
|
|
|
//
|
|
|
|
// The request field will be either one of the structure corresponding to the MessageType type.
|
|
|
|
type Message struct {
|
|
|
|
ServiceType ServiceType `protobuf:"varint,1,opt,name=service_type,json=serviceType,proto3,enum=message.ServiceType" json:"service_type,omitempty"`
|
|
|
|
Type MessageType `protobuf:"varint,2,opt,name=type,proto3,enum=message.MessageType" json:"type,omitempty"`
|
|
|
|
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
|
|
// Types that are valid to be assigned to Request:
|
|
|
|
// *Message_Staking
|
|
|
|
// *Message_Consensus
|
|
|
|
// *Message_Drand
|
|
|
|
// *Message_Viewchange
|
|
|
|
// *Message_LotteryRequest
|
|
|
|
Request isMessage_Request `protobuf_oneof:"request"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Message) ProtoMessage() {}
|
|
|
|
func (*Message) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Message.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Message.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Message.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Message) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Message.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Message proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Message) GetServiceType() ServiceType {
|
|
|
|
if m != nil {
|
|
|
|
return m.ServiceType
|
|
|
|
}
|
|
|
|
return ServiceType_CONSENSUS
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetType() MessageType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return MessageType_NEWNODE_BEACON_STAKING
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetSignature() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Signature
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type isMessage_Request interface {
|
|
|
|
isMessage_Request()
|
|
|
|
}
|
|
|
|
|
|
|
|
type Message_Staking struct {
|
|
|
|
Staking *StakingRequest `protobuf:"bytes,4,opt,name=staking,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Message_Consensus struct {
|
|
|
|
Consensus *ConsensusRequest `protobuf:"bytes,5,opt,name=consensus,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Message_Drand struct {
|
|
|
|
Drand *DrandRequest `protobuf:"bytes,6,opt,name=drand,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Message_Viewchange struct {
|
|
|
|
Viewchange *ViewChangeRequest `protobuf:"bytes,7,opt,name=viewchange,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Message_LotteryRequest struct {
|
|
|
|
LotteryRequest *LotteryRequest `protobuf:"bytes,8,opt,name=lottery_request,json=lotteryRequest,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Message_Staking) isMessage_Request() {}
|
|
|
|
|
|
|
|
func (*Message_Consensus) isMessage_Request() {}
|
|
|
|
|
|
|
|
func (*Message_Drand) isMessage_Request() {}
|
|
|
|
|
|
|
|
func (*Message_Viewchange) isMessage_Request() {}
|
|
|
|
|
|
|
|
func (*Message_LotteryRequest) isMessage_Request() {}
|
|
|
|
|
|
|
|
func (m *Message) GetRequest() isMessage_Request {
|
|
|
|
if m != nil {
|
|
|
|
return m.Request
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetStaking() *StakingRequest {
|
|
|
|
if x, ok := m.GetRequest().(*Message_Staking); ok {
|
|
|
|
return x.Staking
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetConsensus() *ConsensusRequest {
|
|
|
|
if x, ok := m.GetRequest().(*Message_Consensus); ok {
|
|
|
|
return x.Consensus
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetDrand() *DrandRequest {
|
|
|
|
if x, ok := m.GetRequest().(*Message_Drand); ok {
|
|
|
|
return x.Drand
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetViewchange() *ViewChangeRequest {
|
|
|
|
if x, ok := m.GetRequest().(*Message_Viewchange); ok {
|
|
|
|
return x.Viewchange
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetLotteryRequest() *LotteryRequest {
|
|
|
|
if x, ok := m.GetRequest().(*Message_LotteryRequest); ok {
|
|
|
|
return x.LotteryRequest
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
|
|
func (*Message) XXX_OneofWrappers() []interface{} {
|
|
|
|
return []interface{}{
|
|
|
|
(*Message_Staking)(nil),
|
|
|
|
(*Message_Consensus)(nil),
|
|
|
|
(*Message_Drand)(nil),
|
|
|
|
(*Message_Viewchange)(nil),
|
|
|
|
(*Message_LotteryRequest)(nil),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type Response struct {
|
|
|
|
ServiceType ServiceType `protobuf:"varint,1,opt,name=service_type,json=serviceType,proto3,enum=message.ServiceType" json:"service_type,omitempty"`
|
|
|
|
Type MessageType `protobuf:"varint,2,opt,name=type,proto3,enum=message.MessageType" json:"type,omitempty"`
|
|
|
|
// Types that are valid to be assigned to Response:
|
|
|
|
// *Response_LotteryResponse
|
|
|
|
Response isResponse_Response `protobuf_oneof:"response"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Response) Reset() { *m = Response{} }
|
|
|
|
func (m *Response) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Response) ProtoMessage() {}
|
|
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Response) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Response.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Response.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Response.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Response.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Response proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Response) GetServiceType() ServiceType {
|
|
|
|
if m != nil {
|
|
|
|
return m.ServiceType
|
|
|
|
}
|
|
|
|
return ServiceType_CONSENSUS
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Response) GetType() MessageType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return MessageType_NEWNODE_BEACON_STAKING
|
|
|
|
}
|
|
|
|
|
|
|
|
type isResponse_Response interface {
|
|
|
|
isResponse_Response()
|
|
|
|
}
|
|
|
|
|
|
|
|
type Response_LotteryResponse struct {
|
|
|
|
LotteryResponse *LotteryResponse `protobuf:"bytes,3,opt,name=lottery_response,json=lotteryResponse,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Response_LotteryResponse) isResponse_Response() {}
|
|
|
|
|
|
|
|
func (m *Response) GetResponse() isResponse_Response {
|
|
|
|
if m != nil {
|
|
|
|
return m.Response
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Response) GetLotteryResponse() *LotteryResponse {
|
|
|
|
if x, ok := m.GetResponse().(*Response_LotteryResponse); ok {
|
|
|
|
return x.LotteryResponse
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
|
|
func (*Response) XXX_OneofWrappers() []interface{} {
|
|
|
|
return []interface{}{
|
|
|
|
(*Response_LotteryResponse)(nil),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type LotteryResponse struct {
|
|
|
|
Players []string `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"`
|
|
|
|
Balances []string `protobuf:"bytes,3,rep,name=balances,proto3" json:"balances,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LotteryResponse) Reset() { *m = LotteryResponse{} }
|
|
|
|
func (m *LotteryResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LotteryResponse) ProtoMessage() {}
|
|
|
|
func (*LotteryResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LotteryResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LotteryResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LotteryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LotteryResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LotteryResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LotteryResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LotteryResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LotteryResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LotteryResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LotteryResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LotteryResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LotteryResponse) GetPlayers() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Players
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LotteryResponse) GetBalances() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Balances
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type LotteryRequest struct {
|
|
|
|
Type LotteryRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=message.LotteryRequest_Type" json:"type,omitempty"`
|
|
|
|
PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
|
|
|
|
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LotteryRequest) Reset() { *m = LotteryRequest{} }
|
|
|
|
func (m *LotteryRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LotteryRequest) ProtoMessage() {}
|
|
|
|
func (*LotteryRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LotteryRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LotteryRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LotteryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LotteryRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LotteryRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LotteryRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LotteryRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LotteryRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LotteryRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LotteryRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LotteryRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LotteryRequest) GetType() LotteryRequest_Type {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return LotteryRequest_ENTER
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LotteryRequest) GetPrivateKey() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.PrivateKey
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LotteryRequest) GetAmount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Amount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Staking Request from new node to beacon node.
|
|
|
|
type StakingRequest struct {
|
|
|
|
Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
|
|
|
|
NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StakingRequest) Reset() { *m = StakingRequest{} }
|
|
|
|
func (m *StakingRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StakingRequest) ProtoMessage() {}
|
|
|
|
func (*StakingRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{4}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StakingRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StakingRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StakingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StakingRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *StakingRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StakingRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StakingRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StakingRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StakingRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StakingRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StakingRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StakingRequest) GetTransaction() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Transaction
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StakingRequest) GetNodeId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.NodeId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type ConsensusRequest struct {
|
|
|
|
ViewId uint64 `protobuf:"varint,1,opt,name=view_id,json=viewId,proto3" json:"view_id,omitempty"`
|
|
|
|
BlockNum uint64 `protobuf:"varint,2,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
|
|
|
|
ShardId uint32 `protobuf:"varint,3,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
|
|
|
|
BlockHash []byte `protobuf:"bytes,4,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
|
|
|
|
Block []byte `protobuf:"bytes,5,opt,name=block,proto3" json:"block,omitempty"`
|
|
|
|
SenderPubkey []byte `protobuf:"bytes,6,opt,name=sender_pubkey,json=senderPubkey,proto3" json:"sender_pubkey,omitempty"`
|
|
|
|
Payload []byte `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) Reset() { *m = ConsensusRequest{} }
|
|
|
|
func (m *ConsensusRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ConsensusRequest) ProtoMessage() {}
|
|
|
|
func (*ConsensusRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{5}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ConsensusRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ConsensusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ConsensusRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ConsensusRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ConsensusRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ConsensusRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ConsensusRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ConsensusRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ConsensusRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ConsensusRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) GetViewId() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ViewId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) GetBlockNum() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.BlockNum
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) GetShardId() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ShardId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) GetBlockHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.BlockHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) GetBlock() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Block
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) GetSenderPubkey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.SenderPubkey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ConsensusRequest) GetPayload() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Payload
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type DrandRequest struct {
|
|
|
|
ShardId uint32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
|
|
|
|
SenderPubkey []byte `protobuf:"bytes,2,opt,name=sender_pubkey,json=senderPubkey,proto3" json:"sender_pubkey,omitempty"`
|
|
|
|
BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
|
|
|
|
Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DrandRequest) Reset() { *m = DrandRequest{} }
|
|
|
|
func (m *DrandRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DrandRequest) ProtoMessage() {}
|
|
|
|
func (*DrandRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{6}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DrandRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DrandRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DrandRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DrandRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DrandRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DrandRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DrandRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DrandRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DrandRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DrandRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DrandRequest) GetShardId() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ShardId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DrandRequest) GetSenderPubkey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.SenderPubkey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DrandRequest) GetBlockHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.BlockHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DrandRequest) GetPayload() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Payload
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ViewChangeRequest struct {
|
|
|
|
ViewId uint64 `protobuf:"varint,1,opt,name=view_id,json=viewId,proto3" json:"view_id,omitempty"`
|
|
|
|
BlockNum uint64 `protobuf:"varint,2,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
|
|
|
|
ShardId uint32 `protobuf:"varint,3,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
|
|
|
|
SenderPubkey []byte `protobuf:"bytes,4,opt,name=sender_pubkey,json=senderPubkey,proto3" json:"sender_pubkey,omitempty"`
|
|
|
|
LeaderPubkey []byte `protobuf:"bytes,5,opt,name=leader_pubkey,json=leaderPubkey,proto3" json:"leader_pubkey,omitempty"`
|
|
|
|
Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
|
|
ViewchangeSig []byte `protobuf:"bytes,7,opt,name=viewchange_sig,json=viewchangeSig,proto3" json:"viewchange_sig,omitempty"`
|
|
|
|
ViewidSig []byte `protobuf:"bytes,8,opt,name=viewid_sig,json=viewidSig,proto3" json:"viewid_sig,omitempty"`
|
|
|
|
// below is for newview message only
|
|
|
|
// only need 1 valid m1 type message which is in payload
|
|
|
|
M2Aggsigs []byte `protobuf:"bytes,9,opt,name=m2_aggsigs,json=m2Aggsigs,proto3" json:"m2_aggsigs,omitempty"`
|
|
|
|
M2Bitmap []byte `protobuf:"bytes,10,opt,name=m2_bitmap,json=m2Bitmap,proto3" json:"m2_bitmap,omitempty"`
|
|
|
|
M3Aggsigs []byte `protobuf:"bytes,11,opt,name=m3_aggsigs,json=m3Aggsigs,proto3" json:"m3_aggsigs,omitempty"`
|
|
|
|
M3Bitmap []byte `protobuf:"bytes,12,opt,name=m3_bitmap,json=m3Bitmap,proto3" json:"m3_bitmap,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) Reset() { *m = ViewChangeRequest{} }
|
|
|
|
func (m *ViewChangeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ViewChangeRequest) ProtoMessage() {}
|
|
|
|
func (*ViewChangeRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_33c57e4bae7b9afd, []int{7}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ViewChangeRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ViewChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ViewChangeRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ViewChangeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ViewChangeRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ViewChangeRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ViewChangeRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ViewChangeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ViewChangeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ViewChangeRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetViewId() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ViewId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetBlockNum() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.BlockNum
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetShardId() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ShardId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetSenderPubkey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.SenderPubkey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetLeaderPubkey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.LeaderPubkey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetPayload() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Payload
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetViewchangeSig() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ViewchangeSig
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetViewidSig() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ViewidSig
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetM2Aggsigs() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.M2Aggsigs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetM2Bitmap() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.M2Bitmap
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetM3Aggsigs() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.M3Aggsigs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewChangeRequest) GetM3Bitmap() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.M3Bitmap
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterEnum("message.ServiceType", ServiceType_name, ServiceType_value)
|
|
|
|
proto.RegisterEnum("message.MessageType", MessageType_name, MessageType_value)
|
|
|
|
proto.RegisterEnum("message.LotteryRequest_Type", LotteryRequest_Type_name, LotteryRequest_Type_value)
|
|
|
|
proto.RegisterType((*Message)(nil), "message.Message")
|
|
|
|
proto.RegisterType((*Response)(nil), "message.Response")
|
|
|
|
proto.RegisterType((*LotteryResponse)(nil), "message.LotteryResponse")
|
|
|
|
proto.RegisterType((*LotteryRequest)(nil), "message.LotteryRequest")
|
|
|
|
proto.RegisterType((*StakingRequest)(nil), "message.StakingRequest")
|
|
|
|
proto.RegisterType((*ConsensusRequest)(nil), "message.ConsensusRequest")
|
|
|
|
proto.RegisterType((*DrandRequest)(nil), "message.DrandRequest")
|
|
|
|
proto.RegisterType((*ViewChangeRequest)(nil), "message.ViewChangeRequest")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("message.proto", fileDescriptor_33c57e4bae7b9afd) }
|
|
|
|
|
|
|
|
var fileDescriptor_33c57e4bae7b9afd = []byte{
|
|
|
|
// 949 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x6e, 0xe2, 0x46,
|
|
|
|
0x14, 0xc6, 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
0xee, 0x25, 0x85, 0x4c, 0x19, 0x54, 0xbd, 0x06, 0xae, 0xe7, 0xfa, 0x08, 0x30, 0x02, 0x5b, 0xe3,
|
|
|
|
0xbc, 0x9a, 0x85, 0xbf, 0x80, 0xe3, 0x9b, 0xa1, 0xef, 0x13, 0xfa, 0x73, 0x40, 0xc9, 0x4f, 0x77,
|
|
|
|
0x64, 0xec, 0x23, 0xbb, 0xd3, 0x83, 0x66, 0x7f, 0x16, 0xf1, 0x38, 0xcb, 0x3d, 0xc1, 0x1f, 0xc0,
|
|
|
|
0x1c, 0xa5, 0xc9, 0x84, 0x0b, 0x81, 0xd1, 0xfe, 0x4b, 0x7e, 0xf2, 0x62, 0xc3, 0xac, 0x1f, 0xdb,
|
|
|
|
0x76, 0xe9, 0xa1, 0xa6, 0xfe, 0x0d, 0x74, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xf5, 0x7c,
|
|
|
|
0xdf, 0x1e, 0x08, 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
|
|
|
|
|
|
|
|
// ClientServiceClient is the client API for ClientService service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type ClientServiceClient interface {
|
|
|
|
Process(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Response, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type clientServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewClientServiceClient(cc *grpc.ClientConn) ClientServiceClient {
|
|
|
|
return &clientServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *clientServiceClient) Process(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Response, error) {
|
|
|
|
out := new(Response)
|
|
|
|
err := c.cc.Invoke(ctx, "/message.ClientService/Process", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// ClientServiceServer is the server API for ClientService service.
|
|
|
|
type ClientServiceServer interface {
|
|
|
|
Process(context.Context, *Message) (*Response, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer) {
|
|
|
|
s.RegisterService(&_ClientService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _ClientService_Process_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(Message)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(ClientServiceServer).Process(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/message.ClientService/Process",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(ClientServiceServer).Process(ctx, req.(*Message))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _ClientService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "message.ClientService",
|
|
|
|
HandlerType: (*ClientServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Process",
|
|
|
|
Handler: _ClientService_Process_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "message.proto",
|
|
|
|
}
|