forked from cwtch.im/cwtch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
5.3 KiB
134 lines
5.3 KiB
// 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"`
|
|
SignedGroupId []byte `protobuf:"bytes,4,opt,name=signed_group_id,json=signedGroupId,proto3" json:"signed_group_id,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 (m *GroupChatInvite) GetSignedGroupId() []byte {
|
|
if m != nil {
|
|
return m.SignedGroupId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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{
|
|
// 299 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xc1, 0x4a, 0xf3, 0x40,
|
|
0x14, 0x85, 0xc9, 0xff, 0x17, 0xb1, 0xb7, 0xb6, 0xa9, 0xe3, 0xc2, 0xb8, 0x10, 0xa5, 0x0b, 0xe9,
|
|
0x42, 0x0b, 0x56, 0xba, 0x70, 0xe3, 0xa6, 0x88, 0x86, 0x82, 0xc4, 0xf8, 0x00, 0x43, 0x3a, 0x73,
|
|
0x93, 0x0c, 0x8d, 0x99, 0x30, 0x99, 0x56, 0xe6, 0x4d, 0xdc, 0xfb, 0xa2, 0x92, 0x1b, 0xa5, 0xad,
|
|
0xab, 0x99, 0x39, 0xe7, 0xde, 0xef, 0x1c, 0x06, 0x4e, 0xc4, 0x87, 0x15, 0xf9, 0x4d, 0x65, 0x74,
|
|
0xaa, 0x0a, 0x9c, 0x54, 0x46, 0x5b, 0xcd, 0x0e, 0xe9, 0x10, 0xba, 0x18, 0x7d, 0x7a, 0xe0, 0xcf,
|
|
0x9b, 0x89, 0x08, 0xd1, 0x44, 0x89, 0x58, 0xa1, 0x65, 0x0f, 0x30, 0xa0, 0x25, 0xae, 0x24, 0x96,
|
|
0x56, 0xa5, 0x2e, 0xf0, 0x2e, 0xbd, 0x71, 0x6f, 0x7a, 0x3a, 0xf9, 0x5d, 0x9b, 0xd0, 0x4a, 0x48,
|
|
0xb6, 0x75, 0x71, 0x5f, 0x6c, 0x9f, 0xa9, 0x63, 0x8f, 0x70, 0x9c, 0x19, 0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