Official cwtch.im peer and server implementations. https://cwtch.im
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.

cwtch-profile.pb.go 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: cwtch-profile.proto
  3. /*
  4. Package protocol is a generated protocol buffer package.
  5. It is generated from these files:
  6. cwtch-profile.proto
  7. It has these top-level messages:
  8. CwtchPeerPacket
  9. CwtchIdentity
  10. GroupChatInvite
  11. */
  12. package protocol
  13. import proto "github.com/golang/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  25. type CwtchPeerPacket struct {
  26. CwtchIdentify *CwtchIdentity `protobuf:"bytes,1,opt,name=cwtch_identify,json=cwtchIdentify" json:"cwtch_identify,omitempty"`
  27. GroupChatInvite *GroupChatInvite `protobuf:"bytes,2,opt,name=group_chat_invite,json=groupChatInvite" json:"group_chat_invite,omitempty"`
  28. }
  29. func (m *CwtchPeerPacket) Reset() { *m = CwtchPeerPacket{} }
  30. func (m *CwtchPeerPacket) String() string { return proto.CompactTextString(m) }
  31. func (*CwtchPeerPacket) ProtoMessage() {}
  32. func (*CwtchPeerPacket) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  33. func (m *CwtchPeerPacket) GetCwtchIdentify() *CwtchIdentity {
  34. if m != nil {
  35. return m.CwtchIdentify
  36. }
  37. return nil
  38. }
  39. func (m *CwtchPeerPacket) GetGroupChatInvite() *GroupChatInvite {
  40. if m != nil {
  41. return m.GroupChatInvite
  42. }
  43. return nil
  44. }
  45. type CwtchIdentity struct {
  46. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  47. Ed25519PublicKey []byte `protobuf:"bytes,2,opt,name=ed25519_public_key,json=ed25519PublicKey,proto3" json:"ed25519_public_key,omitempty"`
  48. }
  49. func (m *CwtchIdentity) Reset() { *m = CwtchIdentity{} }
  50. func (m *CwtchIdentity) String() string { return proto.CompactTextString(m) }
  51. func (*CwtchIdentity) ProtoMessage() {}
  52. func (*CwtchIdentity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  53. func (m *CwtchIdentity) GetName() string {
  54. if m != nil {
  55. return m.Name
  56. }
  57. return ""
  58. }
  59. func (m *CwtchIdentity) GetEd25519PublicKey() []byte {
  60. if m != nil {
  61. return m.Ed25519PublicKey
  62. }
  63. return nil
  64. }
  65. // [name] has invited you to join a group chat: [message]
  66. type GroupChatInvite struct {
  67. GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
  68. GroupSharedKey []byte `protobuf:"bytes,2,opt,name=group_shared_key,json=groupSharedKey,proto3" json:"group_shared_key,omitempty"`
  69. ServerHost string `protobuf:"bytes,3,opt,name=server_host,json=serverHost" json:"server_host,omitempty"`
  70. SignedGroupId []byte `protobuf:"bytes,4,opt,name=signed_group_id,json=signedGroupId,proto3" json:"signed_group_id,omitempty"`
  71. InitialMessage []byte `protobuf:"bytes,5,opt,name=initial_message,json=initialMessage,proto3" json:"initial_message,omitempty"`
  72. }
  73. func (m *GroupChatInvite) Reset() { *m = GroupChatInvite{} }
  74. func (m *GroupChatInvite) String() string { return proto.CompactTextString(m) }
  75. func (*GroupChatInvite) ProtoMessage() {}
  76. func (*GroupChatInvite) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  77. func (m *GroupChatInvite) GetGroupName() string {
  78. if m != nil {
  79. return m.GroupName
  80. }
  81. return ""
  82. }
  83. func (m *GroupChatInvite) GetGroupSharedKey() []byte {
  84. if m != nil {
  85. return m.GroupSharedKey
  86. }
  87. return nil
  88. }
  89. func (m *GroupChatInvite) GetServerHost() string {
  90. if m != nil {
  91. return m.ServerHost
  92. }
  93. return ""
  94. }
  95. func (m *GroupChatInvite) GetSignedGroupId() []byte {
  96. if m != nil {
  97. return m.SignedGroupId
  98. }
  99. return nil
  100. }
  101. func (m *GroupChatInvite) GetInitialMessage() []byte {
  102. if m != nil {
  103. return m.InitialMessage
  104. }
  105. return nil
  106. }
  107. func init() {
  108. proto.RegisterType((*CwtchPeerPacket)(nil), "protocol.CwtchPeerPacket")
  109. proto.RegisterType((*CwtchIdentity)(nil), "protocol.CwtchIdentity")
  110. proto.RegisterType((*GroupChatInvite)(nil), "protocol.GroupChatInvite")
  111. }
  112. func init() { proto.RegisterFile("cwtch-profile.proto", fileDescriptor0) }