addons.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.33.0
  4. // protoc v4.23.1
  5. // source: proxy/addons.proto
  6. package proxy
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type SeedMode int32
  20. const (
  21. SeedMode_Unknown SeedMode = 0
  22. SeedMode_PaddingOnly SeedMode = 1
  23. SeedMode_PaddingPlusDelay SeedMode = 2
  24. SeedMode_IndependentScheduler SeedMode = 3
  25. )
  26. // Enum value maps for SeedMode.
  27. var (
  28. SeedMode_name = map[int32]string{
  29. 0: "Unknown",
  30. 1: "PaddingOnly",
  31. 2: "PaddingPlusDelay",
  32. 3: "IndependentScheduler",
  33. }
  34. SeedMode_value = map[string]int32{
  35. "Unknown": 0,
  36. "PaddingOnly": 1,
  37. "PaddingPlusDelay": 2,
  38. "IndependentScheduler": 3,
  39. }
  40. )
  41. func (x SeedMode) Enum() *SeedMode {
  42. p := new(SeedMode)
  43. *p = x
  44. return p
  45. }
  46. func (x SeedMode) String() string {
  47. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  48. }
  49. func (SeedMode) Descriptor() protoreflect.EnumDescriptor {
  50. return file_proxy_addons_proto_enumTypes[0].Descriptor()
  51. }
  52. func (SeedMode) Type() protoreflect.EnumType {
  53. return &file_proxy_addons_proto_enumTypes[0]
  54. }
  55. func (x SeedMode) Number() protoreflect.EnumNumber {
  56. return protoreflect.EnumNumber(x)
  57. }
  58. // Deprecated: Use SeedMode.Descriptor instead.
  59. func (SeedMode) EnumDescriptor() ([]byte, []int) {
  60. return file_proxy_addons_proto_rawDescGZIP(), []int{0}
  61. }
  62. type Addons struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. Flow string `protobuf:"bytes,1,opt,name=Flow,proto3" json:"Flow,omitempty"`
  67. Seed []byte `protobuf:"bytes,2,opt,name=Seed,proto3" json:"Seed,omitempty"`
  68. Mode SeedMode `protobuf:"varint,3,opt,name=Mode,proto3,enum=xray.proxy.SeedMode" json:"Mode,omitempty"`
  69. Duration string `protobuf:"bytes,4,opt,name=Duration,proto3" json:"Duration,omitempty"` // "0-8" means apply to number of packets, "1000b-" means start applying once both side exchange 1kb data, counting two-ways
  70. Padding *PaddingConfig `protobuf:"bytes,5,opt,name=Padding,proto3" json:"Padding,omitempty"`
  71. Delay *DelayConfig `protobuf:"bytes,6,opt,name=Delay,proto3" json:"Delay,omitempty"`
  72. Scheduler *SchedulerConfig `protobuf:"bytes,7,opt,name=Scheduler,proto3" json:"Scheduler,omitempty"`
  73. }
  74. func (x *Addons) Reset() {
  75. *x = Addons{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_proxy_addons_proto_msgTypes[0]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *Addons) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*Addons) ProtoMessage() {}
  86. func (x *Addons) ProtoReflect() protoreflect.Message {
  87. mi := &file_proxy_addons_proto_msgTypes[0]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use Addons.ProtoReflect.Descriptor instead.
  98. func (*Addons) Descriptor() ([]byte, []int) {
  99. return file_proxy_addons_proto_rawDescGZIP(), []int{0}
  100. }
  101. func (x *Addons) GetFlow() string {
  102. if x != nil {
  103. return x.Flow
  104. }
  105. return ""
  106. }
  107. func (x *Addons) GetSeed() []byte {
  108. if x != nil {
  109. return x.Seed
  110. }
  111. return nil
  112. }
  113. func (x *Addons) GetMode() SeedMode {
  114. if x != nil {
  115. return x.Mode
  116. }
  117. return SeedMode_Unknown
  118. }
  119. func (x *Addons) GetDuration() string {
  120. if x != nil {
  121. return x.Duration
  122. }
  123. return ""
  124. }
  125. func (x *Addons) GetPadding() *PaddingConfig {
  126. if x != nil {
  127. return x.Padding
  128. }
  129. return nil
  130. }
  131. func (x *Addons) GetDelay() *DelayConfig {
  132. if x != nil {
  133. return x.Delay
  134. }
  135. return nil
  136. }
  137. func (x *Addons) GetScheduler() *SchedulerConfig {
  138. if x != nil {
  139. return x.Scheduler
  140. }
  141. return nil
  142. }
  143. type PaddingConfig struct {
  144. state protoimpl.MessageState
  145. sizeCache protoimpl.SizeCache
  146. unknownFields protoimpl.UnknownFields
  147. RegularMin uint32 `protobuf:"varint,1,opt,name=RegularMin,proto3" json:"RegularMin,omitempty"`
  148. RegularMax uint32 `protobuf:"varint,2,opt,name=RegularMax,proto3" json:"RegularMax,omitempty"`
  149. LongMin uint32 `protobuf:"varint,3,opt,name=LongMin,proto3" json:"LongMin,omitempty"`
  150. LongMax uint32 `protobuf:"varint,4,opt,name=LongMax,proto3" json:"LongMax,omitempty"`
  151. }
  152. func (x *PaddingConfig) Reset() {
  153. *x = PaddingConfig{}
  154. if protoimpl.UnsafeEnabled {
  155. mi := &file_proxy_addons_proto_msgTypes[1]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. }
  160. func (x *PaddingConfig) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*PaddingConfig) ProtoMessage() {}
  164. func (x *PaddingConfig) ProtoReflect() protoreflect.Message {
  165. mi := &file_proxy_addons_proto_msgTypes[1]
  166. if protoimpl.UnsafeEnabled && x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use PaddingConfig.ProtoReflect.Descriptor instead.
  176. func (*PaddingConfig) Descriptor() ([]byte, []int) {
  177. return file_proxy_addons_proto_rawDescGZIP(), []int{1}
  178. }
  179. func (x *PaddingConfig) GetRegularMin() uint32 {
  180. if x != nil {
  181. return x.RegularMin
  182. }
  183. return 0
  184. }
  185. func (x *PaddingConfig) GetRegularMax() uint32 {
  186. if x != nil {
  187. return x.RegularMax
  188. }
  189. return 0
  190. }
  191. func (x *PaddingConfig) GetLongMin() uint32 {
  192. if x != nil {
  193. return x.LongMin
  194. }
  195. return 0
  196. }
  197. func (x *PaddingConfig) GetLongMax() uint32 {
  198. if x != nil {
  199. return x.LongMax
  200. }
  201. return 0
  202. }
  203. type DelayConfig struct {
  204. state protoimpl.MessageState
  205. sizeCache protoimpl.SizeCache
  206. unknownFields protoimpl.UnknownFields
  207. IsRandom bool `protobuf:"varint,1,opt,name=IsRandom,proto3" json:"IsRandom,omitempty"`
  208. MinMillis uint32 `protobuf:"varint,2,opt,name=MinMillis,proto3" json:"MinMillis,omitempty"`
  209. MaxMillis uint32 `protobuf:"varint,3,opt,name=MaxMillis,proto3" json:"MaxMillis,omitempty"`
  210. }
  211. func (x *DelayConfig) Reset() {
  212. *x = DelayConfig{}
  213. if protoimpl.UnsafeEnabled {
  214. mi := &file_proxy_addons_proto_msgTypes[2]
  215. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  216. ms.StoreMessageInfo(mi)
  217. }
  218. }
  219. func (x *DelayConfig) String() string {
  220. return protoimpl.X.MessageStringOf(x)
  221. }
  222. func (*DelayConfig) ProtoMessage() {}
  223. func (x *DelayConfig) ProtoReflect() protoreflect.Message {
  224. mi := &file_proxy_addons_proto_msgTypes[2]
  225. if protoimpl.UnsafeEnabled && x != nil {
  226. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  227. if ms.LoadMessageInfo() == nil {
  228. ms.StoreMessageInfo(mi)
  229. }
  230. return ms
  231. }
  232. return mi.MessageOf(x)
  233. }
  234. // Deprecated: Use DelayConfig.ProtoReflect.Descriptor instead.
  235. func (*DelayConfig) Descriptor() ([]byte, []int) {
  236. return file_proxy_addons_proto_rawDescGZIP(), []int{2}
  237. }
  238. func (x *DelayConfig) GetIsRandom() bool {
  239. if x != nil {
  240. return x.IsRandom
  241. }
  242. return false
  243. }
  244. func (x *DelayConfig) GetMinMillis() uint32 {
  245. if x != nil {
  246. return x.MinMillis
  247. }
  248. return 0
  249. }
  250. func (x *DelayConfig) GetMaxMillis() uint32 {
  251. if x != nil {
  252. return x.MaxMillis
  253. }
  254. return 0
  255. }
  256. type SchedulerConfig struct {
  257. state protoimpl.MessageState
  258. sizeCache protoimpl.SizeCache
  259. unknownFields protoimpl.UnknownFields
  260. TimeoutMillis uint32 `protobuf:"varint,1,opt,name=TimeoutMillis,proto3" json:"TimeoutMillis,omitempty"` // original traffic will not be sent right away but when scheduler want to send or pending buffer times out
  261. }
  262. func (x *SchedulerConfig) Reset() {
  263. *x = SchedulerConfig{}
  264. if protoimpl.UnsafeEnabled {
  265. mi := &file_proxy_addons_proto_msgTypes[3]
  266. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  267. ms.StoreMessageInfo(mi)
  268. }
  269. }
  270. func (x *SchedulerConfig) String() string {
  271. return protoimpl.X.MessageStringOf(x)
  272. }
  273. func (*SchedulerConfig) ProtoMessage() {}
  274. func (x *SchedulerConfig) ProtoReflect() protoreflect.Message {
  275. mi := &file_proxy_addons_proto_msgTypes[3]
  276. if protoimpl.UnsafeEnabled && x != nil {
  277. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  278. if ms.LoadMessageInfo() == nil {
  279. ms.StoreMessageInfo(mi)
  280. }
  281. return ms
  282. }
  283. return mi.MessageOf(x)
  284. }
  285. // Deprecated: Use SchedulerConfig.ProtoReflect.Descriptor instead.
  286. func (*SchedulerConfig) Descriptor() ([]byte, []int) {
  287. return file_proxy_addons_proto_rawDescGZIP(), []int{3}
  288. }
  289. func (x *SchedulerConfig) GetTimeoutMillis() uint32 {
  290. if x != nil {
  291. return x.TimeoutMillis
  292. }
  293. return 0
  294. }
  295. var File_proxy_addons_proto protoreflect.FileDescriptor
  296. var file_proxy_addons_proto_rawDesc = []byte{
  297. 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x61, 0x64, 0x64, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  298. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  299. 0x22, 0x95, 0x02, 0x0a, 0x06, 0x41, 0x64, 0x64, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x46,
  300. 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x46, 0x6c, 0x6f, 0x77, 0x12,
  301. 0x12, 0x0a, 0x04, 0x53, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x53,
  302. 0x65, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  303. 0x0e, 0x32, 0x14, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53,
  304. 0x65, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a,
  305. 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  306. 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x07, 0x50, 0x61, 0x64,
  307. 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61,
  308. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x50, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x43,
  309. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x50, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2d,
  310. 0x0a, 0x05, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
  311. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x65, 0x6c, 0x61, 0x79,
  312. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x39, 0x0a,
  313. 0x09, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
  314. 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x63,
  315. 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x53,
  316. 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x22, 0x83, 0x01, 0x0a, 0x0d, 0x50, 0x61, 0x64,
  317. 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x65,
  318. 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a,
  319. 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x69, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x65,
  320. 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x61, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a,
  321. 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x61, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x4c, 0x6f,
  322. 0x6e, 0x67, 0x4d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x4c, 0x6f, 0x6e,
  323. 0x67, 0x4d, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x4c, 0x6f, 0x6e, 0x67, 0x4d, 0x61, 0x78, 0x18,
  324. 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x4c, 0x6f, 0x6e, 0x67, 0x4d, 0x61, 0x78, 0x22, 0x65,
  325. 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a,
  326. 0x08, 0x49, 0x73, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
  327. 0x08, 0x49, 0x73, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x69, 0x6e,
  328. 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x4d, 0x69,
  329. 0x6e, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x61, 0x78, 0x4d, 0x69,
  330. 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x4d, 0x61, 0x78, 0x4d,
  331. 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x22, 0x37, 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
  332. 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x0d, 0x54, 0x69, 0x6d, 0x65,
  333. 0x6f, 0x75, 0x74, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
  334. 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x2a, 0x58,
  335. 0x0a, 0x08, 0x53, 0x65, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e,
  336. 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x61, 0x64, 0x64, 0x69,
  337. 0x6e, 0x67, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x61, 0x64, 0x64,
  338. 0x69, 0x6e, 0x67, 0x50, 0x6c, 0x75, 0x73, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x10, 0x02, 0x12, 0x18,
  339. 0x0a, 0x14, 0x49, 0x6e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68,
  340. 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x10, 0x03, 0x42, 0x40, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e,
  341. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x01, 0x5a, 0x1f, 0x67, 0x69,
  342. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72,
  343. 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0xaa, 0x02, 0x0a,
  344. 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  345. 0x6f, 0x33,
  346. }
  347. var (
  348. file_proxy_addons_proto_rawDescOnce sync.Once
  349. file_proxy_addons_proto_rawDescData = file_proxy_addons_proto_rawDesc
  350. )
  351. func file_proxy_addons_proto_rawDescGZIP() []byte {
  352. file_proxy_addons_proto_rawDescOnce.Do(func() {
  353. file_proxy_addons_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_addons_proto_rawDescData)
  354. })
  355. return file_proxy_addons_proto_rawDescData
  356. }
  357. var file_proxy_addons_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  358. var file_proxy_addons_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  359. var file_proxy_addons_proto_goTypes = []interface{}{
  360. (SeedMode)(0), // 0: xray.proxy.SeedMode
  361. (*Addons)(nil), // 1: xray.proxy.Addons
  362. (*PaddingConfig)(nil), // 2: xray.proxy.PaddingConfig
  363. (*DelayConfig)(nil), // 3: xray.proxy.DelayConfig
  364. (*SchedulerConfig)(nil), // 4: xray.proxy.SchedulerConfig
  365. }
  366. var file_proxy_addons_proto_depIdxs = []int32{
  367. 0, // 0: xray.proxy.Addons.Mode:type_name -> xray.proxy.SeedMode
  368. 2, // 1: xray.proxy.Addons.Padding:type_name -> xray.proxy.PaddingConfig
  369. 3, // 2: xray.proxy.Addons.Delay:type_name -> xray.proxy.DelayConfig
  370. 4, // 3: xray.proxy.Addons.Scheduler:type_name -> xray.proxy.SchedulerConfig
  371. 4, // [4:4] is the sub-list for method output_type
  372. 4, // [4:4] is the sub-list for method input_type
  373. 4, // [4:4] is the sub-list for extension type_name
  374. 4, // [4:4] is the sub-list for extension extendee
  375. 0, // [0:4] is the sub-list for field type_name
  376. }
  377. func init() { file_proxy_addons_proto_init() }
  378. func file_proxy_addons_proto_init() {
  379. if File_proxy_addons_proto != nil {
  380. return
  381. }
  382. if !protoimpl.UnsafeEnabled {
  383. file_proxy_addons_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  384. switch v := v.(*Addons); i {
  385. case 0:
  386. return &v.state
  387. case 1:
  388. return &v.sizeCache
  389. case 2:
  390. return &v.unknownFields
  391. default:
  392. return nil
  393. }
  394. }
  395. file_proxy_addons_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  396. switch v := v.(*PaddingConfig); i {
  397. case 0:
  398. return &v.state
  399. case 1:
  400. return &v.sizeCache
  401. case 2:
  402. return &v.unknownFields
  403. default:
  404. return nil
  405. }
  406. }
  407. file_proxy_addons_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  408. switch v := v.(*DelayConfig); i {
  409. case 0:
  410. return &v.state
  411. case 1:
  412. return &v.sizeCache
  413. case 2:
  414. return &v.unknownFields
  415. default:
  416. return nil
  417. }
  418. }
  419. file_proxy_addons_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  420. switch v := v.(*SchedulerConfig); i {
  421. case 0:
  422. return &v.state
  423. case 1:
  424. return &v.sizeCache
  425. case 2:
  426. return &v.unknownFields
  427. default:
  428. return nil
  429. }
  430. }
  431. }
  432. type x struct{}
  433. out := protoimpl.TypeBuilder{
  434. File: protoimpl.DescBuilder{
  435. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  436. RawDescriptor: file_proxy_addons_proto_rawDesc,
  437. NumEnums: 1,
  438. NumMessages: 4,
  439. NumExtensions: 0,
  440. NumServices: 0,
  441. },
  442. GoTypes: file_proxy_addons_proto_goTypes,
  443. DependencyIndexes: file_proxy_addons_proto_depIdxs,
  444. EnumInfos: file_proxy_addons_proto_enumTypes,
  445. MessageInfos: file_proxy_addons_proto_msgTypes,
  446. }.Build()
  447. File_proxy_addons_proto = out.File
  448. file_proxy_addons_proto_rawDesc = nil
  449. file_proxy_addons_proto_goTypes = nil
  450. file_proxy_addons_proto_depIdxs = nil
  451. }