mirror of https://github.com/status-im/go-waku.git
331 lines
9.9 KiB
Go
331 lines
9.9 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.34.2
|
||
|
// protoc v3.19.4
|
||
|
// source: chat2.proto
|
||
|
|
||
|
package pb
|
||
|
|
||
|
import (
|
||
|
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)
|
||
|
)
|
||
|
|
||
|
type Message struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
SenderId string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
|
||
|
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||
|
LamportTimestamp int32 `protobuf:"varint,3,opt,name=lamport_timestamp,json=lamportTimestamp,proto3" json:"lamport_timestamp,omitempty"`
|
||
|
CausalHistory []string `protobuf:"bytes,4,rep,name=causal_history,json=causalHistory,proto3" json:"causal_history,omitempty"`
|
||
|
ChannelId string `protobuf:"bytes,5,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
|
||
|
BloomFilter []byte `protobuf:"bytes,6,opt,name=bloom_filter,json=bloomFilter,proto3" json:"bloom_filter,omitempty"`
|
||
|
Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *Message) Reset() {
|
||
|
*x = Message{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_chat2_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *Message) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*Message) ProtoMessage() {}
|
||
|
|
||
|
func (x *Message) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_chat2_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 Message.ProtoReflect.Descriptor instead.
|
||
|
func (*Message) Descriptor() ([]byte, []int) {
|
||
|
return file_chat2_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetSenderId() string {
|
||
|
if x != nil {
|
||
|
return x.SenderId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetMessageId() string {
|
||
|
if x != nil {
|
||
|
return x.MessageId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetLamportTimestamp() int32 {
|
||
|
if x != nil {
|
||
|
return x.LamportTimestamp
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetCausalHistory() []string {
|
||
|
if x != nil {
|
||
|
return x.CausalHistory
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetChannelId() string {
|
||
|
if x != nil {
|
||
|
return x.ChannelId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetBloomFilter() []byte {
|
||
|
if x != nil {
|
||
|
return x.BloomFilter
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *Message) GetContent() string {
|
||
|
if x != nil {
|
||
|
return x.Content
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
// only for peer retrieval instead of store
|
||
|
type MessageRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *MessageRequest) Reset() {
|
||
|
*x = MessageRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_chat2_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *MessageRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*MessageRequest) ProtoMessage() {}
|
||
|
|
||
|
func (x *MessageRequest) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_chat2_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 MessageRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*MessageRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_chat2_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *MessageRequest) GetMessageId() string {
|
||
|
if x != nil {
|
||
|
return x.MessageId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type MessageResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *MessageResponse) Reset() {
|
||
|
*x = MessageResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_chat2_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *MessageResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*MessageResponse) ProtoMessage() {}
|
||
|
|
||
|
func (x *MessageResponse) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_chat2_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 MessageResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*MessageResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_chat2_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *MessageResponse) GetMessage() *Message {
|
||
|
if x != nil {
|
||
|
return x.Message
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var File_chat2_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_chat2_proto_rawDesc = []byte{
|
||
|
0x0a, 0x0b, 0x63, 0x68, 0x61, 0x74, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
|
||
|
0x62, 0x22, 0xf5, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a,
|
||
|
0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65,
|
||
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
||
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x6c, 0x61, 0x6d,
|
||
|
0x70, 0x6f, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03,
|
||
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6c, 0x61, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d,
|
||
|
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x75, 0x73, 0x61, 0x6c,
|
||
|
0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d,
|
||
|
0x63, 0x61, 0x75, 0x73, 0x61, 0x6c, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x0a,
|
||
|
0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||
|
0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c,
|
||
|
0x62, 0x6c, 0x6f, 0x6f, 0x6d, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01,
|
||
|
0x28, 0x0c, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x6f, 0x6d, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
|
||
|
0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x2f, 0x0a, 0x0e, 0x4d, 0x65, 0x73,
|
||
|
0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d,
|
||
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
|
0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x0f, 0x4d, 0x65,
|
||
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a,
|
||
|
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b,
|
||
|
0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73,
|
||
|
0x73, 0x61, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_chat2_proto_rawDescOnce sync.Once
|
||
|
file_chat2_proto_rawDescData = file_chat2_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_chat2_proto_rawDescGZIP() []byte {
|
||
|
file_chat2_proto_rawDescOnce.Do(func() {
|
||
|
file_chat2_proto_rawDescData = protoimpl.X.CompressGZIP(file_chat2_proto_rawDescData)
|
||
|
})
|
||
|
return file_chat2_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_chat2_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||
|
var file_chat2_proto_goTypes = []any{
|
||
|
(*Message)(nil), // 0: pb.Message
|
||
|
(*MessageRequest)(nil), // 1: pb.MessageRequest
|
||
|
(*MessageResponse)(nil), // 2: pb.MessageResponse
|
||
|
}
|
||
|
var file_chat2_proto_depIdxs = []int32{
|
||
|
0, // 0: pb.MessageResponse.message:type_name -> pb.Message
|
||
|
1, // [1:1] is the sub-list for method output_type
|
||
|
1, // [1:1] is the sub-list for method input_type
|
||
|
1, // [1:1] is the sub-list for extension type_name
|
||
|
1, // [1:1] is the sub-list for extension extendee
|
||
|
0, // [0:1] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_chat2_proto_init() }
|
||
|
func file_chat2_proto_init() {
|
||
|
if File_chat2_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_chat2_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||
|
switch v := v.(*Message); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_chat2_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||
|
switch v := v.(*MessageRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_chat2_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||
|
switch v := v.(*MessageResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_chat2_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 3,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 0,
|
||
|
},
|
||
|
GoTypes: file_chat2_proto_goTypes,
|
||
|
DependencyIndexes: file_chat2_proto_depIdxs,
|
||
|
MessageInfos: file_chat2_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_chat2_proto = out.File
|
||
|
file_chat2_proto_rawDesc = nil
|
||
|
file_chat2_proto_goTypes = nil
|
||
|
file_chat2_proto_depIdxs = nil
|
||
|
}
|