// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: waku_store.proto package protocol import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 type PagingInfo_Direction int32 const ( PagingInfo_FORWARD PagingInfo_Direction = 0 PagingInfo_BACKWARD PagingInfo_Direction = 1 ) // Enum value maps for PagingInfo_Direction. var ( PagingInfo_Direction_name = map[int32]string{ 0: "FORWARD", 1: "BACKWARD", } PagingInfo_Direction_value = map[string]int32{ "FORWARD": 0, "BACKWARD": 1, } ) func (x PagingInfo_Direction) Enum() *PagingInfo_Direction { p := new(PagingInfo_Direction) *p = x return p } func (x PagingInfo_Direction) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (PagingInfo_Direction) Descriptor() protoreflect.EnumDescriptor { return file_waku_store_proto_enumTypes[0].Descriptor() } func (PagingInfo_Direction) Type() protoreflect.EnumType { return &file_waku_store_proto_enumTypes[0] } func (x PagingInfo_Direction) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use PagingInfo_Direction.Descriptor instead. func (PagingInfo_Direction) EnumDescriptor() ([]byte, []int) { return file_waku_store_proto_rawDescGZIP(), []int{1, 0} } type Index struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Digest []byte `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` ReceivedTime float64 `protobuf:"fixed64,2,opt,name=receivedTime,proto3" json:"receivedTime,omitempty"` } func (x *Index) Reset() { *x = Index{} if protoimpl.UnsafeEnabled { mi := &file_waku_store_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Index) String() string { return protoimpl.X.MessageStringOf(x) } func (*Index) ProtoMessage() {} func (x *Index) ProtoReflect() protoreflect.Message { mi := &file_waku_store_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Index.ProtoReflect.Descriptor instead. func (*Index) Descriptor() ([]byte, []int) { return file_waku_store_proto_rawDescGZIP(), []int{0} } func (x *Index) GetDigest() []byte { if x != nil { return x.Digest } return nil } func (x *Index) GetReceivedTime() float64 { if x != nil { return x.ReceivedTime } return 0 } type PagingInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Cursor *Index `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` Direction PagingInfo_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=protocol.PagingInfo_Direction" json:"direction,omitempty"` } func (x *PagingInfo) Reset() { *x = PagingInfo{} if protoimpl.UnsafeEnabled { mi := &file_waku_store_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PagingInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*PagingInfo) ProtoMessage() {} func (x *PagingInfo) ProtoReflect() protoreflect.Message { mi := &file_waku_store_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PagingInfo.ProtoReflect.Descriptor instead. func (*PagingInfo) Descriptor() ([]byte, []int) { return file_waku_store_proto_rawDescGZIP(), []int{1} } func (x *PagingInfo) GetPageSize() int64 { if x != nil { return x.PageSize } return 0 } func (x *PagingInfo) GetCursor() *Index { if x != nil { return x.Cursor } return nil } func (x *PagingInfo) GetDirection() PagingInfo_Direction { if x != nil { return x.Direction } return PagingInfo_FORWARD } type HistoryQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Topics []uint32 `protobuf:"varint,1,rep,packed,name=topics,proto3" json:"topics,omitempty"` PagingInfo *PagingInfo `protobuf:"bytes,2,opt,name=pagingInfo,proto3,oneof" json:"pagingInfo,omitempty"` // used for pagination } func (x *HistoryQuery) Reset() { *x = HistoryQuery{} if protoimpl.UnsafeEnabled { mi := &file_waku_store_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *HistoryQuery) String() string { return protoimpl.X.MessageStringOf(x) } func (*HistoryQuery) ProtoMessage() {} func (x *HistoryQuery) ProtoReflect() protoreflect.Message { mi := &file_waku_store_proto_msgTypes[2] 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 HistoryQuery.ProtoReflect.Descriptor instead. func (*HistoryQuery) Descriptor() ([]byte, []int) { return file_waku_store_proto_rawDescGZIP(), []int{2} } func (x *HistoryQuery) GetTopics() []uint32 { if x != nil { return x.Topics } return nil } func (x *HistoryQuery) GetPagingInfo() *PagingInfo { if x != nil { return x.PagingInfo } return nil } type HistoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Messages []*WakuMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` PagingInfo *PagingInfo `protobuf:"bytes,2,opt,name=pagingInfo,proto3,oneof" json:"pagingInfo,omitempty"` // used for pagination } func (x *HistoryResponse) Reset() { *x = HistoryResponse{} if protoimpl.UnsafeEnabled { mi := &file_waku_store_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *HistoryResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*HistoryResponse) ProtoMessage() {} func (x *HistoryResponse) ProtoReflect() protoreflect.Message { mi := &file_waku_store_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 HistoryResponse.ProtoReflect.Descriptor instead. func (*HistoryResponse) Descriptor() ([]byte, []int) { return file_waku_store_proto_rawDescGZIP(), []int{3} } func (x *HistoryResponse) GetMessages() []*WakuMessage { if x != nil { return x.Messages } return nil } func (x *HistoryResponse) GetPagingInfo() *PagingInfo { if x != nil { return x.PagingInfo } return nil } type HistoryRPC struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Query *HistoryQuery `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Response *HistoryResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` } func (x *HistoryRPC) Reset() { *x = HistoryRPC{} if protoimpl.UnsafeEnabled { mi := &file_waku_store_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *HistoryRPC) String() string { return protoimpl.X.MessageStringOf(x) } func (*HistoryRPC) ProtoMessage() {} func (x *HistoryRPC) ProtoReflect() protoreflect.Message { mi := &file_waku_store_proto_msgTypes[4] 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 HistoryRPC.ProtoReflect.Descriptor instead. func (*HistoryRPC) Descriptor() ([]byte, []int) { return file_waku_store_proto_rawDescGZIP(), []int{4} } func (x *HistoryRPC) GetRequestId() string { if x != nil { return x.RequestId } return "" } func (x *HistoryRPC) GetQuery() *HistoryQuery { if x != nil { return x.Query } return nil } func (x *HistoryRPC) GetResponse() *HistoryResponse { if x != nil { return x.Response } return nil } var File_waku_store_proto protoreflect.FileDescriptor var file_waku_store_proto_rawDesc = []byte{ 0x0a, 0x10, 0x77, 0x61, 0x6b, 0x75, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x12, 0x77, 0x61, 0x6b, 0x75, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x26, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4f, 0x52, 0x57, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x43, 0x4b, 0x57, 0x41, 0x52, 0x44, 0x10, 0x01, 0x22, 0x70, 0x0a, 0x0c, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x57, 0x61, 0x6b, 0x75, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x90, 0x01, 0x0a, 0x0a, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x50, 0x43, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_waku_store_proto_rawDescOnce sync.Once file_waku_store_proto_rawDescData = file_waku_store_proto_rawDesc ) func file_waku_store_proto_rawDescGZIP() []byte { file_waku_store_proto_rawDescOnce.Do(func() { file_waku_store_proto_rawDescData = protoimpl.X.CompressGZIP(file_waku_store_proto_rawDescData) }) return file_waku_store_proto_rawDescData } var file_waku_store_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_waku_store_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_waku_store_proto_goTypes = []interface{}{ (PagingInfo_Direction)(0), // 0: protocol.PagingInfo.Direction (*Index)(nil), // 1: protocol.Index (*PagingInfo)(nil), // 2: protocol.PagingInfo (*HistoryQuery)(nil), // 3: protocol.HistoryQuery (*HistoryResponse)(nil), // 4: protocol.HistoryResponse (*HistoryRPC)(nil), // 5: protocol.HistoryRPC (*WakuMessage)(nil), // 6: protocol.WakuMessage } var file_waku_store_proto_depIdxs = []int32{ 1, // 0: protocol.PagingInfo.cursor:type_name -> protocol.Index 0, // 1: protocol.PagingInfo.direction:type_name -> protocol.PagingInfo.Direction 2, // 2: protocol.HistoryQuery.pagingInfo:type_name -> protocol.PagingInfo 6, // 3: protocol.HistoryResponse.messages:type_name -> protocol.WakuMessage 2, // 4: protocol.HistoryResponse.pagingInfo:type_name -> protocol.PagingInfo 3, // 5: protocol.HistoryRPC.query:type_name -> protocol.HistoryQuery 4, // 6: protocol.HistoryRPC.response:type_name -> protocol.HistoryResponse 7, // [7:7] is the sub-list for method output_type 7, // [7:7] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_waku_store_proto_init() } func file_waku_store_proto_init() { if File_waku_store_proto != nil { return } file_waku_message_proto_init() if !protoimpl.UnsafeEnabled { file_waku_store_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Index); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_waku_store_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PagingInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_waku_store_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HistoryQuery); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_waku_store_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HistoryResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_waku_store_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HistoryRPC); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_waku_store_proto_msgTypes[2].OneofWrappers = []interface{}{} file_waku_store_proto_msgTypes[3].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_waku_store_proto_rawDesc, NumEnums: 1, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, GoTypes: file_waku_store_proto_goTypes, DependencyIndexes: file_waku_store_proto_depIdxs, EnumInfos: file_waku_store_proto_enumTypes, MessageInfos: file_waku_store_proto_msgTypes, }.Build() File_waku_store_proto = out.File file_waku_store_proto_rawDesc = nil file_waku_store_proto_goTypes = nil file_waku_store_proto_depIdxs = nil }