125 lines
5.0 KiB
Go
125 lines
5.0 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: cwtch-profile.proto
|
||
|
|
||
|
package protocol
|
||
|
|
||
|
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 CwtchPeerPacket struct {
|
||
|
CwtchIdentify *CwtchIdentity `protobuf:"bytes,1,opt,name=cwtch_identify,json=cwtchIdentify" json:"cwtch_identify,omitempty"`
|
||
|
GroupChatInvite *GroupChatInvite `protobuf:"bytes,2,opt,name=group_chat_invite,json=groupChatInvite" json:"group_chat_invite,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *CwtchPeerPacket) Reset() { *m = CwtchPeerPacket{} }
|
||
|
func (m *CwtchPeerPacket) String() string { return proto.CompactTextString(m) }
|
||
|
func (*CwtchPeerPacket) ProtoMessage() {}
|
||
|
func (*CwtchPeerPacket) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||
|
|
||
|
func (m *CwtchPeerPacket) GetCwtchIdentify() *CwtchIdentity {
|
||
|
if m != nil {
|
||
|
return m.CwtchIdentify
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *CwtchPeerPacket) GetGroupChatInvite() *GroupChatInvite {
|
||
|
if m != nil {
|
||
|
return m.GroupChatInvite
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type CwtchIdentity struct {
|
||
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||
|
Ed25519PublicKey []byte `protobuf:"bytes,2,opt,name=ed25519_public_key,json=ed25519PublicKey,proto3" json:"ed25519_public_key,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *CwtchIdentity) Reset() { *m = CwtchIdentity{} }
|
||
|
func (m *CwtchIdentity) String() string { return proto.CompactTextString(m) }
|
||
|
func (*CwtchIdentity) ProtoMessage() {}
|
||
|
func (*CwtchIdentity) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
||
|
|
||
|
func (m *CwtchIdentity) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *CwtchIdentity) GetEd25519PublicKey() []byte {
|
||
|
if m != nil {
|
||
|
return m.Ed25519PublicKey
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// [name] has invited you to join a group chat: [message]
|
||
|
type GroupChatInvite struct {
|
||
|
GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
|
||
|
GroupSharedKey []byte `protobuf:"bytes,2,opt,name=group_shared_key,json=groupSharedKey,proto3" json:"group_shared_key,omitempty"`
|
||
|
ServerHost string `protobuf:"bytes,3,opt,name=server_host,json=serverHost" json:"server_host,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *GroupChatInvite) Reset() { *m = GroupChatInvite{} }
|
||
|
func (m *GroupChatInvite) String() string { return proto.CompactTextString(m) }
|
||
|
func (*GroupChatInvite) ProtoMessage() {}
|
||
|
func (*GroupChatInvite) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
|
||
|
|
||
|
func (m *GroupChatInvite) GetGroupName() string {
|
||
|
if m != nil {
|
||
|
return m.GroupName
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *GroupChatInvite) GetGroupSharedKey() []byte {
|
||
|
if m != nil {
|
||
|
return m.GroupSharedKey
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *GroupChatInvite) GetServerHost() string {
|
||
|
if m != nil {
|
||
|
return m.ServerHost
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*CwtchPeerPacket)(nil), "protocol.CwtchPeerPacket")
|
||
|
proto.RegisterType((*CwtchIdentity)(nil), "protocol.CwtchIdentity")
|
||
|
proto.RegisterType((*GroupChatInvite)(nil), "protocol.GroupChatInvite")
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("cwtch-profile.proto", fileDescriptor1) }
|
||
|
|
||
|
var fileDescriptor1 = []byte{
|
||
|
// 276 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0xcd, 0x4e, 0xc3, 0x30,
|
||
|
0x10, 0x84, 0x15, 0x40, 0x88, 0x6e, 0x69, 0x53, 0xcc, 0x81, 0x70, 0x40, 0xa0, 0x9c, 0x7a, 0x80,
|
||
|
0x48, 0x14, 0xf5, 0xc0, 0x85, 0x4b, 0x85, 0xa0, 0xaa, 0x84, 0x42, 0x78, 0x00, 0x2b, 0x75, 0x36,
|
||
|
0xb5, 0xd5, 0x10, 0x47, 0x8e, 0x5b, 0x64, 0xf1, 0x22, 0x3c, 0x2e, 0xca, 0x06, 0xd4, 0x9f, 0x93,
|
||
|
0xed, 0x99, 0x9d, 0x6f, 0xd6, 0x70, 0x2e, 0xbe, 0xac, 0x90, 0x77, 0x95, 0xd1, 0xb9, 0x2a, 0x30,
|
||
|
0xaa, 0x8c, 0xb6, 0x9a, 0x9d, 0xd0, 0x21, 0x74, 0x11, 0xfe, 0x78, 0xe0, 0x4f, 0x9a, 0x89, 0x18,
|
||
|
0xd1, 0xc4, 0xa9, 0x58, 0xa2, 0x65, 0x4f, 0xd0, 0xa7, 0x10, 0x57, 0x19, 0x96, 0x56, 0xe5, 0x2e,
|
||
|
0xf0, 0x6e, 0xbc, 0x61, 0x77, 0x74, 0x11, 0xfd, 0xc7, 0x22, 0x8a, 0x4c, 0xc9, 0xb6, 0x2e, 0xe9,
|
||
|
0x89, 0xcd, 0x33, 0x77, 0xec, 0x19, 0xce, 0x16, 0x46, 0x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