2016-08-17 00:43:39 +00:00
|
|
|
// 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))
|
|
|
|
}
|
2016-10-27 19:50:34 +00:00
|
|
|
func (ConversationEvent_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
|
2016-08-17 00:43:39 +00:00
|
|
|
|
|
|
|
type Message_Status int32
|
|
|
|
|
|
|
|
const (
|
2016-10-16 00:57:08 +00:00
|
|
|
Message_NULL Message_Status = 0
|
|
|
|
Message_ERROR Message_Status = 1
|
|
|
|
// Outbound
|
2016-08-17 00:43:39 +00:00
|
|
|
Message_QUEUED Message_Status = 2
|
|
|
|
Message_SENDING Message_Status = 3
|
|
|
|
Message_DELIVERED Message_Status = 4
|
2016-10-16 00:57:08 +00:00
|
|
|
// Inbound
|
|
|
|
Message_UNREAD Message_Status = 5
|
|
|
|
Message_READ Message_Status = 6
|
2016-08-17 00:43:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var Message_Status_name = map[int32]string{
|
|
|
|
0: "NULL",
|
2016-10-16 00:57:08 +00:00
|
|
|
1: "ERROR",
|
2016-08-17 00:43:39 +00:00
|
|
|
2: "QUEUED",
|
|
|
|
3: "SENDING",
|
|
|
|
4: "DELIVERED",
|
2016-10-16 00:57:08 +00:00
|
|
|
5: "UNREAD",
|
|
|
|
6: "READ",
|
2016-08-17 00:43:39 +00:00
|
|
|
}
|
|
|
|
var Message_Status_value = map[string]int32{
|
|
|
|
"NULL": 0,
|
2016-10-16 00:57:08 +00:00
|
|
|
"ERROR": 1,
|
2016-08-17 00:43:39 +00:00
|
|
|
"QUEUED": 2,
|
|
|
|
"SENDING": 3,
|
|
|
|
"DELIVERED": 4,
|
2016-10-16 00:57:08 +00:00
|
|
|
"UNREAD": 5,
|
|
|
|
"READ": 6,
|
2016-08-17 00:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Message_Status) String() string {
|
|
|
|
return proto.EnumName(Message_Status_name, int32(x))
|
|
|
|
}
|
2016-10-27 19:50:34 +00:00
|
|
|
func (Message_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{3, 0} }
|
2016-08-17 00:43:39 +00:00
|
|
|
|
|
|
|
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() {}
|
2016-10-27 19:50:34 +00:00
|
|
|
func (*ConversationEvent) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
2016-08-17 00:43:39 +00:00
|
|
|
|
2016-12-01 03:37:46 +00:00
|
|
|
func (m *ConversationEvent) GetType() ConversationEvent_Type {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return ConversationEvent_NULL
|
|
|
|
}
|
|
|
|
|
2016-08-17 00:43:39 +00:00
|
|
|
func (m *ConversationEvent) GetMsg() *Message {
|
|
|
|
if m != nil {
|
|
|
|
return m.Msg
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-10-05 21:38:18 +00:00
|
|
|
type MonitorConversationsRequest struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MonitorConversationsRequest) Reset() { *m = MonitorConversationsRequest{} }
|
|
|
|
func (m *MonitorConversationsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MonitorConversationsRequest) ProtoMessage() {}
|
2016-10-27 19:50:34 +00:00
|
|
|
func (*MonitorConversationsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
2016-10-05 21:38:18 +00:00
|
|
|
|
2016-08-17 00:43:39 +00:00
|
|
|
type Entity struct {
|
2017-09-24 21:55:47 +00:00
|
|
|
// address MAY be unspecified for self
|
|
|
|
Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
|
|
|
|
IsSelf bool `protobuf:"varint,3,opt,name=isSelf" json:"isSelf,omitempty"`
|
2016-08-17 00:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) Reset() { *m = Entity{} }
|
|
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Entity) ProtoMessage() {}
|
2016-10-27 19:50:34 +00:00
|
|
|
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
|
2016-08-17 00:43:39 +00:00
|
|
|
|
2016-12-01 03:37:46 +00:00
|
|
|
func (m *Entity) GetAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Entity) GetIsSelf() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.IsSelf
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-08-17 00:43:39 +00:00
|
|
|
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"`
|
2016-10-05 21:38:18 +00:00
|
|
|
// 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"`
|
2016-08-17 00:43:39 +00:00
|
|
|
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() {}
|
2016-10-27 19:50:34 +00:00
|
|
|
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
|
2016-08-17 00:43:39 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2016-12-01 03:37:46 +00:00
|
|
|
func (m *Message) GetTimestamp() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetIdentifier() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Identifier
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetStatus() Message_Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return Message_NULL
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetText() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Text
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2016-10-16 00:57:08 +00:00
|
|
|
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() {}
|
2016-10-27 19:50:34 +00:00
|
|
|
func (*MarkConversationReadRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
|
2016-10-16 00:57:08 +00:00
|
|
|
|
|
|
|
func (m *MarkConversationReadRequest) GetEntity() *Entity {
|
|
|
|
if m != nil {
|
|
|
|
return m.Entity
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-12-01 03:37:46 +00:00
|
|
|
func (m *MarkConversationReadRequest) GetLastRecvIdentifier() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.LastRecvIdentifier
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2016-08-17 00:43:39 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*ConversationEvent)(nil), "ricochet.ConversationEvent")
|
2016-10-05 21:38:18 +00:00
|
|
|
proto.RegisterType((*MonitorConversationsRequest)(nil), "ricochet.MonitorConversationsRequest")
|
2016-08-17 00:43:39 +00:00
|
|
|
proto.RegisterType((*Entity)(nil), "ricochet.Entity")
|
|
|
|
proto.RegisterType((*Message)(nil), "ricochet.Message")
|
2016-10-16 00:57:08 +00:00
|
|
|
proto.RegisterType((*MarkConversationReadRequest)(nil), "ricochet.MarkConversationReadRequest")
|
2016-08-17 00:43:39 +00:00
|
|
|
proto.RegisterEnum("ricochet.ConversationEvent_Type", ConversationEvent_Type_name, ConversationEvent_Type_value)
|
|
|
|
proto.RegisterEnum("ricochet.Message_Status", Message_Status_name, Message_Status_value)
|
|
|
|
}
|
|
|
|
|
2016-10-27 19:50:34 +00:00
|
|
|
func init() { proto.RegisterFile("conversation.proto", fileDescriptor1) }
|
|
|
|
|
|
|
|
var fileDescriptor1 = []byte{
|
2017-09-24 21:55:47 +00:00
|
|
|
// 453 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x92, 0x41, 0x8f, 0x93, 0x4c,
|
|
|
|
0x18, 0xc7, 0x5f, 0x0a, 0xa5, 0xe5, 0xe9, 0xab, 0x99, 0x7d, 0x0e, 0x86, 0x64, 0xd5, 0x10, 0xbc,
|
|
|
|
0x70, 0x22, 0xa6, 0x7a, 0xf2, 0xd6, 0x2c, 0x13, 0xd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