2042 lines
65 KiB
Go
2042 lines
65 KiB
Go
// You should use the field numbers 1 through 15
|
|
// for the most-frequently-set fields.
|
|
// Lower field number values take less space in the wire format.
|
|
// For example, field numbers in the range 1 through 15 take one byte to encode.
|
|
// Field numbers in the range 16 through 2047 take two bytes.
|
|
|
|
//*
|
|
// Meow messages
|
|
//
|
|
// This is the Meow protocol protobuf messages description.
|
|
//
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.21.12
|
|
// source: messages.proto
|
|
|
|
package meowlib
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// structure definnig a message as received by a server in protobuf format
|
|
type PackedServerMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // The client public key for that server to get an answer
|
|
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // The ToServerMessage encrypted with the server public key |or| symetrical encryption as agreed earlier
|
|
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // The message signature with the client public key |eo| the reference to teh symetrical key used
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PackedServerMessage) Reset() {
|
|
*x = PackedServerMessage{}
|
|
mi := &file_messages_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PackedServerMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PackedServerMessage) ProtoMessage() {}
|
|
|
|
func (x *PackedServerMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PackedServerMessage.ProtoReflect.Descriptor instead.
|
|
func (*PackedServerMessage) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *PackedServerMessage) GetFrom() string {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PackedServerMessage) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PackedServerMessage) GetSignature() []byte {
|
|
if x != nil {
|
|
return x.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// structure to hold an invitation through a server
|
|
type Invitation struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // invitation payload, encrypted after step 2
|
|
Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // how long do I want the invitation to remain available on the server
|
|
ShortcodeLen int32 `protobuf:"varint,3,opt,name=shortcodeLen,proto3" json:"shortcodeLen,omitempty"` // len of the shortcode you wish for short url transmission
|
|
Shortcode string `protobuf:"bytes,4,opt,name=shortcode,proto3" json:"shortcode,omitempty"` // shortcode that the friend shall request to get the invitation
|
|
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // password to set for accessing invitation (optional)
|
|
Uuid string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"` // id that the friend gave you, that you should include to your reply to get recognized
|
|
Expiry int64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"` // the server allowed expiry date, it may be samller than the requested timeout according to server policy
|
|
Step int32 `protobuf:"varint,8,opt,name=step,proto3" json:"step,omitempty"` // progress in the inviattion process : 1=invite friend, 2=friend requests invitation, 3=friend's answer
|
|
From string `protobuf:"bytes,9,opt,name=from,proto3" json:"from,omitempty"` // used in step 3 the answer public key to check the signature in user message
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Invitation) Reset() {
|
|
*x = Invitation{}
|
|
mi := &file_messages_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Invitation) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Invitation) ProtoMessage() {}
|
|
|
|
func (x *Invitation) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Invitation.ProtoReflect.Descriptor instead.
|
|
func (*Invitation) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Invitation) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Invitation) GetTimeout() int32 {
|
|
if x != nil {
|
|
return x.Timeout
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Invitation) GetShortcodeLen() int32 {
|
|
if x != nil {
|
|
return x.ShortcodeLen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Invitation) GetShortcode() string {
|
|
if x != nil {
|
|
return x.Shortcode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invitation) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invitation) GetUuid() string {
|
|
if x != nil {
|
|
return x.Uuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invitation) GetExpiry() int64 {
|
|
if x != nil {
|
|
return x.Expiry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Invitation) GetStep() int32 {
|
|
if x != nil {
|
|
return x.Step
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Invitation) GetFrom() string {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// structure for requesting incoming messages
|
|
type ConversationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
LookupKey string `protobuf:"bytes,1,opt,name=lookup_key,json=lookupKey,proto3" json:"lookup_key,omitempty"` // lookup key for a conversation
|
|
DeliveryRequest bool `protobuf:"varint,2,opt,name=delivery_request,json=deliveryRequest,proto3" json:"delivery_request,omitempty"` // look for for delivery tracking, key is implicit, "from" field is used
|
|
SendTimestamp int64 `protobuf:"varint,3,opt,name=send_timestamp,json=sendTimestamp,proto3" json:"send_timestamp,omitempty"`
|
|
LookupSignature string `protobuf:"bytes,4,opt,name=lookup_signature,json=lookupSignature,proto3" json:"lookup_signature,omitempty"` // prove that I own the private key by signing that block
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConversationRequest) Reset() {
|
|
*x = ConversationRequest{}
|
|
mi := &file_messages_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConversationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConversationRequest) ProtoMessage() {}
|
|
|
|
func (x *ConversationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConversationRequest.ProtoReflect.Descriptor instead.
|
|
func (*ConversationRequest) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ConversationRequest) GetLookupKey() string {
|
|
if x != nil {
|
|
return x.LookupKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConversationRequest) GetDeliveryRequest() bool {
|
|
if x != nil {
|
|
return x.DeliveryRequest
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ConversationRequest) GetSendTimestamp() int64 {
|
|
if x != nil {
|
|
return x.SendTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ConversationRequest) GetLookupSignature() string {
|
|
if x != nil {
|
|
return x.LookupSignature
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Meet struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PublicStatus string `protobuf:"bytes,1,opt,name=public_status,json=publicStatus,proto3" json:"public_status,omitempty"` // Publish my online status, if the server is a meeting server
|
|
ContactCard *ContactCard `protobuf:"bytes,2,opt,name=contact_card,json=contactCard,proto3" json:"contact_card,omitempty"` // mine or the requester
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // short description
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Meet) Reset() {
|
|
*x = Meet{}
|
|
mi := &file_messages_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Meet) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Meet) ProtoMessage() {}
|
|
|
|
func (x *Meet) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Meet.ProtoReflect.Descriptor instead.
|
|
func (*Meet) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Meet) GetPublicStatus() string {
|
|
if x != nil {
|
|
return x.PublicStatus
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Meet) GetContactCard() *ContactCard {
|
|
if x != nil {
|
|
return x.ContactCard
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Meet) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Credentials struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` // login
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // password
|
|
PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // public key
|
|
PrivateKey string `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // private key
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Credentials) Reset() {
|
|
*x = Credentials{}
|
|
mi := &file_messages_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Credentials) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Credentials) ProtoMessage() {}
|
|
|
|
func (x *Credentials) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Credentials.ProtoReflect.Descriptor instead.
|
|
func (*Credentials) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *Credentials) GetLogin() string {
|
|
if x != nil {
|
|
return x.Login
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Credentials) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Credentials) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Credentials) GetPrivateKey() string {
|
|
if x != nil {
|
|
return x.PrivateKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// structure defining a message for a server, that will be encrypted, then sent in a "packedmessage" payload
|
|
type ToServerMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type 1 : final destination / 2 : forward
|
|
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // My pub key for the server to send me an encrypter answer
|
|
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // optional payload for server
|
|
PullRequest []*ConversationRequest `protobuf:"bytes,4,rep,name=pull_request,json=pullRequest,proto3" json:"pull_request,omitempty"`
|
|
Messages []*PackedUserMessage `protobuf:"bytes,5,rep,name=messages,proto3" json:"messages,omitempty"`
|
|
KnownServers []*ServerCard `protobuf:"bytes,6,rep,name=known_servers,json=knownServers,proto3" json:"known_servers,omitempty"`
|
|
MatriochkaMessage *Matriochka `protobuf:"bytes,7,opt,name=matriochka_message,json=matriochkaMessage,proto3" json:"matriochka_message,omitempty"`
|
|
Uuid string `protobuf:"bytes,8,opt,name=uuid,proto3" json:"uuid,omitempty"`
|
|
Invitation *Invitation `protobuf:"bytes,9,opt,name=invitation,proto3" json:"invitation,omitempty"` // invitation for the 2 first steps of a "through server" invitation process
|
|
DeviceMessages []*PackedUserMessage `protobuf:"bytes,10,rep,name=device_messages,json=deviceMessages,proto3" json:"device_messages,omitempty"` // messages to another device belonging to the same user
|
|
Timeout int64 `protobuf:"varint,11,opt,name=timeout,proto3" json:"timeout,omitempty"` // timeout expected by the client for the server to answer (long polling)
|
|
VideoData *VideoData `protobuf:"bytes,12,opt,name=video_data,json=videoData,proto3" json:"video_data,omitempty"` // video call data
|
|
Credentials *Credentials `protobuf:"bytes,13,opt,name=credentials,proto3" json:"credentials,omitempty"` // credentials for a new user or mandatory server creds
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ToServerMessage) Reset() {
|
|
*x = ToServerMessage{}
|
|
mi := &file_messages_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ToServerMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ToServerMessage) ProtoMessage() {}
|
|
|
|
func (x *ToServerMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ToServerMessage.ProtoReflect.Descriptor instead.
|
|
func (*ToServerMessage) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ToServerMessage) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ToServerMessage) GetFrom() string {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ToServerMessage) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetPullRequest() []*ConversationRequest {
|
|
if x != nil {
|
|
return x.PullRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetMessages() []*PackedUserMessage {
|
|
if x != nil {
|
|
return x.Messages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetKnownServers() []*ServerCard {
|
|
if x != nil {
|
|
return x.KnownServers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetMatriochkaMessage() *Matriochka {
|
|
if x != nil {
|
|
return x.MatriochkaMessage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetUuid() string {
|
|
if x != nil {
|
|
return x.Uuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ToServerMessage) GetInvitation() *Invitation {
|
|
if x != nil {
|
|
return x.Invitation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetDeviceMessages() []*PackedUserMessage {
|
|
if x != nil {
|
|
return x.DeviceMessages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetTimeout() int64 {
|
|
if x != nil {
|
|
return x.Timeout
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ToServerMessage) GetVideoData() *VideoData {
|
|
if x != nil {
|
|
return x.VideoData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ToServerMessage) GetCredentials() *Credentials {
|
|
if x != nil {
|
|
return x.Credentials
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// structure defining a from server receiver message decrypted from a "packedmessage" payload
|
|
type FromServerMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type
|
|
ServerPublicKey string `protobuf:"bytes,2,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"` // Pub key from the server
|
|
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` //
|
|
UuidAck string `protobuf:"bytes,4,opt,name=uuid_ack,json=uuidAck,proto3" json:"uuid_ack,omitempty"` // Ack for the last received ToServerMessage Uuid
|
|
ServerUuid string `protobuf:"bytes,5,opt,name=server_uuid,json=serverUuid,proto3" json:"server_uuid,omitempty"` // Provides the server uuid that replaced the client uuid
|
|
Chat []*PackedUserMessage `protobuf:"bytes,6,rep,name=chat,proto3" json:"chat,omitempty"`
|
|
KnownServers []*ServerCard `protobuf:"bytes,7,rep,name=known_servers,json=knownServers,proto3" json:"known_servers,omitempty"`
|
|
Invitation *Invitation `protobuf:"bytes,8,opt,name=invitation,proto3" json:"invitation,omitempty"` // invitation answer, for the third steps of any invitation
|
|
DeviceMessages []*PackedUserMessage `protobuf:"bytes,9,rep,name=device_messages,json=deviceMessages,proto3" json:"device_messages,omitempty"` // messages from other devices belonging to the same user
|
|
VideoData *VideoData `protobuf:"bytes,10,opt,name=video_data,json=videoData,proto3" json:"video_data,omitempty"` // video call data
|
|
ContactCard []*ContactCard `protobuf:"bytes,11,rep,name=contact_card,json=contactCard,proto3" json:"contact_card,omitempty"` // contact list for a personae
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FromServerMessage) Reset() {
|
|
*x = FromServerMessage{}
|
|
mi := &file_messages_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FromServerMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FromServerMessage) ProtoMessage() {}
|
|
|
|
func (x *FromServerMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FromServerMessage.ProtoReflect.Descriptor instead.
|
|
func (*FromServerMessage) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *FromServerMessage) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FromServerMessage) GetServerPublicKey() string {
|
|
if x != nil {
|
|
return x.ServerPublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FromServerMessage) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FromServerMessage) GetUuidAck() string {
|
|
if x != nil {
|
|
return x.UuidAck
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FromServerMessage) GetServerUuid() string {
|
|
if x != nil {
|
|
return x.ServerUuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FromServerMessage) GetChat() []*PackedUserMessage {
|
|
if x != nil {
|
|
return x.Chat
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FromServerMessage) GetKnownServers() []*ServerCard {
|
|
if x != nil {
|
|
return x.KnownServers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FromServerMessage) GetInvitation() *Invitation {
|
|
if x != nil {
|
|
return x.Invitation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FromServerMessage) GetDeviceMessages() []*PackedUserMessage {
|
|
if x != nil {
|
|
return x.DeviceMessages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FromServerMessage) GetVideoData() *VideoData {
|
|
if x != nil {
|
|
return x.VideoData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FromServerMessage) GetContactCard() []*ContactCard {
|
|
if x != nil {
|
|
return x.ContactCard
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MatriochkaServer struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Server Url
|
|
PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // Server Public Key
|
|
Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"` // Optional, uuid for delivery confirmation
|
|
Delay int32 `protobuf:"varint,4,opt,name=delay,proto3" json:"delay,omitempty"` // Max delay requested for message forwarding or delivery tracking
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MatriochkaServer) Reset() {
|
|
*x = MatriochkaServer{}
|
|
mi := &file_messages_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MatriochkaServer) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MatriochkaServer) ProtoMessage() {}
|
|
|
|
func (x *MatriochkaServer) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MatriochkaServer.ProtoReflect.Descriptor instead.
|
|
func (*MatriochkaServer) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *MatriochkaServer) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MatriochkaServer) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MatriochkaServer) GetUuid() string {
|
|
if x != nil {
|
|
return x.Uuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MatriochkaServer) GetDelay() int32 {
|
|
if x != nil {
|
|
return x.Delay
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Matriochka struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
LookupKey string `protobuf:"bytes,1,opt,name=lookupKey,proto3" json:"lookupKey,omitempty"` // Optional, only if you want delivery tracking, less stealth
|
|
Prev *MatriochkaServer `protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"` // Optional, like above
|
|
Next *MatriochkaServer `protobuf:"bytes,3,opt,name=next,proto3" json:"next,omitempty"` // Next server to deliver the message to
|
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // Matriochka data
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Matriochka) Reset() {
|
|
*x = Matriochka{}
|
|
mi := &file_messages_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Matriochka) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Matriochka) ProtoMessage() {}
|
|
|
|
func (x *Matriochka) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Matriochka.ProtoReflect.Descriptor instead.
|
|
func (*Matriochka) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *Matriochka) GetLookupKey() string {
|
|
if x != nil {
|
|
return x.LookupKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Matriochka) GetPrev() *MatriochkaServer {
|
|
if x != nil {
|
|
return x.Prev
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Matriochka) GetNext() *MatriochkaServer {
|
|
if x != nil {
|
|
return x.Next
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Matriochka) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// structure describing required server attributes
|
|
type ServerCard struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // friendly server name
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // description : owner type (company/private/university...),
|
|
PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // public key you must use to send encrypted messages to that server
|
|
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // meow server url
|
|
Login string `protobuf:"bytes,5,opt,name=login,proto3" json:"login,omitempty"` // required login to access the server
|
|
Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` // password associated to the login
|
|
Signature string `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` // signature of all previous fields by the server itself
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ServerCard) Reset() {
|
|
*x = ServerCard{}
|
|
mi := &file_messages_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ServerCard) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ServerCard) ProtoMessage() {}
|
|
|
|
func (x *ServerCard) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ServerCard.ProtoReflect.Descriptor instead.
|
|
func (*ServerCard) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ServerCard) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServerCard) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServerCard) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServerCard) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServerCard) GetLogin() string {
|
|
if x != nil {
|
|
return x.Login
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServerCard) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServerCard) GetSignature() string {
|
|
if x != nil {
|
|
return x.Signature
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// structure describing a user contact card ie the minimum set of attributes for exchanging identities
|
|
type ContactCard struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contact nickname
|
|
ContactPublicKey string `protobuf:"bytes,2,opt,name=contact_public_key,json=contactPublicKey,proto3" json:"contact_public_key,omitempty"` // contact public key, will be used to authenticate her/his messages
|
|
EncryptionPublicKey string `protobuf:"bytes,3,opt,name=encryption_public_key,json=encryptionPublicKey,proto3" json:"encryption_public_key,omitempty"` // public key you must use to to write encrypted messages to that contact
|
|
LookupPublicKey string `protobuf:"bytes,4,opt,name=lookup_public_key,json=lookupPublicKey,proto3" json:"lookup_public_key,omitempty"` // public key you will use as "destination identifier" for her/him to lookup for your messages on the servers
|
|
PullServers []*ServerCard `protobuf:"bytes,5,rep,name=pull_servers,json=pullServers,proto3" json:"pull_servers,omitempty"` // list the servers where the contact will look for messages from you
|
|
Version uint32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
|
|
InvitationId string `protobuf:"bytes,7,opt,name=invitation_id,json=invitationId,proto3" json:"invitation_id,omitempty"`
|
|
InvitationMessage string `protobuf:"bytes,8,opt,name=invitation_message,json=invitationMessage,proto3" json:"invitation_message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ContactCard) Reset() {
|
|
*x = ContactCard{}
|
|
mi := &file_messages_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ContactCard) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ContactCard) ProtoMessage() {}
|
|
|
|
func (x *ContactCard) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ContactCard.ProtoReflect.Descriptor instead.
|
|
func (*ContactCard) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ContactCard) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ContactCard) GetContactPublicKey() string {
|
|
if x != nil {
|
|
return x.ContactPublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ContactCard) GetEncryptionPublicKey() string {
|
|
if x != nil {
|
|
return x.EncryptionPublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ContactCard) GetLookupPublicKey() string {
|
|
if x != nil {
|
|
return x.LookupPublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ContactCard) GetPullServers() []*ServerCard {
|
|
if x != nil {
|
|
return x.PullServers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ContactCard) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ContactCard) GetInvitationId() string {
|
|
if x != nil {
|
|
return x.InvitationId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ContactCard) GetInvitationMessage() string {
|
|
if x != nil {
|
|
return x.InvitationMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// structure for sending a message to be forwarded to another user in protobuf format
|
|
type PackedUserMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // the peer's current conversation lookup public key
|
|
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // the message UserMessage encrypted with the destination peer's public key
|
|
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // the payload signature with the client identity private key
|
|
ServerTimestamp []int64 `protobuf:"varint,4,rep,packed,name=serverTimestamp,proto3" json:"serverTimestamp,omitempty"` // server time stamp, might be several in matriochka mode
|
|
ServerDeliveryUuid string `protobuf:"bytes,5,opt,name=server_delivery_uuid,json=serverDeliveryUuid,proto3" json:"server_delivery_uuid,omitempty"` // message uuid, for server delivery tracking, omitted if not delivery tracking desired
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PackedUserMessage) Reset() {
|
|
*x = PackedUserMessage{}
|
|
mi := &file_messages_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PackedUserMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PackedUserMessage) ProtoMessage() {}
|
|
|
|
func (x *PackedUserMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PackedUserMessage.ProtoReflect.Descriptor instead.
|
|
func (*PackedUserMessage) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *PackedUserMessage) GetDestination() string {
|
|
if x != nil {
|
|
return x.Destination
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PackedUserMessage) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PackedUserMessage) GetSignature() []byte {
|
|
if x != nil {
|
|
return x.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PackedUserMessage) GetServerTimestamp() []int64 {
|
|
if x != nil {
|
|
return x.ServerTimestamp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PackedUserMessage) GetServerDeliveryUuid() string {
|
|
if x != nil {
|
|
return x.ServerDeliveryUuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ConversationStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
|
|
AnswerToUuid string `protobuf:"bytes,2,opt,name=answer_to_uuid,json=answerToUuid,proto3" json:"answer_to_uuid,omitempty"` // message is an answer to another one, specify uuid here
|
|
LocalSequence uint64 `protobuf:"varint,3,opt,name=localSequence,proto3" json:"localSequence,omitempty"` // seq number in local conversation for custom reordering
|
|
Sent uint64 `protobuf:"varint,4,opt,name=sent,proto3" json:"sent,omitempty"` // timestamp of the message sent
|
|
Received uint64 `protobuf:"varint,5,opt,name=received,proto3" json:"received,omitempty"` // timestamp of the message received
|
|
Processed uint64 `protobuf:"varint,6,opt,name=processed,proto3" json:"processed,omitempty"` // timestamp of the message processed
|
|
MyNextIdentity *ContactCard `protobuf:"bytes,7,opt,name=my_next_identity,json=myNextIdentity,proto3" json:"my_next_identity,omitempty"`
|
|
PeerNextIdentityAck int32 `protobuf:"varint,8,opt,name=peer_next_identityAck,json=peerNextIdentityAck,proto3" json:"peer_next_identityAck,omitempty"` // version of the new peer accepted id
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConversationStatus) Reset() {
|
|
*x = ConversationStatus{}
|
|
mi := &file_messages_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConversationStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConversationStatus) ProtoMessage() {}
|
|
|
|
func (x *ConversationStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConversationStatus.ProtoReflect.Descriptor instead.
|
|
func (*ConversationStatus) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *ConversationStatus) GetUuid() string {
|
|
if x != nil {
|
|
return x.Uuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConversationStatus) GetAnswerToUuid() string {
|
|
if x != nil {
|
|
return x.AnswerToUuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConversationStatus) GetLocalSequence() uint64 {
|
|
if x != nil {
|
|
return x.LocalSequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ConversationStatus) GetSent() uint64 {
|
|
if x != nil {
|
|
return x.Sent
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ConversationStatus) GetReceived() uint64 {
|
|
if x != nil {
|
|
return x.Received
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ConversationStatus) GetProcessed() uint64 {
|
|
if x != nil {
|
|
return x.Processed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ConversationStatus) GetMyNextIdentity() *ContactCard {
|
|
if x != nil {
|
|
return x.MyNextIdentity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ConversationStatus) GetPeerNextIdentityAck() int32 {
|
|
if x != nil {
|
|
return x.PeerNextIdentityAck
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Group struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Members []*ContactCard `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Group) Reset() {
|
|
*x = Group{}
|
|
mi := &file_messages_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Group) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Group) ProtoMessage() {}
|
|
|
|
func (x *Group) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Group.ProtoReflect.Descriptor instead.
|
|
func (*Group) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *Group) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Group) GetMembers() []*ContactCard {
|
|
if x != nil {
|
|
return x.Members
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// structure defining information that might be exchanged between two peers.
|
|
type UserMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // Lookupkey
|
|
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // My public key for that contact
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // Message type
|
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
|
Status *ConversationStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
|
|
Contact *ContactCard `protobuf:"bytes,6,opt,name=contact,proto3" json:"contact,omitempty"`
|
|
KnownServers *ServerCard `protobuf:"bytes,7,opt,name=knownServers,proto3" json:"knownServers,omitempty"`
|
|
Group *Group `protobuf:"bytes,8,opt,name=group,proto3" json:"group,omitempty"`
|
|
Files []*File `protobuf:"bytes,9,rep,name=files,proto3" json:"files,omitempty"`
|
|
CurrentLocation *Location `protobuf:"bytes,10,opt,name=current_location,json=currentLocation,proto3" json:"current_location,omitempty"`
|
|
Appdata []byte `protobuf:"bytes,11,opt,name=appdata,proto3" json:"appdata,omitempty"`
|
|
Invitation *Invitation `protobuf:"bytes,12,opt,name=invitation,proto3" json:"invitation,omitempty"`
|
|
VideoData *VideoData `protobuf:"bytes,13,opt,name=video_data,json=videoData,proto3" json:"video_data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserMessage) Reset() {
|
|
*x = UserMessage{}
|
|
mi := &file_messages_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserMessage) ProtoMessage() {}
|
|
|
|
func (x *UserMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UserMessage.ProtoReflect.Descriptor instead.
|
|
func (*UserMessage) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *UserMessage) GetDestination() string {
|
|
if x != nil {
|
|
return x.Destination
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserMessage) GetFrom() string {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserMessage) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserMessage) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetStatus() *ConversationStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetContact() *ContactCard {
|
|
if x != nil {
|
|
return x.Contact
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetKnownServers() *ServerCard {
|
|
if x != nil {
|
|
return x.KnownServers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetGroup() *Group {
|
|
if x != nil {
|
|
return x.Group
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetFiles() []*File {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetCurrentLocation() *Location {
|
|
if x != nil {
|
|
return x.CurrentLocation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetAppdata() []byte {
|
|
if x != nil {
|
|
return x.Appdata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetInvitation() *Invitation {
|
|
if x != nil {
|
|
return x.Invitation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMessage) GetVideoData() *VideoData {
|
|
if x != nil {
|
|
return x.VideoData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type File struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // the proposed filename
|
|
Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // the file size
|
|
Chunk uint32 `protobuf:"varint,3,opt,name=chunk,proto3" json:"chunk,omitempty"` // the chunk counter if file is sent by chunks
|
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // the file/chunk content
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *File) Reset() {
|
|
*x = File{}
|
|
mi := &file_messages_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *File) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*File) ProtoMessage() {}
|
|
|
|
func (x *File) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use File.ProtoReflect.Descriptor instead.
|
|
func (*File) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *File) GetFilename() string {
|
|
if x != nil {
|
|
return x.Filename
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *File) GetSize() uint64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *File) GetChunk() uint32 {
|
|
if x != nil {
|
|
return x.Chunk
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *File) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Location struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
|
|
Latitude float32 `protobuf:"fixed32,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
|
Longitude float32 `protobuf:"fixed32,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
|
Altitude int32 `protobuf:"varint,4,opt,name=altitude,proto3" json:"altitude,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Location) Reset() {
|
|
*x = Location{}
|
|
mi := &file_messages_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Location) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Location) ProtoMessage() {}
|
|
|
|
func (x *Location) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Location.ProtoReflect.Descriptor instead.
|
|
func (*Location) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *Location) GetTime() uint64 {
|
|
if x != nil {
|
|
return x.Time
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Location) GetLatitude() float32 {
|
|
if x != nil {
|
|
return x.Latitude
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Location) GetLongitude() float32 {
|
|
if x != nil {
|
|
return x.Longitude
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Location) GetAltitude() int32 {
|
|
if x != nil {
|
|
return x.Altitude
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DbMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Outbound bool `protobuf:"varint,1,opt,name=outbound,proto3" json:"outbound,omitempty"` // direction of the message
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // text data
|
|
Status *ConversationStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
|
|
Contact *ContactCard `protobuf:"bytes,5,opt,name=contact,proto3" json:"contact,omitempty"`
|
|
Group *Group `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"`
|
|
FilePaths []string `protobuf:"bytes,7,rep,name=file_paths,json=filePaths,proto3" json:"file_paths,omitempty"`
|
|
CurrentLocation *Location `protobuf:"bytes,8,opt,name=current_location,json=currentLocation,proto3" json:"current_location,omitempty"`
|
|
Appdata []byte `protobuf:"bytes,9,opt,name=appdata,proto3" json:"appdata,omitempty"`
|
|
Invitation *Invitation `protobuf:"bytes,10,opt,name=invitation,proto3" json:"invitation,omitempty"`
|
|
From string `protobuf:"bytes,11,opt,name=from,proto3" json:"from,omitempty"` // source peer uid, used when storing group conversations with more than one peer
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DbMessage) Reset() {
|
|
*x = DbMessage{}
|
|
mi := &file_messages_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DbMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DbMessage) ProtoMessage() {}
|
|
|
|
func (x *DbMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DbMessage.ProtoReflect.Descriptor instead.
|
|
func (*DbMessage) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *DbMessage) GetOutbound() bool {
|
|
if x != nil {
|
|
return x.Outbound
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DbMessage) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DbMessage) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetStatus() *ConversationStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetContact() *ContactCard {
|
|
if x != nil {
|
|
return x.Contact
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetGroup() *Group {
|
|
if x != nil {
|
|
return x.Group
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetFilePaths() []string {
|
|
if x != nil {
|
|
return x.FilePaths
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetCurrentLocation() *Location {
|
|
if x != nil {
|
|
return x.CurrentLocation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetAppdata() []byte {
|
|
if x != nil {
|
|
return x.Appdata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetInvitation() *Invitation {
|
|
if x != nil {
|
|
return x.Invitation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DbMessage) GetFrom() string {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VideoData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
|
Duration uint64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
|
|
Credentials []*VideoCredential `protobuf:"bytes,4,rep,name=credentials,proto3" json:"credentials,omitempty"`
|
|
MediaQuery []string `protobuf:"bytes,5,rep,name=media_query,json=mediaQuery,proto3" json:"media_query,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VideoData) Reset() {
|
|
*x = VideoData{}
|
|
mi := &file_messages_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VideoData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VideoData) ProtoMessage() {}
|
|
|
|
func (x *VideoData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VideoData.ProtoReflect.Descriptor instead.
|
|
func (*VideoData) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *VideoData) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VideoData) GetRoom() string {
|
|
if x != nil {
|
|
return x.Room
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VideoData) GetDuration() uint64 {
|
|
if x != nil {
|
|
return x.Duration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VideoData) GetCredentials() []*VideoCredential {
|
|
if x != nil {
|
|
return x.Credentials
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *VideoData) GetMediaQuery() []string {
|
|
if x != nil {
|
|
return x.MediaQuery
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VideoCredential struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
SharedKey string `protobuf:"bytes,2,opt,name=shared_key,json=sharedKey,proto3" json:"shared_key,omitempty"`
|
|
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VideoCredential) Reset() {
|
|
*x = VideoCredential{}
|
|
mi := &file_messages_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VideoCredential) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VideoCredential) ProtoMessage() {}
|
|
|
|
func (x *VideoCredential) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VideoCredential.ProtoReflect.Descriptor instead.
|
|
func (*VideoCredential) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *VideoCredential) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VideoCredential) GetSharedKey() string {
|
|
if x != nil {
|
|
return x.SharedKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VideoCredential) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_messages_proto protoreflect.FileDescriptor
|
|
|
|
const file_messages_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0emessages.proto\x12\ameowlib\"a\n" +
|
|
"\x13PackedServerMessage\x12\x12\n" +
|
|
"\x04from\x18\x01 \x01(\tR\x04from\x12\x18\n" +
|
|
"\apayload\x18\x02 \x01(\fR\apayload\x12\x1c\n" +
|
|
"\tsignature\x18\x03 \x01(\fR\tsignature\"\xf2\x01\n" +
|
|
"\n" +
|
|
"Invitation\x12\x18\n" +
|
|
"\apayload\x18\x01 \x01(\fR\apayload\x12\x18\n" +
|
|
"\atimeout\x18\x02 \x01(\x05R\atimeout\x12\"\n" +
|
|
"\fshortcodeLen\x18\x03 \x01(\x05R\fshortcodeLen\x12\x1c\n" +
|
|
"\tshortcode\x18\x04 \x01(\tR\tshortcode\x12\x1a\n" +
|
|
"\bpassword\x18\x05 \x01(\tR\bpassword\x12\x12\n" +
|
|
"\x04uuid\x18\x06 \x01(\tR\x04uuid\x12\x16\n" +
|
|
"\x06expiry\x18\a \x01(\x03R\x06expiry\x12\x12\n" +
|
|
"\x04step\x18\b \x01(\x05R\x04step\x12\x12\n" +
|
|
"\x04from\x18\t \x01(\tR\x04from\"\xb1\x01\n" +
|
|
"\x13ConversationRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"lookup_key\x18\x01 \x01(\tR\tlookupKey\x12)\n" +
|
|
"\x10delivery_request\x18\x02 \x01(\bR\x0fdeliveryRequest\x12%\n" +
|
|
"\x0esend_timestamp\x18\x03 \x01(\x03R\rsendTimestamp\x12)\n" +
|
|
"\x10lookup_signature\x18\x04 \x01(\tR\x0flookupSignature\"~\n" +
|
|
"\x04Meet\x12#\n" +
|
|
"\rpublic_status\x18\x01 \x01(\tR\fpublicStatus\x127\n" +
|
|
"\fcontact_card\x18\x02 \x01(\v2\x14.meowlib.ContactCardR\vcontactCard\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\"\x7f\n" +
|
|
"\vCredentials\x12\x14\n" +
|
|
"\x05login\x18\x01 \x01(\tR\x05login\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x03 \x01(\tR\tpublicKey\x12\x1f\n" +
|
|
"\vprivate_key\x18\x04 \x01(\tR\n" +
|
|
"privateKey\"\xdd\x04\n" +
|
|
"\x0fToServerMessage\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04from\x18\x02 \x01(\tR\x04from\x12\x18\n" +
|
|
"\apayload\x18\x03 \x01(\fR\apayload\x12?\n" +
|
|
"\fpull_request\x18\x04 \x03(\v2\x1c.meowlib.ConversationRequestR\vpullRequest\x126\n" +
|
|
"\bmessages\x18\x05 \x03(\v2\x1a.meowlib.PackedUserMessageR\bmessages\x128\n" +
|
|
"\rknown_servers\x18\x06 \x03(\v2\x13.meowlib.ServerCardR\fknownServers\x12B\n" +
|
|
"\x12matriochka_message\x18\a \x01(\v2\x13.meowlib.MatriochkaR\x11matriochkaMessage\x12\x12\n" +
|
|
"\x04uuid\x18\b \x01(\tR\x04uuid\x123\n" +
|
|
"\n" +
|
|
"invitation\x18\t \x01(\v2\x13.meowlib.InvitationR\n" +
|
|
"invitation\x12C\n" +
|
|
"\x0fdevice_messages\x18\n" +
|
|
" \x03(\v2\x1a.meowlib.PackedUserMessageR\x0edeviceMessages\x12\x18\n" +
|
|
"\atimeout\x18\v \x01(\x03R\atimeout\x121\n" +
|
|
"\n" +
|
|
"video_data\x18\f \x01(\v2\x12.meowlib.VideoDataR\tvideoData\x126\n" +
|
|
"\vcredentials\x18\r \x01(\v2\x14.meowlib.CredentialsR\vcredentials\"\xf9\x03\n" +
|
|
"\x11FromServerMessage\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12*\n" +
|
|
"\x11server_public_key\x18\x02 \x01(\tR\x0fserverPublicKey\x12\x18\n" +
|
|
"\apayload\x18\x03 \x01(\fR\apayload\x12\x19\n" +
|
|
"\buuid_ack\x18\x04 \x01(\tR\auuidAck\x12\x1f\n" +
|
|
"\vserver_uuid\x18\x05 \x01(\tR\n" +
|
|
"serverUuid\x12.\n" +
|
|
"\x04chat\x18\x06 \x03(\v2\x1a.meowlib.PackedUserMessageR\x04chat\x128\n" +
|
|
"\rknown_servers\x18\a \x03(\v2\x13.meowlib.ServerCardR\fknownServers\x123\n" +
|
|
"\n" +
|
|
"invitation\x18\b \x01(\v2\x13.meowlib.InvitationR\n" +
|
|
"invitation\x12C\n" +
|
|
"\x0fdevice_messages\x18\t \x03(\v2\x1a.meowlib.PackedUserMessageR\x0edeviceMessages\x121\n" +
|
|
"\n" +
|
|
"video_data\x18\n" +
|
|
" \x01(\v2\x12.meowlib.VideoDataR\tvideoData\x127\n" +
|
|
"\fcontact_card\x18\v \x03(\v2\x14.meowlib.ContactCardR\vcontactCard\"l\n" +
|
|
"\x10MatriochkaServer\x12\x10\n" +
|
|
"\x03url\x18\x01 \x01(\tR\x03url\x12\x1c\n" +
|
|
"\tpublicKey\x18\x02 \x01(\tR\tpublicKey\x12\x12\n" +
|
|
"\x04uuid\x18\x03 \x01(\tR\x04uuid\x12\x14\n" +
|
|
"\x05delay\x18\x04 \x01(\x05R\x05delay\"\x9c\x01\n" +
|
|
"\n" +
|
|
"Matriochka\x12\x1c\n" +
|
|
"\tlookupKey\x18\x01 \x01(\tR\tlookupKey\x12-\n" +
|
|
"\x04prev\x18\x02 \x01(\v2\x19.meowlib.MatriochkaServerR\x04prev\x12-\n" +
|
|
"\x04next\x18\x03 \x01(\v2\x19.meowlib.MatriochkaServerR\x04next\x12\x12\n" +
|
|
"\x04data\x18\x04 \x01(\fR\x04data\"\xc3\x01\n" +
|
|
"\n" +
|
|
"ServerCard\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x03 \x01(\tR\tpublicKey\x12\x10\n" +
|
|
"\x03url\x18\x04 \x01(\tR\x03url\x12\x14\n" +
|
|
"\x05login\x18\x05 \x01(\tR\x05login\x12\x1a\n" +
|
|
"\bpassword\x18\x06 \x01(\tR\bpassword\x12\x1c\n" +
|
|
"\tsignature\x18\a \x01(\tR\tsignature\"\xd5\x02\n" +
|
|
"\vContactCard\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12,\n" +
|
|
"\x12contact_public_key\x18\x02 \x01(\tR\x10contactPublicKey\x122\n" +
|
|
"\x15encryption_public_key\x18\x03 \x01(\tR\x13encryptionPublicKey\x12*\n" +
|
|
"\x11lookup_public_key\x18\x04 \x01(\tR\x0flookupPublicKey\x126\n" +
|
|
"\fpull_servers\x18\x05 \x03(\v2\x13.meowlib.ServerCardR\vpullServers\x12\x18\n" +
|
|
"\aversion\x18\x06 \x01(\rR\aversion\x12#\n" +
|
|
"\rinvitation_id\x18\a \x01(\tR\finvitationId\x12-\n" +
|
|
"\x12invitation_message\x18\b \x01(\tR\x11invitationMessage\"\xc9\x01\n" +
|
|
"\x11PackedUserMessage\x12 \n" +
|
|
"\vdestination\x18\x01 \x01(\tR\vdestination\x12\x18\n" +
|
|
"\apayload\x18\x02 \x01(\fR\apayload\x12\x1c\n" +
|
|
"\tsignature\x18\x03 \x01(\fR\tsignature\x12(\n" +
|
|
"\x0fserverTimestamp\x18\x04 \x03(\x03R\x0fserverTimestamp\x120\n" +
|
|
"\x14server_delivery_uuid\x18\x05 \x01(\tR\x12serverDeliveryUuid\"\xb6\x02\n" +
|
|
"\x12ConversationStatus\x12\x12\n" +
|
|
"\x04uuid\x18\x01 \x01(\tR\x04uuid\x12$\n" +
|
|
"\x0eanswer_to_uuid\x18\x02 \x01(\tR\fanswerToUuid\x12$\n" +
|
|
"\rlocalSequence\x18\x03 \x01(\x04R\rlocalSequence\x12\x12\n" +
|
|
"\x04sent\x18\x04 \x01(\x04R\x04sent\x12\x1a\n" +
|
|
"\breceived\x18\x05 \x01(\x04R\breceived\x12\x1c\n" +
|
|
"\tprocessed\x18\x06 \x01(\x04R\tprocessed\x12>\n" +
|
|
"\x10my_next_identity\x18\a \x01(\v2\x14.meowlib.ContactCardR\x0emyNextIdentity\x122\n" +
|
|
"\x15peer_next_identityAck\x18\b \x01(\x05R\x13peerNextIdentityAck\"K\n" +
|
|
"\x05Group\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12.\n" +
|
|
"\amembers\x18\x02 \x03(\v2\x14.meowlib.ContactCardR\amembers\"\x94\x04\n" +
|
|
"\vUserMessage\x12 \n" +
|
|
"\vdestination\x18\x01 \x01(\tR\vdestination\x12\x12\n" +
|
|
"\x04from\x18\x02 \x01(\tR\x04from\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04data\x18\x04 \x01(\fR\x04data\x123\n" +
|
|
"\x06status\x18\x05 \x01(\v2\x1b.meowlib.ConversationStatusR\x06status\x12.\n" +
|
|
"\acontact\x18\x06 \x01(\v2\x14.meowlib.ContactCardR\acontact\x127\n" +
|
|
"\fknownServers\x18\a \x01(\v2\x13.meowlib.ServerCardR\fknownServers\x12$\n" +
|
|
"\x05group\x18\b \x01(\v2\x0e.meowlib.GroupR\x05group\x12#\n" +
|
|
"\x05files\x18\t \x03(\v2\r.meowlib.FileR\x05files\x12<\n" +
|
|
"\x10current_location\x18\n" +
|
|
" \x01(\v2\x11.meowlib.LocationR\x0fcurrentLocation\x12\x18\n" +
|
|
"\aappdata\x18\v \x01(\fR\aappdata\x123\n" +
|
|
"\n" +
|
|
"invitation\x18\f \x01(\v2\x13.meowlib.InvitationR\n" +
|
|
"invitation\x121\n" +
|
|
"\n" +
|
|
"video_data\x18\r \x01(\v2\x12.meowlib.VideoDataR\tvideoData\"`\n" +
|
|
"\x04File\x12\x1a\n" +
|
|
"\bfilename\x18\x01 \x01(\tR\bfilename\x12\x12\n" +
|
|
"\x04size\x18\x02 \x01(\x04R\x04size\x12\x14\n" +
|
|
"\x05chunk\x18\x03 \x01(\rR\x05chunk\x12\x12\n" +
|
|
"\x04data\x18\x04 \x01(\fR\x04data\"t\n" +
|
|
"\bLocation\x12\x12\n" +
|
|
"\x04time\x18\x01 \x01(\x04R\x04time\x12\x1a\n" +
|
|
"\blatitude\x18\x02 \x01(\x02R\blatitude\x12\x1c\n" +
|
|
"\tlongitude\x18\x03 \x01(\x02R\tlongitude\x12\x1a\n" +
|
|
"\baltitude\x18\x04 \x01(\x05R\baltitude\"\x9a\x03\n" +
|
|
"\tDbMessage\x12\x1a\n" +
|
|
"\boutbound\x18\x01 \x01(\bR\boutbound\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04data\x18\x03 \x01(\fR\x04data\x123\n" +
|
|
"\x06status\x18\x04 \x01(\v2\x1b.meowlib.ConversationStatusR\x06status\x12.\n" +
|
|
"\acontact\x18\x05 \x01(\v2\x14.meowlib.ContactCardR\acontact\x12$\n" +
|
|
"\x05group\x18\x06 \x01(\v2\x0e.meowlib.GroupR\x05group\x12\x1d\n" +
|
|
"\n" +
|
|
"file_paths\x18\a \x03(\tR\tfilePaths\x12<\n" +
|
|
"\x10current_location\x18\b \x01(\v2\x11.meowlib.LocationR\x0fcurrentLocation\x12\x18\n" +
|
|
"\aappdata\x18\t \x01(\fR\aappdata\x123\n" +
|
|
"\n" +
|
|
"invitation\x18\n" +
|
|
" \x01(\v2\x13.meowlib.InvitationR\n" +
|
|
"invitation\x12\x12\n" +
|
|
"\x04from\x18\v \x01(\tR\x04from\"\xaa\x01\n" +
|
|
"\tVideoData\x12\x10\n" +
|
|
"\x03url\x18\x01 \x01(\tR\x03url\x12\x12\n" +
|
|
"\x04room\x18\x02 \x01(\tR\x04room\x12\x1a\n" +
|
|
"\bduration\x18\x03 \x01(\x04R\bduration\x12:\n" +
|
|
"\vcredentials\x18\x04 \x03(\v2\x18.meowlib.VideoCredentialR\vcredentials\x12\x1f\n" +
|
|
"\vmedia_query\x18\x05 \x03(\tR\n" +
|
|
"mediaQuery\"b\n" +
|
|
"\x0fVideoCredential\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12\x1d\n" +
|
|
"\n" +
|
|
"shared_key\x18\x02 \x01(\tR\tsharedKey\x12\x14\n" +
|
|
"\x05token\x18\x03 \x01(\tR\x05tokenB!Z\x1fforge.redroom.link/yves/meowlibb\x06proto3"
|
|
|
|
var (
|
|
file_messages_proto_rawDescOnce sync.Once
|
|
file_messages_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_messages_proto_rawDescGZIP() []byte {
|
|
file_messages_proto_rawDescOnce.Do(func() {
|
|
file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc)))
|
|
})
|
|
return file_messages_proto_rawDescData
|
|
}
|
|
|
|
var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
|
var file_messages_proto_goTypes = []any{
|
|
(*PackedServerMessage)(nil), // 0: meowlib.PackedServerMessage
|
|
(*Invitation)(nil), // 1: meowlib.Invitation
|
|
(*ConversationRequest)(nil), // 2: meowlib.ConversationRequest
|
|
(*Meet)(nil), // 3: meowlib.Meet
|
|
(*Credentials)(nil), // 4: meowlib.Credentials
|
|
(*ToServerMessage)(nil), // 5: meowlib.ToServerMessage
|
|
(*FromServerMessage)(nil), // 6: meowlib.FromServerMessage
|
|
(*MatriochkaServer)(nil), // 7: meowlib.MatriochkaServer
|
|
(*Matriochka)(nil), // 8: meowlib.Matriochka
|
|
(*ServerCard)(nil), // 9: meowlib.ServerCard
|
|
(*ContactCard)(nil), // 10: meowlib.ContactCard
|
|
(*PackedUserMessage)(nil), // 11: meowlib.PackedUserMessage
|
|
(*ConversationStatus)(nil), // 12: meowlib.ConversationStatus
|
|
(*Group)(nil), // 13: meowlib.Group
|
|
(*UserMessage)(nil), // 14: meowlib.UserMessage
|
|
(*File)(nil), // 15: meowlib.File
|
|
(*Location)(nil), // 16: meowlib.Location
|
|
(*DbMessage)(nil), // 17: meowlib.DbMessage
|
|
(*VideoData)(nil), // 18: meowlib.VideoData
|
|
(*VideoCredential)(nil), // 19: meowlib.VideoCredential
|
|
}
|
|
var file_messages_proto_depIdxs = []int32{
|
|
10, // 0: meowlib.Meet.contact_card:type_name -> meowlib.ContactCard
|
|
2, // 1: meowlib.ToServerMessage.pull_request:type_name -> meowlib.ConversationRequest
|
|
11, // 2: meowlib.ToServerMessage.messages:type_name -> meowlib.PackedUserMessage
|
|
9, // 3: meowlib.ToServerMessage.known_servers:type_name -> meowlib.ServerCard
|
|
8, // 4: meowlib.ToServerMessage.matriochka_message:type_name -> meowlib.Matriochka
|
|
1, // 5: meowlib.ToServerMessage.invitation:type_name -> meowlib.Invitation
|
|
11, // 6: meowlib.ToServerMessage.device_messages:type_name -> meowlib.PackedUserMessage
|
|
18, // 7: meowlib.ToServerMessage.video_data:type_name -> meowlib.VideoData
|
|
4, // 8: meowlib.ToServerMessage.credentials:type_name -> meowlib.Credentials
|
|
11, // 9: meowlib.FromServerMessage.chat:type_name -> meowlib.PackedUserMessage
|
|
9, // 10: meowlib.FromServerMessage.known_servers:type_name -> meowlib.ServerCard
|
|
1, // 11: meowlib.FromServerMessage.invitation:type_name -> meowlib.Invitation
|
|
11, // 12: meowlib.FromServerMessage.device_messages:type_name -> meowlib.PackedUserMessage
|
|
18, // 13: meowlib.FromServerMessage.video_data:type_name -> meowlib.VideoData
|
|
10, // 14: meowlib.FromServerMessage.contact_card:type_name -> meowlib.ContactCard
|
|
7, // 15: meowlib.Matriochka.prev:type_name -> meowlib.MatriochkaServer
|
|
7, // 16: meowlib.Matriochka.next:type_name -> meowlib.MatriochkaServer
|
|
9, // 17: meowlib.ContactCard.pull_servers:type_name -> meowlib.ServerCard
|
|
10, // 18: meowlib.ConversationStatus.my_next_identity:type_name -> meowlib.ContactCard
|
|
10, // 19: meowlib.Group.members:type_name -> meowlib.ContactCard
|
|
12, // 20: meowlib.UserMessage.status:type_name -> meowlib.ConversationStatus
|
|
10, // 21: meowlib.UserMessage.contact:type_name -> meowlib.ContactCard
|
|
9, // 22: meowlib.UserMessage.knownServers:type_name -> meowlib.ServerCard
|
|
13, // 23: meowlib.UserMessage.group:type_name -> meowlib.Group
|
|
15, // 24: meowlib.UserMessage.files:type_name -> meowlib.File
|
|
16, // 25: meowlib.UserMessage.current_location:type_name -> meowlib.Location
|
|
1, // 26: meowlib.UserMessage.invitation:type_name -> meowlib.Invitation
|
|
18, // 27: meowlib.UserMessage.video_data:type_name -> meowlib.VideoData
|
|
12, // 28: meowlib.DbMessage.status:type_name -> meowlib.ConversationStatus
|
|
10, // 29: meowlib.DbMessage.contact:type_name -> meowlib.ContactCard
|
|
13, // 30: meowlib.DbMessage.group:type_name -> meowlib.Group
|
|
16, // 31: meowlib.DbMessage.current_location:type_name -> meowlib.Location
|
|
1, // 32: meowlib.DbMessage.invitation:type_name -> meowlib.Invitation
|
|
19, // 33: meowlib.VideoData.credentials:type_name -> meowlib.VideoCredential
|
|
34, // [34:34] is the sub-list for method output_type
|
|
34, // [34:34] is the sub-list for method input_type
|
|
34, // [34:34] is the sub-list for extension type_name
|
|
34, // [34:34] is the sub-list for extension extendee
|
|
0, // [0:34] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_messages_proto_init() }
|
|
func file_messages_proto_init() {
|
|
if File_messages_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 20,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_messages_proto_goTypes,
|
|
DependencyIndexes: file_messages_proto_depIdxs,
|
|
MessageInfos: file_messages_proto_msgTypes,
|
|
}.Build()
|
|
File_messages_proto = out.File
|
|
file_messages_proto_goTypes = nil
|
|
file_messages_proto_depIdxs = nil
|
|
}
|