cwtch-profile.pb.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: cwtch-profile.proto
  3. package protocol
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. type CwtchPeerPacket struct {
  12. CwtchIdentify *CwtchIdentity `protobuf:"bytes,1,opt,name=cwtch_identify,json=cwtchIdentify" json:"cwtch_identify,omitempty"`
  13. GroupChatInvite *GroupChatInvite `protobuf:"bytes,2,opt,name=group_chat_invite,json=groupChatInvite" json:"group_chat_invite,omitempty"`
  14. }
  15. func (m *CwtchPeerPacket) Reset() { *m = CwtchPeerPacket{} }
  16. func (m *CwtchPeerPacket) String() string { return proto.CompactTextString(m) }
  17. func (*CwtchPeerPacket) ProtoMessage() {}
  18. func (*CwtchPeerPacket) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  19. func (m *CwtchPeerPacket) GetCwtchIdentify() *CwtchIdentity {
  20. if m != nil {
  21. return m.CwtchIdentify
  22. }
  23. return nil
  24. }
  25. func (m *CwtchPeerPacket) GetGroupChatInvite() *GroupChatInvite {
  26. if m != nil {
  27. return m.GroupChatInvite
  28. }
  29. return nil
  30. }
  31. type CwtchIdentity struct {
  32. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  33. Ed25519PublicKey []byte `protobuf:"bytes,2,opt,name=ed25519_public_key,json=ed25519PublicKey,proto3" json:"ed25519_public_key,omitempty"`
  34. }
  35. func (m *CwtchIdentity) Reset() { *m = CwtchIdentity{} }
  36. func (m *CwtchIdentity) String() string { return proto.CompactTextString(m) }
  37. func (*CwtchIdentity) ProtoMessage() {}
  38. func (*CwtchIdentity) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
  39. func (m *CwtchIdentity) GetName() string {
  40. if m != nil {
  41. return m.Name
  42. }
  43. return ""
  44. }
  45. func (m *CwtchIdentity) GetEd25519PublicKey() []byte {
  46. if m != nil {
  47. return m.Ed25519PublicKey
  48. }
  49. return nil
  50. }
  51. // [name] has invited you to join a group chat: [message]
  52. type GroupChatInvite struct {
  53. GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
  54. GroupSharedKey []byte `protobuf:"bytes,2,opt,name=group_shared_key,json=groupSharedKey,proto3" json:"group_shared_key,omitempty"`
  55. ServerHost string `protobuf:"bytes,3,opt,name=server_host,json=serverHost" json:"server_host,omitempty"`
  56. SignedGroupId []byte `protobuf:"bytes,4,opt,name=signed_group_id,json=signedGroupId,proto3" json:"signed_group_id,omitempty"`
  57. }
  58. func (m *GroupChatInvite) Reset() { *m = GroupChatInvite{} }
  59. func (m *GroupChatInvite) String() string { return proto.CompactTextString(m) }
  60. func (*GroupChatInvite) ProtoMessage() {}
  61. func (*GroupChatInvite) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
  62. func (m *GroupChatInvite) GetGroupName() string {
  63. if m != nil {
  64. return m.GroupName
  65. }
  66. return ""
  67. }
  68. func (m *GroupChatInvite) GetGroupSharedKey() []byte {
  69. if m != nil {
  70. return m.GroupSharedKey
  71. }
  72. return nil
  73. }
  74. func (m *GroupChatInvite) GetServerHost() string {
  75. if m != nil {
  76. return m.ServerHost
  77. }
  78. return ""
  79. }
  80. func (m *GroupChatInvite) GetSignedGroupId() []byte {
  81. if m != nil {
  82. return m.SignedGroupId
  83. }
  84. return nil
  85. }
  86. func init() {
  87. proto.RegisterType((*CwtchPeerPacket)(nil), "protocol.CwtchPeerPacket")
  88. proto.RegisterType((*CwtchIdentity)(nil), "protocol.CwtchIdentity")
  89. proto.RegisterType((*GroupChatInvite)(nil), "protocol.GroupChatInvite")
  90. }
  91. func init() { proto.RegisterFile("cwtch-profile.proto", fileDescriptor1) }
  92. var fileDescriptor1 = []byte{
  93. // 299 bytes of a gzipped FileDescriptorProto
  94. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xc1, 0x4a, 0xf3, 0x40,
  95. 0x14, 0x85, 0xc9, 0xff, 0x17, 0xb1, 0xb7, 0xb6, 0xa9, 0xe3, 0xc2, 0xb8, 0x10, 0xa5, 0x0b, 0xe9,
  96. 0x42, 0x0b, 0x56, 0xba, 0x70, 0xe3, 0xa6, 0x88, 0x86, 0x82, 0xc4, 0xf8, 0x00, 0x43, 0x3a, 0x73,
  97. 0x93, 0x0c, 0x8d, 0x99, 0x30, 0x99, 0x56, 0xe6, 0x4d, 0xdc, 0xfb, 0xa2, 0x92, 0x1b, 0xa5, 0xad,
  98. 0xab, 0x99, 0x39, 0xe7, 0xde, 0xef, 0x1c, 0x06, 0x4e, 0xc4, 0x87, 0x15, 0xf9, 0x4d, 0x65, 0x74,
  99. 0xaa, 0x0a, 0x9c, 0x54, 0x46, 0x5b, 0xcd, 0x0e, 0xe9, 0x10, 0xba, 0x18, 0x7d, 0x7a, 0xe0, 0xcf,
  100. 0x9b, 0x89, 0x08, 0xd1, 0x44, 0x89, 0x58, 0xa1, 0x65, 0x0f, 0x30, 0xa0, 0x25, 0xae, 0x24, 0x96,
  101. 0x56, 0xa5, 0x2e, 0xf0, 0x2e, 0xbd, 0x71, 0x6f, 0x7a, 0x3a, 0xf9, 0x5d, 0x9b, 0xd0, 0x4a, 0x48,
  102. 0xb6, 0x75, 0x71, 0x5f, 0x6c, 0x9f, 0xa9, 0x63, 0x8f, 0x70, 0x9c, 0x19, 0xbd, 0xae, 0xb8, 0xc8,
  103. 0x13, 0xcb, 0x55, 0xb9, 0x51, 0x16, 0x83, 0x7f, 0x84, 0x38, 0xdb, 0x22, 0x9e, 0x9a, 0x91, 0x79,
  104. 0x9e, 0xd8, 0x90, 0x06, 0x62, 0x3f, 0xdb, 0x17, 0x46, 0xaf, 0xd0, 0xdf, 0x8b, 0x61, 0x0c, 0x3a,
  105. 0x65, 0xf2, 0x8e, 0xd4, 0xa6, 0x1b, 0xd3, 0x9d, 0x5d, 0x03, 0x43, 0x39, 0x9d, 0xcd, 0x6e, 0xef,
  106. 0x79, 0xb5, 0x5e, 0x16, 0x4a, 0xf0, 0x15, 0x3a, 0x0a, 0x3b, 0x8a, 0x87, 0x3f, 0x4e, 0x44, 0xc6,
  107. 0x02, 0xdd, 0xe8, 0xcb, 0x03, 0xff, 0x4f, 0x2e, 0x3b, 0x07, 0x68, 0xdb, 0xee, 0xb0, 0xbb, 0xa4,
  108. 0xbc, 0x34, 0x01, 0x63, 0x18, 0xb6, 0x76, 0x9d, 0x27, 0x06, 0xe5, 0x0e, 0x7e, 0x40, 0xfa, 0x1b,
  109. 0xc9, 0x0b, 0x74, 0xec, 0x02, 0x7a, 0x35, 0x9a, 0x0d, 0x1a, 0x9e, 0xeb, 0xda, 0x06, 0xff, 0x89,
  110. 0x04, 0xad, 0xf4, 0xac, 0x6b, 0xcb, 0xae, 0xc0, 0xaf, 0x55, 0x56, 0xa2, 0xe4, 0x2d, 0x51, 0xc9,
  111. 0xa0, 0x43, 0xa4, 0x7e, 0x2b, 0x53, 0xb3, 0x50, 0x2e, 0x0f, 0xe8, 0x8f, 0xee, 0xbe, 0x03, 0x00,
  112. 0x00, 0xff, 0xff, 0x62, 0x61, 0x2d, 0x00, 0xbb, 0x01, 0x00, 0x00,
  113. }