PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/pkg/freezer/types.pb.go

https://github.com/mumble-voip/grumble
Go | 394 lines | 330 code | 60 blank | 4 comment | 140 complexity | 9f5c9f3edfdc491f2d9313e3ead41ef6 MD5 | raw file
  1. // Code generated by protoc-gen-go.
  2. // source: types.proto
  3. // DO NOT EDIT!
  4. package freezer
  5. import proto "github.com/golang/protobuf/proto"
  6. import json "encoding/json"
  7. import math "math"
  8. // Reference proto, json, and math imports to suppress error if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = &json.SyntaxError{}
  11. var _ = math.Inf
  12. type Server struct {
  13. Config []*ConfigKeyValuePair `protobuf:"bytes,2,rep,name=config" json:"config,omitempty"`
  14. BanList *BanList `protobuf:"bytes,3,opt,name=ban_list" json:"ban_list,omitempty"`
  15. Channels []*Channel `protobuf:"bytes,4,rep,name=channels" json:"channels,omitempty"`
  16. Users []*User `protobuf:"bytes,5,rep,name=users" json:"users,omitempty"`
  17. XXX_unrecognized []byte `json:"-"`
  18. }
  19. func (this *Server) Reset() { *this = Server{} }
  20. func (this *Server) String() string { return proto.CompactTextString(this) }
  21. func (*Server) ProtoMessage() {}
  22. func (this *Server) GetBanList() *BanList {
  23. if this != nil {
  24. return this.BanList
  25. }
  26. return nil
  27. }
  28. type ConfigKeyValuePair struct {
  29. Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
  30. Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  31. XXX_unrecognized []byte `json:"-"`
  32. }
  33. func (this *ConfigKeyValuePair) Reset() { *this = ConfigKeyValuePair{} }
  34. func (this *ConfigKeyValuePair) String() string { return proto.CompactTextString(this) }
  35. func (*ConfigKeyValuePair) ProtoMessage() {}
  36. func (this *ConfigKeyValuePair) GetKey() string {
  37. if this != nil && this.Key != nil {
  38. return *this.Key
  39. }
  40. return ""
  41. }
  42. func (this *ConfigKeyValuePair) GetValue() string {
  43. if this != nil && this.Value != nil {
  44. return *this.Value
  45. }
  46. return ""
  47. }
  48. type Ban struct {
  49. Ip []byte `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"`
  50. Mask *uint32 `protobuf:"varint,2,opt,name=mask" json:"mask,omitempty"`
  51. Username *string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
  52. CertHash *string `protobuf:"bytes,4,opt,name=cert_hash" json:"cert_hash,omitempty"`
  53. Reason *string `protobuf:"bytes,5,opt,name=reason" json:"reason,omitempty"`
  54. Start *int64 `protobuf:"varint,6,opt,name=start" json:"start,omitempty"`
  55. Duration *uint32 `protobuf:"varint,7,opt,name=duration" json:"duration,omitempty"`
  56. XXX_unrecognized []byte `json:"-"`
  57. }
  58. func (this *Ban) Reset() { *this = Ban{} }
  59. func (this *Ban) String() string { return proto.CompactTextString(this) }
  60. func (*Ban) ProtoMessage() {}
  61. func (this *Ban) GetIp() []byte {
  62. if this != nil {
  63. return this.Ip
  64. }
  65. return nil
  66. }
  67. func (this *Ban) GetMask() uint32 {
  68. if this != nil && this.Mask != nil {
  69. return *this.Mask
  70. }
  71. return 0
  72. }
  73. func (this *Ban) GetUsername() string {
  74. if this != nil && this.Username != nil {
  75. return *this.Username
  76. }
  77. return ""
  78. }
  79. func (this *Ban) GetCertHash() string {
  80. if this != nil && this.CertHash != nil {
  81. return *this.CertHash
  82. }
  83. return ""
  84. }
  85. func (this *Ban) GetReason() string {
  86. if this != nil && this.Reason != nil {
  87. return *this.Reason
  88. }
  89. return ""
  90. }
  91. func (this *Ban) GetStart() int64 {
  92. if this != nil && this.Start != nil {
  93. return *this.Start
  94. }
  95. return 0
  96. }
  97. func (this *Ban) GetDuration() uint32 {
  98. if this != nil && this.Duration != nil {
  99. return *this.Duration
  100. }
  101. return 0
  102. }
  103. type BanList struct {
  104. Bans []*Ban `protobuf:"bytes,1,rep,name=bans" json:"bans,omitempty"`
  105. XXX_unrecognized []byte `json:"-"`
  106. }
  107. func (this *BanList) Reset() { *this = BanList{} }
  108. func (this *BanList) String() string { return proto.CompactTextString(this) }
  109. func (*BanList) ProtoMessage() {}
  110. type User struct {
  111. Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
  112. Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
  113. Password *string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
  114. CertHash *string `protobuf:"bytes,4,opt,name=cert_hash" json:"cert_hash,omitempty"`
  115. Email *string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"`
  116. TextureBlob *string `protobuf:"bytes,6,opt,name=texture_blob" json:"texture_blob,omitempty"`
  117. CommentBlob *string `protobuf:"bytes,7,opt,name=comment_blob" json:"comment_blob,omitempty"`
  118. LastChannelId *uint32 `protobuf:"varint,8,opt,name=last_channel_id" json:"last_channel_id,omitempty"`
  119. LastActive *uint64 `protobuf:"varint,9,opt,name=last_active" json:"last_active,omitempty"`
  120. XXX_unrecognized []byte `json:"-"`
  121. }
  122. func (this *User) Reset() { *this = User{} }
  123. func (this *User) String() string { return proto.CompactTextString(this) }
  124. func (*User) ProtoMessage() {}
  125. func (this *User) GetId() uint32 {
  126. if this != nil && this.Id != nil {
  127. return *this.Id
  128. }
  129. return 0
  130. }
  131. func (this *User) GetName() string {
  132. if this != nil && this.Name != nil {
  133. return *this.Name
  134. }
  135. return ""
  136. }
  137. func (this *User) GetPassword() string {
  138. if this != nil && this.Password != nil {
  139. return *this.Password
  140. }
  141. return ""
  142. }
  143. func (this *User) GetCertHash() string {
  144. if this != nil && this.CertHash != nil {
  145. return *this.CertHash
  146. }
  147. return ""
  148. }
  149. func (this *User) GetEmail() string {
  150. if this != nil && this.Email != nil {
  151. return *this.Email
  152. }
  153. return ""
  154. }
  155. func (this *User) GetTextureBlob() string {
  156. if this != nil && this.TextureBlob != nil {
  157. return *this.TextureBlob
  158. }
  159. return ""
  160. }
  161. func (this *User) GetCommentBlob() string {
  162. if this != nil && this.CommentBlob != nil {
  163. return *this.CommentBlob
  164. }
  165. return ""
  166. }
  167. func (this *User) GetLastChannelId() uint32 {
  168. if this != nil && this.LastChannelId != nil {
  169. return *this.LastChannelId
  170. }
  171. return 0
  172. }
  173. func (this *User) GetLastActive() uint64 {
  174. if this != nil && this.LastActive != nil {
  175. return *this.LastActive
  176. }
  177. return 0
  178. }
  179. type UserRemove struct {
  180. Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
  181. XXX_unrecognized []byte `json:"-"`
  182. }
  183. func (this *UserRemove) Reset() { *this = UserRemove{} }
  184. func (this *UserRemove) String() string { return proto.CompactTextString(this) }
  185. func (*UserRemove) ProtoMessage() {}
  186. func (this *UserRemove) GetId() uint32 {
  187. if this != nil && this.Id != nil {
  188. return *this.Id
  189. }
  190. return 0
  191. }
  192. type Channel struct {
  193. Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
  194. Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
  195. ParentId *uint32 `protobuf:"varint,3,opt,name=parent_id" json:"parent_id,omitempty"`
  196. Position *int64 `protobuf:"varint,4,opt,name=position" json:"position,omitempty"`
  197. InheritAcl *bool `protobuf:"varint,5,opt,name=inherit_acl" json:"inherit_acl,omitempty"`
  198. Links []uint32 `protobuf:"varint,6,rep,name=links" json:"links,omitempty"`
  199. Acl []*ACL `protobuf:"bytes,7,rep,name=acl" json:"acl,omitempty"`
  200. Groups []*Group `protobuf:"bytes,8,rep,name=groups" json:"groups,omitempty"`
  201. DescriptionBlob *string `protobuf:"bytes,9,opt,name=description_blob" json:"description_blob,omitempty"`
  202. XXX_unrecognized []byte `json:"-"`
  203. }
  204. func (this *Channel) Reset() { *this = Channel{} }
  205. func (this *Channel) String() string { return proto.CompactTextString(this) }
  206. func (*Channel) ProtoMessage() {}
  207. func (this *Channel) GetId() uint32 {
  208. if this != nil && this.Id != nil {
  209. return *this.Id
  210. }
  211. return 0
  212. }
  213. func (this *Channel) GetName() string {
  214. if this != nil && this.Name != nil {
  215. return *this.Name
  216. }
  217. return ""
  218. }
  219. func (this *Channel) GetParentId() uint32 {
  220. if this != nil && this.ParentId != nil {
  221. return *this.ParentId
  222. }
  223. return 0
  224. }
  225. func (this *Channel) GetPosition() int64 {
  226. if this != nil && this.Position != nil {
  227. return *this.Position
  228. }
  229. return 0
  230. }
  231. func (this *Channel) GetInheritAcl() bool {
  232. if this != nil && this.InheritAcl != nil {
  233. return *this.InheritAcl
  234. }
  235. return false
  236. }
  237. func (this *Channel) GetDescriptionBlob() string {
  238. if this != nil && this.DescriptionBlob != nil {
  239. return *this.DescriptionBlob
  240. }
  241. return ""
  242. }
  243. type ChannelRemove struct {
  244. Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
  245. XXX_unrecognized []byte `json:"-"`
  246. }
  247. func (this *ChannelRemove) Reset() { *this = ChannelRemove{} }
  248. func (this *ChannelRemove) String() string { return proto.CompactTextString(this) }
  249. func (*ChannelRemove) ProtoMessage() {}
  250. func (this *ChannelRemove) GetId() uint32 {
  251. if this != nil && this.Id != nil {
  252. return *this.Id
  253. }
  254. return 0
  255. }
  256. type ACL struct {
  257. UserId *uint32 `protobuf:"varint,1,opt,name=user_id" json:"user_id,omitempty"`
  258. Group *string `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"`
  259. ApplyHere *bool `protobuf:"varint,3,opt,name=apply_here" json:"apply_here,omitempty"`
  260. ApplySubs *bool `protobuf:"varint,4,opt,name=apply_subs" json:"apply_subs,omitempty"`
  261. Allow *uint32 `protobuf:"varint,5,opt,name=allow" json:"allow,omitempty"`
  262. Deny *uint32 `protobuf:"varint,6,opt,name=deny" json:"deny,omitempty"`
  263. XXX_unrecognized []byte `json:"-"`
  264. }
  265. func (this *ACL) Reset() { *this = ACL{} }
  266. func (this *ACL) String() string { return proto.CompactTextString(this) }
  267. func (*ACL) ProtoMessage() {}
  268. func (this *ACL) GetUserId() uint32 {
  269. if this != nil && this.UserId != nil {
  270. return *this.UserId
  271. }
  272. return 0
  273. }
  274. func (this *ACL) GetGroup() string {
  275. if this != nil && this.Group != nil {
  276. return *this.Group
  277. }
  278. return ""
  279. }
  280. func (this *ACL) GetApplyHere() bool {
  281. if this != nil && this.ApplyHere != nil {
  282. return *this.ApplyHere
  283. }
  284. return false
  285. }
  286. func (this *ACL) GetApplySubs() bool {
  287. if this != nil && this.ApplySubs != nil {
  288. return *this.ApplySubs
  289. }
  290. return false
  291. }
  292. func (this *ACL) GetAllow() uint32 {
  293. if this != nil && this.Allow != nil {
  294. return *this.Allow
  295. }
  296. return 0
  297. }
  298. func (this *ACL) GetDeny() uint32 {
  299. if this != nil && this.Deny != nil {
  300. return *this.Deny
  301. }
  302. return 0
  303. }
  304. type Group struct {
  305. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  306. Inherit *bool `protobuf:"varint,2,opt,name=inherit" json:"inherit,omitempty"`
  307. Inheritable *bool `protobuf:"varint,3,opt,name=inheritable" json:"inheritable,omitempty"`
  308. Add []uint32 `protobuf:"varint,4,rep,name=add" json:"add,omitempty"`
  309. Remove []uint32 `protobuf:"varint,5,rep,name=remove" json:"remove,omitempty"`
  310. XXX_unrecognized []byte `json:"-"`
  311. }
  312. func (this *Group) Reset() { *this = Group{} }
  313. func (this *Group) String() string { return proto.CompactTextString(this) }
  314. func (*Group) ProtoMessage() {}
  315. func (this *Group) GetName() string {
  316. if this != nil && this.Name != nil {
  317. return *this.Name
  318. }
  319. return ""
  320. }
  321. func (this *Group) GetInherit() bool {
  322. if this != nil && this.Inherit != nil {
  323. return *this.Inherit
  324. }
  325. return false
  326. }
  327. func (this *Group) GetInheritable() bool {
  328. if this != nil && this.Inheritable != nil {
  329. return *this.Inheritable
  330. }
  331. return false
  332. }
  333. func init() {
  334. }