status-go/protocol/protobuf/shard.pb.go

214 lines
7.3 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: shard.proto
package protobuf
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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 Shard struct {
Cluster int32 `protobuf:"varint,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Shard) Reset() { *m = Shard{} }
func (m *Shard) String() string { return proto.CompactTextString(m) }
func (*Shard) ProtoMessage() {}
func (*Shard) Descriptor() ([]byte, []int) {
return fileDescriptor_319ea41e44cdc364, []int{0}
}
func (m *Shard) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Shard.Unmarshal(m, b)
}
func (m *Shard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Shard.Marshal(b, m, deterministic)
}
func (m *Shard) XXX_Merge(src proto.Message) {
xxx_messageInfo_Shard.Merge(m, src)
}
func (m *Shard) XXX_Size() int {
return xxx_messageInfo_Shard.Size(m)
}
func (m *Shard) XXX_DiscardUnknown() {
xxx_messageInfo_Shard.DiscardUnknown(m)
}
var xxx_messageInfo_Shard proto.InternalMessageInfo
func (m *Shard) GetCluster() int32 {
if m != nil {
return m.Cluster
}
return 0
}
func (m *Shard) GetIndex() int32 {
if m != nil {
return m.Index
}
return 0
}
type PublicShardInfo struct {
// clock
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
// community ID
CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"`
// shard information
Shard *Shard `protobuf:"bytes,3,opt,name=shard,proto3" json:"shard,omitempty"`
// if chainID > 0, the signer must be verified through the community contract
ChainId uint64 `protobuf:"varint,4,opt,name=chainId,proto3" json:"chainId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PublicShardInfo) Reset() { *m = PublicShardInfo{} }
func (m *PublicShardInfo) String() string { return proto.CompactTextString(m) }
func (*PublicShardInfo) ProtoMessage() {}
func (*PublicShardInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_319ea41e44cdc364, []int{1}
}
func (m *PublicShardInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublicShardInfo.Unmarshal(m, b)
}
func (m *PublicShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublicShardInfo.Marshal(b, m, deterministic)
}
func (m *PublicShardInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublicShardInfo.Merge(m, src)
}
func (m *PublicShardInfo) XXX_Size() int {
return xxx_messageInfo_PublicShardInfo.Size(m)
}
func (m *PublicShardInfo) XXX_DiscardUnknown() {
xxx_messageInfo_PublicShardInfo.DiscardUnknown(m)
}
var xxx_messageInfo_PublicShardInfo proto.InternalMessageInfo
func (m *PublicShardInfo) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *PublicShardInfo) GetCommunityId() []byte {
if m != nil {
return m.CommunityId
}
return nil
}
func (m *PublicShardInfo) GetShard() *Shard {
if m != nil {
return m.Shard
}
return nil
}
func (m *PublicShardInfo) GetChainId() uint64 {
if m != nil {
return m.ChainId
}
return 0
}
type CommunityPublicShardInfo struct {
// Signature of the payload field
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
// Marshaled PublicShardInfo
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommunityPublicShardInfo) Reset() { *m = CommunityPublicShardInfo{} }
func (m *CommunityPublicShardInfo) String() string { return proto.CompactTextString(m) }
func (*CommunityPublicShardInfo) ProtoMessage() {}
func (*CommunityPublicShardInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_319ea41e44cdc364, []int{2}
}
func (m *CommunityPublicShardInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommunityPublicShardInfo.Unmarshal(m, b)
}
func (m *CommunityPublicShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommunityPublicShardInfo.Marshal(b, m, deterministic)
}
func (m *CommunityPublicShardInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommunityPublicShardInfo.Merge(m, src)
}
func (m *CommunityPublicShardInfo) XXX_Size() int {
return xxx_messageInfo_CommunityPublicShardInfo.Size(m)
}
func (m *CommunityPublicShardInfo) XXX_DiscardUnknown() {
xxx_messageInfo_CommunityPublicShardInfo.DiscardUnknown(m)
}
var xxx_messageInfo_CommunityPublicShardInfo proto.InternalMessageInfo
func (m *CommunityPublicShardInfo) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *CommunityPublicShardInfo) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
func init() {
proto.RegisterType((*Shard)(nil), "protobuf.Shard")
proto.RegisterType((*PublicShardInfo)(nil), "protobuf.PublicShardInfo")
proto.RegisterType((*CommunityPublicShardInfo)(nil), "protobuf.CommunityPublicShardInfo")
}
func init() {
proto.RegisterFile("shard.proto", fileDescriptor_319ea41e44cdc364)
}
var fileDescriptor_319ea41e44cdc364 = []byte{
// 231 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0x3d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