ControlChannel.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: ControlChannel.proto
  3. /*
  4. Package protocol is a generated protocol buffer package.
  5. It is generated from these files:
  6. ControlChannel.proto
  7. cwtch-profile.proto
  8. group_message.proto
  9. It has these top-level messages:
  10. Packet
  11. OpenChannel
  12. ChannelResult
  13. KeepAlive
  14. EnableFeatures
  15. FeaturesEnabled
  16. CwtchPeerPacket
  17. CwtchIdentity
  18. GroupChatInvite
  19. CwtchServerPacket
  20. FetchMessage
  21. GroupMessage
  22. DecryptedGroupMessage
  23. */
  24. package protocol
  25. import proto "github.com/golang/protobuf/proto"
  26. import fmt "fmt"
  27. import math "math"
  28. // Reference imports to suppress errors if they are not otherwise used.
  29. var _ = proto.Marshal
  30. var _ = fmt.Errorf
  31. var _ = math.Inf
  32. // This is a compile-time assertion to ensure that this generated file
  33. // is compatible with the proto package it is being compiled against.
  34. // A compilation error at this line likely means your copy of the
  35. // proto package needs to be updated.
  36. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  37. type ChannelResult_CommonError int32
  38. const (
  39. ChannelResult_GenericError ChannelResult_CommonError = 0
  40. ChannelResult_UnknownTypeError ChannelResult_CommonError = 1
  41. ChannelResult_UnauthorizedError ChannelResult_CommonError = 2
  42. ChannelResult_BadUsageError ChannelResult_CommonError = 3
  43. ChannelResult_FailedError ChannelResult_CommonError = 4
  44. )
  45. var ChannelResult_CommonError_name = map[int32]string{
  46. 0: "GenericError",
  47. 1: "UnknownTypeError",
  48. 2: "UnauthorizedError",
  49. 3: "BadUsageError",
  50. 4: "FailedError",
  51. }
  52. var ChannelResult_CommonError_value = map[string]int32{
  53. "GenericError": 0,
  54. "UnknownTypeError": 1,
  55. "UnauthorizedError": 2,
  56. "BadUsageError": 3,
  57. "FailedError": 4,
  58. }
  59. func (x ChannelResult_CommonError) Enum() *ChannelResult_CommonError {
  60. p := new(ChannelResult_CommonError)
  61. *p = x
  62. return p
  63. }
  64. func (x ChannelResult_CommonError) String() string {
  65. return proto.EnumName(ChannelResult_CommonError_name, int32(x))
  66. }
  67. func (x *ChannelResult_CommonError) UnmarshalJSON(data []byte) error {
  68. value, err := proto.UnmarshalJSONEnum(ChannelResult_CommonError_value, data, "ChannelResult_CommonError")
  69. if err != nil {
  70. return err
  71. }
  72. *x = ChannelResult_CommonError(value)
  73. return nil
  74. }
  75. func (ChannelResult_CommonError) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
  76. type Packet struct {
  77. // Must contain exactly one field
  78. OpenChannel *OpenChannel `protobuf:"bytes,1,opt,name=open_channel,json=openChannel" json:"open_channel,omitempty"`
  79. ChannelResult *ChannelResult `protobuf:"bytes,2,opt,name=channel_result,json=channelResult" json:"channel_result,omitempty"`
  80. KeepAlive *KeepAlive `protobuf:"bytes,3,opt,name=keep_alive,json=keepAlive" json:"keep_alive,omitempty"`
  81. EnableFeatures *EnableFeatures `protobuf:"bytes,4,opt,name=enable_features,json=enableFeatures" json:"enable_features,omitempty"`
  82. FeaturesEnabled *FeaturesEnabled `protobuf:"bytes,5,opt,name=features_enabled,json=featuresEnabled" json:"features_enabled,omitempty"`
  83. XXX_unrecognized []byte `json:"-"`
  84. }
  85. func (m *Packet) Reset() { *m = Packet{} }
  86. func (m *Packet) String() string { return proto.CompactTextString(m) }
  87. func (*Packet) ProtoMessage() {}
  88. func (*Packet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  89. func (m *Packet) GetOpenChannel() *OpenChannel {
  90. if m != nil {
  91. return m.OpenChannel
  92. }
  93. return nil
  94. }
  95. func (m *Packet) GetChannelResult() *ChannelResult {
  96. if m != nil {
  97. return m.ChannelResult
  98. }
  99. return nil
  100. }
  101. func (m *Packet) GetKeepAlive() *KeepAlive {
  102. if m != nil {
  103. return m.KeepAlive
  104. }
  105. return nil
  106. }
  107. func (m *Packet) GetEnableFeatures() *EnableFeatures {
  108. if m != nil {
  109. return m.EnableFeatures
  110. }
  111. return nil
  112. }
  113. func (m *Packet) GetFeaturesEnabled() *FeaturesEnabled {
  114. if m != nil {
  115. return m.FeaturesEnabled
  116. }
  117. return nil
  118. }
  119. type OpenChannel struct {
  120. ChannelIdentifier *int32 `protobuf:"varint,1,req,name=channel_identifier,json=channelIdentifier" json:"channel_identifier,omitempty"`
  121. ChannelType *string `protobuf:"bytes,2,req,name=channel_type,json=channelType" json:"channel_type,omitempty"`
  122. proto.XXX_InternalExtensions `json:"-"`
  123. XXX_unrecognized []byte `json:"-"`
  124. }
  125. func (m *OpenChannel) Reset() { *m = OpenChannel{} }
  126. func (m *OpenChannel) String() string { return proto.CompactTextString(m) }
  127. func (*OpenChannel) ProtoMessage() {}
  128. func (*OpenChannel) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  129. var extRange_OpenChannel = []proto.ExtensionRange{
  130. {Start: 100, End: 536870911},
  131. }
  132. func (*OpenChannel) ExtensionRangeArray() []proto.ExtensionRange {
  133. return extRange_OpenChannel
  134. }
  135. func (m *OpenChannel) GetChannelIdentifier() int32 {
  136. if m != nil && m.ChannelIdentifier != nil {
  137. return *m.ChannelIdentifier
  138. }
  139. return 0
  140. }
  141. func (m *OpenChannel) GetChannelType() string {
  142. if m != nil && m.ChannelType != nil {
  143. return *m.ChannelType
  144. }
  145. return ""
  146. }
  147. type ChannelResult struct {
  148. ChannelIdentifier *int32 `protobuf:"varint,1,req,name=channel_identifier,json=channelIdentifier" json:"channel_identifier,omitempty"`
  149. Opened *bool `protobuf:"varint,2,req,name=opened" json:"opened,omitempty"`
  150. CommonError *ChannelResult_CommonError `protobuf:"varint,3,opt,name=common_error,json=commonError,enum=protocol.ChannelResult_CommonError" json:"common_error,omitempty"`
  151. proto.XXX_InternalExtensions `json:"-"`
  152. XXX_unrecognized []byte `json:"-"`
  153. }
  154. func (m *ChannelResult) Reset() { *m = ChannelResult{} }
  155. func (m *ChannelResult) String() string { return proto.CompactTextString(m) }
  156. func (*ChannelResult) ProtoMessage() {}
  157. func (*ChannelResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  158. var extRange_ChannelResult = []proto.ExtensionRange{
  159. {Start: 100, End: 536870911},
  160. }
  161. func (*ChannelResult) ExtensionRangeArray() []proto.ExtensionRange {
  162. return extRange_ChannelResult
  163. }
  164. func (m *ChannelResult) GetChannelIdentifier() int32 {
  165. if m != nil && m.ChannelIdentifier != nil {
  166. return *m.ChannelIdentifier
  167. }
  168. return 0
  169. }
  170. func (m *ChannelResult) GetOpened() bool {
  171. if m != nil && m.Opened != nil {
  172. return *m.Opened
  173. }
  174. return false
  175. }
  176. func (m *ChannelResult) GetCommonError() ChannelResult_CommonError {
  177. if m != nil && m.CommonError != nil {
  178. return *m.CommonError
  179. }
  180. return ChannelResult_GenericError
  181. }
  182. type KeepAlive struct {
  183. ResponseRequested *bool `protobuf:"varint,1,req,name=response_requested,json=responseRequested" json:"response_requested,omitempty"`
  184. XXX_unrecognized []byte `json:"-"`
  185. }
  186. func (m *KeepAlive) Reset() { *m = KeepAlive{} }
  187. func (m *KeepAlive) String() string { return proto.CompactTextString(m) }
  188. func (*KeepAlive) ProtoMessage() {}
  189. func (*KeepAlive) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  190. func (m *KeepAlive) GetResponseRequested() bool {
  191. if m != nil && m.ResponseRequested != nil {
  192. return *m.ResponseRequested
  193. }
  194. return false
  195. }
  196. type EnableFeatures struct {
  197. Feature []string `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
  198. proto.XXX_InternalExtensions `json:"-"`
  199. XXX_unrecognized []byte `json:"-"`
  200. }
  201. func (m *EnableFeatures) Reset() { *m = EnableFeatures{} }
  202. func (m *EnableFeatures) String() string { return proto.CompactTextString(m) }
  203. func (*EnableFeatures) ProtoMessage() {}
  204. func (*EnableFeatures) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  205. var extRange_EnableFeatures = []proto.ExtensionRange{
  206. {Start: 100, End: 536870911},
  207. }
  208. func (*EnableFeatures) ExtensionRangeArray() []proto.ExtensionRange {
  209. return extRange_EnableFeatures
  210. }
  211. func (m *EnableFeatures) GetFeature() []string {
  212. if m != nil {
  213. return m.Feature
  214. }
  215. return nil
  216. }
  217. type FeaturesEnabled struct {
  218. Feature []string `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
  219. proto.XXX_InternalExtensions `json:"-"`
  220. XXX_unrecognized []byte `json:"-"`
  221. }
  222. func (m *FeaturesEnabled) Reset() { *m = FeaturesEnabled{} }
  223. func (m *FeaturesEnabled) String() string { return proto.CompactTextString(m) }
  224. func (*FeaturesEnabled) ProtoMessage() {}
  225. func (*FeaturesEnabled) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  226. var extRange_FeaturesEnabled = []proto.ExtensionRange{
  227. {Start: 100, End: 536870911},
  228. }
  229. func (*FeaturesEnabled) ExtensionRangeArray() []proto.ExtensionRange {
  230. return extRange_FeaturesEnabled
  231. }
  232. func (m *FeaturesEnabled) GetFeature() []string {
  233. if m != nil {
  234. return m.Feature
  235. }
  236. return nil
  237. }
  238. func init() {
  239. proto.RegisterType((*Packet)(nil), "protocol.Packet")
  240. proto.RegisterType((*OpenChannel)(nil), "protocol.OpenChannel")
  241. proto.RegisterType((*ChannelResult)(nil), "protocol.ChannelResult")
  242. proto.RegisterType((*KeepAlive)(nil), "protocol.KeepAlive")
  243. proto.RegisterType((*EnableFeatures)(nil), "protocol.EnableFeatures")
  244. proto.RegisterType((*FeaturesEnabled)(nil), "protocol.FeaturesEnabled")
  245. proto.RegisterEnum("protocol.ChannelResult_CommonError", ChannelResult_CommonError_name, ChannelResult_CommonError_value)
  246. }
  247. func init() { proto.RegisterFile("ControlChannel.proto", fileDescriptor0) }
  248. var fileDescriptor0 = []byte{
  249. // 461 bytes of a gzipped FileDescriptorProto
  250. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x8f, 0xd3, 0x30,
  251. 0x10, 0x25, 0xe9, 0xee, 0x92, 0x4e, 0xfa, 0x91, 0x9a, 0x5d, 0x30, 0xb7, 0x12, 0x2e, 0x15, 0x12,
  252. 0x3d, 0x54, 0x20, 0x21, 0x0e, 0x48, 0x4b, 0xd9, 0x22, 0xc4, 0x01, 0x64, 0xd1, 0x73, 0x64, 0x92,
  253. 0x29, 0x1b, 0x35, 0x6b, 0x1b, 0xc7, 0x05, 0x2d, 0xa7, 0xfe, 0x0e, 0xfe, 0x0c, 0x7f, 0x0d, 0xc5,
  254. 0x89, 0x9b, 0x14, 0x09, 0x09, 0x4e, 0xc9, 0x9b, 0xf7, 0xde, 0x8c, 0xfc, 0x66, 0xe0, 0x7c, 0x29,
  255. 0x85, 0xd1, 0xb2, 0x58, 0x5e, 0x73, 0x21, 0xb0, 0x98, 0x2b, 0x2d, 0x8d, 0x24, 0x81, 0xfd, 0xa4,
  256. 0xb2, 0x88, 0x7f, 0xf9, 0x70, 0xf6, 0x91, 0xa7, 0x5b, 0x34, 0xe4, 0x05, 0x0c, 0xa4, 0x42, 0x91,
  257. 0xa4, 0xb5, 0x94, 0x7a, 0x53, 0x6f, 0x16, 0x2e, 0x2e, 0xe6, 0x4e, 0x3b, 0xff, 0xa0, 0x50, 0x34,
  258. 0x7d, 0x58, 0x28, 0x5b, 0x40, 0x5e, 0xc1, 0xa8, 0x31, 0x25, 0x1a, 0xcb, 0x5d, 0x61, 0xa8, 0x6f,
  259. 0xbd, 0x0f, 0x5a, 0xaf, 0xf3, 0x59, 0x9a, 0x0d, 0xd3, 0x2e, 0x24, 0x0b, 0x80, 0x2d, 0xa2, 0x4a,
  260. 0x78, 0x91, 0x7f, 0x43, 0xda, 0xb3, 0xde, 0x7b, 0xad, 0xf7, 0x3d, 0xa2, 0xba, 0xac, 0x28, 0xd6,
  261. 0xdf, 0xba, 0x5f, 0x72, 0x09, 0x63, 0x14, 0xfc, 0x73, 0x81, 0xc9, 0x06, 0xb9, 0xd9, 0x69, 0x2c,
  262. 0xe9, 0x89, 0x35, 0xd2, 0xd6, 0x78, 0x65, 0x05, 0xab, 0x86, 0x67, 0x23, 0x3c, 0xc2, 0xe4, 0x0d,
  263. 0x44, 0xce, 0x9b, 0xd4, 0x54, 0x46, 0x4f, 0x6d, 0x8f, 0x87, 0x6d, 0x0f, 0xa7, 0xae, 0x7b, 0x65,
  264. 0x6c, 0xbc, 0x39, 0x2e, 0xc4, 0x39, 0x84, 0x9d, 0x60, 0xc8, 0x53, 0x20, 0x2e, 0x8b, 0x3c, 0x43,
  265. 0x61, 0xf2, 0x4d, 0x8e, 0x9a, 0x7a, 0x53, 0x7f, 0x76, 0xca, 0x26, 0x0d, 0xf3, 0xee, 0x40, 0x90,
  266. 0x47, 0x30, 0x70, 0x72, 0x73, 0xab, 0x90, 0xfa, 0x53, 0x7f, 0xd6, 0x67, 0x61, 0x53, 0xfb, 0x74,
  267. 0xab, 0xf0, 0x49, 0x10, 0x64, 0xd1, 0x7e, 0xbf, 0xdf, 0xfb, 0xf1, 0x4f, 0x1f, 0x86, 0x47, 0x41,
  268. 0xfe, 0xef, 0xb4, 0xfb, 0x70, 0x56, 0xed, 0x0d, 0x33, 0x3b, 0x27, 0x60, 0x0d, 0x22, 0x2b, 0x18,
  269. 0xa4, 0xf2, 0xe6, 0x46, 0x8a, 0x04, 0xb5, 0x96, 0xda, 0xae, 0x60, 0xb4, 0x78, 0xfc, 0x97, 0xf5,
  270. 0xcd, 0x97, 0x56, 0x7b, 0x55, 0x49, 0x59, 0x98, 0xb6, 0x20, 0x56, 0x10, 0x76, 0x38, 0x12, 0xc1,
  271. 0xe0, 0x2d, 0x0a, 0xd4, 0x79, 0x6a, 0x71, 0x74, 0x87, 0x9c, 0x43, 0xb4, 0x16, 0x5b, 0x21, 0xbf,
  272. 0x8b, 0xea, 0x69, 0x75, 0xd5, 0x23, 0x17, 0x30, 0x59, 0x0b, 0xbe, 0x33, 0xd7, 0x52, 0xe7, 0x3f,
  273. 0x30, 0xab, 0xcb, 0x3e, 0x99, 0xc0, 0xf0, 0x35, 0xcf, 0xd6, 0x25, 0xff, 0xd2, 0x28, 0x7b, 0x64,
  274. 0x0c, 0xe1, 0x8a, 0xe7, 0x85, 0xd3, 0x9c, 0x74, 0xc2, 0x79, 0x09, 0xfd, 0xc3, 0xa1, 0x54, 0xb9,
  275. 0x68, 0x2c, 0x95, 0x14, 0x25, 0x26, 0x1a, 0xbf, 0xee, 0xb0, 0x34, 0x98, 0xd9, 0x5c, 0x02, 0x36,
  276. 0x71, 0x0c, 0x73, 0x44, 0xfc, 0x0c, 0x46, 0xc7, 0xb7, 0x42, 0x28, 0xdc, 0x6d, 0x16, 0x4d, 0xbd,
  277. 0x69, 0x6f, 0xd6, 0x67, 0x0e, 0x76, 0x26, 0x3e, 0x87, 0xf1, 0x1f, 0xd7, 0xf1, 0x2f, 0xb6, 0xdf,
  278. 0x01, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x32, 0x16, 0x1e, 0x93, 0x03, 0x00, 0x00,
  279. }