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))
|
|
|
|
}
|
|
|
|
func (ConversationEvent_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
|
|
|
|
|
|
|
type Message_Status int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Message_NULL Message_Status = 0
|
|
|
|
Message_RECEIVED Message_Status = 1
|
|
|
|
Message_QUEUED Message_Status = 2
|
|
|
|
Message_SENDING Message_Status = 3
|
|
|
|
Message_DELIVERED Message_Status = 4
|
|
|
|
Message_ERROR Message_Status = 5
|
|
|
|
)
|
|
|
|
|
|
|
|
var Message_Status_name = map[int32]string{
|
|
|
|
0: "NULL",
|
|
|
|
1: "RECEIVED",
|
|
|
|
2: "QUEUED",
|
|
|
|
3: "SENDING",
|
|
|
|
4: "DELIVERED",
|
|
|
|
5: "ERROR",
|
|
|
|
}
|
|
|
|
var Message_Status_value = map[string]int32{
|
|
|
|
"NULL": 0,
|
|
|
|
"RECEIVED": 1,
|
|
|
|
"QUEUED": 2,
|
|
|
|
"SENDING": 3,
|
|
|
|
"DELIVERED": 4,
|
|
|
|
"ERROR": 5,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Message_Status) String() string {
|
|
|
|
return proto.EnumName(Message_Status_name, int32(x))
|
|
|
|
}
|
2016-10-05 21:38:18 +00:00
|
|
|
func (Message_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []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() {}
|
|
|
|
func (*ConversationEvent) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
|
|
|
|
|
|
|
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() {}
|
|
|
|
func (*MonitorConversationsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
|
|
|
|
2016-08-17 00:43:39 +00:00
|
|
|
type Entity struct {
|
2016-10-05 21:38:18 +00:00
|
|
|
// contactId and address MAY be unspecified for self
|
2016-08-17 00:43:39 +00:00
|
|
|
ContactId int32 `protobuf:"varint,1,opt,name=contactId" json:"contactId,omitempty"`
|
|
|
|
Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
|
2016-10-05 21:38:18 +00:00
|
|
|
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-05 21:38:18 +00:00
|
|
|
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
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-05 21:38:18 +00:00
|
|
|
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor2, []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
|
|
|
|
}
|
|
|
|
|
|
|
|
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")
|
|
|
|
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{
|
2016-10-05 21:38:18 +00:00
|
|
|
// 413 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x92, 0x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