command.pb.go 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331
  1. package command
  2. import (
  3. context "context"
  4. proto "github.com/golang/protobuf/proto"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. core "v2ray.com/core"
  13. protocol "v2ray.com/core/common/protocol"
  14. serial "v2ray.com/core/common/serial"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. // This is a compile-time assertion that a sufficiently up-to-date version
  23. // of the legacy proto package is being used.
  24. const _ = proto.ProtoPackageIsVersion4
  25. type AddUserOperation struct {
  26. state protoimpl.MessageState
  27. sizeCache protoimpl.SizeCache
  28. unknownFields protoimpl.UnknownFields
  29. User *protocol.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  30. }
  31. func (x *AddUserOperation) Reset() {
  32. *x = AddUserOperation{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *AddUserOperation) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*AddUserOperation) ProtoMessage() {}
  43. func (x *AddUserOperation) ProtoReflect() protoreflect.Message {
  44. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use AddUserOperation.ProtoReflect.Descriptor instead.
  55. func (*AddUserOperation) Descriptor() ([]byte, []int) {
  56. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *AddUserOperation) GetUser() *protocol.User {
  59. if x != nil {
  60. return x.User
  61. }
  62. return nil
  63. }
  64. type RemoveUserOperation struct {
  65. state protoimpl.MessageState
  66. sizeCache protoimpl.SizeCache
  67. unknownFields protoimpl.UnknownFields
  68. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
  69. }
  70. func (x *RemoveUserOperation) Reset() {
  71. *x = RemoveUserOperation{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *RemoveUserOperation) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*RemoveUserOperation) ProtoMessage() {}
  82. func (x *RemoveUserOperation) ProtoReflect() protoreflect.Message {
  83. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use RemoveUserOperation.ProtoReflect.Descriptor instead.
  94. func (*RemoveUserOperation) Descriptor() ([]byte, []int) {
  95. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *RemoveUserOperation) GetEmail() string {
  98. if x != nil {
  99. return x.Email
  100. }
  101. return ""
  102. }
  103. type AddInboundRequest struct {
  104. state protoimpl.MessageState
  105. sizeCache protoimpl.SizeCache
  106. unknownFields protoimpl.UnknownFields
  107. Inbound *core.InboundHandlerConfig `protobuf:"bytes,1,opt,name=inbound,proto3" json:"inbound,omitempty"`
  108. }
  109. func (x *AddInboundRequest) Reset() {
  110. *x = AddInboundRequest{}
  111. if protoimpl.UnsafeEnabled {
  112. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[2]
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. ms.StoreMessageInfo(mi)
  115. }
  116. }
  117. func (x *AddInboundRequest) String() string {
  118. return protoimpl.X.MessageStringOf(x)
  119. }
  120. func (*AddInboundRequest) ProtoMessage() {}
  121. func (x *AddInboundRequest) ProtoReflect() protoreflect.Message {
  122. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[2]
  123. if protoimpl.UnsafeEnabled && x != nil {
  124. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  125. if ms.LoadMessageInfo() == nil {
  126. ms.StoreMessageInfo(mi)
  127. }
  128. return ms
  129. }
  130. return mi.MessageOf(x)
  131. }
  132. // Deprecated: Use AddInboundRequest.ProtoReflect.Descriptor instead.
  133. func (*AddInboundRequest) Descriptor() ([]byte, []int) {
  134. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{2}
  135. }
  136. func (x *AddInboundRequest) GetInbound() *core.InboundHandlerConfig {
  137. if x != nil {
  138. return x.Inbound
  139. }
  140. return nil
  141. }
  142. type AddInboundResponse struct {
  143. state protoimpl.MessageState
  144. sizeCache protoimpl.SizeCache
  145. unknownFields protoimpl.UnknownFields
  146. }
  147. func (x *AddInboundResponse) Reset() {
  148. *x = AddInboundResponse{}
  149. if protoimpl.UnsafeEnabled {
  150. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[3]
  151. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  152. ms.StoreMessageInfo(mi)
  153. }
  154. }
  155. func (x *AddInboundResponse) String() string {
  156. return protoimpl.X.MessageStringOf(x)
  157. }
  158. func (*AddInboundResponse) ProtoMessage() {}
  159. func (x *AddInboundResponse) ProtoReflect() protoreflect.Message {
  160. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[3]
  161. if protoimpl.UnsafeEnabled && x != nil {
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. if ms.LoadMessageInfo() == nil {
  164. ms.StoreMessageInfo(mi)
  165. }
  166. return ms
  167. }
  168. return mi.MessageOf(x)
  169. }
  170. // Deprecated: Use AddInboundResponse.ProtoReflect.Descriptor instead.
  171. func (*AddInboundResponse) Descriptor() ([]byte, []int) {
  172. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{3}
  173. }
  174. type RemoveInboundRequest struct {
  175. state protoimpl.MessageState
  176. sizeCache protoimpl.SizeCache
  177. unknownFields protoimpl.UnknownFields
  178. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  179. }
  180. func (x *RemoveInboundRequest) Reset() {
  181. *x = RemoveInboundRequest{}
  182. if protoimpl.UnsafeEnabled {
  183. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[4]
  184. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  185. ms.StoreMessageInfo(mi)
  186. }
  187. }
  188. func (x *RemoveInboundRequest) String() string {
  189. return protoimpl.X.MessageStringOf(x)
  190. }
  191. func (*RemoveInboundRequest) ProtoMessage() {}
  192. func (x *RemoveInboundRequest) ProtoReflect() protoreflect.Message {
  193. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[4]
  194. if protoimpl.UnsafeEnabled && x != nil {
  195. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  196. if ms.LoadMessageInfo() == nil {
  197. ms.StoreMessageInfo(mi)
  198. }
  199. return ms
  200. }
  201. return mi.MessageOf(x)
  202. }
  203. // Deprecated: Use RemoveInboundRequest.ProtoReflect.Descriptor instead.
  204. func (*RemoveInboundRequest) Descriptor() ([]byte, []int) {
  205. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{4}
  206. }
  207. func (x *RemoveInboundRequest) GetTag() string {
  208. if x != nil {
  209. return x.Tag
  210. }
  211. return ""
  212. }
  213. type RemoveInboundResponse struct {
  214. state protoimpl.MessageState
  215. sizeCache protoimpl.SizeCache
  216. unknownFields protoimpl.UnknownFields
  217. }
  218. func (x *RemoveInboundResponse) Reset() {
  219. *x = RemoveInboundResponse{}
  220. if protoimpl.UnsafeEnabled {
  221. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[5]
  222. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  223. ms.StoreMessageInfo(mi)
  224. }
  225. }
  226. func (x *RemoveInboundResponse) String() string {
  227. return protoimpl.X.MessageStringOf(x)
  228. }
  229. func (*RemoveInboundResponse) ProtoMessage() {}
  230. func (x *RemoveInboundResponse) ProtoReflect() protoreflect.Message {
  231. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[5]
  232. if protoimpl.UnsafeEnabled && x != nil {
  233. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  234. if ms.LoadMessageInfo() == nil {
  235. ms.StoreMessageInfo(mi)
  236. }
  237. return ms
  238. }
  239. return mi.MessageOf(x)
  240. }
  241. // Deprecated: Use RemoveInboundResponse.ProtoReflect.Descriptor instead.
  242. func (*RemoveInboundResponse) Descriptor() ([]byte, []int) {
  243. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{5}
  244. }
  245. type AlterInboundRequest struct {
  246. state protoimpl.MessageState
  247. sizeCache protoimpl.SizeCache
  248. unknownFields protoimpl.UnknownFields
  249. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  250. Operation *serial.TypedMessage `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
  251. }
  252. func (x *AlterInboundRequest) Reset() {
  253. *x = AlterInboundRequest{}
  254. if protoimpl.UnsafeEnabled {
  255. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[6]
  256. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  257. ms.StoreMessageInfo(mi)
  258. }
  259. }
  260. func (x *AlterInboundRequest) String() string {
  261. return protoimpl.X.MessageStringOf(x)
  262. }
  263. func (*AlterInboundRequest) ProtoMessage() {}
  264. func (x *AlterInboundRequest) ProtoReflect() protoreflect.Message {
  265. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[6]
  266. if protoimpl.UnsafeEnabled && x != nil {
  267. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  268. if ms.LoadMessageInfo() == nil {
  269. ms.StoreMessageInfo(mi)
  270. }
  271. return ms
  272. }
  273. return mi.MessageOf(x)
  274. }
  275. // Deprecated: Use AlterInboundRequest.ProtoReflect.Descriptor instead.
  276. func (*AlterInboundRequest) Descriptor() ([]byte, []int) {
  277. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{6}
  278. }
  279. func (x *AlterInboundRequest) GetTag() string {
  280. if x != nil {
  281. return x.Tag
  282. }
  283. return ""
  284. }
  285. func (x *AlterInboundRequest) GetOperation() *serial.TypedMessage {
  286. if x != nil {
  287. return x.Operation
  288. }
  289. return nil
  290. }
  291. type AlterInboundResponse struct {
  292. state protoimpl.MessageState
  293. sizeCache protoimpl.SizeCache
  294. unknownFields protoimpl.UnknownFields
  295. }
  296. func (x *AlterInboundResponse) Reset() {
  297. *x = AlterInboundResponse{}
  298. if protoimpl.UnsafeEnabled {
  299. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[7]
  300. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  301. ms.StoreMessageInfo(mi)
  302. }
  303. }
  304. func (x *AlterInboundResponse) String() string {
  305. return protoimpl.X.MessageStringOf(x)
  306. }
  307. func (*AlterInboundResponse) ProtoMessage() {}
  308. func (x *AlterInboundResponse) ProtoReflect() protoreflect.Message {
  309. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[7]
  310. if protoimpl.UnsafeEnabled && x != nil {
  311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  312. if ms.LoadMessageInfo() == nil {
  313. ms.StoreMessageInfo(mi)
  314. }
  315. return ms
  316. }
  317. return mi.MessageOf(x)
  318. }
  319. // Deprecated: Use AlterInboundResponse.ProtoReflect.Descriptor instead.
  320. func (*AlterInboundResponse) Descriptor() ([]byte, []int) {
  321. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{7}
  322. }
  323. type AddOutboundRequest struct {
  324. state protoimpl.MessageState
  325. sizeCache protoimpl.SizeCache
  326. unknownFields protoimpl.UnknownFields
  327. Outbound *core.OutboundHandlerConfig `protobuf:"bytes,1,opt,name=outbound,proto3" json:"outbound,omitempty"`
  328. }
  329. func (x *AddOutboundRequest) Reset() {
  330. *x = AddOutboundRequest{}
  331. if protoimpl.UnsafeEnabled {
  332. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[8]
  333. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  334. ms.StoreMessageInfo(mi)
  335. }
  336. }
  337. func (x *AddOutboundRequest) String() string {
  338. return protoimpl.X.MessageStringOf(x)
  339. }
  340. func (*AddOutboundRequest) ProtoMessage() {}
  341. func (x *AddOutboundRequest) ProtoReflect() protoreflect.Message {
  342. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[8]
  343. if protoimpl.UnsafeEnabled && x != nil {
  344. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  345. if ms.LoadMessageInfo() == nil {
  346. ms.StoreMessageInfo(mi)
  347. }
  348. return ms
  349. }
  350. return mi.MessageOf(x)
  351. }
  352. // Deprecated: Use AddOutboundRequest.ProtoReflect.Descriptor instead.
  353. func (*AddOutboundRequest) Descriptor() ([]byte, []int) {
  354. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{8}
  355. }
  356. func (x *AddOutboundRequest) GetOutbound() *core.OutboundHandlerConfig {
  357. if x != nil {
  358. return x.Outbound
  359. }
  360. return nil
  361. }
  362. type AddOutboundResponse struct {
  363. state protoimpl.MessageState
  364. sizeCache protoimpl.SizeCache
  365. unknownFields protoimpl.UnknownFields
  366. }
  367. func (x *AddOutboundResponse) Reset() {
  368. *x = AddOutboundResponse{}
  369. if protoimpl.UnsafeEnabled {
  370. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[9]
  371. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  372. ms.StoreMessageInfo(mi)
  373. }
  374. }
  375. func (x *AddOutboundResponse) String() string {
  376. return protoimpl.X.MessageStringOf(x)
  377. }
  378. func (*AddOutboundResponse) ProtoMessage() {}
  379. func (x *AddOutboundResponse) ProtoReflect() protoreflect.Message {
  380. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[9]
  381. if protoimpl.UnsafeEnabled && x != nil {
  382. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  383. if ms.LoadMessageInfo() == nil {
  384. ms.StoreMessageInfo(mi)
  385. }
  386. return ms
  387. }
  388. return mi.MessageOf(x)
  389. }
  390. // Deprecated: Use AddOutboundResponse.ProtoReflect.Descriptor instead.
  391. func (*AddOutboundResponse) Descriptor() ([]byte, []int) {
  392. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{9}
  393. }
  394. type RemoveOutboundRequest struct {
  395. state protoimpl.MessageState
  396. sizeCache protoimpl.SizeCache
  397. unknownFields protoimpl.UnknownFields
  398. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  399. }
  400. func (x *RemoveOutboundRequest) Reset() {
  401. *x = RemoveOutboundRequest{}
  402. if protoimpl.UnsafeEnabled {
  403. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[10]
  404. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  405. ms.StoreMessageInfo(mi)
  406. }
  407. }
  408. func (x *RemoveOutboundRequest) String() string {
  409. return protoimpl.X.MessageStringOf(x)
  410. }
  411. func (*RemoveOutboundRequest) ProtoMessage() {}
  412. func (x *RemoveOutboundRequest) ProtoReflect() protoreflect.Message {
  413. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[10]
  414. if protoimpl.UnsafeEnabled && x != nil {
  415. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  416. if ms.LoadMessageInfo() == nil {
  417. ms.StoreMessageInfo(mi)
  418. }
  419. return ms
  420. }
  421. return mi.MessageOf(x)
  422. }
  423. // Deprecated: Use RemoveOutboundRequest.ProtoReflect.Descriptor instead.
  424. func (*RemoveOutboundRequest) Descriptor() ([]byte, []int) {
  425. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{10}
  426. }
  427. func (x *RemoveOutboundRequest) GetTag() string {
  428. if x != nil {
  429. return x.Tag
  430. }
  431. return ""
  432. }
  433. type RemoveOutboundResponse struct {
  434. state protoimpl.MessageState
  435. sizeCache protoimpl.SizeCache
  436. unknownFields protoimpl.UnknownFields
  437. }
  438. func (x *RemoveOutboundResponse) Reset() {
  439. *x = RemoveOutboundResponse{}
  440. if protoimpl.UnsafeEnabled {
  441. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[11]
  442. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  443. ms.StoreMessageInfo(mi)
  444. }
  445. }
  446. func (x *RemoveOutboundResponse) String() string {
  447. return protoimpl.X.MessageStringOf(x)
  448. }
  449. func (*RemoveOutboundResponse) ProtoMessage() {}
  450. func (x *RemoveOutboundResponse) ProtoReflect() protoreflect.Message {
  451. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[11]
  452. if protoimpl.UnsafeEnabled && x != nil {
  453. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  454. if ms.LoadMessageInfo() == nil {
  455. ms.StoreMessageInfo(mi)
  456. }
  457. return ms
  458. }
  459. return mi.MessageOf(x)
  460. }
  461. // Deprecated: Use RemoveOutboundResponse.ProtoReflect.Descriptor instead.
  462. func (*RemoveOutboundResponse) Descriptor() ([]byte, []int) {
  463. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{11}
  464. }
  465. type AlterOutboundRequest struct {
  466. state protoimpl.MessageState
  467. sizeCache protoimpl.SizeCache
  468. unknownFields protoimpl.UnknownFields
  469. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  470. Operation *serial.TypedMessage `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
  471. }
  472. func (x *AlterOutboundRequest) Reset() {
  473. *x = AlterOutboundRequest{}
  474. if protoimpl.UnsafeEnabled {
  475. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[12]
  476. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  477. ms.StoreMessageInfo(mi)
  478. }
  479. }
  480. func (x *AlterOutboundRequest) String() string {
  481. return protoimpl.X.MessageStringOf(x)
  482. }
  483. func (*AlterOutboundRequest) ProtoMessage() {}
  484. func (x *AlterOutboundRequest) ProtoReflect() protoreflect.Message {
  485. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[12]
  486. if protoimpl.UnsafeEnabled && x != nil {
  487. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  488. if ms.LoadMessageInfo() == nil {
  489. ms.StoreMessageInfo(mi)
  490. }
  491. return ms
  492. }
  493. return mi.MessageOf(x)
  494. }
  495. // Deprecated: Use AlterOutboundRequest.ProtoReflect.Descriptor instead.
  496. func (*AlterOutboundRequest) Descriptor() ([]byte, []int) {
  497. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{12}
  498. }
  499. func (x *AlterOutboundRequest) GetTag() string {
  500. if x != nil {
  501. return x.Tag
  502. }
  503. return ""
  504. }
  505. func (x *AlterOutboundRequest) GetOperation() *serial.TypedMessage {
  506. if x != nil {
  507. return x.Operation
  508. }
  509. return nil
  510. }
  511. type AlterOutboundResponse struct {
  512. state protoimpl.MessageState
  513. sizeCache protoimpl.SizeCache
  514. unknownFields protoimpl.UnknownFields
  515. }
  516. func (x *AlterOutboundResponse) Reset() {
  517. *x = AlterOutboundResponse{}
  518. if protoimpl.UnsafeEnabled {
  519. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[13]
  520. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  521. ms.StoreMessageInfo(mi)
  522. }
  523. }
  524. func (x *AlterOutboundResponse) String() string {
  525. return protoimpl.X.MessageStringOf(x)
  526. }
  527. func (*AlterOutboundResponse) ProtoMessage() {}
  528. func (x *AlterOutboundResponse) ProtoReflect() protoreflect.Message {
  529. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[13]
  530. if protoimpl.UnsafeEnabled && x != nil {
  531. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  532. if ms.LoadMessageInfo() == nil {
  533. ms.StoreMessageInfo(mi)
  534. }
  535. return ms
  536. }
  537. return mi.MessageOf(x)
  538. }
  539. // Deprecated: Use AlterOutboundResponse.ProtoReflect.Descriptor instead.
  540. func (*AlterOutboundResponse) Descriptor() ([]byte, []int) {
  541. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{13}
  542. }
  543. type Config struct {
  544. state protoimpl.MessageState
  545. sizeCache protoimpl.SizeCache
  546. unknownFields protoimpl.UnknownFields
  547. }
  548. func (x *Config) Reset() {
  549. *x = Config{}
  550. if protoimpl.UnsafeEnabled {
  551. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[14]
  552. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  553. ms.StoreMessageInfo(mi)
  554. }
  555. }
  556. func (x *Config) String() string {
  557. return protoimpl.X.MessageStringOf(x)
  558. }
  559. func (*Config) ProtoMessage() {}
  560. func (x *Config) ProtoReflect() protoreflect.Message {
  561. mi := &file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[14]
  562. if protoimpl.UnsafeEnabled && x != nil {
  563. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  564. if ms.LoadMessageInfo() == nil {
  565. ms.StoreMessageInfo(mi)
  566. }
  567. return ms
  568. }
  569. return mi.MessageOf(x)
  570. }
  571. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  572. func (*Config) Descriptor() ([]byte, []int) {
  573. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP(), []int{14}
  574. }
  575. var File_v2ray_com_core_app_proxyman_command_command_proto protoreflect.FileDescriptor
  576. var file_v2ray_com_core_app_proxyman_command_command_proto_rawDesc = []byte{
  577. 0x0a, 0x31, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  578. 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63, 0x6f,
  579. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72,
  580. 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  581. 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d,
  582. 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x29, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  583. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  584. 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  585. 0x30, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  586. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79,
  587. 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  588. 0x6f, 0x1a, 0x1b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72,
  589. 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48,
  590. 0x0a, 0x10, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
  591. 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  592. 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f,
  593. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73,
  594. 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x2b, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f,
  595. 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
  596. 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  597. 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x4f, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x62, 0x6f,
  598. 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x07, 0x69, 0x6e,
  599. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32,
  600. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  601. 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x69,
  602. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x62,
  603. 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x0a, 0x14,
  604. 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71,
  605. 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  606. 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
  607. 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  608. 0x6d, 0x0a, 0x13, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52,
  609. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  610. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x44, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72,
  611. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32,
  612. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  613. 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73,
  614. 0x61, 0x67, 0x65, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x16,
  615. 0x0a, 0x14, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65,
  616. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x4f, 0x75, 0x74,
  617. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x08,
  618. 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
  619. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x62,
  620. 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  621. 0x67, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x41,
  622. 0x64, 0x64, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  623. 0x73, 0x65, 0x22, 0x29, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x75, 0x74, 0x62,
  624. 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x74,
  625. 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x18, 0x0a,
  626. 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52,
  627. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x0a, 0x14, 0x41, 0x6c, 0x74, 0x65, 0x72,
  628. 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  629. 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61,
  630. 0x67, 0x12, 0x44, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
  631. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  632. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  633. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x09, 0x6f, 0x70,
  634. 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x17, 0x0a, 0x15, 0x41, 0x6c, 0x74, 0x65, 0x72,
  635. 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  636. 0x22, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x90, 0x06, 0x0a, 0x0e, 0x48,
  637. 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x77, 0x0a,
  638. 0x0a, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x32, 0x2e, 0x76, 0x32,
  639. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  640. 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x41, 0x64,
  641. 0x64, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  642. 0x33, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  643. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  644. 0x64, 0x2e, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70,
  645. 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x80, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76,
  646. 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x35, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  647. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d,
  648. 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76,
  649. 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  650. 0x36, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  651. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  652. 0x64, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52,
  653. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7d, 0x0a, 0x0c, 0x41, 0x6c, 0x74,
  654. 0x65, 0x72, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x34, 0x2e, 0x76, 0x32, 0x72, 0x61,
  655. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  656. 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x41, 0x6c, 0x74, 0x65,
  657. 0x72, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  658. 0x35, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  659. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  660. 0x64, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65,
  661. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7a, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x4f,
  662. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x33, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  663. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61,
  664. 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x41, 0x64, 0x64, 0x4f, 0x75, 0x74,
  665. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x76,
  666. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72,
  667. 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x41,
  668. 0x64, 0x64, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  669. 0x73, 0x65, 0x22, 0x00, 0x12, 0x83, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f,
  670. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x36, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  671. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61,
  672. 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
  673. 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  674. 0x37, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  675. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  676. 0x64, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  677. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x80, 0x01, 0x0a, 0x0d, 0x41,
  678. 0x6c, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x35, 0x2e, 0x76,
  679. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72,
  680. 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x41,
  681. 0x6c, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75,
  682. 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  683. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f,
  684. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x62, 0x6f,
  685. 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x52, 0x0a,
  686. 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  687. 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d,
  688. 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa,
  689. 0x02, 0x1f, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70,
  690. 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  691. 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  692. }
  693. var (
  694. file_v2ray_com_core_app_proxyman_command_command_proto_rawDescOnce sync.Once
  695. file_v2ray_com_core_app_proxyman_command_command_proto_rawDescData = file_v2ray_com_core_app_proxyman_command_command_proto_rawDesc
  696. )
  697. func file_v2ray_com_core_app_proxyman_command_command_proto_rawDescGZIP() []byte {
  698. file_v2ray_com_core_app_proxyman_command_command_proto_rawDescOnce.Do(func() {
  699. file_v2ray_com_core_app_proxyman_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_app_proxyman_command_command_proto_rawDescData)
  700. })
  701. return file_v2ray_com_core_app_proxyman_command_command_proto_rawDescData
  702. }
  703. var file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
  704. var file_v2ray_com_core_app_proxyman_command_command_proto_goTypes = []interface{}{
  705. (*AddUserOperation)(nil), // 0: v2ray.core.app.proxyman.command.AddUserOperation
  706. (*RemoveUserOperation)(nil), // 1: v2ray.core.app.proxyman.command.RemoveUserOperation
  707. (*AddInboundRequest)(nil), // 2: v2ray.core.app.proxyman.command.AddInboundRequest
  708. (*AddInboundResponse)(nil), // 3: v2ray.core.app.proxyman.command.AddInboundResponse
  709. (*RemoveInboundRequest)(nil), // 4: v2ray.core.app.proxyman.command.RemoveInboundRequest
  710. (*RemoveInboundResponse)(nil), // 5: v2ray.core.app.proxyman.command.RemoveInboundResponse
  711. (*AlterInboundRequest)(nil), // 6: v2ray.core.app.proxyman.command.AlterInboundRequest
  712. (*AlterInboundResponse)(nil), // 7: v2ray.core.app.proxyman.command.AlterInboundResponse
  713. (*AddOutboundRequest)(nil), // 8: v2ray.core.app.proxyman.command.AddOutboundRequest
  714. (*AddOutboundResponse)(nil), // 9: v2ray.core.app.proxyman.command.AddOutboundResponse
  715. (*RemoveOutboundRequest)(nil), // 10: v2ray.core.app.proxyman.command.RemoveOutboundRequest
  716. (*RemoveOutboundResponse)(nil), // 11: v2ray.core.app.proxyman.command.RemoveOutboundResponse
  717. (*AlterOutboundRequest)(nil), // 12: v2ray.core.app.proxyman.command.AlterOutboundRequest
  718. (*AlterOutboundResponse)(nil), // 13: v2ray.core.app.proxyman.command.AlterOutboundResponse
  719. (*Config)(nil), // 14: v2ray.core.app.proxyman.command.Config
  720. (*protocol.User)(nil), // 15: v2ray.core.common.protocol.User
  721. (*core.InboundHandlerConfig)(nil), // 16: v2ray.core.InboundHandlerConfig
  722. (*serial.TypedMessage)(nil), // 17: v2ray.core.common.serial.TypedMessage
  723. (*core.OutboundHandlerConfig)(nil), // 18: v2ray.core.OutboundHandlerConfig
  724. }
  725. var file_v2ray_com_core_app_proxyman_command_command_proto_depIdxs = []int32{
  726. 15, // 0: v2ray.core.app.proxyman.command.AddUserOperation.user:type_name -> v2ray.core.common.protocol.User
  727. 16, // 1: v2ray.core.app.proxyman.command.AddInboundRequest.inbound:type_name -> v2ray.core.InboundHandlerConfig
  728. 17, // 2: v2ray.core.app.proxyman.command.AlterInboundRequest.operation:type_name -> v2ray.core.common.serial.TypedMessage
  729. 18, // 3: v2ray.core.app.proxyman.command.AddOutboundRequest.outbound:type_name -> v2ray.core.OutboundHandlerConfig
  730. 17, // 4: v2ray.core.app.proxyman.command.AlterOutboundRequest.operation:type_name -> v2ray.core.common.serial.TypedMessage
  731. 2, // 5: v2ray.core.app.proxyman.command.HandlerService.AddInbound:input_type -> v2ray.core.app.proxyman.command.AddInboundRequest
  732. 4, // 6: v2ray.core.app.proxyman.command.HandlerService.RemoveInbound:input_type -> v2ray.core.app.proxyman.command.RemoveInboundRequest
  733. 6, // 7: v2ray.core.app.proxyman.command.HandlerService.AlterInbound:input_type -> v2ray.core.app.proxyman.command.AlterInboundRequest
  734. 8, // 8: v2ray.core.app.proxyman.command.HandlerService.AddOutbound:input_type -> v2ray.core.app.proxyman.command.AddOutboundRequest
  735. 10, // 9: v2ray.core.app.proxyman.command.HandlerService.RemoveOutbound:input_type -> v2ray.core.app.proxyman.command.RemoveOutboundRequest
  736. 12, // 10: v2ray.core.app.proxyman.command.HandlerService.AlterOutbound:input_type -> v2ray.core.app.proxyman.command.AlterOutboundRequest
  737. 3, // 11: v2ray.core.app.proxyman.command.HandlerService.AddInbound:output_type -> v2ray.core.app.proxyman.command.AddInboundResponse
  738. 5, // 12: v2ray.core.app.proxyman.command.HandlerService.RemoveInbound:output_type -> v2ray.core.app.proxyman.command.RemoveInboundResponse
  739. 7, // 13: v2ray.core.app.proxyman.command.HandlerService.AlterInbound:output_type -> v2ray.core.app.proxyman.command.AlterInboundResponse
  740. 9, // 14: v2ray.core.app.proxyman.command.HandlerService.AddOutbound:output_type -> v2ray.core.app.proxyman.command.AddOutboundResponse
  741. 11, // 15: v2ray.core.app.proxyman.command.HandlerService.RemoveOutbound:output_type -> v2ray.core.app.proxyman.command.RemoveOutboundResponse
  742. 13, // 16: v2ray.core.app.proxyman.command.HandlerService.AlterOutbound:output_type -> v2ray.core.app.proxyman.command.AlterOutboundResponse
  743. 11, // [11:17] is the sub-list for method output_type
  744. 5, // [5:11] is the sub-list for method input_type
  745. 5, // [5:5] is the sub-list for extension type_name
  746. 5, // [5:5] is the sub-list for extension extendee
  747. 0, // [0:5] is the sub-list for field type_name
  748. }
  749. func init() { file_v2ray_com_core_app_proxyman_command_command_proto_init() }
  750. func file_v2ray_com_core_app_proxyman_command_command_proto_init() {
  751. if File_v2ray_com_core_app_proxyman_command_command_proto != nil {
  752. return
  753. }
  754. if !protoimpl.UnsafeEnabled {
  755. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  756. switch v := v.(*AddUserOperation); i {
  757. case 0:
  758. return &v.state
  759. case 1:
  760. return &v.sizeCache
  761. case 2:
  762. return &v.unknownFields
  763. default:
  764. return nil
  765. }
  766. }
  767. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  768. switch v := v.(*RemoveUserOperation); i {
  769. case 0:
  770. return &v.state
  771. case 1:
  772. return &v.sizeCache
  773. case 2:
  774. return &v.unknownFields
  775. default:
  776. return nil
  777. }
  778. }
  779. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  780. switch v := v.(*AddInboundRequest); i {
  781. case 0:
  782. return &v.state
  783. case 1:
  784. return &v.sizeCache
  785. case 2:
  786. return &v.unknownFields
  787. default:
  788. return nil
  789. }
  790. }
  791. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  792. switch v := v.(*AddInboundResponse); i {
  793. case 0:
  794. return &v.state
  795. case 1:
  796. return &v.sizeCache
  797. case 2:
  798. return &v.unknownFields
  799. default:
  800. return nil
  801. }
  802. }
  803. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  804. switch v := v.(*RemoveInboundRequest); i {
  805. case 0:
  806. return &v.state
  807. case 1:
  808. return &v.sizeCache
  809. case 2:
  810. return &v.unknownFields
  811. default:
  812. return nil
  813. }
  814. }
  815. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  816. switch v := v.(*RemoveInboundResponse); i {
  817. case 0:
  818. return &v.state
  819. case 1:
  820. return &v.sizeCache
  821. case 2:
  822. return &v.unknownFields
  823. default:
  824. return nil
  825. }
  826. }
  827. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  828. switch v := v.(*AlterInboundRequest); i {
  829. case 0:
  830. return &v.state
  831. case 1:
  832. return &v.sizeCache
  833. case 2:
  834. return &v.unknownFields
  835. default:
  836. return nil
  837. }
  838. }
  839. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  840. switch v := v.(*AlterInboundResponse); i {
  841. case 0:
  842. return &v.state
  843. case 1:
  844. return &v.sizeCache
  845. case 2:
  846. return &v.unknownFields
  847. default:
  848. return nil
  849. }
  850. }
  851. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  852. switch v := v.(*AddOutboundRequest); i {
  853. case 0:
  854. return &v.state
  855. case 1:
  856. return &v.sizeCache
  857. case 2:
  858. return &v.unknownFields
  859. default:
  860. return nil
  861. }
  862. }
  863. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  864. switch v := v.(*AddOutboundResponse); i {
  865. case 0:
  866. return &v.state
  867. case 1:
  868. return &v.sizeCache
  869. case 2:
  870. return &v.unknownFields
  871. default:
  872. return nil
  873. }
  874. }
  875. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  876. switch v := v.(*RemoveOutboundRequest); i {
  877. case 0:
  878. return &v.state
  879. case 1:
  880. return &v.sizeCache
  881. case 2:
  882. return &v.unknownFields
  883. default:
  884. return nil
  885. }
  886. }
  887. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  888. switch v := v.(*RemoveOutboundResponse); i {
  889. case 0:
  890. return &v.state
  891. case 1:
  892. return &v.sizeCache
  893. case 2:
  894. return &v.unknownFields
  895. default:
  896. return nil
  897. }
  898. }
  899. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  900. switch v := v.(*AlterOutboundRequest); i {
  901. case 0:
  902. return &v.state
  903. case 1:
  904. return &v.sizeCache
  905. case 2:
  906. return &v.unknownFields
  907. default:
  908. return nil
  909. }
  910. }
  911. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  912. switch v := v.(*AlterOutboundResponse); i {
  913. case 0:
  914. return &v.state
  915. case 1:
  916. return &v.sizeCache
  917. case 2:
  918. return &v.unknownFields
  919. default:
  920. return nil
  921. }
  922. }
  923. file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  924. switch v := v.(*Config); i {
  925. case 0:
  926. return &v.state
  927. case 1:
  928. return &v.sizeCache
  929. case 2:
  930. return &v.unknownFields
  931. default:
  932. return nil
  933. }
  934. }
  935. }
  936. type x struct{}
  937. out := protoimpl.TypeBuilder{
  938. File: protoimpl.DescBuilder{
  939. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  940. RawDescriptor: file_v2ray_com_core_app_proxyman_command_command_proto_rawDesc,
  941. NumEnums: 0,
  942. NumMessages: 15,
  943. NumExtensions: 0,
  944. NumServices: 1,
  945. },
  946. GoTypes: file_v2ray_com_core_app_proxyman_command_command_proto_goTypes,
  947. DependencyIndexes: file_v2ray_com_core_app_proxyman_command_command_proto_depIdxs,
  948. MessageInfos: file_v2ray_com_core_app_proxyman_command_command_proto_msgTypes,
  949. }.Build()
  950. File_v2ray_com_core_app_proxyman_command_command_proto = out.File
  951. file_v2ray_com_core_app_proxyman_command_command_proto_rawDesc = nil
  952. file_v2ray_com_core_app_proxyman_command_command_proto_goTypes = nil
  953. file_v2ray_com_core_app_proxyman_command_command_proto_depIdxs = nil
  954. }
  955. // Reference imports to suppress errors if they are not otherwise used.
  956. var _ context.Context
  957. var _ grpc.ClientConnInterface
  958. // This is a compile-time assertion to ensure that this generated file
  959. // is compatible with the grpc package it is being compiled against.
  960. const _ = grpc.SupportPackageIsVersion6
  961. // HandlerServiceClient is the client API for HandlerService service.
  962. //
  963. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  964. type HandlerServiceClient interface {
  965. AddInbound(ctx context.Context, in *AddInboundRequest, opts ...grpc.CallOption) (*AddInboundResponse, error)
  966. RemoveInbound(ctx context.Context, in *RemoveInboundRequest, opts ...grpc.CallOption) (*RemoveInboundResponse, error)
  967. AlterInbound(ctx context.Context, in *AlterInboundRequest, opts ...grpc.CallOption) (*AlterInboundResponse, error)
  968. AddOutbound(ctx context.Context, in *AddOutboundRequest, opts ...grpc.CallOption) (*AddOutboundResponse, error)
  969. RemoveOutbound(ctx context.Context, in *RemoveOutboundRequest, opts ...grpc.CallOption) (*RemoveOutboundResponse, error)
  970. AlterOutbound(ctx context.Context, in *AlterOutboundRequest, opts ...grpc.CallOption) (*AlterOutboundResponse, error)
  971. }
  972. type handlerServiceClient struct {
  973. cc grpc.ClientConnInterface
  974. }
  975. func NewHandlerServiceClient(cc grpc.ClientConnInterface) HandlerServiceClient {
  976. return &handlerServiceClient{cc}
  977. }
  978. func (c *handlerServiceClient) AddInbound(ctx context.Context, in *AddInboundRequest, opts ...grpc.CallOption) (*AddInboundResponse, error) {
  979. out := new(AddInboundResponse)
  980. err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AddInbound", in, out, opts...)
  981. if err != nil {
  982. return nil, err
  983. }
  984. return out, nil
  985. }
  986. func (c *handlerServiceClient) RemoveInbound(ctx context.Context, in *RemoveInboundRequest, opts ...grpc.CallOption) (*RemoveInboundResponse, error) {
  987. out := new(RemoveInboundResponse)
  988. err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/RemoveInbound", in, out, opts...)
  989. if err != nil {
  990. return nil, err
  991. }
  992. return out, nil
  993. }
  994. func (c *handlerServiceClient) AlterInbound(ctx context.Context, in *AlterInboundRequest, opts ...grpc.CallOption) (*AlterInboundResponse, error) {
  995. out := new(AlterInboundResponse)
  996. err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AlterInbound", in, out, opts...)
  997. if err != nil {
  998. return nil, err
  999. }
  1000. return out, nil
  1001. }
  1002. func (c *handlerServiceClient) AddOutbound(ctx context.Context, in *AddOutboundRequest, opts ...grpc.CallOption) (*AddOutboundResponse, error) {
  1003. out := new(AddOutboundResponse)
  1004. err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AddOutbound", in, out, opts...)
  1005. if err != nil {
  1006. return nil, err
  1007. }
  1008. return out, nil
  1009. }
  1010. func (c *handlerServiceClient) RemoveOutbound(ctx context.Context, in *RemoveOutboundRequest, opts ...grpc.CallOption) (*RemoveOutboundResponse, error) {
  1011. out := new(RemoveOutboundResponse)
  1012. err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/RemoveOutbound", in, out, opts...)
  1013. if err != nil {
  1014. return nil, err
  1015. }
  1016. return out, nil
  1017. }
  1018. func (c *handlerServiceClient) AlterOutbound(ctx context.Context, in *AlterOutboundRequest, opts ...grpc.CallOption) (*AlterOutboundResponse, error) {
  1019. out := new(AlterOutboundResponse)
  1020. err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AlterOutbound", in, out, opts...)
  1021. if err != nil {
  1022. return nil, err
  1023. }
  1024. return out, nil
  1025. }
  1026. // HandlerServiceServer is the server API for HandlerService service.
  1027. type HandlerServiceServer interface {
  1028. AddInbound(context.Context, *AddInboundRequest) (*AddInboundResponse, error)
  1029. RemoveInbound(context.Context, *RemoveInboundRequest) (*RemoveInboundResponse, error)
  1030. AlterInbound(context.Context, *AlterInboundRequest) (*AlterInboundResponse, error)
  1031. AddOutbound(context.Context, *AddOutboundRequest) (*AddOutboundResponse, error)
  1032. RemoveOutbound(context.Context, *RemoveOutboundRequest) (*RemoveOutboundResponse, error)
  1033. AlterOutbound(context.Context, *AlterOutboundRequest) (*AlterOutboundResponse, error)
  1034. }
  1035. // UnimplementedHandlerServiceServer can be embedded to have forward compatible implementations.
  1036. type UnimplementedHandlerServiceServer struct {
  1037. }
  1038. func (*UnimplementedHandlerServiceServer) AddInbound(context.Context, *AddInboundRequest) (*AddInboundResponse, error) {
  1039. return nil, status.Errorf(codes.Unimplemented, "method AddInbound not implemented")
  1040. }
  1041. func (*UnimplementedHandlerServiceServer) RemoveInbound(context.Context, *RemoveInboundRequest) (*RemoveInboundResponse, error) {
  1042. return nil, status.Errorf(codes.Unimplemented, "method RemoveInbound not implemented")
  1043. }
  1044. func (*UnimplementedHandlerServiceServer) AlterInbound(context.Context, *AlterInboundRequest) (*AlterInboundResponse, error) {
  1045. return nil, status.Errorf(codes.Unimplemented, "method AlterInbound not implemented")
  1046. }
  1047. func (*UnimplementedHandlerServiceServer) AddOutbound(context.Context, *AddOutboundRequest) (*AddOutboundResponse, error) {
  1048. return nil, status.Errorf(codes.Unimplemented, "method AddOutbound not implemented")
  1049. }
  1050. func (*UnimplementedHandlerServiceServer) RemoveOutbound(context.Context, *RemoveOutboundRequest) (*RemoveOutboundResponse, error) {
  1051. return nil, status.Errorf(codes.Unimplemented, "method RemoveOutbound not implemented")
  1052. }
  1053. func (*UnimplementedHandlerServiceServer) AlterOutbound(context.Context, *AlterOutboundRequest) (*AlterOutboundResponse, error) {
  1054. return nil, status.Errorf(codes.Unimplemented, "method AlterOutbound not implemented")
  1055. }
  1056. func RegisterHandlerServiceServer(s *grpc.Server, srv HandlerServiceServer) {
  1057. s.RegisterService(&_HandlerService_serviceDesc, srv)
  1058. }
  1059. func _HandlerService_AddInbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1060. in := new(AddInboundRequest)
  1061. if err := dec(in); err != nil {
  1062. return nil, err
  1063. }
  1064. if interceptor == nil {
  1065. return srv.(HandlerServiceServer).AddInbound(ctx, in)
  1066. }
  1067. info := &grpc.UnaryServerInfo{
  1068. Server: srv,
  1069. FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AddInbound",
  1070. }
  1071. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1072. return srv.(HandlerServiceServer).AddInbound(ctx, req.(*AddInboundRequest))
  1073. }
  1074. return interceptor(ctx, in, info, handler)
  1075. }
  1076. func _HandlerService_RemoveInbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1077. in := new(RemoveInboundRequest)
  1078. if err := dec(in); err != nil {
  1079. return nil, err
  1080. }
  1081. if interceptor == nil {
  1082. return srv.(HandlerServiceServer).RemoveInbound(ctx, in)
  1083. }
  1084. info := &grpc.UnaryServerInfo{
  1085. Server: srv,
  1086. FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/RemoveInbound",
  1087. }
  1088. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1089. return srv.(HandlerServiceServer).RemoveInbound(ctx, req.(*RemoveInboundRequest))
  1090. }
  1091. return interceptor(ctx, in, info, handler)
  1092. }
  1093. func _HandlerService_AlterInbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1094. in := new(AlterInboundRequest)
  1095. if err := dec(in); err != nil {
  1096. return nil, err
  1097. }
  1098. if interceptor == nil {
  1099. return srv.(HandlerServiceServer).AlterInbound(ctx, in)
  1100. }
  1101. info := &grpc.UnaryServerInfo{
  1102. Server: srv,
  1103. FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AlterInbound",
  1104. }
  1105. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1106. return srv.(HandlerServiceServer).AlterInbound(ctx, req.(*AlterInboundRequest))
  1107. }
  1108. return interceptor(ctx, in, info, handler)
  1109. }
  1110. func _HandlerService_AddOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1111. in := new(AddOutboundRequest)
  1112. if err := dec(in); err != nil {
  1113. return nil, err
  1114. }
  1115. if interceptor == nil {
  1116. return srv.(HandlerServiceServer).AddOutbound(ctx, in)
  1117. }
  1118. info := &grpc.UnaryServerInfo{
  1119. Server: srv,
  1120. FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AddOutbound",
  1121. }
  1122. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1123. return srv.(HandlerServiceServer).AddOutbound(ctx, req.(*AddOutboundRequest))
  1124. }
  1125. return interceptor(ctx, in, info, handler)
  1126. }
  1127. func _HandlerService_RemoveOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1128. in := new(RemoveOutboundRequest)
  1129. if err := dec(in); err != nil {
  1130. return nil, err
  1131. }
  1132. if interceptor == nil {
  1133. return srv.(HandlerServiceServer).RemoveOutbound(ctx, in)
  1134. }
  1135. info := &grpc.UnaryServerInfo{
  1136. Server: srv,
  1137. FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/RemoveOutbound",
  1138. }
  1139. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1140. return srv.(HandlerServiceServer).RemoveOutbound(ctx, req.(*RemoveOutboundRequest))
  1141. }
  1142. return interceptor(ctx, in, info, handler)
  1143. }
  1144. func _HandlerService_AlterOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1145. in := new(AlterOutboundRequest)
  1146. if err := dec(in); err != nil {
  1147. return nil, err
  1148. }
  1149. if interceptor == nil {
  1150. return srv.(HandlerServiceServer).AlterOutbound(ctx, in)
  1151. }
  1152. info := &grpc.UnaryServerInfo{
  1153. Server: srv,
  1154. FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AlterOutbound",
  1155. }
  1156. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1157. return srv.(HandlerServiceServer).AlterOutbound(ctx, req.(*AlterOutboundRequest))
  1158. }
  1159. return interceptor(ctx, in, info, handler)
  1160. }
  1161. var _HandlerService_serviceDesc = grpc.ServiceDesc{
  1162. ServiceName: "v2ray.core.app.proxyman.command.HandlerService",
  1163. HandlerType: (*HandlerServiceServer)(nil),
  1164. Methods: []grpc.MethodDesc{
  1165. {
  1166. MethodName: "AddInbound",
  1167. Handler: _HandlerService_AddInbound_Handler,
  1168. },
  1169. {
  1170. MethodName: "RemoveInbound",
  1171. Handler: _HandlerService_RemoveInbound_Handler,
  1172. },
  1173. {
  1174. MethodName: "AlterInbound",
  1175. Handler: _HandlerService_AlterInbound_Handler,
  1176. },
  1177. {
  1178. MethodName: "AddOutbound",
  1179. Handler: _HandlerService_AddOutbound_Handler,
  1180. },
  1181. {
  1182. MethodName: "RemoveOutbound",
  1183. Handler: _HandlerService_RemoveOutbound_Handler,
  1184. },
  1185. {
  1186. MethodName: "AlterOutbound",
  1187. Handler: _HandlerService_AlterOutbound_Handler,
  1188. },
  1189. },
  1190. Streams: []grpc.StreamDesc{},
  1191. Metadata: "v2ray.com/core/app/proxyman/command/command.proto",
  1192. }