174 lines
6.9 KiB
Go
174 lines
6.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_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))
|
|
}
|
|
func (Message_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 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 Entity struct {
|
|
// null is self
|
|
ContactId int32 `protobuf:"varint,1,opt,name=contactId" json:"contactId,omitempty"`
|
|
Address string `protobuf:"bytes,2,opt,name=address" json:"address,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{1} }
|
|
|
|
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 _only_ to a sender/recipient pair in a session
|
|
// XXX This is a silly thing to perpetuate; should we UUID?
|
|
Identifier uint32 `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{2} }
|
|
|
|
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")
|
|
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{
|
|
// 378 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x92, 0x4d, 0xef, 0xd2, 0x40,
|
|
0x10, 0xc6, 0xed, 0x2b, 0x74, 0x10, 0x53, 0xe6, 0xd4, 0x83, 0x31, 0xa4, 0x5e, 0x38, 0x35, 0x06,
|
|
0xfd, 0x00, 0x12, 0xba, 0x31, 0x24, 0x15, 0x70, 0xa1, 0xde, 0x6b, 0xbb, 0xe2, 0x1e, 0x68, 0x9b,
|
|
0x76, 0x25, 0xf2, 0xb1,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