diff --git a/go.mod b/go.mod index 6c47d8192..dcb0fc17a 100644 --- a/go.mod +++ b/go.mod @@ -22,9 +22,12 @@ require ( gopkg.in/alecthomas/kingpin.v2 v2.2.6 ) +require github.com/stretchr/testify v1.7.0 + require ( github.com/DataDog/zstd v1.4.1 // indirect github.com/cespare/xxhash v1.1.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de // indirect github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect github.com/dustin/go-humanize v1.0.0 // indirect @@ -34,6 +37,7 @@ require ( github.com/mattn/go-colorable v0.1.2 // indirect github.com/mattn/go-isatty v0.0.8 // indirect github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect github.com/tidwall/tinylru v1.1.0 // indirect diff --git a/pkg/contextstore/contextstore.go b/pkg/contextstore/contextstore.go new file mode 100644 index 000000000..9a3f1b7e6 --- /dev/null +++ b/pkg/contextstore/contextstore.go @@ -0,0 +1,17 @@ +package contextstore + +// ContextStore can be used to store arbitrary data under an automatically deterministically generated unique id. +type ContextStore[T any] interface { + Store(t T) ItemID + Recover(id ItemID) T + Dispose(id ItemID) + RecoverAndDispose(id ItemID) T +} + +// ItemID is used to uniquely identify entries of the ContextStore. +type ItemID uint64 + +// Pb returns the protobuf representation of ItemID. +func (i ItemID) Pb() uint64 { + return uint64(i) +} diff --git a/pkg/contextstore/contextstore_test.go b/pkg/contextstore/contextstore_test.go new file mode 100644 index 000000000..153296cd1 --- /dev/null +++ b/pkg/contextstore/contextstore_test.go @@ -0,0 +1,25 @@ +package contextstore + +import ( + "github.com/stretchr/testify/assert" + "testing" +) + +func TestContextStore_SimpleTest(t *testing.T) { + cs := NewSequentialContextStore[string]() + helloID := cs.Store("Hello") + worldID := cs.Store("World") + + assert.Equal(t, "World", cs.Recover(worldID)) + assert.Equal(t, "Hello", cs.Recover(helloID)) + + cs.Dispose(worldID) + assert.Panics(t, func() { + cs.Recover(worldID) + }) + + assert.Equal(t, "Hello", cs.RecoverAndDispose(helloID)) + assert.Panics(t, func() { + cs.RecoverAndDispose(helloID) + }) +} diff --git a/pkg/contextstore/events.go b/pkg/contextstore/events.go new file mode 100644 index 000000000..371452162 --- /dev/null +++ b/pkg/contextstore/events.go @@ -0,0 +1,41 @@ +package contextstore + +import ( + "github.com/filecoin-project/mir/pkg/pb/eventpb" + t "github.com/filecoin-project/mir/pkg/types" +) + +// Origin returns a ContextStoreOrigin protobuf containing the given id. +func Origin(itemID ItemID) *eventpb.ContextStoreOrigin { + return &eventpb.ContextStoreOrigin{ItemID: itemID.Pb()} +} + +// SignOrigin returns a SignOrigin protobuf containing moduleID and contextstore.Origin(itemID). +func SignOrigin(moduleID t.ModuleID, itemID ItemID) *eventpb.SignOrigin { + return &eventpb.SignOrigin{ + Module: moduleID.Pb(), + Type: &eventpb.SignOrigin_Contextstore{ + Contextstore: Origin(itemID), + }, + } +} + +// SigVerOrigin returns a SigVerOrigin protobuf containing moduleID and contextstore.Origin(itemID). +func SigVerOrigin(moduleID t.ModuleID, itemID ItemID) *eventpb.SigVerOrigin { + return &eventpb.SigVerOrigin{ + Module: moduleID.Pb(), + Type: &eventpb.SigVerOrigin_Contextstore{ + Contextstore: Origin(itemID), + }, + } +} + +// HashOrigin returns a HashOrigin protobuf containing moduleID and contextstore.Origin(itemID). +func HashOrigin(moduleID t.ModuleID, itemID ItemID) *eventpb.HashOrigin { + return &eventpb.HashOrigin{ + Module: moduleID.Pb(), + Type: &eventpb.HashOrigin_Contextstore{ + Contextstore: Origin(itemID), + }, + } +} diff --git a/pkg/contextstore/sequential.go b/pkg/contextstore/sequential.go new file mode 100644 index 000000000..76637b17a --- /dev/null +++ b/pkg/contextstore/sequential.go @@ -0,0 +1,49 @@ +package contextstore + +import "fmt" + +type sequentialContextStoreImpl[T any] struct { + nextID ItemID + storage map[ItemID]T +} + +// NewSequentialContextStore creates an empty ContextStore that can only be accessed sequentially. +func NewSequentialContextStore[T any]() ContextStore[T] { + return &sequentialContextStoreImpl[T]{ + storage: make(map[ItemID]T), + } +} + +// Store stores the given data in the ContextStore and returns a unique id. +// The data can be later recovered or disposed of using this id. +func (s *sequentialContextStoreImpl[T]) Store(t T) ItemID { + id := s.nextID + s.nextID++ + + s.storage[id] = t + return id +} + +// Recover returns the data stored under the provided id. +// Note that the data will continue to exist in the ContextStore. +// In order to dispose of the data, call s.Dispose(id) or s.RecoverAndDispose(id). +func (s *sequentialContextStoreImpl[T]) Recover(id ItemID) T { + item, present := s.storage[id] + if !present { + panic(fmt.Errorf("item with id '%v' is not present in the ContextStore", id)) + } + + return item +} + +// Dispose removes the data from the ContextStore. +func (s *sequentialContextStoreImpl[T]) Dispose(id ItemID) { + delete(s.storage, id) +} + +// RecoverAndDispose returns the data stored under the provided id and removes it from the ContextStore. +func (s *sequentialContextStoreImpl[T]) RecoverAndDispose(id ItemID) T { + t := s.Recover(id) + s.Dispose(id) + return t +} diff --git a/pkg/pb/eventpb/eventpb.pb.go b/pkg/pb/eventpb/eventpb.pb.go index 43a1ca062..c5c2bbce9 100644 --- a/pkg/pb/eventpb/eventpb.pb.go +++ b/pkg/pb/eventpb/eventpb.pb.go @@ -560,6 +560,53 @@ func (*Tick) Descriptor() ([]byte, []int) { return file_eventpb_eventpb_proto_rawDescGZIP(), []int{2} } +type ContextStoreOrigin struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ItemID uint64 `protobuf:"varint,1,opt,name=itemID,proto3" json:"itemID,omitempty"` +} + +func (x *ContextStoreOrigin) Reset() { + *x = ContextStoreOrigin{} + if protoimpl.UnsafeEnabled { + mi := &file_eventpb_eventpb_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContextStoreOrigin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContextStoreOrigin) ProtoMessage() {} + +func (x *ContextStoreOrigin) ProtoReflect() protoreflect.Message { + mi := &file_eventpb_eventpb_proto_msgTypes[3] + 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 ContextStoreOrigin.ProtoReflect.Descriptor instead. +func (*ContextStoreOrigin) Descriptor() ([]byte, []int) { + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{3} +} + +func (x *ContextStoreOrigin) GetItemID() uint64 { + if x != nil { + return x.ItemID + } + return 0 +} + type HashRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -572,7 +619,7 @@ type HashRequest struct { func (x *HashRequest) Reset() { *x = HashRequest{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[3] + mi := &file_eventpb_eventpb_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -585,7 +632,7 @@ func (x *HashRequest) String() string { func (*HashRequest) ProtoMessage() {} func (x *HashRequest) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[3] + mi := &file_eventpb_eventpb_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -598,7 +645,7 @@ func (x *HashRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HashRequest.ProtoReflect.Descriptor instead. func (*HashRequest) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{3} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{4} } func (x *HashRequest) GetData() []*commonpb.HashData { @@ -627,7 +674,7 @@ type HashResult struct { func (x *HashResult) Reset() { *x = HashResult{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[4] + mi := &file_eventpb_eventpb_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -640,7 +687,7 @@ func (x *HashResult) String() string { func (*HashResult) ProtoMessage() {} func (x *HashResult) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[4] + mi := &file_eventpb_eventpb_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -653,7 +700,7 @@ func (x *HashResult) ProtoReflect() protoreflect.Message { // Deprecated: Use HashResult.ProtoReflect.Descriptor instead. func (*HashResult) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{4} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{5} } func (x *HashResult) GetDigests() [][]byte { @@ -677,6 +724,7 @@ type HashOrigin struct { Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // Types that are assignable to Type: + // *HashOrigin_Contextstore // *HashOrigin_Request // *HashOrigin_Iss Type isHashOrigin_Type `protobuf_oneof:"type"` @@ -685,7 +733,7 @@ type HashOrigin struct { func (x *HashOrigin) Reset() { *x = HashOrigin{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[5] + mi := &file_eventpb_eventpb_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -698,7 +746,7 @@ func (x *HashOrigin) String() string { func (*HashOrigin) ProtoMessage() {} func (x *HashOrigin) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[5] + mi := &file_eventpb_eventpb_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -711,7 +759,7 @@ func (x *HashOrigin) ProtoReflect() protoreflect.Message { // Deprecated: Use HashOrigin.ProtoReflect.Descriptor instead. func (*HashOrigin) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{5} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{6} } func (x *HashOrigin) GetModule() string { @@ -728,6 +776,13 @@ func (m *HashOrigin) GetType() isHashOrigin_Type { return nil } +func (x *HashOrigin) GetContextstore() *ContextStoreOrigin { + if x, ok := x.GetType().(*HashOrigin_Contextstore); ok { + return x.Contextstore + } + return nil +} + func (x *HashOrigin) GetRequest() *requestpb.Request { if x, ok := x.GetType().(*HashOrigin_Request); ok { return x.Request @@ -746,14 +801,20 @@ type isHashOrigin_Type interface { isHashOrigin_Type() } +type HashOrigin_Contextstore struct { + Contextstore *ContextStoreOrigin `protobuf:"bytes,2,opt,name=contextstore,proto3,oneof"` +} + type HashOrigin_Request struct { - Request *requestpb.Request `protobuf:"bytes,2,opt,name=request,proto3,oneof"` + Request *requestpb.Request `protobuf:"bytes,3,opt,name=request,proto3,oneof"` } type HashOrigin_Iss struct { - Iss *isspb.ISSHashOrigin `protobuf:"bytes,3,opt,name=iss,proto3,oneof"` + Iss *isspb.ISSHashOrigin `protobuf:"bytes,4,opt,name=iss,proto3,oneof"` } +func (*HashOrigin_Contextstore) isHashOrigin_Type() {} + func (*HashOrigin_Request) isHashOrigin_Type() {} func (*HashOrigin_Iss) isHashOrigin_Type() {} @@ -770,7 +831,7 @@ type SignRequest struct { func (x *SignRequest) Reset() { *x = SignRequest{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[6] + mi := &file_eventpb_eventpb_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -783,7 +844,7 @@ func (x *SignRequest) String() string { func (*SignRequest) ProtoMessage() {} func (x *SignRequest) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[6] + mi := &file_eventpb_eventpb_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -796,7 +857,7 @@ func (x *SignRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SignRequest.ProtoReflect.Descriptor instead. func (*SignRequest) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{6} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{7} } func (x *SignRequest) GetData() [][]byte { @@ -825,7 +886,7 @@ type SignResult struct { func (x *SignResult) Reset() { *x = SignResult{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[7] + mi := &file_eventpb_eventpb_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -838,7 +899,7 @@ func (x *SignResult) String() string { func (*SignResult) ProtoMessage() {} func (x *SignResult) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[7] + mi := &file_eventpb_eventpb_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -851,7 +912,7 @@ func (x *SignResult) ProtoReflect() protoreflect.Message { // Deprecated: Use SignResult.ProtoReflect.Descriptor instead. func (*SignResult) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{7} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{8} } func (x *SignResult) GetSignature() []byte { @@ -875,6 +936,7 @@ type SignOrigin struct { Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // Types that are assignable to Type: + // *SignOrigin_Contextstore // *SignOrigin_Iss Type isSignOrigin_Type `protobuf_oneof:"type"` } @@ -882,7 +944,7 @@ type SignOrigin struct { func (x *SignOrigin) Reset() { *x = SignOrigin{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[8] + mi := &file_eventpb_eventpb_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -895,7 +957,7 @@ func (x *SignOrigin) String() string { func (*SignOrigin) ProtoMessage() {} func (x *SignOrigin) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[8] + mi := &file_eventpb_eventpb_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -908,7 +970,7 @@ func (x *SignOrigin) ProtoReflect() protoreflect.Message { // Deprecated: Use SignOrigin.ProtoReflect.Descriptor instead. func (*SignOrigin) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{8} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{9} } func (x *SignOrigin) GetModule() string { @@ -925,6 +987,13 @@ func (m *SignOrigin) GetType() isSignOrigin_Type { return nil } +func (x *SignOrigin) GetContextstore() *ContextStoreOrigin { + if x, ok := x.GetType().(*SignOrigin_Contextstore); ok { + return x.Contextstore + } + return nil +} + func (x *SignOrigin) GetIss() *isspb.ISSSignOrigin { if x, ok := x.GetType().(*SignOrigin_Iss); ok { return x.Iss @@ -936,10 +1005,16 @@ type isSignOrigin_Type interface { isSignOrigin_Type() } +type SignOrigin_Contextstore struct { + Contextstore *ContextStoreOrigin `protobuf:"bytes,2,opt,name=contextstore,proto3,oneof"` +} + type SignOrigin_Iss struct { - Iss *isspb.ISSSignOrigin `protobuf:"bytes,2,opt,name=iss,proto3,oneof"` + Iss *isspb.ISSSignOrigin `protobuf:"bytes,3,opt,name=iss,proto3,oneof"` } +func (*SignOrigin_Contextstore) isSignOrigin_Type() {} + func (*SignOrigin_Iss) isSignOrigin_Type() {} type SigVerData struct { @@ -953,7 +1028,7 @@ type SigVerData struct { func (x *SigVerData) Reset() { *x = SigVerData{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[9] + mi := &file_eventpb_eventpb_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -966,7 +1041,7 @@ func (x *SigVerData) String() string { func (*SigVerData) ProtoMessage() {} func (x *SigVerData) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[9] + mi := &file_eventpb_eventpb_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -979,7 +1054,7 @@ func (x *SigVerData) ProtoReflect() protoreflect.Message { // Deprecated: Use SigVerData.ProtoReflect.Descriptor instead. func (*SigVerData) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{9} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{10} } func (x *SigVerData) GetData() [][]byte { @@ -1003,7 +1078,7 @@ type VerifyNodeSigs struct { func (x *VerifyNodeSigs) Reset() { *x = VerifyNodeSigs{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[10] + mi := &file_eventpb_eventpb_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1016,7 +1091,7 @@ func (x *VerifyNodeSigs) String() string { func (*VerifyNodeSigs) ProtoMessage() {} func (x *VerifyNodeSigs) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[10] + mi := &file_eventpb_eventpb_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1029,7 +1104,7 @@ func (x *VerifyNodeSigs) ProtoReflect() protoreflect.Message { // Deprecated: Use VerifyNodeSigs.ProtoReflect.Descriptor instead. func (*VerifyNodeSigs) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{10} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{11} } func (x *VerifyNodeSigs) GetData() []*SigVerData { @@ -1075,7 +1150,7 @@ type NodeSigsVerified struct { func (x *NodeSigsVerified) Reset() { *x = NodeSigsVerified{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[11] + mi := &file_eventpb_eventpb_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1088,7 +1163,7 @@ func (x *NodeSigsVerified) String() string { func (*NodeSigsVerified) ProtoMessage() {} func (x *NodeSigsVerified) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[11] + mi := &file_eventpb_eventpb_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1101,7 +1176,7 @@ func (x *NodeSigsVerified) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeSigsVerified.ProtoReflect.Descriptor instead. func (*NodeSigsVerified) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{11} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{12} } func (x *NodeSigsVerified) GetOrigin() *SigVerOrigin { @@ -1146,6 +1221,7 @@ type SigVerOrigin struct { Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // Types that are assignable to Type: + // *SigVerOrigin_Contextstore // *SigVerOrigin_Iss Type isSigVerOrigin_Type `protobuf_oneof:"type"` } @@ -1153,7 +1229,7 @@ type SigVerOrigin struct { func (x *SigVerOrigin) Reset() { *x = SigVerOrigin{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[12] + mi := &file_eventpb_eventpb_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1166,7 +1242,7 @@ func (x *SigVerOrigin) String() string { func (*SigVerOrigin) ProtoMessage() {} func (x *SigVerOrigin) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[12] + mi := &file_eventpb_eventpb_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1179,7 +1255,7 @@ func (x *SigVerOrigin) ProtoReflect() protoreflect.Message { // Deprecated: Use SigVerOrigin.ProtoReflect.Descriptor instead. func (*SigVerOrigin) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{12} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{13} } func (x *SigVerOrigin) GetModule() string { @@ -1196,6 +1272,13 @@ func (m *SigVerOrigin) GetType() isSigVerOrigin_Type { return nil } +func (x *SigVerOrigin) GetContextstore() *ContextStoreOrigin { + if x, ok := x.GetType().(*SigVerOrigin_Contextstore); ok { + return x.Contextstore + } + return nil +} + func (x *SigVerOrigin) GetIss() *isspb.ISSSigVerOrigin { if x, ok := x.GetType().(*SigVerOrigin_Iss); ok { return x.Iss @@ -1207,10 +1290,16 @@ type isSigVerOrigin_Type interface { isSigVerOrigin_Type() } +type SigVerOrigin_Contextstore struct { + Contextstore *ContextStoreOrigin `protobuf:"bytes,2,opt,name=contextstore,proto3,oneof"` +} + type SigVerOrigin_Iss struct { - Iss *isspb.ISSSigVerOrigin `protobuf:"bytes,2,opt,name=iss,proto3,oneof"` + Iss *isspb.ISSSigVerOrigin `protobuf:"bytes,3,opt,name=iss,proto3,oneof"` } +func (*SigVerOrigin_Contextstore) isSigVerOrigin_Type() {} + func (*SigVerOrigin_Iss) isSigVerOrigin_Type() {} type RequestReady struct { @@ -1224,7 +1313,7 @@ type RequestReady struct { func (x *RequestReady) Reset() { *x = RequestReady{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[13] + mi := &file_eventpb_eventpb_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1237,7 +1326,7 @@ func (x *RequestReady) String() string { func (*RequestReady) ProtoMessage() {} func (x *RequestReady) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[13] + mi := &file_eventpb_eventpb_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1250,7 +1339,7 @@ func (x *RequestReady) ProtoReflect() protoreflect.Message { // Deprecated: Use RequestReady.ProtoReflect.Descriptor instead. func (*RequestReady) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{13} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{14} } func (x *RequestReady) GetRequestRef() *requestpb.RequestRef { @@ -1272,7 +1361,7 @@ type SendMessage struct { func (x *SendMessage) Reset() { *x = SendMessage{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[14] + mi := &file_eventpb_eventpb_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1285,7 +1374,7 @@ func (x *SendMessage) String() string { func (*SendMessage) ProtoMessage() {} func (x *SendMessage) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[14] + mi := &file_eventpb_eventpb_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1298,7 +1387,7 @@ func (x *SendMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use SendMessage.ProtoReflect.Descriptor instead. func (*SendMessage) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{14} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{15} } func (x *SendMessage) GetDestinations() []string { @@ -1327,7 +1416,7 @@ type MessageReceived struct { func (x *MessageReceived) Reset() { *x = MessageReceived{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[15] + mi := &file_eventpb_eventpb_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1340,7 +1429,7 @@ func (x *MessageReceived) String() string { func (*MessageReceived) ProtoMessage() {} func (x *MessageReceived) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[15] + mi := &file_eventpb_eventpb_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1353,7 +1442,7 @@ func (x *MessageReceived) ProtoReflect() protoreflect.Message { // Deprecated: Use MessageReceived.ProtoReflect.Descriptor instead. func (*MessageReceived) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{15} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{16} } func (x *MessageReceived) GetFrom() string { @@ -1382,7 +1471,7 @@ type WALAppend struct { func (x *WALAppend) Reset() { *x = WALAppend{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[16] + mi := &file_eventpb_eventpb_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1395,7 +1484,7 @@ func (x *WALAppend) String() string { func (*WALAppend) ProtoMessage() {} func (x *WALAppend) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[16] + mi := &file_eventpb_eventpb_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1408,7 +1497,7 @@ func (x *WALAppend) ProtoReflect() protoreflect.Message { // Deprecated: Use WALAppend.ProtoReflect.Descriptor instead. func (*WALAppend) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{16} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{17} } func (x *WALAppend) GetEvent() *Event { @@ -1436,7 +1525,7 @@ type WALEntry struct { func (x *WALEntry) Reset() { *x = WALEntry{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[17] + mi := &file_eventpb_eventpb_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1449,7 +1538,7 @@ func (x *WALEntry) String() string { func (*WALEntry) ProtoMessage() {} func (x *WALEntry) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[17] + mi := &file_eventpb_eventpb_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1462,7 +1551,7 @@ func (x *WALEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use WALEntry.ProtoReflect.Descriptor instead. func (*WALEntry) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{17} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{18} } func (x *WALEntry) GetEvent() *Event { @@ -1483,7 +1572,7 @@ type WALTruncate struct { func (x *WALTruncate) Reset() { *x = WALTruncate{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[18] + mi := &file_eventpb_eventpb_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1496,7 +1585,7 @@ func (x *WALTruncate) String() string { func (*WALTruncate) ProtoMessage() {} func (x *WALTruncate) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[18] + mi := &file_eventpb_eventpb_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1509,7 +1598,7 @@ func (x *WALTruncate) ProtoReflect() protoreflect.Message { // Deprecated: Use WALTruncate.ProtoReflect.Descriptor instead. func (*WALTruncate) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{18} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{19} } func (x *WALTruncate) GetRetentionIndex() uint64 { @@ -1528,7 +1617,7 @@ type WALLoadAll struct { func (x *WALLoadAll) Reset() { *x = WALLoadAll{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[19] + mi := &file_eventpb_eventpb_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1541,7 +1630,7 @@ func (x *WALLoadAll) String() string { func (*WALLoadAll) ProtoMessage() {} func (x *WALLoadAll) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[19] + mi := &file_eventpb_eventpb_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1554,7 +1643,7 @@ func (x *WALLoadAll) ProtoReflect() protoreflect.Message { // Deprecated: Use WALLoadAll.ProtoReflect.Descriptor instead. func (*WALLoadAll) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{19} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{20} } type Deliver struct { @@ -1569,7 +1658,7 @@ type Deliver struct { func (x *Deliver) Reset() { *x = Deliver{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[20] + mi := &file_eventpb_eventpb_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1582,7 +1671,7 @@ func (x *Deliver) String() string { func (*Deliver) ProtoMessage() {} func (x *Deliver) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[20] + mi := &file_eventpb_eventpb_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1595,7 +1684,7 @@ func (x *Deliver) ProtoReflect() protoreflect.Message { // Deprecated: Use Deliver.ProtoReflect.Descriptor instead. func (*Deliver) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{20} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{21} } func (x *Deliver) GetSn() uint64 { @@ -1624,7 +1713,7 @@ type VerifyRequestSig struct { func (x *VerifyRequestSig) Reset() { *x = VerifyRequestSig{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[21] + mi := &file_eventpb_eventpb_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1637,7 +1726,7 @@ func (x *VerifyRequestSig) String() string { func (*VerifyRequestSig) ProtoMessage() {} func (x *VerifyRequestSig) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[21] + mi := &file_eventpb_eventpb_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1650,7 +1739,7 @@ func (x *VerifyRequestSig) ProtoReflect() protoreflect.Message { // Deprecated: Use VerifyRequestSig.ProtoReflect.Descriptor instead. func (*VerifyRequestSig) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{21} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{22} } func (x *VerifyRequestSig) GetRequestRef() *requestpb.RequestRef { @@ -1680,7 +1769,7 @@ type RequestSigVerified struct { func (x *RequestSigVerified) Reset() { *x = RequestSigVerified{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[22] + mi := &file_eventpb_eventpb_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1693,7 +1782,7 @@ func (x *RequestSigVerified) String() string { func (*RequestSigVerified) ProtoMessage() {} func (x *RequestSigVerified) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[22] + mi := &file_eventpb_eventpb_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1706,7 +1795,7 @@ func (x *RequestSigVerified) ProtoReflect() protoreflect.Message { // Deprecated: Use RequestSigVerified.ProtoReflect.Descriptor instead. func (*RequestSigVerified) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{22} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{23} } func (x *RequestSigVerified) GetRequestRef() *requestpb.RequestRef { @@ -1743,7 +1832,7 @@ type StoreVerifiedRequest struct { func (x *StoreVerifiedRequest) Reset() { *x = StoreVerifiedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[23] + mi := &file_eventpb_eventpb_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1756,7 +1845,7 @@ func (x *StoreVerifiedRequest) String() string { func (*StoreVerifiedRequest) ProtoMessage() {} func (x *StoreVerifiedRequest) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[23] + mi := &file_eventpb_eventpb_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1769,7 +1858,7 @@ func (x *StoreVerifiedRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StoreVerifiedRequest.ProtoReflect.Descriptor instead. func (*StoreVerifiedRequest) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{23} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{24} } func (x *StoreVerifiedRequest) GetRequestRef() *requestpb.RequestRef { @@ -1805,7 +1894,7 @@ type AppSnapshotRequest struct { func (x *AppSnapshotRequest) Reset() { *x = AppSnapshotRequest{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[24] + mi := &file_eventpb_eventpb_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1818,7 +1907,7 @@ func (x *AppSnapshotRequest) String() string { func (*AppSnapshotRequest) ProtoMessage() {} func (x *AppSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[24] + mi := &file_eventpb_eventpb_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1831,7 +1920,7 @@ func (x *AppSnapshotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AppSnapshotRequest.ProtoReflect.Descriptor instead. func (*AppSnapshotRequest) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{24} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{25} } func (x *AppSnapshotRequest) GetModule() string { @@ -1860,7 +1949,7 @@ type AppSnapshot struct { func (x *AppSnapshot) Reset() { *x = AppSnapshot{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[25] + mi := &file_eventpb_eventpb_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1873,7 +1962,7 @@ func (x *AppSnapshot) String() string { func (*AppSnapshot) ProtoMessage() {} func (x *AppSnapshot) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[25] + mi := &file_eventpb_eventpb_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1886,7 +1975,7 @@ func (x *AppSnapshot) ProtoReflect() protoreflect.Message { // Deprecated: Use AppSnapshot.ProtoReflect.Descriptor instead. func (*AppSnapshot) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{25} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{26} } func (x *AppSnapshot) GetEpoch() uint64 { @@ -1914,7 +2003,7 @@ type AppRestoreState struct { func (x *AppRestoreState) Reset() { *x = AppRestoreState{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[26] + mi := &file_eventpb_eventpb_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1927,7 +2016,7 @@ func (x *AppRestoreState) String() string { func (*AppRestoreState) ProtoMessage() {} func (x *AppRestoreState) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[26] + mi := &file_eventpb_eventpb_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1940,7 +2029,7 @@ func (x *AppRestoreState) ProtoReflect() protoreflect.Message { // Deprecated: Use AppRestoreState.ProtoReflect.Descriptor instead. func (*AppRestoreState) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{26} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{27} } func (x *AppRestoreState) GetData() []byte { @@ -1962,7 +2051,7 @@ type TimerDelay struct { func (x *TimerDelay) Reset() { *x = TimerDelay{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[27] + mi := &file_eventpb_eventpb_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1975,7 +2064,7 @@ func (x *TimerDelay) String() string { func (*TimerDelay) ProtoMessage() {} func (x *TimerDelay) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[27] + mi := &file_eventpb_eventpb_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1988,7 +2077,7 @@ func (x *TimerDelay) ProtoReflect() protoreflect.Message { // Deprecated: Use TimerDelay.ProtoReflect.Descriptor instead. func (*TimerDelay) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{27} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{28} } func (x *TimerDelay) GetEvents() []*Event { @@ -2018,7 +2107,7 @@ type TimerRepeat struct { func (x *TimerRepeat) Reset() { *x = TimerRepeat{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[28] + mi := &file_eventpb_eventpb_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2031,7 +2120,7 @@ func (x *TimerRepeat) String() string { func (*TimerRepeat) ProtoMessage() {} func (x *TimerRepeat) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[28] + mi := &file_eventpb_eventpb_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2044,7 +2133,7 @@ func (x *TimerRepeat) ProtoReflect() protoreflect.Message { // Deprecated: Use TimerRepeat.ProtoReflect.Descriptor instead. func (*TimerRepeat) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{28} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{29} } func (x *TimerRepeat) GetEvents() []*Event { @@ -2079,7 +2168,7 @@ type TimerGarbageCollect struct { func (x *TimerGarbageCollect) Reset() { *x = TimerGarbageCollect{} if protoimpl.UnsafeEnabled { - mi := &file_eventpb_eventpb_proto_msgTypes[29] + mi := &file_eventpb_eventpb_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2092,7 +2181,7 @@ func (x *TimerGarbageCollect) String() string { func (*TimerGarbageCollect) ProtoMessage() {} func (x *TimerGarbageCollect) ProtoReflect() protoreflect.Message { - mi := &file_eventpb_eventpb_proto_msgTypes[29] + mi := &file_eventpb_eventpb_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2105,7 +2194,7 @@ func (x *TimerGarbageCollect) ProtoReflect() protoreflect.Message { // Deprecated: Use TimerGarbageCollect.ProtoReflect.Descriptor instead. func (*TimerGarbageCollect) Descriptor() ([]byte, []int) { - return file_eventpb_eventpb_proto_rawDescGZIP(), []int{29} + return file_eventpb_eventpb_proto_rawDescGZIP(), []int{30} } func (x *TimerGarbageCollect) GetRetentionIndex() uint64 { @@ -2235,157 +2324,172 @@ var file_eventpb_eventpb_proto_rawDesc = []byte{ 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0xc8, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x06, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x22, 0x06, - 0x0a, 0x04, 0x54, 0x69, 0x63, 0x6b, 0x22, 0x62, 0x0a, 0x0b, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x48, - 0x61, 0x73, 0x68, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, - 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x53, 0x0a, 0x0a, 0x48, 0x61, - 0x73, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x67, 0x65, - 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x64, 0x69, 0x67, 0x65, 0x73, - 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x48, 0x61, 0x73, - 0x68, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, - 0x86, 0x01, 0x0a, 0x0a, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, - 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x03, 0x69, 0x73, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x69, 0x73, 0x73, 0x70, 0x62, 0x2e, 0x49, 0x53, 0x53, 0x48, - 0x61, 0x73, 0x68, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x03, 0x69, 0x73, 0x73, - 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4e, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, 0x6f, + 0x0a, 0x04, 0x54, 0x69, 0x63, 0x6b, 0x22, 0x2c, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, + 0x69, 0x74, 0x65, 0x6d, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x69, 0x74, + 0x65, 0x6d, 0x49, 0x44, 0x22, 0x62, 0x0a, 0x0b, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x48, 0x61, 0x73, + 0x68, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x53, - 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x22, 0x56, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x03, 0x69, 0x73, 0x73, 0x18, 0x02, + 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x53, 0x0a, 0x0a, 0x48, 0x61, 0x73, 0x68, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x73, + 0x12, 0x2b, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x4f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0xc9, 0x01, + 0x0a, 0x0a, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x53, 0x74, 0x6f, 0x72, + 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x78, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x03, 0x69, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x69, 0x73, 0x73, 0x70, 0x62, 0x2e, 0x49, 0x53, 0x53, - 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x03, 0x69, 0x73, - 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x53, 0x69, 0x67, - 0x56, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa3, 0x01, 0x0a, 0x0e, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x73, 0x12, 0x27, - 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, - 0x62, 0x2e, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x52, 0x06, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, - 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, - 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x69, 0x67, 0x73, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, - 0x2e, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x52, 0x06, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x08, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x15, - 0x0a, 0x06, 0x61, 0x6c, 0x6c, 0x5f, 0x6f, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x61, 0x6c, 0x6c, 0x4f, 0x6b, 0x22, 0x5a, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x2a, 0x0a, - 0x03, 0x69, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x69, 0x73, 0x73, - 0x70, 0x62, 0x2e, 0x49, 0x53, 0x53, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x48, 0x00, 0x52, 0x03, 0x69, 0x73, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x22, 0x46, 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x64, - 0x79, 0x12, 0x36, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x52, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x22, 0x57, 0x0a, 0x0b, 0x53, 0x65, 0x6e, - 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, - 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x03, - 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x6d, - 0x73, 0x67, 0x22, 0x4b, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x24, 0x0a, 0x03, 0x6d, 0x73, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, - 0x5a, 0x0a, 0x09, 0x57, 0x41, 0x4c, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x24, 0x0a, 0x05, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x74, - 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x30, 0x0a, 0x08, 0x57, - 0x41, 0x4c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, - 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x36, 0x0a, - 0x0b, 0x57, 0x41, 0x4c, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, - 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x0c, 0x0a, 0x0a, 0x57, 0x41, 0x4c, 0x4c, 0x6f, 0x61, 0x64, - 0x41, 0x6c, 0x6c, 0x22, 0x41, 0x0a, 0x07, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x12, 0x0e, - 0x0a, 0x02, 0x73, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x73, 0x6e, 0x12, 0x26, - 0x0a, 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, - 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x22, 0x68, 0x0a, 0x10, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x0b, 0x72, 0x65, + 0x48, 0x61, 0x73, 0x68, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x03, 0x69, 0x73, + 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4e, 0x0a, 0x0b, 0x53, 0x69, 0x67, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x69, 0x67, + 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, + 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x78, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x0c, + 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x28, 0x0a, 0x03, + 0x69, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x69, 0x73, 0x73, 0x70, + 0x62, 0x2e, 0x49, 0x53, 0x53, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, + 0x00, 0x52, 0x03, 0x69, 0x73, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x20, + 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x22, 0xa3, 0x01, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x53, + 0x69, 0x67, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x56, + 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x06, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6e, + 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x53, + 0x69, 0x67, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x06, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x6f, + 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x6c, 0x6c, 0x5f, 0x6f, 0x6b, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x6c, 0x4f, 0x6b, 0x22, 0x9d, 0x01, 0x0a, 0x0c, 0x53, + 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x2a, 0x0a, 0x03, 0x69, 0x73, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x69, 0x73, 0x73, 0x70, 0x62, 0x2e, 0x49, 0x53, 0x53, 0x53, + 0x69, 0x67, 0x56, 0x65, 0x72, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x03, 0x69, + 0x73, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x46, 0x0a, 0x0c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x36, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x22, 0x78, 0x0a, 0x12, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x69, 0x67, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x65, 0x66, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, + 0x65, 0x66, 0x22, 0x57, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x70, 0x62, 0x2e, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x4b, 0x0a, 0x0f, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, + 0x6f, 0x6d, 0x12, 0x24, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x5a, 0x0a, 0x09, 0x57, 0x41, 0x4c, 0x41, + 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, + 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x22, 0x30, 0x0a, 0x08, 0x57, 0x41, 0x4c, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x24, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0e, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x36, 0x0a, 0x0b, 0x57, 0x41, 0x4c, 0x54, 0x72, 0x75, + 0x6e, 0x63, 0x61, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, + 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x0c, + 0x0a, 0x0a, 0x57, 0x41, 0x4c, 0x4c, 0x6f, 0x61, 0x64, 0x41, 0x6c, 0x6c, 0x22, 0x41, 0x0a, 0x07, + 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x73, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x73, 0x6e, 0x12, 0x26, 0x0a, 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x22, + 0x68, 0x0a, 0x10, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x53, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x52, - 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x24, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x42, 0x0a, 0x12, 0x41, 0x70, 0x70, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x37, 0x0a, 0x0b, 0x41, 0x70, 0x70, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x12, - 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0x25, 0x0a, 0x0f, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4a, 0x0a, 0x0a, 0x54, 0x69, 0x6d, - 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, - 0x62, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, - 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x64, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x74, 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x52, 0x65, - 0x70, 0x65, 0x61, 0x74, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, - 0x61, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x74, - 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x3e, 0x0a, 0x13, 0x54, - 0x69, 0x6d, 0x65, 0x72, 0x47, 0x61, 0x72, 0x62, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x74, - 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x30, 0x5a, 0x2e, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x63, 0x6f, - 0x69, 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x69, 0x72, 0x2f, 0x70, - 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x78, 0x0a, 0x12, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x53, 0x69, 0x67, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, + 0x36, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x52, 0x0a, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x22, 0x88, 0x01, 0x0a, 0x14, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, + 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x42, + 0x0a, 0x12, 0x41, 0x70, 0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, + 0x63, 0x68, 0x22, 0x37, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x25, 0x0a, 0x0f, 0x41, + 0x70, 0x70, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x4a, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x61, 0x79, + 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x74, + 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x12, 0x26, 0x0a, + 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x72, + 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x22, 0x3e, 0x0a, 0x13, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x47, 0x61, 0x72, + 0x62, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, + 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x63, 0x6f, 0x69, 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2f, 0x6d, 0x69, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2400,105 +2504,109 @@ func file_eventpb_eventpb_proto_rawDescGZIP() []byte { return file_eventpb_eventpb_proto_rawDescData } -var file_eventpb_eventpb_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_eventpb_eventpb_proto_msgTypes = make([]protoimpl.MessageInfo, 31) var file_eventpb_eventpb_proto_goTypes = []interface{}{ (*Event)(nil), // 0: eventpb.Event (*Init)(nil), // 1: eventpb.Init (*Tick)(nil), // 2: eventpb.Tick - (*HashRequest)(nil), // 3: eventpb.HashRequest - (*HashResult)(nil), // 4: eventpb.HashResult - (*HashOrigin)(nil), // 5: eventpb.HashOrigin - (*SignRequest)(nil), // 6: eventpb.SignRequest - (*SignResult)(nil), // 7: eventpb.SignResult - (*SignOrigin)(nil), // 8: eventpb.SignOrigin - (*SigVerData)(nil), // 9: eventpb.SigVerData - (*VerifyNodeSigs)(nil), // 10: eventpb.VerifyNodeSigs - (*NodeSigsVerified)(nil), // 11: eventpb.NodeSigsVerified - (*SigVerOrigin)(nil), // 12: eventpb.SigVerOrigin - (*RequestReady)(nil), // 13: eventpb.RequestReady - (*SendMessage)(nil), // 14: eventpb.SendMessage - (*MessageReceived)(nil), // 15: eventpb.MessageReceived - (*WALAppend)(nil), // 16: eventpb.WALAppend - (*WALEntry)(nil), // 17: eventpb.WALEntry - (*WALTruncate)(nil), // 18: eventpb.WALTruncate - (*WALLoadAll)(nil), // 19: eventpb.WALLoadAll - (*Deliver)(nil), // 20: eventpb.Deliver - (*VerifyRequestSig)(nil), // 21: eventpb.VerifyRequestSig - (*RequestSigVerified)(nil), // 22: eventpb.RequestSigVerified - (*StoreVerifiedRequest)(nil), // 23: eventpb.StoreVerifiedRequest - (*AppSnapshotRequest)(nil), // 24: eventpb.AppSnapshotRequest - (*AppSnapshot)(nil), // 25: eventpb.AppSnapshot - (*AppRestoreState)(nil), // 26: eventpb.AppRestoreState - (*TimerDelay)(nil), // 27: eventpb.TimerDelay - (*TimerRepeat)(nil), // 28: eventpb.TimerRepeat - (*TimerGarbageCollect)(nil), // 29: eventpb.TimerGarbageCollect - (*requestpb.Request)(nil), // 30: requestpb.Request - (*isspb.ISSEvent)(nil), // 31: isspb.ISSEvent - (*commonpb.HashData)(nil), // 32: commonpb.HashData - (*isspb.ISSHashOrigin)(nil), // 33: isspb.ISSHashOrigin - (*isspb.ISSSignOrigin)(nil), // 34: isspb.ISSSignOrigin - (*isspb.ISSSigVerOrigin)(nil), // 35: isspb.ISSSigVerOrigin - (*requestpb.RequestRef)(nil), // 36: requestpb.RequestRef - (*messagepb.Message)(nil), // 37: messagepb.Message - (*requestpb.Batch)(nil), // 38: requestpb.Batch + (*ContextStoreOrigin)(nil), // 3: eventpb.ContextStoreOrigin + (*HashRequest)(nil), // 4: eventpb.HashRequest + (*HashResult)(nil), // 5: eventpb.HashResult + (*HashOrigin)(nil), // 6: eventpb.HashOrigin + (*SignRequest)(nil), // 7: eventpb.SignRequest + (*SignResult)(nil), // 8: eventpb.SignResult + (*SignOrigin)(nil), // 9: eventpb.SignOrigin + (*SigVerData)(nil), // 10: eventpb.SigVerData + (*VerifyNodeSigs)(nil), // 11: eventpb.VerifyNodeSigs + (*NodeSigsVerified)(nil), // 12: eventpb.NodeSigsVerified + (*SigVerOrigin)(nil), // 13: eventpb.SigVerOrigin + (*RequestReady)(nil), // 14: eventpb.RequestReady + (*SendMessage)(nil), // 15: eventpb.SendMessage + (*MessageReceived)(nil), // 16: eventpb.MessageReceived + (*WALAppend)(nil), // 17: eventpb.WALAppend + (*WALEntry)(nil), // 18: eventpb.WALEntry + (*WALTruncate)(nil), // 19: eventpb.WALTruncate + (*WALLoadAll)(nil), // 20: eventpb.WALLoadAll + (*Deliver)(nil), // 21: eventpb.Deliver + (*VerifyRequestSig)(nil), // 22: eventpb.VerifyRequestSig + (*RequestSigVerified)(nil), // 23: eventpb.RequestSigVerified + (*StoreVerifiedRequest)(nil), // 24: eventpb.StoreVerifiedRequest + (*AppSnapshotRequest)(nil), // 25: eventpb.AppSnapshotRequest + (*AppSnapshot)(nil), // 26: eventpb.AppSnapshot + (*AppRestoreState)(nil), // 27: eventpb.AppRestoreState + (*TimerDelay)(nil), // 28: eventpb.TimerDelay + (*TimerRepeat)(nil), // 29: eventpb.TimerRepeat + (*TimerGarbageCollect)(nil), // 30: eventpb.TimerGarbageCollect + (*requestpb.Request)(nil), // 31: requestpb.Request + (*isspb.ISSEvent)(nil), // 32: isspb.ISSEvent + (*commonpb.HashData)(nil), // 33: commonpb.HashData + (*isspb.ISSHashOrigin)(nil), // 34: isspb.ISSHashOrigin + (*isspb.ISSSignOrigin)(nil), // 35: isspb.ISSSignOrigin + (*isspb.ISSSigVerOrigin)(nil), // 36: isspb.ISSSigVerOrigin + (*requestpb.RequestRef)(nil), // 37: requestpb.RequestRef + (*messagepb.Message)(nil), // 38: messagepb.Message + (*requestpb.Batch)(nil), // 39: requestpb.Batch } var file_eventpb_eventpb_proto_depIdxs = []int32{ 1, // 0: eventpb.Event.init:type_name -> eventpb.Init 2, // 1: eventpb.Event.tick:type_name -> eventpb.Tick - 16, // 2: eventpb.Event.wal_append:type_name -> eventpb.WALAppend - 17, // 3: eventpb.Event.wal_entry:type_name -> eventpb.WALEntry - 18, // 4: eventpb.Event.wal_truncate:type_name -> eventpb.WALTruncate - 19, // 5: eventpb.Event.wal_load_all:type_name -> eventpb.WALLoadAll - 30, // 6: eventpb.Event.request:type_name -> requestpb.Request - 3, // 7: eventpb.Event.hash_request:type_name -> eventpb.HashRequest - 4, // 8: eventpb.Event.hash_result:type_name -> eventpb.HashResult - 6, // 9: eventpb.Event.sign_request:type_name -> eventpb.SignRequest - 7, // 10: eventpb.Event.sign_result:type_name -> eventpb.SignResult - 10, // 11: eventpb.Event.verify_node_sigs:type_name -> eventpb.VerifyNodeSigs - 11, // 12: eventpb.Event.node_sigs_verified:type_name -> eventpb.NodeSigsVerified - 13, // 13: eventpb.Event.request_ready:type_name -> eventpb.RequestReady - 14, // 14: eventpb.Event.send_message:type_name -> eventpb.SendMessage - 15, // 15: eventpb.Event.message_received:type_name -> eventpb.MessageReceived - 20, // 16: eventpb.Event.deliver:type_name -> eventpb.Deliver - 31, // 17: eventpb.Event.iss:type_name -> isspb.ISSEvent - 21, // 18: eventpb.Event.verify_request_sig:type_name -> eventpb.VerifyRequestSig - 22, // 19: eventpb.Event.request_sig_verified:type_name -> eventpb.RequestSigVerified - 23, // 20: eventpb.Event.store_verified_request:type_name -> eventpb.StoreVerifiedRequest - 24, // 21: eventpb.Event.app_snapshot_request:type_name -> eventpb.AppSnapshotRequest - 25, // 22: eventpb.Event.app_snapshot:type_name -> eventpb.AppSnapshot - 26, // 23: eventpb.Event.app_restore_state:type_name -> eventpb.AppRestoreState - 27, // 24: eventpb.Event.timer_delay:type_name -> eventpb.TimerDelay - 28, // 25: eventpb.Event.timer_repeat:type_name -> eventpb.TimerRepeat - 29, // 26: eventpb.Event.timer_garbage_collect:type_name -> eventpb.TimerGarbageCollect + 17, // 2: eventpb.Event.wal_append:type_name -> eventpb.WALAppend + 18, // 3: eventpb.Event.wal_entry:type_name -> eventpb.WALEntry + 19, // 4: eventpb.Event.wal_truncate:type_name -> eventpb.WALTruncate + 20, // 5: eventpb.Event.wal_load_all:type_name -> eventpb.WALLoadAll + 31, // 6: eventpb.Event.request:type_name -> requestpb.Request + 4, // 7: eventpb.Event.hash_request:type_name -> eventpb.HashRequest + 5, // 8: eventpb.Event.hash_result:type_name -> eventpb.HashResult + 7, // 9: eventpb.Event.sign_request:type_name -> eventpb.SignRequest + 8, // 10: eventpb.Event.sign_result:type_name -> eventpb.SignResult + 11, // 11: eventpb.Event.verify_node_sigs:type_name -> eventpb.VerifyNodeSigs + 12, // 12: eventpb.Event.node_sigs_verified:type_name -> eventpb.NodeSigsVerified + 14, // 13: eventpb.Event.request_ready:type_name -> eventpb.RequestReady + 15, // 14: eventpb.Event.send_message:type_name -> eventpb.SendMessage + 16, // 15: eventpb.Event.message_received:type_name -> eventpb.MessageReceived + 21, // 16: eventpb.Event.deliver:type_name -> eventpb.Deliver + 32, // 17: eventpb.Event.iss:type_name -> isspb.ISSEvent + 22, // 18: eventpb.Event.verify_request_sig:type_name -> eventpb.VerifyRequestSig + 23, // 19: eventpb.Event.request_sig_verified:type_name -> eventpb.RequestSigVerified + 24, // 20: eventpb.Event.store_verified_request:type_name -> eventpb.StoreVerifiedRequest + 25, // 21: eventpb.Event.app_snapshot_request:type_name -> eventpb.AppSnapshotRequest + 26, // 22: eventpb.Event.app_snapshot:type_name -> eventpb.AppSnapshot + 27, // 23: eventpb.Event.app_restore_state:type_name -> eventpb.AppRestoreState + 28, // 24: eventpb.Event.timer_delay:type_name -> eventpb.TimerDelay + 29, // 25: eventpb.Event.timer_repeat:type_name -> eventpb.TimerRepeat + 30, // 26: eventpb.Event.timer_garbage_collect:type_name -> eventpb.TimerGarbageCollect 0, // 27: eventpb.Event.next:type_name -> eventpb.Event - 32, // 28: eventpb.HashRequest.data:type_name -> commonpb.HashData - 5, // 29: eventpb.HashRequest.origin:type_name -> eventpb.HashOrigin - 5, // 30: eventpb.HashResult.origin:type_name -> eventpb.HashOrigin - 30, // 31: eventpb.HashOrigin.request:type_name -> requestpb.Request - 33, // 32: eventpb.HashOrigin.iss:type_name -> isspb.ISSHashOrigin - 8, // 33: eventpb.SignRequest.origin:type_name -> eventpb.SignOrigin - 8, // 34: eventpb.SignResult.origin:type_name -> eventpb.SignOrigin - 34, // 35: eventpb.SignOrigin.iss:type_name -> isspb.ISSSignOrigin - 9, // 36: eventpb.VerifyNodeSigs.data:type_name -> eventpb.SigVerData - 12, // 37: eventpb.VerifyNodeSigs.origin:type_name -> eventpb.SigVerOrigin - 12, // 38: eventpb.NodeSigsVerified.origin:type_name -> eventpb.SigVerOrigin - 35, // 39: eventpb.SigVerOrigin.iss:type_name -> isspb.ISSSigVerOrigin - 36, // 40: eventpb.RequestReady.request_ref:type_name -> requestpb.RequestRef - 37, // 41: eventpb.SendMessage.msg:type_name -> messagepb.Message - 37, // 42: eventpb.MessageReceived.msg:type_name -> messagepb.Message - 0, // 43: eventpb.WALAppend.event:type_name -> eventpb.Event - 0, // 44: eventpb.WALEntry.event:type_name -> eventpb.Event - 38, // 45: eventpb.Deliver.batch:type_name -> requestpb.Batch - 36, // 46: eventpb.VerifyRequestSig.request_ref:type_name -> requestpb.RequestRef - 36, // 47: eventpb.RequestSigVerified.request_ref:type_name -> requestpb.RequestRef - 36, // 48: eventpb.StoreVerifiedRequest.request_ref:type_name -> requestpb.RequestRef - 0, // 49: eventpb.TimerDelay.events:type_name -> eventpb.Event - 0, // 50: eventpb.TimerRepeat.events:type_name -> eventpb.Event - 51, // [51:51] is the sub-list for method output_type - 51, // [51:51] is the sub-list for method input_type - 51, // [51:51] is the sub-list for extension type_name - 51, // [51:51] is the sub-list for extension extendee - 0, // [0:51] is the sub-list for field type_name + 33, // 28: eventpb.HashRequest.data:type_name -> commonpb.HashData + 6, // 29: eventpb.HashRequest.origin:type_name -> eventpb.HashOrigin + 6, // 30: eventpb.HashResult.origin:type_name -> eventpb.HashOrigin + 3, // 31: eventpb.HashOrigin.contextstore:type_name -> eventpb.ContextStoreOrigin + 31, // 32: eventpb.HashOrigin.request:type_name -> requestpb.Request + 34, // 33: eventpb.HashOrigin.iss:type_name -> isspb.ISSHashOrigin + 9, // 34: eventpb.SignRequest.origin:type_name -> eventpb.SignOrigin + 9, // 35: eventpb.SignResult.origin:type_name -> eventpb.SignOrigin + 3, // 36: eventpb.SignOrigin.contextstore:type_name -> eventpb.ContextStoreOrigin + 35, // 37: eventpb.SignOrigin.iss:type_name -> isspb.ISSSignOrigin + 10, // 38: eventpb.VerifyNodeSigs.data:type_name -> eventpb.SigVerData + 13, // 39: eventpb.VerifyNodeSigs.origin:type_name -> eventpb.SigVerOrigin + 13, // 40: eventpb.NodeSigsVerified.origin:type_name -> eventpb.SigVerOrigin + 3, // 41: eventpb.SigVerOrigin.contextstore:type_name -> eventpb.ContextStoreOrigin + 36, // 42: eventpb.SigVerOrigin.iss:type_name -> isspb.ISSSigVerOrigin + 37, // 43: eventpb.RequestReady.request_ref:type_name -> requestpb.RequestRef + 38, // 44: eventpb.SendMessage.msg:type_name -> messagepb.Message + 38, // 45: eventpb.MessageReceived.msg:type_name -> messagepb.Message + 0, // 46: eventpb.WALAppend.event:type_name -> eventpb.Event + 0, // 47: eventpb.WALEntry.event:type_name -> eventpb.Event + 39, // 48: eventpb.Deliver.batch:type_name -> requestpb.Batch + 37, // 49: eventpb.VerifyRequestSig.request_ref:type_name -> requestpb.RequestRef + 37, // 50: eventpb.RequestSigVerified.request_ref:type_name -> requestpb.RequestRef + 37, // 51: eventpb.StoreVerifiedRequest.request_ref:type_name -> requestpb.RequestRef + 0, // 52: eventpb.TimerDelay.events:type_name -> eventpb.Event + 0, // 53: eventpb.TimerRepeat.events:type_name -> eventpb.Event + 54, // [54:54] is the sub-list for method output_type + 54, // [54:54] is the sub-list for method input_type + 54, // [54:54] is the sub-list for extension type_name + 54, // [54:54] is the sub-list for extension extendee + 0, // [0:54] is the sub-list for field type_name } func init() { file_eventpb_eventpb_proto_init() } @@ -2544,7 +2652,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HashRequest); i { + switch v := v.(*ContextStoreOrigin); i { case 0: return &v.state case 1: @@ -2556,7 +2664,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HashResult); i { + switch v := v.(*HashRequest); i { case 0: return &v.state case 1: @@ -2568,7 +2676,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HashOrigin); i { + switch v := v.(*HashResult); i { case 0: return &v.state case 1: @@ -2580,7 +2688,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignRequest); i { + switch v := v.(*HashOrigin); i { case 0: return &v.state case 1: @@ -2592,7 +2700,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignResult); i { + switch v := v.(*SignRequest); i { case 0: return &v.state case 1: @@ -2604,7 +2712,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignOrigin); i { + switch v := v.(*SignResult); i { case 0: return &v.state case 1: @@ -2616,7 +2724,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SigVerData); i { + switch v := v.(*SignOrigin); i { case 0: return &v.state case 1: @@ -2628,7 +2736,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyNodeSigs); i { + switch v := v.(*SigVerData); i { case 0: return &v.state case 1: @@ -2640,7 +2748,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeSigsVerified); i { + switch v := v.(*VerifyNodeSigs); i { case 0: return &v.state case 1: @@ -2652,7 +2760,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SigVerOrigin); i { + switch v := v.(*NodeSigsVerified); i { case 0: return &v.state case 1: @@ -2664,7 +2772,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestReady); i { + switch v := v.(*SigVerOrigin); i { case 0: return &v.state case 1: @@ -2676,7 +2784,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendMessage); i { + switch v := v.(*RequestReady); i { case 0: return &v.state case 1: @@ -2688,7 +2796,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessageReceived); i { + switch v := v.(*SendMessage); i { case 0: return &v.state case 1: @@ -2700,7 +2808,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WALAppend); i { + switch v := v.(*MessageReceived); i { case 0: return &v.state case 1: @@ -2712,7 +2820,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WALEntry); i { + switch v := v.(*WALAppend); i { case 0: return &v.state case 1: @@ -2724,7 +2832,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WALTruncate); i { + switch v := v.(*WALEntry); i { case 0: return &v.state case 1: @@ -2736,7 +2844,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WALLoadAll); i { + switch v := v.(*WALTruncate); i { case 0: return &v.state case 1: @@ -2748,7 +2856,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Deliver); i { + switch v := v.(*WALLoadAll); i { case 0: return &v.state case 1: @@ -2760,7 +2868,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyRequestSig); i { + switch v := v.(*Deliver); i { case 0: return &v.state case 1: @@ -2772,7 +2880,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestSigVerified); i { + switch v := v.(*VerifyRequestSig); i { case 0: return &v.state case 1: @@ -2784,7 +2892,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StoreVerifiedRequest); i { + switch v := v.(*RequestSigVerified); i { case 0: return &v.state case 1: @@ -2796,7 +2904,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppSnapshotRequest); i { + switch v := v.(*StoreVerifiedRequest); i { case 0: return &v.state case 1: @@ -2808,7 +2916,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppSnapshot); i { + switch v := v.(*AppSnapshotRequest); i { case 0: return &v.state case 1: @@ -2820,7 +2928,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppRestoreState); i { + switch v := v.(*AppSnapshot); i { case 0: return &v.state case 1: @@ -2832,7 +2940,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimerDelay); i { + switch v := v.(*AppRestoreState); i { case 0: return &v.state case 1: @@ -2844,7 +2952,7 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimerRepeat); i { + switch v := v.(*TimerDelay); i { case 0: return &v.state case 1: @@ -2856,6 +2964,18 @@ func file_eventpb_eventpb_proto_init() { } } file_eventpb_eventpb_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimerRepeat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eventpb_eventpb_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimerGarbageCollect); i { case 0: return &v.state @@ -2897,14 +3017,17 @@ func file_eventpb_eventpb_proto_init() { (*Event_TimerRepeat)(nil), (*Event_TimerGarbageCollect)(nil), } - file_eventpb_eventpb_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_eventpb_eventpb_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*HashOrigin_Contextstore)(nil), (*HashOrigin_Request)(nil), (*HashOrigin_Iss)(nil), } - file_eventpb_eventpb_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_eventpb_eventpb_proto_msgTypes[9].OneofWrappers = []interface{}{ + (*SignOrigin_Contextstore)(nil), (*SignOrigin_Iss)(nil), } - file_eventpb_eventpb_proto_msgTypes[12].OneofWrappers = []interface{}{ + file_eventpb_eventpb_proto_msgTypes[13].OneofWrappers = []interface{}{ + (*SigVerOrigin_Contextstore)(nil), (*SigVerOrigin_Iss)(nil), } type x struct{} @@ -2913,7 +3036,7 @@ func file_eventpb_eventpb_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_eventpb_eventpb_proto_rawDesc, NumEnums: 0, - NumMessages: 30, + NumMessages: 31, NumExtensions: 0, NumServices: 0, }, diff --git a/protos/eventpb/eventpb.proto b/protos/eventpb/eventpb.proto index 194c9e8a9..f5c7c68e8 100644 --- a/protos/eventpb/eventpb.proto +++ b/protos/eventpb/eventpb.proto @@ -63,6 +63,10 @@ message Init {} message Tick {} +message ContextStoreOrigin { + uint64 itemID = 1; +} + message HashRequest { repeated commonpb.HashData data = 1; HashOrigin origin = 2; @@ -76,8 +80,9 @@ message HashResult { message HashOrigin { string module = 1; oneof type { - requestpb.Request request = 2; - isspb.ISSHashOrigin iss = 3; + ContextStoreOrigin contextstore = 2; + requestpb.Request request = 3; + isspb.ISSHashOrigin iss = 4; } } @@ -94,7 +99,8 @@ message SignResult { message SignOrigin { string module = 1; oneof type { - isspb.ISSSignOrigin iss = 2; + ContextStoreOrigin contextstore = 2; + isspb.ISSSignOrigin iss = 3; } } @@ -120,7 +126,8 @@ message NodeSigsVerified { message SigVerOrigin { string module = 1; oneof type { - isspb.ISSSigVerOrigin iss = 2; + ContextStoreOrigin contextstore = 2; + isspb.ISSSigVerOrigin iss = 3; } }