213 lines
8.9 KiB
Go
213 lines
8.9 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: conversation.proto
|
|
// DO NOT EDIT!
|
|
|
|
package ricochet
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
type ConversationEvent_Type int32
|
|
|
|
const (
|
|
ConversationEvent_NULL ConversationEvent_Type = 0
|
|
ConversationEvent_POPULATE ConversationEvent_Type = 1
|
|
ConversationEvent_RECEIVE ConversationEvent_Type = 2
|
|
ConversationEvent_SEND ConversationEvent_Type = 3
|
|
ConversationEvent_UPDATE ConversationEvent_Type = 4
|
|
)
|
|
|
|
var ConversationEvent_Type_name = map[int32]string{
|
|
0: "NULL",
|
|
1: "POPULATE",
|
|
2: "RECEIVE",
|
|
3: "SEND",
|
|
4: "UPDATE",
|
|
}
|
|
var ConversationEvent_Type_value = map[string]int32{
|
|
"NULL": 0,
|
|
"POPULATE": 1,
|
|
"RECEIVE": 2,
|
|
"SEND": 3,
|
|
"UPDATE": 4,
|
|
}
|
|
|
|
func (x ConversationEvent_Type) String() string {
|
|
return proto.EnumName(ConversationEvent_Type_name, int32(x))
|
|
}
|
|
func (ConversationEvent_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
|
|
|
type Message_Status int32
|
|
|
|
const (
|
|
Message_NULL Message_Status = 0
|
|
Message_ERROR Message_Status = 1
|
|
// Outbound
|
|
Message_QUEUED Message_Status = 2
|
|
Message_SENDING Message_Status = 3
|
|
Message_DELIVERED Message_Status = 4
|
|
// Inbound
|
|
Message_UNREAD Message_Status = 5
|
|
Message_READ Message_Status = 6
|
|
)
|
|
|
|
var Message_Status_name = map[int32]string{
|
|
0: "NULL",
|
|
1: "ERROR",
|
|
2: "QUEUED",
|
|
3: "SENDING",
|
|
4: "DELIVERED",
|
|
5: "UNREAD",
|
|
6: "READ",
|
|
}
|
|
var Message_Status_value = map[string]int32{
|
|
"NULL": 0,
|
|
"ERROR": 1,
|
|
"QUEUED": 2,
|
|
"SENDING": 3,
|
|
"DELIVERED": 4,
|
|
"UNREAD": 5,
|
|
"READ": 6,
|
|
}
|
|
|
|
func (x Message_Status) String() string {
|
|
return proto.EnumName(Message_Status_name, int32(x))
|
|
}
|
|
func (Message_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{3, 0} }
|
|
|
|
type ConversationEvent struct {
|
|
Type ConversationEvent_Type `protobuf:"varint,1,opt,name=type,enum=ricochet.ConversationEvent_Type" json:"type,omitempty"`
|
|
Msg *Message `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"`
|
|
}
|
|
|
|
func (m *ConversationEvent) Reset() { *m = ConversationEvent{} }
|
|
func (m *ConversationEvent) String() string { return proto.CompactTextString(m) }
|
|
func (*ConversationEvent) ProtoMessage() {}
|
|
func (*ConversationEvent) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
|
|
|
func (m *ConversationEvent) GetMsg() *Message {
|
|
if m != nil {
|
|
return m.Msg
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MonitorConversationsRequest struct {
|
|
}
|
|
|
|
func (m *MonitorConversationsRequest) Reset() { *m = MonitorConversationsRequest{} }
|
|
func (m *MonitorConversationsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*MonitorConversationsRequest) ProtoMessage() {}
|
|
func (*MonitorConversationsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
|
|
|
type Entity struct {
|
|
// contactId and address MAY be unspecified for self
|
|
ContactId int32 `protobuf:"varint,1,opt,name=contactId" json:"contactId,omitempty"`
|
|
Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
|
|
IsSelf bool `protobuf:"varint,3,opt,name=isSelf" json:"isSelf,omitempty"`
|
|
}
|
|
|
|
func (m *Entity) Reset() { *m = Entity{} }
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
|
func (*Entity) ProtoMessage() {}
|
|
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
|
|
|
type Message struct {
|
|
Sender *Entity `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"`
|
|
Recipient *Entity `protobuf:"bytes,2,opt,name=recipient" json:"recipient,omitempty"`
|
|
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
|
|
// Identifiers are unique for the tuple of (sender, recipient, direction)
|
|
// within a single session, and should be randomized between sessions to
|
|
// reduce the chance of collision.
|
|
Identifier uint64 `protobuf:"varint,4,opt,name=identifier" json:"identifier,omitempty"`
|
|
Status Message_Status `protobuf:"varint,5,opt,name=status,enum=ricochet.Message_Status" json:"status,omitempty"`
|
|
Text string `protobuf:"bytes,6,opt,name=text" json:"text,omitempty"`
|
|
}
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
func (*Message) ProtoMessage() {}
|
|
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
|
|
|
func (m *Message) GetSender() *Entity {
|
|
if m != nil {
|
|
return m.Sender
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetRecipient() *Entity {
|
|
if m != nil {
|
|
return m.Recipient
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MarkConversationReadRequest struct {
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"`
|
|
LastRecvIdentifier uint64 `protobuf:"varint,2,opt,name=lastRecvIdentifier" json:"lastRecvIdentifier,omitempty"`
|
|
}
|
|
|
|
func (m *MarkConversationReadRequest) Reset() { *m = MarkConversationReadRequest{} }
|
|
func (m *MarkConversationReadRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*MarkConversationReadRequest) ProtoMessage() {}
|
|
func (*MarkConversationReadRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
|
|
|
|
func (m *MarkConversationReadRequest) GetEntity() *Entity {
|
|
if m != nil {
|
|
return m.Entity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ConversationEvent)(nil), "ricochet.ConversationEvent")
|
|
proto.RegisterType((*MonitorConversationsRequest)(nil), "ricochet.MonitorConversationsRequest")
|
|
proto.RegisterType((*Entity)(nil), "ricochet.Entity")
|
|
proto.RegisterType((*Message)(nil), "ricochet.Message")
|
|
proto.RegisterType((*MarkConversationReadRequest)(nil), "ricochet.MarkConversationReadRequest")
|
|
proto.RegisterEnum("ricochet.ConversationEvent_Type", ConversationEvent_Type_name, ConversationEvent_Type_value)
|
|
proto.RegisterEnum("ricochet.Message_Status", Message_Status_name, Message_Status_value)
|
|
}
|
|
|
|
func init() { proto.RegisterFile("conversation.proto", fileDescriptor2) }
|
|
|
|
var fileDescriptor2 = []byte{
|
|
// 462 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x92, 0xdf, 0x6e, 0xd3, 0x30,
|
|
0x14, 0xc6, 0x69, 0x9b, 0xa6, 0xed, 0x29, 0xa0, 0xec, 0x5c, 0xa0, 0x48, 0xfc, 0xd1, 0x14, 0x6e,
|
|
0x76, 0x15, 0xa1, 0xc2, 0x0b, 0x54, 0x8b, 0x85, 0x2a, 0x75, 0x5d, 0x39, 0x5d, 0x10, 0x12, 0x57,
|
|
0x26, 0xf1, 0x86, 0xc5, 0x9a, 0x94, 0xd8, 0x2b, 0xec, 0xb1, 0x78, 0x07, 0x1e, 0x8c, 0x13, 0x37,
|
|
0x53, 0x22, 0x95, 0xdd, 0xc5, 0xfe, 0x3e, 0xdb, 0xdf, 0xf9, 0x7e, 0x01, 0xcc, 0xca, 0x62, 0xaf,
|
|
0x2a, 0x23, 0xad, 0x2e, 0x8b, 0x78, 0x57, 0x95, 0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