plugin.pb.go 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v3.12.4
  5. // source: plugin.proto
  6. package pluginv1
  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. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type GetInfoRequest struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. unknownFields protoimpl.UnknownFields
  23. sizeCache protoimpl.SizeCache
  24. }
  25. func (x *GetInfoRequest) Reset() {
  26. *x = GetInfoRequest{}
  27. mi := &file_plugin_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. func (x *GetInfoRequest) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*GetInfoRequest) ProtoMessage() {}
  35. func (x *GetInfoRequest) ProtoReflect() protoreflect.Message {
  36. mi := &file_plugin_proto_msgTypes[0]
  37. if x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.
  47. func (*GetInfoRequest) Descriptor() ([]byte, []int) {
  48. return file_plugin_proto_rawDescGZIP(), []int{0}
  49. }
  50. type GetInfoResponse struct {
  51. state protoimpl.MessageState `protogen:"open.v1"`
  52. PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
  53. PluginVersion string `protobuf:"bytes,2,opt,name=plugin_version,json=pluginVersion,proto3" json:"plugin_version,omitempty"`
  54. ProtocolVersion uint32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
  55. TransportApiVersion uint32 `protobuf:"varint,4,opt,name=transport_api_version,json=transportApiVersion,proto3" json:"transport_api_version,omitempty"`
  56. Capabilities []string `protobuf:"bytes,5,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
  57. unknownFields protoimpl.UnknownFields
  58. sizeCache protoimpl.SizeCache
  59. }
  60. func (x *GetInfoResponse) Reset() {
  61. *x = GetInfoResponse{}
  62. mi := &file_plugin_proto_msgTypes[1]
  63. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  64. ms.StoreMessageInfo(mi)
  65. }
  66. func (x *GetInfoResponse) String() string {
  67. return protoimpl.X.MessageStringOf(x)
  68. }
  69. func (*GetInfoResponse) ProtoMessage() {}
  70. func (x *GetInfoResponse) ProtoReflect() protoreflect.Message {
  71. mi := &file_plugin_proto_msgTypes[1]
  72. if x != nil {
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. if ms.LoadMessageInfo() == nil {
  75. ms.StoreMessageInfo(mi)
  76. }
  77. return ms
  78. }
  79. return mi.MessageOf(x)
  80. }
  81. // Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.
  82. func (*GetInfoResponse) Descriptor() ([]byte, []int) {
  83. return file_plugin_proto_rawDescGZIP(), []int{1}
  84. }
  85. func (x *GetInfoResponse) GetPluginId() string {
  86. if x != nil {
  87. return x.PluginId
  88. }
  89. return ""
  90. }
  91. func (x *GetInfoResponse) GetPluginVersion() string {
  92. if x != nil {
  93. return x.PluginVersion
  94. }
  95. return ""
  96. }
  97. func (x *GetInfoResponse) GetProtocolVersion() uint32 {
  98. if x != nil {
  99. return x.ProtocolVersion
  100. }
  101. return 0
  102. }
  103. func (x *GetInfoResponse) GetTransportApiVersion() uint32 {
  104. if x != nil {
  105. return x.TransportApiVersion
  106. }
  107. return 0
  108. }
  109. func (x *GetInfoResponse) GetCapabilities() []string {
  110. if x != nil {
  111. return x.Capabilities
  112. }
  113. return nil
  114. }
  115. type HealthRequest struct {
  116. state protoimpl.MessageState `protogen:"open.v1"`
  117. unknownFields protoimpl.UnknownFields
  118. sizeCache protoimpl.SizeCache
  119. }
  120. func (x *HealthRequest) Reset() {
  121. *x = HealthRequest{}
  122. mi := &file_plugin_proto_msgTypes[2]
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. ms.StoreMessageInfo(mi)
  125. }
  126. func (x *HealthRequest) String() string {
  127. return protoimpl.X.MessageStringOf(x)
  128. }
  129. func (*HealthRequest) ProtoMessage() {}
  130. func (x *HealthRequest) ProtoReflect() protoreflect.Message {
  131. mi := &file_plugin_proto_msgTypes[2]
  132. if x != nil {
  133. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  134. if ms.LoadMessageInfo() == nil {
  135. ms.StoreMessageInfo(mi)
  136. }
  137. return ms
  138. }
  139. return mi.MessageOf(x)
  140. }
  141. // Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
  142. func (*HealthRequest) Descriptor() ([]byte, []int) {
  143. return file_plugin_proto_rawDescGZIP(), []int{2}
  144. }
  145. type HealthResponse struct {
  146. state protoimpl.MessageState `protogen:"open.v1"`
  147. Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
  148. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  149. unknownFields protoimpl.UnknownFields
  150. sizeCache protoimpl.SizeCache
  151. }
  152. func (x *HealthResponse) Reset() {
  153. *x = HealthResponse{}
  154. mi := &file_plugin_proto_msgTypes[3]
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. ms.StoreMessageInfo(mi)
  157. }
  158. func (x *HealthResponse) String() string {
  159. return protoimpl.X.MessageStringOf(x)
  160. }
  161. func (*HealthResponse) ProtoMessage() {}
  162. func (x *HealthResponse) ProtoReflect() protoreflect.Message {
  163. mi := &file_plugin_proto_msgTypes[3]
  164. if x != nil {
  165. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  166. if ms.LoadMessageInfo() == nil {
  167. ms.StoreMessageInfo(mi)
  168. }
  169. return ms
  170. }
  171. return mi.MessageOf(x)
  172. }
  173. // Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
  174. func (*HealthResponse) Descriptor() ([]byte, []int) {
  175. return file_plugin_proto_rawDescGZIP(), []int{3}
  176. }
  177. func (x *HealthResponse) GetHealthy() bool {
  178. if x != nil {
  179. return x.Healthy
  180. }
  181. return false
  182. }
  183. func (x *HealthResponse) GetMessage() string {
  184. if x != nil {
  185. return x.Message
  186. }
  187. return ""
  188. }
  189. type ValidateConfigRequest struct {
  190. state protoimpl.MessageState `protogen:"open.v1"`
  191. ConfigJson []byte `protobuf:"bytes,1,opt,name=config_json,json=configJson,proto3" json:"config_json,omitempty"`
  192. unknownFields protoimpl.UnknownFields
  193. sizeCache protoimpl.SizeCache
  194. }
  195. func (x *ValidateConfigRequest) Reset() {
  196. *x = ValidateConfigRequest{}
  197. mi := &file_plugin_proto_msgTypes[4]
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. ms.StoreMessageInfo(mi)
  200. }
  201. func (x *ValidateConfigRequest) String() string {
  202. return protoimpl.X.MessageStringOf(x)
  203. }
  204. func (*ValidateConfigRequest) ProtoMessage() {}
  205. func (x *ValidateConfigRequest) ProtoReflect() protoreflect.Message {
  206. mi := &file_plugin_proto_msgTypes[4]
  207. if x != nil {
  208. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  209. if ms.LoadMessageInfo() == nil {
  210. ms.StoreMessageInfo(mi)
  211. }
  212. return ms
  213. }
  214. return mi.MessageOf(x)
  215. }
  216. // Deprecated: Use ValidateConfigRequest.ProtoReflect.Descriptor instead.
  217. func (*ValidateConfigRequest) Descriptor() ([]byte, []int) {
  218. return file_plugin_proto_rawDescGZIP(), []int{4}
  219. }
  220. func (x *ValidateConfigRequest) GetConfigJson() []byte {
  221. if x != nil {
  222. return x.ConfigJson
  223. }
  224. return nil
  225. }
  226. type ValidateConfigResponse struct {
  227. state protoimpl.MessageState `protogen:"open.v1"`
  228. Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
  229. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  230. NormalizedConfigJson []byte `protobuf:"bytes,3,opt,name=normalized_config_json,json=normalizedConfigJson,proto3" json:"normalized_config_json,omitempty"`
  231. unknownFields protoimpl.UnknownFields
  232. sizeCache protoimpl.SizeCache
  233. }
  234. func (x *ValidateConfigResponse) Reset() {
  235. *x = ValidateConfigResponse{}
  236. mi := &file_plugin_proto_msgTypes[5]
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. ms.StoreMessageInfo(mi)
  239. }
  240. func (x *ValidateConfigResponse) String() string {
  241. return protoimpl.X.MessageStringOf(x)
  242. }
  243. func (*ValidateConfigResponse) ProtoMessage() {}
  244. func (x *ValidateConfigResponse) ProtoReflect() protoreflect.Message {
  245. mi := &file_plugin_proto_msgTypes[5]
  246. if x != nil {
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. if ms.LoadMessageInfo() == nil {
  249. ms.StoreMessageInfo(mi)
  250. }
  251. return ms
  252. }
  253. return mi.MessageOf(x)
  254. }
  255. // Deprecated: Use ValidateConfigResponse.ProtoReflect.Descriptor instead.
  256. func (*ValidateConfigResponse) Descriptor() ([]byte, []int) {
  257. return file_plugin_proto_rawDescGZIP(), []int{5}
  258. }
  259. func (x *ValidateConfigResponse) GetValid() bool {
  260. if x != nil {
  261. return x.Valid
  262. }
  263. return false
  264. }
  265. func (x *ValidateConfigResponse) GetMessage() string {
  266. if x != nil {
  267. return x.Message
  268. }
  269. return ""
  270. }
  271. func (x *ValidateConfigResponse) GetNormalizedConfigJson() []byte {
  272. if x != nil {
  273. return x.NormalizedConfigJson
  274. }
  275. return nil
  276. }
  277. type ApplyConfigRequest struct {
  278. state protoimpl.MessageState `protogen:"open.v1"`
  279. ConfigJson []byte `protobuf:"bytes,1,opt,name=config_json,json=configJson,proto3" json:"config_json,omitempty"`
  280. unknownFields protoimpl.UnknownFields
  281. sizeCache protoimpl.SizeCache
  282. }
  283. func (x *ApplyConfigRequest) Reset() {
  284. *x = ApplyConfigRequest{}
  285. mi := &file_plugin_proto_msgTypes[6]
  286. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  287. ms.StoreMessageInfo(mi)
  288. }
  289. func (x *ApplyConfigRequest) String() string {
  290. return protoimpl.X.MessageStringOf(x)
  291. }
  292. func (*ApplyConfigRequest) ProtoMessage() {}
  293. func (x *ApplyConfigRequest) ProtoReflect() protoreflect.Message {
  294. mi := &file_plugin_proto_msgTypes[6]
  295. if x != nil {
  296. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  297. if ms.LoadMessageInfo() == nil {
  298. ms.StoreMessageInfo(mi)
  299. }
  300. return ms
  301. }
  302. return mi.MessageOf(x)
  303. }
  304. // Deprecated: Use ApplyConfigRequest.ProtoReflect.Descriptor instead.
  305. func (*ApplyConfigRequest) Descriptor() ([]byte, []int) {
  306. return file_plugin_proto_rawDescGZIP(), []int{6}
  307. }
  308. func (x *ApplyConfigRequest) GetConfigJson() []byte {
  309. if x != nil {
  310. return x.ConfigJson
  311. }
  312. return nil
  313. }
  314. type ApplyConfigResponse struct {
  315. state protoimpl.MessageState `protogen:"open.v1"`
  316. Applied bool `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"`
  317. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  318. unknownFields protoimpl.UnknownFields
  319. sizeCache protoimpl.SizeCache
  320. }
  321. func (x *ApplyConfigResponse) Reset() {
  322. *x = ApplyConfigResponse{}
  323. mi := &file_plugin_proto_msgTypes[7]
  324. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  325. ms.StoreMessageInfo(mi)
  326. }
  327. func (x *ApplyConfigResponse) String() string {
  328. return protoimpl.X.MessageStringOf(x)
  329. }
  330. func (*ApplyConfigResponse) ProtoMessage() {}
  331. func (x *ApplyConfigResponse) ProtoReflect() protoreflect.Message {
  332. mi := &file_plugin_proto_msgTypes[7]
  333. if x != nil {
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. if ms.LoadMessageInfo() == nil {
  336. ms.StoreMessageInfo(mi)
  337. }
  338. return ms
  339. }
  340. return mi.MessageOf(x)
  341. }
  342. // Deprecated: Use ApplyConfigResponse.ProtoReflect.Descriptor instead.
  343. func (*ApplyConfigResponse) Descriptor() ([]byte, []int) {
  344. return file_plugin_proto_rawDescGZIP(), []int{7}
  345. }
  346. func (x *ApplyConfigResponse) GetApplied() bool {
  347. if x != nil {
  348. return x.Applied
  349. }
  350. return false
  351. }
  352. func (x *ApplyConfigResponse) GetMessage() string {
  353. if x != nil {
  354. return x.Message
  355. }
  356. return ""
  357. }
  358. type TestConfigRequest struct {
  359. state protoimpl.MessageState `protogen:"open.v1"`
  360. ConfigJson []byte `protobuf:"bytes,1,opt,name=config_json,json=configJson,proto3" json:"config_json,omitempty"`
  361. unknownFields protoimpl.UnknownFields
  362. sizeCache protoimpl.SizeCache
  363. }
  364. func (x *TestConfigRequest) Reset() {
  365. *x = TestConfigRequest{}
  366. mi := &file_plugin_proto_msgTypes[8]
  367. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  368. ms.StoreMessageInfo(mi)
  369. }
  370. func (x *TestConfigRequest) String() string {
  371. return protoimpl.X.MessageStringOf(x)
  372. }
  373. func (*TestConfigRequest) ProtoMessage() {}
  374. func (x *TestConfigRequest) ProtoReflect() protoreflect.Message {
  375. mi := &file_plugin_proto_msgTypes[8]
  376. if x != nil {
  377. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  378. if ms.LoadMessageInfo() == nil {
  379. ms.StoreMessageInfo(mi)
  380. }
  381. return ms
  382. }
  383. return mi.MessageOf(x)
  384. }
  385. // Deprecated: Use TestConfigRequest.ProtoReflect.Descriptor instead.
  386. func (*TestConfigRequest) Descriptor() ([]byte, []int) {
  387. return file_plugin_proto_rawDescGZIP(), []int{8}
  388. }
  389. func (x *TestConfigRequest) GetConfigJson() []byte {
  390. if x != nil {
  391. return x.ConfigJson
  392. }
  393. return nil
  394. }
  395. type TestConfigResponse struct {
  396. state protoimpl.MessageState `protogen:"open.v1"`
  397. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  398. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  399. LatencyMs int64 `protobuf:"varint,3,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"`
  400. unknownFields protoimpl.UnknownFields
  401. sizeCache protoimpl.SizeCache
  402. }
  403. func (x *TestConfigResponse) Reset() {
  404. *x = TestConfigResponse{}
  405. mi := &file_plugin_proto_msgTypes[9]
  406. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  407. ms.StoreMessageInfo(mi)
  408. }
  409. func (x *TestConfigResponse) String() string {
  410. return protoimpl.X.MessageStringOf(x)
  411. }
  412. func (*TestConfigResponse) ProtoMessage() {}
  413. func (x *TestConfigResponse) ProtoReflect() protoreflect.Message {
  414. mi := &file_plugin_proto_msgTypes[9]
  415. if x != nil {
  416. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  417. if ms.LoadMessageInfo() == nil {
  418. ms.StoreMessageInfo(mi)
  419. }
  420. return ms
  421. }
  422. return mi.MessageOf(x)
  423. }
  424. // Deprecated: Use TestConfigResponse.ProtoReflect.Descriptor instead.
  425. func (*TestConfigResponse) Descriptor() ([]byte, []int) {
  426. return file_plugin_proto_rawDescGZIP(), []int{9}
  427. }
  428. func (x *TestConfigResponse) GetSuccess() bool {
  429. if x != nil {
  430. return x.Success
  431. }
  432. return false
  433. }
  434. func (x *TestConfigResponse) GetMessage() string {
  435. if x != nil {
  436. return x.Message
  437. }
  438. return ""
  439. }
  440. func (x *TestConfigResponse) GetLatencyMs() int64 {
  441. if x != nil {
  442. return x.LatencyMs
  443. }
  444. return 0
  445. }
  446. type HeaderValues struct {
  447. state protoimpl.MessageState `protogen:"open.v1"`
  448. Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
  449. unknownFields protoimpl.UnknownFields
  450. sizeCache protoimpl.SizeCache
  451. }
  452. func (x *HeaderValues) Reset() {
  453. *x = HeaderValues{}
  454. mi := &file_plugin_proto_msgTypes[10]
  455. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  456. ms.StoreMessageInfo(mi)
  457. }
  458. func (x *HeaderValues) String() string {
  459. return protoimpl.X.MessageStringOf(x)
  460. }
  461. func (*HeaderValues) ProtoMessage() {}
  462. func (x *HeaderValues) ProtoReflect() protoreflect.Message {
  463. mi := &file_plugin_proto_msgTypes[10]
  464. if x != nil {
  465. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  466. if ms.LoadMessageInfo() == nil {
  467. ms.StoreMessageInfo(mi)
  468. }
  469. return ms
  470. }
  471. return mi.MessageOf(x)
  472. }
  473. // Deprecated: Use HeaderValues.ProtoReflect.Descriptor instead.
  474. func (*HeaderValues) Descriptor() ([]byte, []int) {
  475. return file_plugin_proto_rawDescGZIP(), []int{10}
  476. }
  477. func (x *HeaderValues) GetValues() []string {
  478. if x != nil {
  479. return x.Values
  480. }
  481. return nil
  482. }
  483. type ForwardRequestStart struct {
  484. state protoimpl.MessageState `protogen:"open.v1"`
  485. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
  486. Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
  487. Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
  488. Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
  489. Headers map[string]*HeaderValues `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  490. ProxyUrl string `protobuf:"bytes,6,opt,name=proxy_url,json=proxyUrl,proto3" json:"proxy_url,omitempty"`
  491. AccountId int64 `protobuf:"varint,7,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
  492. AccountConcurrency int32 `protobuf:"varint,8,opt,name=account_concurrency,json=accountConcurrency,proto3" json:"account_concurrency,omitempty"`
  493. Platform string `protobuf:"bytes,9,opt,name=platform,proto3" json:"platform,omitempty"`
  494. AccountType string `protobuf:"bytes,10,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
  495. ContentLength int64 `protobuf:"varint,11,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
  496. HasBody bool `protobuf:"varint,12,opt,name=has_body,json=hasBody,proto3" json:"has_body,omitempty"`
  497. unknownFields protoimpl.UnknownFields
  498. sizeCache protoimpl.SizeCache
  499. }
  500. func (x *ForwardRequestStart) Reset() {
  501. *x = ForwardRequestStart{}
  502. mi := &file_plugin_proto_msgTypes[11]
  503. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  504. ms.StoreMessageInfo(mi)
  505. }
  506. func (x *ForwardRequestStart) String() string {
  507. return protoimpl.X.MessageStringOf(x)
  508. }
  509. func (*ForwardRequestStart) ProtoMessage() {}
  510. func (x *ForwardRequestStart) ProtoReflect() protoreflect.Message {
  511. mi := &file_plugin_proto_msgTypes[11]
  512. if x != nil {
  513. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  514. if ms.LoadMessageInfo() == nil {
  515. ms.StoreMessageInfo(mi)
  516. }
  517. return ms
  518. }
  519. return mi.MessageOf(x)
  520. }
  521. // Deprecated: Use ForwardRequestStart.ProtoReflect.Descriptor instead.
  522. func (*ForwardRequestStart) Descriptor() ([]byte, []int) {
  523. return file_plugin_proto_rawDescGZIP(), []int{11}
  524. }
  525. func (x *ForwardRequestStart) GetRequestId() string {
  526. if x != nil {
  527. return x.RequestId
  528. }
  529. return ""
  530. }
  531. func (x *ForwardRequestStart) GetMethod() string {
  532. if x != nil {
  533. return x.Method
  534. }
  535. return ""
  536. }
  537. func (x *ForwardRequestStart) GetUrl() string {
  538. if x != nil {
  539. return x.Url
  540. }
  541. return ""
  542. }
  543. func (x *ForwardRequestStart) GetHost() string {
  544. if x != nil {
  545. return x.Host
  546. }
  547. return ""
  548. }
  549. func (x *ForwardRequestStart) GetHeaders() map[string]*HeaderValues {
  550. if x != nil {
  551. return x.Headers
  552. }
  553. return nil
  554. }
  555. func (x *ForwardRequestStart) GetProxyUrl() string {
  556. if x != nil {
  557. return x.ProxyUrl
  558. }
  559. return ""
  560. }
  561. func (x *ForwardRequestStart) GetAccountId() int64 {
  562. if x != nil {
  563. return x.AccountId
  564. }
  565. return 0
  566. }
  567. func (x *ForwardRequestStart) GetAccountConcurrency() int32 {
  568. if x != nil {
  569. return x.AccountConcurrency
  570. }
  571. return 0
  572. }
  573. func (x *ForwardRequestStart) GetPlatform() string {
  574. if x != nil {
  575. return x.Platform
  576. }
  577. return ""
  578. }
  579. func (x *ForwardRequestStart) GetAccountType() string {
  580. if x != nil {
  581. return x.AccountType
  582. }
  583. return ""
  584. }
  585. func (x *ForwardRequestStart) GetContentLength() int64 {
  586. if x != nil {
  587. return x.ContentLength
  588. }
  589. return 0
  590. }
  591. func (x *ForwardRequestStart) GetHasBody() bool {
  592. if x != nil {
  593. return x.HasBody
  594. }
  595. return false
  596. }
  597. type ForwardRequest struct {
  598. state protoimpl.MessageState `protogen:"open.v1"`
  599. // Types that are valid to be assigned to Frame:
  600. //
  601. // *ForwardRequest_Start
  602. // *ForwardRequest_BodyChunk
  603. // *ForwardRequest_BodyEnd
  604. Frame isForwardRequest_Frame `protobuf_oneof:"frame"`
  605. unknownFields protoimpl.UnknownFields
  606. sizeCache protoimpl.SizeCache
  607. }
  608. func (x *ForwardRequest) Reset() {
  609. *x = ForwardRequest{}
  610. mi := &file_plugin_proto_msgTypes[12]
  611. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  612. ms.StoreMessageInfo(mi)
  613. }
  614. func (x *ForwardRequest) String() string {
  615. return protoimpl.X.MessageStringOf(x)
  616. }
  617. func (*ForwardRequest) ProtoMessage() {}
  618. func (x *ForwardRequest) ProtoReflect() protoreflect.Message {
  619. mi := &file_plugin_proto_msgTypes[12]
  620. if x != nil {
  621. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  622. if ms.LoadMessageInfo() == nil {
  623. ms.StoreMessageInfo(mi)
  624. }
  625. return ms
  626. }
  627. return mi.MessageOf(x)
  628. }
  629. // Deprecated: Use ForwardRequest.ProtoReflect.Descriptor instead.
  630. func (*ForwardRequest) Descriptor() ([]byte, []int) {
  631. return file_plugin_proto_rawDescGZIP(), []int{12}
  632. }
  633. func (x *ForwardRequest) GetFrame() isForwardRequest_Frame {
  634. if x != nil {
  635. return x.Frame
  636. }
  637. return nil
  638. }
  639. func (x *ForwardRequest) GetStart() *ForwardRequestStart {
  640. if x != nil {
  641. if x, ok := x.Frame.(*ForwardRequest_Start); ok {
  642. return x.Start
  643. }
  644. }
  645. return nil
  646. }
  647. func (x *ForwardRequest) GetBodyChunk() []byte {
  648. if x != nil {
  649. if x, ok := x.Frame.(*ForwardRequest_BodyChunk); ok {
  650. return x.BodyChunk
  651. }
  652. }
  653. return nil
  654. }
  655. func (x *ForwardRequest) GetBodyEnd() bool {
  656. if x != nil {
  657. if x, ok := x.Frame.(*ForwardRequest_BodyEnd); ok {
  658. return x.BodyEnd
  659. }
  660. }
  661. return false
  662. }
  663. type isForwardRequest_Frame interface {
  664. isForwardRequest_Frame()
  665. }
  666. type ForwardRequest_Start struct {
  667. Start *ForwardRequestStart `protobuf:"bytes,1,opt,name=start,proto3,oneof"`
  668. }
  669. type ForwardRequest_BodyChunk struct {
  670. BodyChunk []byte `protobuf:"bytes,2,opt,name=body_chunk,json=bodyChunk,proto3,oneof"`
  671. }
  672. type ForwardRequest_BodyEnd struct {
  673. BodyEnd bool `protobuf:"varint,3,opt,name=body_end,json=bodyEnd,proto3,oneof"`
  674. }
  675. func (*ForwardRequest_Start) isForwardRequest_Frame() {}
  676. func (*ForwardRequest_BodyChunk) isForwardRequest_Frame() {}
  677. func (*ForwardRequest_BodyEnd) isForwardRequest_Frame() {}
  678. type ForwardResponseStart struct {
  679. state protoimpl.MessageState `protogen:"open.v1"`
  680. StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
  681. Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
  682. Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
  683. ProtocolMajor int32 `protobuf:"varint,4,opt,name=protocol_major,json=protocolMajor,proto3" json:"protocol_major,omitempty"`
  684. ProtocolMinor int32 `protobuf:"varint,5,opt,name=protocol_minor,json=protocolMinor,proto3" json:"protocol_minor,omitempty"`
  685. Headers map[string]*HeaderValues `protobuf:"bytes,6,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  686. ContentLength int64 `protobuf:"varint,7,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
  687. unknownFields protoimpl.UnknownFields
  688. sizeCache protoimpl.SizeCache
  689. }
  690. func (x *ForwardResponseStart) Reset() {
  691. *x = ForwardResponseStart{}
  692. mi := &file_plugin_proto_msgTypes[13]
  693. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  694. ms.StoreMessageInfo(mi)
  695. }
  696. func (x *ForwardResponseStart) String() string {
  697. return protoimpl.X.MessageStringOf(x)
  698. }
  699. func (*ForwardResponseStart) ProtoMessage() {}
  700. func (x *ForwardResponseStart) ProtoReflect() protoreflect.Message {
  701. mi := &file_plugin_proto_msgTypes[13]
  702. if x != nil {
  703. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  704. if ms.LoadMessageInfo() == nil {
  705. ms.StoreMessageInfo(mi)
  706. }
  707. return ms
  708. }
  709. return mi.MessageOf(x)
  710. }
  711. // Deprecated: Use ForwardResponseStart.ProtoReflect.Descriptor instead.
  712. func (*ForwardResponseStart) Descriptor() ([]byte, []int) {
  713. return file_plugin_proto_rawDescGZIP(), []int{13}
  714. }
  715. func (x *ForwardResponseStart) GetStatusCode() int32 {
  716. if x != nil {
  717. return x.StatusCode
  718. }
  719. return 0
  720. }
  721. func (x *ForwardResponseStart) GetStatus() string {
  722. if x != nil {
  723. return x.Status
  724. }
  725. return ""
  726. }
  727. func (x *ForwardResponseStart) GetProtocol() string {
  728. if x != nil {
  729. return x.Protocol
  730. }
  731. return ""
  732. }
  733. func (x *ForwardResponseStart) GetProtocolMajor() int32 {
  734. if x != nil {
  735. return x.ProtocolMajor
  736. }
  737. return 0
  738. }
  739. func (x *ForwardResponseStart) GetProtocolMinor() int32 {
  740. if x != nil {
  741. return x.ProtocolMinor
  742. }
  743. return 0
  744. }
  745. func (x *ForwardResponseStart) GetHeaders() map[string]*HeaderValues {
  746. if x != nil {
  747. return x.Headers
  748. }
  749. return nil
  750. }
  751. func (x *ForwardResponseStart) GetContentLength() int64 {
  752. if x != nil {
  753. return x.ContentLength
  754. }
  755. return 0
  756. }
  757. type ForwardResponseEnd struct {
  758. state protoimpl.MessageState `protogen:"open.v1"`
  759. BytesReceived int64 `protobuf:"varint,1,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"`
  760. DurationMs int64 `protobuf:"varint,2,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
  761. unknownFields protoimpl.UnknownFields
  762. sizeCache protoimpl.SizeCache
  763. }
  764. func (x *ForwardResponseEnd) Reset() {
  765. *x = ForwardResponseEnd{}
  766. mi := &file_plugin_proto_msgTypes[14]
  767. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  768. ms.StoreMessageInfo(mi)
  769. }
  770. func (x *ForwardResponseEnd) String() string {
  771. return protoimpl.X.MessageStringOf(x)
  772. }
  773. func (*ForwardResponseEnd) ProtoMessage() {}
  774. func (x *ForwardResponseEnd) ProtoReflect() protoreflect.Message {
  775. mi := &file_plugin_proto_msgTypes[14]
  776. if x != nil {
  777. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  778. if ms.LoadMessageInfo() == nil {
  779. ms.StoreMessageInfo(mi)
  780. }
  781. return ms
  782. }
  783. return mi.MessageOf(x)
  784. }
  785. // Deprecated: Use ForwardResponseEnd.ProtoReflect.Descriptor instead.
  786. func (*ForwardResponseEnd) Descriptor() ([]byte, []int) {
  787. return file_plugin_proto_rawDescGZIP(), []int{14}
  788. }
  789. func (x *ForwardResponseEnd) GetBytesReceived() int64 {
  790. if x != nil {
  791. return x.BytesReceived
  792. }
  793. return 0
  794. }
  795. func (x *ForwardResponseEnd) GetDurationMs() int64 {
  796. if x != nil {
  797. return x.DurationMs
  798. }
  799. return 0
  800. }
  801. type ForwardResponseError struct {
  802. state protoimpl.MessageState `protogen:"open.v1"`
  803. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  804. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  805. RequestSent bool `protobuf:"varint,3,opt,name=request_sent,json=requestSent,proto3" json:"request_sent,omitempty"`
  806. unknownFields protoimpl.UnknownFields
  807. sizeCache protoimpl.SizeCache
  808. }
  809. func (x *ForwardResponseError) Reset() {
  810. *x = ForwardResponseError{}
  811. mi := &file_plugin_proto_msgTypes[15]
  812. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  813. ms.StoreMessageInfo(mi)
  814. }
  815. func (x *ForwardResponseError) String() string {
  816. return protoimpl.X.MessageStringOf(x)
  817. }
  818. func (*ForwardResponseError) ProtoMessage() {}
  819. func (x *ForwardResponseError) ProtoReflect() protoreflect.Message {
  820. mi := &file_plugin_proto_msgTypes[15]
  821. if x != nil {
  822. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  823. if ms.LoadMessageInfo() == nil {
  824. ms.StoreMessageInfo(mi)
  825. }
  826. return ms
  827. }
  828. return mi.MessageOf(x)
  829. }
  830. // Deprecated: Use ForwardResponseError.ProtoReflect.Descriptor instead.
  831. func (*ForwardResponseError) Descriptor() ([]byte, []int) {
  832. return file_plugin_proto_rawDescGZIP(), []int{15}
  833. }
  834. func (x *ForwardResponseError) GetCode() string {
  835. if x != nil {
  836. return x.Code
  837. }
  838. return ""
  839. }
  840. func (x *ForwardResponseError) GetMessage() string {
  841. if x != nil {
  842. return x.Message
  843. }
  844. return ""
  845. }
  846. func (x *ForwardResponseError) GetRequestSent() bool {
  847. if x != nil {
  848. return x.RequestSent
  849. }
  850. return false
  851. }
  852. type ForwardResponse struct {
  853. state protoimpl.MessageState `protogen:"open.v1"`
  854. // Types that are valid to be assigned to Frame:
  855. //
  856. // *ForwardResponse_Start
  857. // *ForwardResponse_BodyChunk
  858. // *ForwardResponse_End
  859. // *ForwardResponse_Error
  860. Frame isForwardResponse_Frame `protobuf_oneof:"frame"`
  861. unknownFields protoimpl.UnknownFields
  862. sizeCache protoimpl.SizeCache
  863. }
  864. func (x *ForwardResponse) Reset() {
  865. *x = ForwardResponse{}
  866. mi := &file_plugin_proto_msgTypes[16]
  867. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  868. ms.StoreMessageInfo(mi)
  869. }
  870. func (x *ForwardResponse) String() string {
  871. return protoimpl.X.MessageStringOf(x)
  872. }
  873. func (*ForwardResponse) ProtoMessage() {}
  874. func (x *ForwardResponse) ProtoReflect() protoreflect.Message {
  875. mi := &file_plugin_proto_msgTypes[16]
  876. if x != nil {
  877. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  878. if ms.LoadMessageInfo() == nil {
  879. ms.StoreMessageInfo(mi)
  880. }
  881. return ms
  882. }
  883. return mi.MessageOf(x)
  884. }
  885. // Deprecated: Use ForwardResponse.ProtoReflect.Descriptor instead.
  886. func (*ForwardResponse) Descriptor() ([]byte, []int) {
  887. return file_plugin_proto_rawDescGZIP(), []int{16}
  888. }
  889. func (x *ForwardResponse) GetFrame() isForwardResponse_Frame {
  890. if x != nil {
  891. return x.Frame
  892. }
  893. return nil
  894. }
  895. func (x *ForwardResponse) GetStart() *ForwardResponseStart {
  896. if x != nil {
  897. if x, ok := x.Frame.(*ForwardResponse_Start); ok {
  898. return x.Start
  899. }
  900. }
  901. return nil
  902. }
  903. func (x *ForwardResponse) GetBodyChunk() []byte {
  904. if x != nil {
  905. if x, ok := x.Frame.(*ForwardResponse_BodyChunk); ok {
  906. return x.BodyChunk
  907. }
  908. }
  909. return nil
  910. }
  911. func (x *ForwardResponse) GetEnd() *ForwardResponseEnd {
  912. if x != nil {
  913. if x, ok := x.Frame.(*ForwardResponse_End); ok {
  914. return x.End
  915. }
  916. }
  917. return nil
  918. }
  919. func (x *ForwardResponse) GetError() *ForwardResponseError {
  920. if x != nil {
  921. if x, ok := x.Frame.(*ForwardResponse_Error); ok {
  922. return x.Error
  923. }
  924. }
  925. return nil
  926. }
  927. type isForwardResponse_Frame interface {
  928. isForwardResponse_Frame()
  929. }
  930. type ForwardResponse_Start struct {
  931. Start *ForwardResponseStart `protobuf:"bytes,1,opt,name=start,proto3,oneof"`
  932. }
  933. type ForwardResponse_BodyChunk struct {
  934. BodyChunk []byte `protobuf:"bytes,2,opt,name=body_chunk,json=bodyChunk,proto3,oneof"`
  935. }
  936. type ForwardResponse_End struct {
  937. End *ForwardResponseEnd `protobuf:"bytes,3,opt,name=end,proto3,oneof"`
  938. }
  939. type ForwardResponse_Error struct {
  940. Error *ForwardResponseError `protobuf:"bytes,4,opt,name=error,proto3,oneof"`
  941. }
  942. func (*ForwardResponse_Start) isForwardResponse_Frame() {}
  943. func (*ForwardResponse_BodyChunk) isForwardResponse_Frame() {}
  944. func (*ForwardResponse_End) isForwardResponse_Frame() {}
  945. func (*ForwardResponse_Error) isForwardResponse_Frame() {}
  946. var File_plugin_proto protoreflect.FileDescriptor
  947. const file_plugin_proto_rawDesc = "" +
  948. "\n" +
  949. "\fplugin.proto\x12\x11sub2api.plugin.v1\"\x10\n" +
  950. "\x0eGetInfoRequest\"\xd8\x01\n" +
  951. "\x0fGetInfoResponse\x12\x1b\n" +
  952. "\tplugin_id\x18\x01 \x01(\tR\bpluginId\x12%\n" +
  953. "\x0eplugin_version\x18\x02 \x01(\tR\rpluginVersion\x12)\n" +
  954. "\x10protocol_version\x18\x03 \x01(\rR\x0fprotocolVersion\x122\n" +
  955. "\x15transport_api_version\x18\x04 \x01(\rR\x13transportApiVersion\x12\"\n" +
  956. "\fcapabilities\x18\x05 \x03(\tR\fcapabilities\"\x0f\n" +
  957. "\rHealthRequest\"D\n" +
  958. "\x0eHealthResponse\x12\x18\n" +
  959. "\ahealthy\x18\x01 \x01(\bR\ahealthy\x12\x18\n" +
  960. "\amessage\x18\x02 \x01(\tR\amessage\"8\n" +
  961. "\x15ValidateConfigRequest\x12\x1f\n" +
  962. "\vconfig_json\x18\x01 \x01(\fR\n" +
  963. "configJson\"~\n" +
  964. "\x16ValidateConfigResponse\x12\x14\n" +
  965. "\x05valid\x18\x01 \x01(\bR\x05valid\x12\x18\n" +
  966. "\amessage\x18\x02 \x01(\tR\amessage\x124\n" +
  967. "\x16normalized_config_json\x18\x03 \x01(\fR\x14normalizedConfigJson\"5\n" +
  968. "\x12ApplyConfigRequest\x12\x1f\n" +
  969. "\vconfig_json\x18\x01 \x01(\fR\n" +
  970. "configJson\"I\n" +
  971. "\x13ApplyConfigResponse\x12\x18\n" +
  972. "\aapplied\x18\x01 \x01(\bR\aapplied\x12\x18\n" +
  973. "\amessage\x18\x02 \x01(\tR\amessage\"4\n" +
  974. "\x11TestConfigRequest\x12\x1f\n" +
  975. "\vconfig_json\x18\x01 \x01(\fR\n" +
  976. "configJson\"g\n" +
  977. "\x12TestConfigResponse\x12\x18\n" +
  978. "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
  979. "\amessage\x18\x02 \x01(\tR\amessage\x12\x1d\n" +
  980. "\n" +
  981. "latency_ms\x18\x03 \x01(\x03R\tlatencyMs\"&\n" +
  982. "\fHeaderValues\x12\x16\n" +
  983. "\x06values\x18\x01 \x03(\tR\x06values\"\x8c\x04\n" +
  984. "\x13ForwardRequestStart\x12\x1d\n" +
  985. "\n" +
  986. "request_id\x18\x01 \x01(\tR\trequestId\x12\x16\n" +
  987. "\x06method\x18\x02 \x01(\tR\x06method\x12\x10\n" +
  988. "\x03url\x18\x03 \x01(\tR\x03url\x12\x12\n" +
  989. "\x04host\x18\x04 \x01(\tR\x04host\x12M\n" +
  990. "\aheaders\x18\x05 \x03(\v23.sub2api.plugin.v1.ForwardRequestStart.HeadersEntryR\aheaders\x12\x1b\n" +
  991. "\tproxy_url\x18\x06 \x01(\tR\bproxyUrl\x12\x1d\n" +
  992. "\n" +
  993. "account_id\x18\a \x01(\x03R\taccountId\x12/\n" +
  994. "\x13account_concurrency\x18\b \x01(\x05R\x12accountConcurrency\x12\x1a\n" +
  995. "\bplatform\x18\t \x01(\tR\bplatform\x12!\n" +
  996. "\faccount_type\x18\n" +
  997. " \x01(\tR\vaccountType\x12%\n" +
  998. "\x0econtent_length\x18\v \x01(\x03R\rcontentLength\x12\x19\n" +
  999. "\bhas_body\x18\f \x01(\bR\ahasBody\x1a[\n" +
  1000. "\fHeadersEntry\x12\x10\n" +
  1001. "\x03key\x18\x01 \x01(\tR\x03key\x125\n" +
  1002. "\x05value\x18\x02 \x01(\v2\x1f.sub2api.plugin.v1.HeaderValuesR\x05value:\x028\x01\"\x97\x01\n" +
  1003. "\x0eForwardRequest\x12>\n" +
  1004. "\x05start\x18\x01 \x01(\v2&.sub2api.plugin.v1.ForwardRequestStartH\x00R\x05start\x12\x1f\n" +
  1005. "\n" +
  1006. "body_chunk\x18\x02 \x01(\fH\x00R\tbodyChunk\x12\x1b\n" +
  1007. "\bbody_end\x18\x03 \x01(\bH\x00R\abodyEndB\a\n" +
  1008. "\x05frame\"\x8d\x03\n" +
  1009. "\x14ForwardResponseStart\x12\x1f\n" +
  1010. "\vstatus_code\x18\x01 \x01(\x05R\n" +
  1011. "statusCode\x12\x16\n" +
  1012. "\x06status\x18\x02 \x01(\tR\x06status\x12\x1a\n" +
  1013. "\bprotocol\x18\x03 \x01(\tR\bprotocol\x12%\n" +
  1014. "\x0eprotocol_major\x18\x04 \x01(\x05R\rprotocolMajor\x12%\n" +
  1015. "\x0eprotocol_minor\x18\x05 \x01(\x05R\rprotocolMinor\x12N\n" +
  1016. "\aheaders\x18\x06 \x03(\v24.sub2api.plugin.v1.ForwardResponseStart.HeadersEntryR\aheaders\x12%\n" +
  1017. "\x0econtent_length\x18\a \x01(\x03R\rcontentLength\x1a[\n" +
  1018. "\fHeadersEntry\x12\x10\n" +
  1019. "\x03key\x18\x01 \x01(\tR\x03key\x125\n" +
  1020. "\x05value\x18\x02 \x01(\v2\x1f.sub2api.plugin.v1.HeaderValuesR\x05value:\x028\x01\"\\\n" +
  1021. "\x12ForwardResponseEnd\x12%\n" +
  1022. "\x0ebytes_received\x18\x01 \x01(\x03R\rbytesReceived\x12\x1f\n" +
  1023. "\vduration_ms\x18\x02 \x01(\x03R\n" +
  1024. "durationMs\"g\n" +
  1025. "\x14ForwardResponseError\x12\x12\n" +
  1026. "\x04code\x18\x01 \x01(\tR\x04code\x12\x18\n" +
  1027. "\amessage\x18\x02 \x01(\tR\amessage\x12!\n" +
  1028. "\frequest_sent\x18\x03 \x01(\bR\vrequestSent\"\xf8\x01\n" +
  1029. "\x0fForwardResponse\x12?\n" +
  1030. "\x05start\x18\x01 \x01(\v2'.sub2api.plugin.v1.ForwardResponseStartH\x00R\x05start\x12\x1f\n" +
  1031. "\n" +
  1032. "body_chunk\x18\x02 \x01(\fH\x00R\tbodyChunk\x129\n" +
  1033. "\x03end\x18\x03 \x01(\v2%.sub2api.plugin.v1.ForwardResponseEndH\x00R\x03end\x12?\n" +
  1034. "\x05error\x18\x04 \x01(\v2'.sub2api.plugin.v1.ForwardResponseErrorH\x00R\x05errorB\a\n" +
  1035. "\x05frame2\xa8\x04\n" +
  1036. "\x0fTransportPlugin\x12P\n" +
  1037. "\aGetInfo\x12!.sub2api.plugin.v1.GetInfoRequest\x1a\".sub2api.plugin.v1.GetInfoResponse\x12M\n" +
  1038. "\x06Health\x12 .sub2api.plugin.v1.HealthRequest\x1a!.sub2api.plugin.v1.HealthResponse\x12e\n" +
  1039. "\x0eValidateConfig\x12(.sub2api.plugin.v1.ValidateConfigRequest\x1a).sub2api.plugin.v1.ValidateConfigResponse\x12\\\n" +
  1040. "\vApplyConfig\x12%.sub2api.plugin.v1.ApplyConfigRequest\x1a&.sub2api.plugin.v1.ApplyConfigResponse\x12Y\n" +
  1041. "\n" +
  1042. "TestConfig\x12$.sub2api.plugin.v1.TestConfigRequest\x1a%.sub2api.plugin.v1.TestConfigResponse\x12T\n" +
  1043. "\aForward\x12!.sub2api.plugin.v1.ForwardRequest\x1a\".sub2api.plugin.v1.ForwardResponse(\x010\x01B7Z5github.com/Wei-Shaw/sub2api/pkg/pluginapi/v1;pluginv1b\x06proto3"
  1044. var (
  1045. file_plugin_proto_rawDescOnce sync.Once
  1046. file_plugin_proto_rawDescData []byte
  1047. )
  1048. func file_plugin_proto_rawDescGZIP() []byte {
  1049. file_plugin_proto_rawDescOnce.Do(func() {
  1050. file_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_plugin_proto_rawDesc), len(file_plugin_proto_rawDesc)))
  1051. })
  1052. return file_plugin_proto_rawDescData
  1053. }
  1054. var file_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
  1055. var file_plugin_proto_goTypes = []any{
  1056. (*GetInfoRequest)(nil), // 0: sub2api.plugin.v1.GetInfoRequest
  1057. (*GetInfoResponse)(nil), // 1: sub2api.plugin.v1.GetInfoResponse
  1058. (*HealthRequest)(nil), // 2: sub2api.plugin.v1.HealthRequest
  1059. (*HealthResponse)(nil), // 3: sub2api.plugin.v1.HealthResponse
  1060. (*ValidateConfigRequest)(nil), // 4: sub2api.plugin.v1.ValidateConfigRequest
  1061. (*ValidateConfigResponse)(nil), // 5: sub2api.plugin.v1.ValidateConfigResponse
  1062. (*ApplyConfigRequest)(nil), // 6: sub2api.plugin.v1.ApplyConfigRequest
  1063. (*ApplyConfigResponse)(nil), // 7: sub2api.plugin.v1.ApplyConfigResponse
  1064. (*TestConfigRequest)(nil), // 8: sub2api.plugin.v1.TestConfigRequest
  1065. (*TestConfigResponse)(nil), // 9: sub2api.plugin.v1.TestConfigResponse
  1066. (*HeaderValues)(nil), // 10: sub2api.plugin.v1.HeaderValues
  1067. (*ForwardRequestStart)(nil), // 11: sub2api.plugin.v1.ForwardRequestStart
  1068. (*ForwardRequest)(nil), // 12: sub2api.plugin.v1.ForwardRequest
  1069. (*ForwardResponseStart)(nil), // 13: sub2api.plugin.v1.ForwardResponseStart
  1070. (*ForwardResponseEnd)(nil), // 14: sub2api.plugin.v1.ForwardResponseEnd
  1071. (*ForwardResponseError)(nil), // 15: sub2api.plugin.v1.ForwardResponseError
  1072. (*ForwardResponse)(nil), // 16: sub2api.plugin.v1.ForwardResponse
  1073. nil, // 17: sub2api.plugin.v1.ForwardRequestStart.HeadersEntry
  1074. nil, // 18: sub2api.plugin.v1.ForwardResponseStart.HeadersEntry
  1075. }
  1076. var file_plugin_proto_depIdxs = []int32{
  1077. 17, // 0: sub2api.plugin.v1.ForwardRequestStart.headers:type_name -> sub2api.plugin.v1.ForwardRequestStart.HeadersEntry
  1078. 11, // 1: sub2api.plugin.v1.ForwardRequest.start:type_name -> sub2api.plugin.v1.ForwardRequestStart
  1079. 18, // 2: sub2api.plugin.v1.ForwardResponseStart.headers:type_name -> sub2api.plugin.v1.ForwardResponseStart.HeadersEntry
  1080. 13, // 3: sub2api.plugin.v1.ForwardResponse.start:type_name -> sub2api.plugin.v1.ForwardResponseStart
  1081. 14, // 4: sub2api.plugin.v1.ForwardResponse.end:type_name -> sub2api.plugin.v1.ForwardResponseEnd
  1082. 15, // 5: sub2api.plugin.v1.ForwardResponse.error:type_name -> sub2api.plugin.v1.ForwardResponseError
  1083. 10, // 6: sub2api.plugin.v1.ForwardRequestStart.HeadersEntry.value:type_name -> sub2api.plugin.v1.HeaderValues
  1084. 10, // 7: sub2api.plugin.v1.ForwardResponseStart.HeadersEntry.value:type_name -> sub2api.plugin.v1.HeaderValues
  1085. 0, // 8: sub2api.plugin.v1.TransportPlugin.GetInfo:input_type -> sub2api.plugin.v1.GetInfoRequest
  1086. 2, // 9: sub2api.plugin.v1.TransportPlugin.Health:input_type -> sub2api.plugin.v1.HealthRequest
  1087. 4, // 10: sub2api.plugin.v1.TransportPlugin.ValidateConfig:input_type -> sub2api.plugin.v1.ValidateConfigRequest
  1088. 6, // 11: sub2api.plugin.v1.TransportPlugin.ApplyConfig:input_type -> sub2api.plugin.v1.ApplyConfigRequest
  1089. 8, // 12: sub2api.plugin.v1.TransportPlugin.TestConfig:input_type -> sub2api.plugin.v1.TestConfigRequest
  1090. 12, // 13: sub2api.plugin.v1.TransportPlugin.Forward:input_type -> sub2api.plugin.v1.ForwardRequest
  1091. 1, // 14: sub2api.plugin.v1.TransportPlugin.GetInfo:output_type -> sub2api.plugin.v1.GetInfoResponse
  1092. 3, // 15: sub2api.plugin.v1.TransportPlugin.Health:output_type -> sub2api.plugin.v1.HealthResponse
  1093. 5, // 16: sub2api.plugin.v1.TransportPlugin.ValidateConfig:output_type -> sub2api.plugin.v1.ValidateConfigResponse
  1094. 7, // 17: sub2api.plugin.v1.TransportPlugin.ApplyConfig:output_type -> sub2api.plugin.v1.ApplyConfigResponse
  1095. 9, // 18: sub2api.plugin.v1.TransportPlugin.TestConfig:output_type -> sub2api.plugin.v1.TestConfigResponse
  1096. 16, // 19: sub2api.plugin.v1.TransportPlugin.Forward:output_type -> sub2api.plugin.v1.ForwardResponse
  1097. 14, // [14:20] is the sub-list for method output_type
  1098. 8, // [8:14] is the sub-list for method input_type
  1099. 8, // [8:8] is the sub-list for extension type_name
  1100. 8, // [8:8] is the sub-list for extension extendee
  1101. 0, // [0:8] is the sub-list for field type_name
  1102. }
  1103. func init() { file_plugin_proto_init() }
  1104. func file_plugin_proto_init() {
  1105. if File_plugin_proto != nil {
  1106. return
  1107. }
  1108. file_plugin_proto_msgTypes[12].OneofWrappers = []any{
  1109. (*ForwardRequest_Start)(nil),
  1110. (*ForwardRequest_BodyChunk)(nil),
  1111. (*ForwardRequest_BodyEnd)(nil),
  1112. }
  1113. file_plugin_proto_msgTypes[16].OneofWrappers = []any{
  1114. (*ForwardResponse_Start)(nil),
  1115. (*ForwardResponse_BodyChunk)(nil),
  1116. (*ForwardResponse_End)(nil),
  1117. (*ForwardResponse_Error)(nil),
  1118. }
  1119. type x struct{}
  1120. out := protoimpl.TypeBuilder{
  1121. File: protoimpl.DescBuilder{
  1122. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1123. RawDescriptor: unsafe.Slice(unsafe.StringData(file_plugin_proto_rawDesc), len(file_plugin_proto_rawDesc)),
  1124. NumEnums: 0,
  1125. NumMessages: 19,
  1126. NumExtensions: 0,
  1127. NumServices: 1,
  1128. },
  1129. GoTypes: file_plugin_proto_goTypes,
  1130. DependencyIndexes: file_plugin_proto_depIdxs,
  1131. MessageInfos: file_plugin_proto_msgTypes,
  1132. }.Build()
  1133. File_plugin_proto = out.File
  1134. file_plugin_proto_goTypes = nil
  1135. file_plugin_proto_depIdxs = nil
  1136. }