ricochet-go/rpc/conversation.pb.go

277 lines
9.9 KiB
Go
Raw Normal View History

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 fileDescriptor1, []int{0, 0} }
2016-08-17 00:43:39 +00:00
type Message_Status int32
const (
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
// 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",
1: "ERROR",
2016-08-17 00:43:39 +00:00
2: "QUEUED",
3: "SENDING",
4: "DELIVERED",
5: "UNREAD",
6: "READ",
2016-08-17 00:43:39 +00:00
}
var Message_Status_value = map[string]int32{
"NULL": 0,
"ERROR": 1,
2016-08-17 00:43:39 +00:00
"QUEUED": 2,
"SENDING": 3,
"DELIVERED": 4,
"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))
}
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() {}
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
}
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 fileDescriptor1, []int{1} }
2016-08-17 00:43:39 +00:00
type Entity struct {
// 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"`
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() {}
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) GetContactId() int32 {
if m != nil {
return m.ContactId
}
return 0
}
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"`
// 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() {}
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 ""
}
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 fileDescriptor1, []int{4} }
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")
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.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)
}
func init() { proto.RegisterFile("conversation.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 467 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x92, 0xd1, 0x6e, 0xd3, 0x4c,
0x10, 0x85, 0x7f, 0x27, 0x8e, 0x93, 0x4c, 0x7e, 0xd0, 0x76, 0x2e, 0x90, 0xa5, 0x02, 0x8a, 0xcc,
0x4d, 0xae, 0x2c, 0x14, 0x78, 0x81, 0xa8, 0x5e, 0xa1, 0x48, 0x49, 0x1a, 0x36, 0x4d, 0x85, 0xc4,
0x95, 0xb1, 0xa7, 0x65, 0x45, 0x63, 0x07, 0xef, 0x34, 0x90, 0xc7, 0xe2, 0x1d, 0x78, 0x30, 0xb4,
0x1b, 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