336 lines
12 KiB
Go
336 lines
12 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: chat.proto
|
||
|
|
||
|
package chat
|
||
|
|
||
|
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
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
// What is sent through the wire
|
||
|
type ChatMessagePayload struct {
|
||
|
// Message content
|
||
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
||
|
// MIME type
|
||
|
ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
||
|
// Message type
|
||
|
MessageType string `protobuf:"bytes,3,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
|
||
|
// Sender's clock value for message ordering
|
||
|
ClockValue float64 `protobuf:"fixed64,4,opt,name=clock_value,json=clockValue,proto3" json:"clock_value,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ChatMessagePayload) Reset() { *m = ChatMessagePayload{} }
|
||
|
func (m *ChatMessagePayload) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ChatMessagePayload) ProtoMessage() {}
|
||
|
func (*ChatMessagePayload) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_8c585a45e2093e54, []int{0}
|
||
|
}
|
||
|
func (m *ChatMessagePayload) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ChatMessagePayload.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ChatMessagePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ChatMessagePayload.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *ChatMessagePayload) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ChatMessagePayload.Merge(m, src)
|
||
|
}
|
||
|
func (m *ChatMessagePayload) XXX_Size() int {
|
||
|
return xxx_messageInfo_ChatMessagePayload.Size(m)
|
||
|
}
|
||
|
func (m *ChatMessagePayload) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ChatMessagePayload.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ChatMessagePayload proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ChatMessagePayload) GetContent() string {
|
||
|
if m != nil {
|
||
|
return m.Content
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ChatMessagePayload) GetContentType() string {
|
||
|
if m != nil {
|
||
|
return m.ContentType
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ChatMessagePayload) GetMessageType() string {
|
||
|
if m != nil {
|
||
|
return m.MessageType
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ChatMessagePayload) GetClockValue() float64 {
|
||
|
if m != nil {
|
||
|
return m.ClockValue
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// ContactUpdatePayload is sent when a user updates its profile
|
||
|
type ContactUpdatePayload struct {
|
||
|
// Contact display name
|
||
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||
|
// Contact profile image, using the data URI scheme (e.g. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAA...")
|
||
|
ProfileImage string `protobuf:"bytes,2,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"`
|
||
|
// Contact address
|
||
|
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
|
||
|
// Contact Firebase Cloud Messaging token
|
||
|
FcmToken string `protobuf:"bytes,4,opt,name=fcm_token,json=fcmToken,proto3" json:"fcm_token,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ContactUpdatePayload) Reset() { *m = ContactUpdatePayload{} }
|
||
|
func (m *ContactUpdatePayload) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ContactUpdatePayload) ProtoMessage() {}
|
||
|
func (*ContactUpdatePayload) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_8c585a45e2093e54, []int{1}
|
||
|
}
|
||
|
func (m *ContactUpdatePayload) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ContactUpdatePayload.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ContactUpdatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ContactUpdatePayload.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *ContactUpdatePayload) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ContactUpdatePayload.Merge(m, src)
|
||
|
}
|
||
|
func (m *ContactUpdatePayload) XXX_Size() int {
|
||
|
return xxx_messageInfo_ContactUpdatePayload.Size(m)
|
||
|
}
|
||
|
func (m *ContactUpdatePayload) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ContactUpdatePayload.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ContactUpdatePayload proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ContactUpdatePayload) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ContactUpdatePayload) GetProfileImage() string {
|
||
|
if m != nil {
|
||
|
return m.ProfileImage
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ContactUpdatePayload) GetAddress() string {
|
||
|
if m != nil {
|
||
|
return m.Address
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ContactUpdatePayload) GetFcmToken() string {
|
||
|
if m != nil {
|
||
|
return m.FcmToken
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
// Incoming RPC messages
|
||
|
type OneToOneRPC struct {
|
||
|
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
|
||
|
Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"`
|
||
|
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *OneToOneRPC) Reset() { *m = OneToOneRPC{} }
|
||
|
func (m *OneToOneRPC) String() string { return proto.CompactTextString(m) }
|
||
|
func (*OneToOneRPC) ProtoMessage() {}
|
||
|
func (*OneToOneRPC) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_8c585a45e2093e54, []int{2}
|
||
|
}
|
||
|
func (m *OneToOneRPC) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_OneToOneRPC.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *OneToOneRPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_OneToOneRPC.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *OneToOneRPC) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_OneToOneRPC.Merge(m, src)
|
||
|
}
|
||
|
func (m *OneToOneRPC) XXX_Size() int {
|
||
|
return xxx_messageInfo_OneToOneRPC.Size(m)
|
||
|
}
|
||
|
func (m *OneToOneRPC) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_OneToOneRPC.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_OneToOneRPC proto.InternalMessageInfo
|
||
|
|
||
|
func (m *OneToOneRPC) GetSrc() string {
|
||
|
if m != nil {
|
||
|
return m.Src
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *OneToOneRPC) GetDst() string {
|
||
|
if m != nil {
|
||
|
return m.Dst
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *OneToOneRPC) GetPayload() []byte {
|
||
|
if m != nil {
|
||
|
return m.Payload
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type ContactUpdateRPC struct {
|
||
|
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
|
||
|
Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"`
|
||
|
Payload *ContactUpdatePayload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ContactUpdateRPC) Reset() { *m = ContactUpdateRPC{} }
|
||
|
func (m *ContactUpdateRPC) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ContactUpdateRPC) ProtoMessage() {}
|
||
|
func (*ContactUpdateRPC) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_8c585a45e2093e54, []int{3}
|
||
|
}
|
||
|
func (m *ContactUpdateRPC) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ContactUpdateRPC.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ContactUpdateRPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ContactUpdateRPC.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *ContactUpdateRPC) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ContactUpdateRPC.Merge(m, src)
|
||
|
}
|
||
|
func (m *ContactUpdateRPC) XXX_Size() int {
|
||
|
return xxx_messageInfo_ContactUpdateRPC.Size(m)
|
||
|
}
|
||
|
func (m *ContactUpdateRPC) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ContactUpdateRPC.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ContactUpdateRPC proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ContactUpdateRPC) GetSrc() string {
|
||
|
if m != nil {
|
||
|
return m.Src
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ContactUpdateRPC) GetDst() string {
|
||
|
if m != nil {
|
||
|
return m.Dst
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ContactUpdateRPC) GetPayload() *ContactUpdatePayload {
|
||
|
if m != nil {
|
||
|
return m.Payload
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Incoming messages
|
||
|
type ChatProtocolMessage struct {
|
||
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ChatProtocolMessage) Reset() { *m = ChatProtocolMessage{} }
|
||
|
func (m *ChatProtocolMessage) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ChatProtocolMessage) ProtoMessage() {}
|
||
|
func (*ChatProtocolMessage) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_8c585a45e2093e54, []int{4}
|
||
|
}
|
||
|
func (m *ChatProtocolMessage) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ChatProtocolMessage.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ChatProtocolMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ChatProtocolMessage.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *ChatProtocolMessage) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ChatProtocolMessage.Merge(m, src)
|
||
|
}
|
||
|
func (m *ChatProtocolMessage) XXX_Size() int {
|
||
|
return xxx_messageInfo_ChatProtocolMessage.Size(m)
|
||
|
}
|
||
|
func (m *ChatProtocolMessage) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ChatProtocolMessage.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ChatProtocolMessage proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ChatProtocolMessage) GetPayload() []byte {
|
||
|
if m != nil {
|
||
|
return m.Payload
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*ChatMessagePayload)(nil), "chat.ChatMessagePayload")
|
||
|
proto.RegisterType((*ContactUpdatePayload)(nil), "chat.ContactUpdatePayload")
|
||
|
proto.RegisterType((*OneToOneRPC)(nil), "chat.OneToOneRPC")
|
||
|
proto.RegisterType((*ContactUpdateRPC)(nil), "chat.ContactUpdateRPC")
|
||
|
proto.RegisterType((*ChatProtocolMessage)(nil), "chat.ChatProtocolMessage")
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("chat.proto", fileDescriptor_8c585a45e2093e54) }
|
||
|
|
||
|
var fileDescriptor_8c585a45e2093e54 = []byte{
|
||
|
// 314 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x4a, 0xc3, 0x40,
|
||
|
0x10, 0xc6, 0x59, 0x5b, 0xd4, 0x4e, 0x2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