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

group_message.pb.go 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: group_message.proto
  3. package protocol
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import control "git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. type CwtchServerPacket struct {
  13. GroupMessage *GroupMessage `protobuf:"bytes,1,opt,name=group_message,json=groupMessage" json:"group_message,omitempty"`
  14. FetchMessage *FetchMessage `protobuf:"bytes,2,opt,name=fetch_message,json=fetchMessage" json:"fetch_message,omitempty"`
  15. XXX_unrecognized []byte `json:"-"`
  16. }
  17. func (m *CwtchServerPacket) Reset() { *m = CwtchServerPacket{} }
  18. func (m *CwtchServerPacket) String() string { return proto.CompactTextString(m) }
  19. func (*CwtchServerPacket) ProtoMessage() {}
  20. func (*CwtchServerPacket) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
  21. func (m *CwtchServerPacket) GetGroupMessage() *GroupMessage {
  22. if m != nil {
  23. return m.GroupMessage
  24. }
  25. return nil
  26. }
  27. func (m *CwtchServerPacket) GetFetchMessage() *FetchMessage {
  28. if m != nil {
  29. return m.FetchMessage
  30. }
  31. return nil
  32. }
  33. type FetchMessage struct {
  34. XXX_unrecognized []byte `json:"-"`
  35. }
  36. func (m *FetchMessage) Reset() { *m = FetchMessage{} }
  37. func (m *FetchMessage) String() string { return proto.CompactTextString(m) }
  38. func (*FetchMessage) ProtoMessage() {}
  39. func (*FetchMessage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
  40. type GroupMessage struct {
  41. Ciphertext []byte `protobuf:"bytes,1,req,name=ciphertext" json:"ciphertext,omitempty"`
  42. Spamguard []byte `protobuf:"bytes,2,req,name=spamguard" json:"spamguard,omitempty"`
  43. Signature []byte `protobuf:"bytes,3,req,name=signature" json:"signature,omitempty"`
  44. XXX_unrecognized []byte `json:"-"`
  45. }
  46. func (m *GroupMessage) Reset() { *m = GroupMessage{} }
  47. func (m *GroupMessage) String() string { return proto.CompactTextString(m) }
  48. func (*GroupMessage) ProtoMessage() {}
  49. func (*GroupMessage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
  50. func (m *GroupMessage) GetCiphertext() []byte {
  51. if m != nil {
  52. return m.Ciphertext
  53. }
  54. return nil
  55. }
  56. func (m *GroupMessage) GetSpamguard() []byte {
  57. if m != nil {
  58. return m.Spamguard
  59. }
  60. return nil
  61. }
  62. func (m *GroupMessage) GetSignature() []byte {
  63. if m != nil {
  64. return m.Signature
  65. }
  66. return nil
  67. }
  68. // DecryptedGroupMessage is *never* sent in the clear on the wire
  69. // and is only ever sent when encrypted in the ciphertext parameter of
  70. // GroupMessage
  71. type DecryptedGroupMessage struct {
  72. Onion *string `protobuf:"bytes,1,req,name=onion" json:"onion,omitempty"`
  73. Timestamp *int32 `protobuf:"varint,2,req,name=timestamp" json:"timestamp,omitempty"`
  74. Text *string `protobuf:"bytes,3,req,name=text" json:"text,omitempty"`
  75. SignedGroupId []byte `protobuf:"bytes,4,req,name=signed_group_id,json=signedGroupId" json:"signed_group_id,omitempty"`
  76. PreviousMessageSig []byte `protobuf:"bytes,5,req,name=previous_message_sig,json=previousMessageSig" json:"previous_message_sig,omitempty"`
  77. // Used to prevent analysis on text length, length is 1024 - len(text)
  78. Padding []byte `protobuf:"bytes,6,req,name=padding" json:"padding,omitempty"`
  79. XXX_unrecognized []byte `json:"-"`
  80. }
  81. func (m *DecryptedGroupMessage) Reset() { *m = DecryptedGroupMessage{} }
  82. func (m *DecryptedGroupMessage) String() string { return proto.CompactTextString(m) }
  83. func (*DecryptedGroupMessage) ProtoMessage() {}
  84. func (*DecryptedGroupMessage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
  85. func (m *DecryptedGroupMessage) GetOnion() string {
  86. if m != nil && m.Onion != nil {
  87. return *m.Onion
  88. }
  89. return ""
  90. }
  91. func (m *DecryptedGroupMessage) GetTimestamp() int32 {
  92. if m != nil && m.Timestamp != nil {
  93. return *m.Timestamp
  94. }
  95. return 0
  96. }
  97. func (m *DecryptedGroupMessage) GetText() string {
  98. if m != nil && m.Text != nil {
  99. return *m.Text
  100. }
  101. return ""
  102. }
  103. func (m *DecryptedGroupMessage) GetSignedGroupId() []byte {
  104. if m != nil {
  105. return m.SignedGroupId
  106. }
  107. return nil
  108. }
  109. func (m *DecryptedGroupMessage) GetPreviousMessageSig() []byte {
  110. if m != nil {
  111. return m.PreviousMessageSig
  112. }
  113. return nil
  114. }
  115. func (m *DecryptedGroupMessage) GetPadding() []byte {
  116. if m != nil {
  117. return m.Padding
  118. }
  119. return nil
  120. }
  121. var E_ServerNonce = &proto.ExtensionDesc{
  122. ExtendedType: (*control.ChannelResult)(nil),
  123. ExtensionType: ([]byte)(nil),
  124. Field: 8200,
  125. Name: "protocol.server_nonce",
  126. Tag: "bytes,8200,opt,name=server_nonce,json=serverNonce",
  127. Filename: "group_message.proto",
  128. }
  129. func init() {
  130. proto.RegisterType((*CwtchServerPacket)(nil), "protocol.CwtchServerPacket")
  131. proto.RegisterType((*FetchMessage)(nil), "protocol.FetchMessage")
  132. proto.RegisterType((*GroupMessage)(nil), "protocol.GroupMessage")
  133. proto.RegisterType((*DecryptedGroupMessage)(nil), "protocol.DecryptedGroupMessage")
  134. proto.RegisterExtension(E_ServerNonce)
  135. }
  136. func init() { proto.RegisterFile("group_message.proto", fileDescriptor2) }
  137. var fileDescriptor2 = []byte{
  138. // 360 bytes of a gzipped FileDescriptorProto
  139. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x4d, 0x6e, 0xdb, 0x30,
  140. 0x10, 0x85, 0x21, 0xff, 0xb4, 0xf5, 0x58, 0x6e, 0x51, 0xd6, 0x6d, 0x89, 0xa2, 0x28, 0x0c, 0x2d,
  141. 0x0a, 0xaf, 0x8c, 0x20, 0xcb, 0x78, 0x13, 0xc0, 0x41, 0x82, 0x2c, 0x12, 0x04, 0xf2, 0x01, 0x04,
  142. 0x42, 0x1a, 0x53, 0x4c, 0x24, 0x92, 0x20, 0x29, 0x27, 0xb9, 0x41, 0x36, 0x39, 0x5d, 0x2e, 0x14,
  143. 0x88, 0xb2, 0x6c, 0x39, 0x2b, 0x69, 0xde, 0x37, 0x6f, 0xde, 0x80, 0x24, 0xfc, 0xe0, 0x46, 0x55,
  144. 0x3a, 0x29, 0xd1, 0x5a, 0xc6, 0x71, 0xa1, 0x8d, 0x72, 0x8a, 0x7c, 0xf1, 0x9f, 0x54, 0x15, 0x7f,
  145. 0xa6, 0x2b, 0x25, 0x9d, 0x51, 0xc5, 0x2a, 0x67, 0x52, 0x62, 0xd1, 0xf0, 0xe8, 0x35, 0x80, 0xef,
  146. 0xab, 0x47, 0x97, 0xe6, 0x6b, 0x34, 0x5b, 0x34, 0x77, 0x2c, 0x7d, 0x40, 0x47, 0x96, 0x30, 0x39,
  147. 0x1a, 0x46, 0x83, 0x59, 0x30, 0x1f, 0x9f, 0xfe, 0x5a, 0xb4, 0xd3, 0x16, 0x57, 0x35, 0xbe, 0x69,
  148. 0x68, 0x1c, 0xf2, 0x4e, 0x55, 0x9b, 0x37, 0xe8, 0xd2, 0x7c, 0x6f, 0xee, 0x7d, 0x34, 0x5f, 0xd6,
  149. 0x78, 0x6f, 0xde, 0x74, 0xaa, 0xe8, 0x2b, 0x84, 0x5d, 0x1a, 0xdd, 0x43, 0xd8, 0x8d, 0x22, 0xff,
  150. 0x00, 0x52, 0xa1, 0x73, 0x34, 0x0e, 0x9f, 0x1c, 0x0d, 0x66, 0xbd, 0x79, 0x18, 0x77, 0x14, 0xf2,
  151. 0x17, 0x46, 0x56, 0xb3, 0x92, 0x57, 0xcc, 0x64, 0xb4, 0xe7, 0xf1, 0x41, 0xf0, 0x54, 0x70, 0xc9,
  152. 0x5c, 0x65, 0x90, 0xf6, 0x77, 0xb4, 0x15, 0xa2, 0xb7, 0x00, 0x7e, 0x5e, 0x60, 0x6a, 0x9e, 0xb5,
  153. 0xc3, 0xec, 0x28, 0x75, 0x0a, 0x43, 0x25, 0x85, 0x92, 0x3e, 0x70, 0x14, 0x37, 0x45, 0x3d, 0xcd,
  154. 0x89, 0x12, 0xad, 0x63, 0xa5, 0xf6, 0x59, 0xc3, 0xf8, 0x20, 0x10, 0x02, 0x03, 0xbf, 0x63, 0xdf,
  155. 0x5b, 0xfc, 0x3f, 0xf9, 0x0f, 0xdf, 0xea, 0x38, 0xcc, 0x92, 0xe6, 0x78, 0x45, 0x46, 0x07, 0x7e,
  156. 0x8b, 0x49, 0x23, 0xfb, 0xd0, 0xeb, 0x8c, 0x9c, 0xc0, 0x54, 0x1b, 0xdc, 0x0a, 0x55, 0xd9, 0xf6,
  157. 0x14, 0x13, 0x2b, 0x38, 0x1d, 0xfa, 0x66, 0xd2, 0xb2, 0xdd, 0x7a, 0x6b, 0xc1, 0x09, 0x85, 0xcf,
  158. 0x9a, 0x65, 0x99, 0x90, 0x9c, 0x7e, 0xf2, 0x4d, 0x6d, 0x79, 0xb6, 0x84, 0xd0, 0xfa, 0xbb, 0x4d,
  159. 0xa4, 0x92, 0x29, 0x92, 0xdf, 0x87, 0x7b, 0xd8, 0x3d, 0x85, 0x18, 0x6d, 0x55, 0x38, 0xfa, 0x72,
  160. 0x3e, 0x0b, 0xe6, 0x61, 0x3c, 0x6e, 0xba, 0x6f, 0xeb, 0xe6, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff,
  161. 0x33, 0x30, 0xca, 0x8b, 0x54, 0x02, 0x00, 0x00,
  162. }