socket_service.pb.go 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858
  1. // Code generated by protoc-gen-go.
  2. // source: google.golang.org/appengine/internal/socket/socket_service.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package socket is a generated protocol buffer package.
  6. It is generated from these files:
  7. google.golang.org/appengine/internal/socket/socket_service.proto
  8. It has these top-level messages:
  9. RemoteSocketServiceError
  10. AddressPort
  11. CreateSocketRequest
  12. CreateSocketReply
  13. BindRequest
  14. BindReply
  15. GetSocketNameRequest
  16. GetSocketNameReply
  17. GetPeerNameRequest
  18. GetPeerNameReply
  19. SocketOption
  20. SetSocketOptionsRequest
  21. SetSocketOptionsReply
  22. GetSocketOptionsRequest
  23. GetSocketOptionsReply
  24. ConnectRequest
  25. ConnectReply
  26. ListenRequest
  27. ListenReply
  28. AcceptRequest
  29. AcceptReply
  30. ShutDownRequest
  31. ShutDownReply
  32. CloseRequest
  33. CloseReply
  34. SendRequest
  35. SendReply
  36. ReceiveRequest
  37. ReceiveReply
  38. PollEvent
  39. PollRequest
  40. PollReply
  41. ResolveRequest
  42. ResolveReply
  43. */
  44. package socket
  45. import proto "github.com/golang/protobuf/proto"
  46. import fmt "fmt"
  47. import math "math"
  48. // Reference imports to suppress errors if they are not otherwise used.
  49. var _ = proto.Marshal
  50. var _ = fmt.Errorf
  51. var _ = math.Inf
  52. type RemoteSocketServiceError_ErrorCode int32
  53. const (
  54. RemoteSocketServiceError_SYSTEM_ERROR RemoteSocketServiceError_ErrorCode = 1
  55. RemoteSocketServiceError_GAI_ERROR RemoteSocketServiceError_ErrorCode = 2
  56. RemoteSocketServiceError_FAILURE RemoteSocketServiceError_ErrorCode = 4
  57. RemoteSocketServiceError_PERMISSION_DENIED RemoteSocketServiceError_ErrorCode = 5
  58. RemoteSocketServiceError_INVALID_REQUEST RemoteSocketServiceError_ErrorCode = 6
  59. RemoteSocketServiceError_SOCKET_CLOSED RemoteSocketServiceError_ErrorCode = 7
  60. )
  61. var RemoteSocketServiceError_ErrorCode_name = map[int32]string{
  62. 1: "SYSTEM_ERROR",
  63. 2: "GAI_ERROR",
  64. 4: "FAILURE",
  65. 5: "PERMISSION_DENIED",
  66. 6: "INVALID_REQUEST",
  67. 7: "SOCKET_CLOSED",
  68. }
  69. var RemoteSocketServiceError_ErrorCode_value = map[string]int32{
  70. "SYSTEM_ERROR": 1,
  71. "GAI_ERROR": 2,
  72. "FAILURE": 4,
  73. "PERMISSION_DENIED": 5,
  74. "INVALID_REQUEST": 6,
  75. "SOCKET_CLOSED": 7,
  76. }
  77. func (x RemoteSocketServiceError_ErrorCode) Enum() *RemoteSocketServiceError_ErrorCode {
  78. p := new(RemoteSocketServiceError_ErrorCode)
  79. *p = x
  80. return p
  81. }
  82. func (x RemoteSocketServiceError_ErrorCode) String() string {
  83. return proto.EnumName(RemoteSocketServiceError_ErrorCode_name, int32(x))
  84. }
  85. func (x *RemoteSocketServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
  86. value, err := proto.UnmarshalJSONEnum(RemoteSocketServiceError_ErrorCode_value, data, "RemoteSocketServiceError_ErrorCode")
  87. if err != nil {
  88. return err
  89. }
  90. *x = RemoteSocketServiceError_ErrorCode(value)
  91. return nil
  92. }
  93. type RemoteSocketServiceError_SystemError int32
  94. const (
  95. RemoteSocketServiceError_SYS_SUCCESS RemoteSocketServiceError_SystemError = 0
  96. RemoteSocketServiceError_SYS_EPERM RemoteSocketServiceError_SystemError = 1
  97. RemoteSocketServiceError_SYS_ENOENT RemoteSocketServiceError_SystemError = 2
  98. RemoteSocketServiceError_SYS_ESRCH RemoteSocketServiceError_SystemError = 3
  99. RemoteSocketServiceError_SYS_EINTR RemoteSocketServiceError_SystemError = 4
  100. RemoteSocketServiceError_SYS_EIO RemoteSocketServiceError_SystemError = 5
  101. RemoteSocketServiceError_SYS_ENXIO RemoteSocketServiceError_SystemError = 6
  102. RemoteSocketServiceError_SYS_E2BIG RemoteSocketServiceError_SystemError = 7
  103. RemoteSocketServiceError_SYS_ENOEXEC RemoteSocketServiceError_SystemError = 8
  104. RemoteSocketServiceError_SYS_EBADF RemoteSocketServiceError_SystemError = 9
  105. RemoteSocketServiceError_SYS_ECHILD RemoteSocketServiceError_SystemError = 10
  106. RemoteSocketServiceError_SYS_EAGAIN RemoteSocketServiceError_SystemError = 11
  107. RemoteSocketServiceError_SYS_EWOULDBLOCK RemoteSocketServiceError_SystemError = 11
  108. RemoteSocketServiceError_SYS_ENOMEM RemoteSocketServiceError_SystemError = 12
  109. RemoteSocketServiceError_SYS_EACCES RemoteSocketServiceError_SystemError = 13
  110. RemoteSocketServiceError_SYS_EFAULT RemoteSocketServiceError_SystemError = 14
  111. RemoteSocketServiceError_SYS_ENOTBLK RemoteSocketServiceError_SystemError = 15
  112. RemoteSocketServiceError_SYS_EBUSY RemoteSocketServiceError_SystemError = 16
  113. RemoteSocketServiceError_SYS_EEXIST RemoteSocketServiceError_SystemError = 17
  114. RemoteSocketServiceError_SYS_EXDEV RemoteSocketServiceError_SystemError = 18
  115. RemoteSocketServiceError_SYS_ENODEV RemoteSocketServiceError_SystemError = 19
  116. RemoteSocketServiceError_SYS_ENOTDIR RemoteSocketServiceError_SystemError = 20
  117. RemoteSocketServiceError_SYS_EISDIR RemoteSocketServiceError_SystemError = 21
  118. RemoteSocketServiceError_SYS_EINVAL RemoteSocketServiceError_SystemError = 22
  119. RemoteSocketServiceError_SYS_ENFILE RemoteSocketServiceError_SystemError = 23
  120. RemoteSocketServiceError_SYS_EMFILE RemoteSocketServiceError_SystemError = 24
  121. RemoteSocketServiceError_SYS_ENOTTY RemoteSocketServiceError_SystemError = 25
  122. RemoteSocketServiceError_SYS_ETXTBSY RemoteSocketServiceError_SystemError = 26
  123. RemoteSocketServiceError_SYS_EFBIG RemoteSocketServiceError_SystemError = 27
  124. RemoteSocketServiceError_SYS_ENOSPC RemoteSocketServiceError_SystemError = 28
  125. RemoteSocketServiceError_SYS_ESPIPE RemoteSocketServiceError_SystemError = 29
  126. RemoteSocketServiceError_SYS_EROFS RemoteSocketServiceError_SystemError = 30
  127. RemoteSocketServiceError_SYS_EMLINK RemoteSocketServiceError_SystemError = 31
  128. RemoteSocketServiceError_SYS_EPIPE RemoteSocketServiceError_SystemError = 32
  129. RemoteSocketServiceError_SYS_EDOM RemoteSocketServiceError_SystemError = 33
  130. RemoteSocketServiceError_SYS_ERANGE RemoteSocketServiceError_SystemError = 34
  131. RemoteSocketServiceError_SYS_EDEADLK RemoteSocketServiceError_SystemError = 35
  132. RemoteSocketServiceError_SYS_EDEADLOCK RemoteSocketServiceError_SystemError = 35
  133. RemoteSocketServiceError_SYS_ENAMETOOLONG RemoteSocketServiceError_SystemError = 36
  134. RemoteSocketServiceError_SYS_ENOLCK RemoteSocketServiceError_SystemError = 37
  135. RemoteSocketServiceError_SYS_ENOSYS RemoteSocketServiceError_SystemError = 38
  136. RemoteSocketServiceError_SYS_ENOTEMPTY RemoteSocketServiceError_SystemError = 39
  137. RemoteSocketServiceError_SYS_ELOOP RemoteSocketServiceError_SystemError = 40
  138. RemoteSocketServiceError_SYS_ENOMSG RemoteSocketServiceError_SystemError = 42
  139. RemoteSocketServiceError_SYS_EIDRM RemoteSocketServiceError_SystemError = 43
  140. RemoteSocketServiceError_SYS_ECHRNG RemoteSocketServiceError_SystemError = 44
  141. RemoteSocketServiceError_SYS_EL2NSYNC RemoteSocketServiceError_SystemError = 45
  142. RemoteSocketServiceError_SYS_EL3HLT RemoteSocketServiceError_SystemError = 46
  143. RemoteSocketServiceError_SYS_EL3RST RemoteSocketServiceError_SystemError = 47
  144. RemoteSocketServiceError_SYS_ELNRNG RemoteSocketServiceError_SystemError = 48
  145. RemoteSocketServiceError_SYS_EUNATCH RemoteSocketServiceError_SystemError = 49
  146. RemoteSocketServiceError_SYS_ENOCSI RemoteSocketServiceError_SystemError = 50
  147. RemoteSocketServiceError_SYS_EL2HLT RemoteSocketServiceError_SystemError = 51
  148. RemoteSocketServiceError_SYS_EBADE RemoteSocketServiceError_SystemError = 52
  149. RemoteSocketServiceError_SYS_EBADR RemoteSocketServiceError_SystemError = 53
  150. RemoteSocketServiceError_SYS_EXFULL RemoteSocketServiceError_SystemError = 54
  151. RemoteSocketServiceError_SYS_ENOANO RemoteSocketServiceError_SystemError = 55
  152. RemoteSocketServiceError_SYS_EBADRQC RemoteSocketServiceError_SystemError = 56
  153. RemoteSocketServiceError_SYS_EBADSLT RemoteSocketServiceError_SystemError = 57
  154. RemoteSocketServiceError_SYS_EBFONT RemoteSocketServiceError_SystemError = 59
  155. RemoteSocketServiceError_SYS_ENOSTR RemoteSocketServiceError_SystemError = 60
  156. RemoteSocketServiceError_SYS_ENODATA RemoteSocketServiceError_SystemError = 61
  157. RemoteSocketServiceError_SYS_ETIME RemoteSocketServiceError_SystemError = 62
  158. RemoteSocketServiceError_SYS_ENOSR RemoteSocketServiceError_SystemError = 63
  159. RemoteSocketServiceError_SYS_ENONET RemoteSocketServiceError_SystemError = 64
  160. RemoteSocketServiceError_SYS_ENOPKG RemoteSocketServiceError_SystemError = 65
  161. RemoteSocketServiceError_SYS_EREMOTE RemoteSocketServiceError_SystemError = 66
  162. RemoteSocketServiceError_SYS_ENOLINK RemoteSocketServiceError_SystemError = 67
  163. RemoteSocketServiceError_SYS_EADV RemoteSocketServiceError_SystemError = 68
  164. RemoteSocketServiceError_SYS_ESRMNT RemoteSocketServiceError_SystemError = 69
  165. RemoteSocketServiceError_SYS_ECOMM RemoteSocketServiceError_SystemError = 70
  166. RemoteSocketServiceError_SYS_EPROTO RemoteSocketServiceError_SystemError = 71
  167. RemoteSocketServiceError_SYS_EMULTIHOP RemoteSocketServiceError_SystemError = 72
  168. RemoteSocketServiceError_SYS_EDOTDOT RemoteSocketServiceError_SystemError = 73
  169. RemoteSocketServiceError_SYS_EBADMSG RemoteSocketServiceError_SystemError = 74
  170. RemoteSocketServiceError_SYS_EOVERFLOW RemoteSocketServiceError_SystemError = 75
  171. RemoteSocketServiceError_SYS_ENOTUNIQ RemoteSocketServiceError_SystemError = 76
  172. RemoteSocketServiceError_SYS_EBADFD RemoteSocketServiceError_SystemError = 77
  173. RemoteSocketServiceError_SYS_EREMCHG RemoteSocketServiceError_SystemError = 78
  174. RemoteSocketServiceError_SYS_ELIBACC RemoteSocketServiceError_SystemError = 79
  175. RemoteSocketServiceError_SYS_ELIBBAD RemoteSocketServiceError_SystemError = 80
  176. RemoteSocketServiceError_SYS_ELIBSCN RemoteSocketServiceError_SystemError = 81
  177. RemoteSocketServiceError_SYS_ELIBMAX RemoteSocketServiceError_SystemError = 82
  178. RemoteSocketServiceError_SYS_ELIBEXEC RemoteSocketServiceError_SystemError = 83
  179. RemoteSocketServiceError_SYS_EILSEQ RemoteSocketServiceError_SystemError = 84
  180. RemoteSocketServiceError_SYS_ERESTART RemoteSocketServiceError_SystemError = 85
  181. RemoteSocketServiceError_SYS_ESTRPIPE RemoteSocketServiceError_SystemError = 86
  182. RemoteSocketServiceError_SYS_EUSERS RemoteSocketServiceError_SystemError = 87
  183. RemoteSocketServiceError_SYS_ENOTSOCK RemoteSocketServiceError_SystemError = 88
  184. RemoteSocketServiceError_SYS_EDESTADDRREQ RemoteSocketServiceError_SystemError = 89
  185. RemoteSocketServiceError_SYS_EMSGSIZE RemoteSocketServiceError_SystemError = 90
  186. RemoteSocketServiceError_SYS_EPROTOTYPE RemoteSocketServiceError_SystemError = 91
  187. RemoteSocketServiceError_SYS_ENOPROTOOPT RemoteSocketServiceError_SystemError = 92
  188. RemoteSocketServiceError_SYS_EPROTONOSUPPORT RemoteSocketServiceError_SystemError = 93
  189. RemoteSocketServiceError_SYS_ESOCKTNOSUPPORT RemoteSocketServiceError_SystemError = 94
  190. RemoteSocketServiceError_SYS_EOPNOTSUPP RemoteSocketServiceError_SystemError = 95
  191. RemoteSocketServiceError_SYS_ENOTSUP RemoteSocketServiceError_SystemError = 95
  192. RemoteSocketServiceError_SYS_EPFNOSUPPORT RemoteSocketServiceError_SystemError = 96
  193. RemoteSocketServiceError_SYS_EAFNOSUPPORT RemoteSocketServiceError_SystemError = 97
  194. RemoteSocketServiceError_SYS_EADDRINUSE RemoteSocketServiceError_SystemError = 98
  195. RemoteSocketServiceError_SYS_EADDRNOTAVAIL RemoteSocketServiceError_SystemError = 99
  196. RemoteSocketServiceError_SYS_ENETDOWN RemoteSocketServiceError_SystemError = 100
  197. RemoteSocketServiceError_SYS_ENETUNREACH RemoteSocketServiceError_SystemError = 101
  198. RemoteSocketServiceError_SYS_ENETRESET RemoteSocketServiceError_SystemError = 102
  199. RemoteSocketServiceError_SYS_ECONNABORTED RemoteSocketServiceError_SystemError = 103
  200. RemoteSocketServiceError_SYS_ECONNRESET RemoteSocketServiceError_SystemError = 104
  201. RemoteSocketServiceError_SYS_ENOBUFS RemoteSocketServiceError_SystemError = 105
  202. RemoteSocketServiceError_SYS_EISCONN RemoteSocketServiceError_SystemError = 106
  203. RemoteSocketServiceError_SYS_ENOTCONN RemoteSocketServiceError_SystemError = 107
  204. RemoteSocketServiceError_SYS_ESHUTDOWN RemoteSocketServiceError_SystemError = 108
  205. RemoteSocketServiceError_SYS_ETOOMANYREFS RemoteSocketServiceError_SystemError = 109
  206. RemoteSocketServiceError_SYS_ETIMEDOUT RemoteSocketServiceError_SystemError = 110
  207. RemoteSocketServiceError_SYS_ECONNREFUSED RemoteSocketServiceError_SystemError = 111
  208. RemoteSocketServiceError_SYS_EHOSTDOWN RemoteSocketServiceError_SystemError = 112
  209. RemoteSocketServiceError_SYS_EHOSTUNREACH RemoteSocketServiceError_SystemError = 113
  210. RemoteSocketServiceError_SYS_EALREADY RemoteSocketServiceError_SystemError = 114
  211. RemoteSocketServiceError_SYS_EINPROGRESS RemoteSocketServiceError_SystemError = 115
  212. RemoteSocketServiceError_SYS_ESTALE RemoteSocketServiceError_SystemError = 116
  213. RemoteSocketServiceError_SYS_EUCLEAN RemoteSocketServiceError_SystemError = 117
  214. RemoteSocketServiceError_SYS_ENOTNAM RemoteSocketServiceError_SystemError = 118
  215. RemoteSocketServiceError_SYS_ENAVAIL RemoteSocketServiceError_SystemError = 119
  216. RemoteSocketServiceError_SYS_EISNAM RemoteSocketServiceError_SystemError = 120
  217. RemoteSocketServiceError_SYS_EREMOTEIO RemoteSocketServiceError_SystemError = 121
  218. RemoteSocketServiceError_SYS_EDQUOT RemoteSocketServiceError_SystemError = 122
  219. RemoteSocketServiceError_SYS_ENOMEDIUM RemoteSocketServiceError_SystemError = 123
  220. RemoteSocketServiceError_SYS_EMEDIUMTYPE RemoteSocketServiceError_SystemError = 124
  221. RemoteSocketServiceError_SYS_ECANCELED RemoteSocketServiceError_SystemError = 125
  222. RemoteSocketServiceError_SYS_ENOKEY RemoteSocketServiceError_SystemError = 126
  223. RemoteSocketServiceError_SYS_EKEYEXPIRED RemoteSocketServiceError_SystemError = 127
  224. RemoteSocketServiceError_SYS_EKEYREVOKED RemoteSocketServiceError_SystemError = 128
  225. RemoteSocketServiceError_SYS_EKEYREJECTED RemoteSocketServiceError_SystemError = 129
  226. RemoteSocketServiceError_SYS_EOWNERDEAD RemoteSocketServiceError_SystemError = 130
  227. RemoteSocketServiceError_SYS_ENOTRECOVERABLE RemoteSocketServiceError_SystemError = 131
  228. RemoteSocketServiceError_SYS_ERFKILL RemoteSocketServiceError_SystemError = 132
  229. )
  230. var RemoteSocketServiceError_SystemError_name = map[int32]string{
  231. 0: "SYS_SUCCESS",
  232. 1: "SYS_EPERM",
  233. 2: "SYS_ENOENT",
  234. 3: "SYS_ESRCH",
  235. 4: "SYS_EINTR",
  236. 5: "SYS_EIO",
  237. 6: "SYS_ENXIO",
  238. 7: "SYS_E2BIG",
  239. 8: "SYS_ENOEXEC",
  240. 9: "SYS_EBADF",
  241. 10: "SYS_ECHILD",
  242. 11: "SYS_EAGAIN",
  243. // Duplicate value: 11: "SYS_EWOULDBLOCK",
  244. 12: "SYS_ENOMEM",
  245. 13: "SYS_EACCES",
  246. 14: "SYS_EFAULT",
  247. 15: "SYS_ENOTBLK",
  248. 16: "SYS_EBUSY",
  249. 17: "SYS_EEXIST",
  250. 18: "SYS_EXDEV",
  251. 19: "SYS_ENODEV",
  252. 20: "SYS_ENOTDIR",
  253. 21: "SYS_EISDIR",
  254. 22: "SYS_EINVAL",
  255. 23: "SYS_ENFILE",
  256. 24: "SYS_EMFILE",
  257. 25: "SYS_ENOTTY",
  258. 26: "SYS_ETXTBSY",
  259. 27: "SYS_EFBIG",
  260. 28: "SYS_ENOSPC",
  261. 29: "SYS_ESPIPE",
  262. 30: "SYS_EROFS",
  263. 31: "SYS_EMLINK",
  264. 32: "SYS_EPIPE",
  265. 33: "SYS_EDOM",
  266. 34: "SYS_ERANGE",
  267. 35: "SYS_EDEADLK",
  268. // Duplicate value: 35: "SYS_EDEADLOCK",
  269. 36: "SYS_ENAMETOOLONG",
  270. 37: "SYS_ENOLCK",
  271. 38: "SYS_ENOSYS",
  272. 39: "SYS_ENOTEMPTY",
  273. 40: "SYS_ELOOP",
  274. 42: "SYS_ENOMSG",
  275. 43: "SYS_EIDRM",
  276. 44: "SYS_ECHRNG",
  277. 45: "SYS_EL2NSYNC",
  278. 46: "SYS_EL3HLT",
  279. 47: "SYS_EL3RST",
  280. 48: "SYS_ELNRNG",
  281. 49: "SYS_EUNATCH",
  282. 50: "SYS_ENOCSI",
  283. 51: "SYS_EL2HLT",
  284. 52: "SYS_EBADE",
  285. 53: "SYS_EBADR",
  286. 54: "SYS_EXFULL",
  287. 55: "SYS_ENOANO",
  288. 56: "SYS_EBADRQC",
  289. 57: "SYS_EBADSLT",
  290. 59: "SYS_EBFONT",
  291. 60: "SYS_ENOSTR",
  292. 61: "SYS_ENODATA",
  293. 62: "SYS_ETIME",
  294. 63: "SYS_ENOSR",
  295. 64: "SYS_ENONET",
  296. 65: "SYS_ENOPKG",
  297. 66: "SYS_EREMOTE",
  298. 67: "SYS_ENOLINK",
  299. 68: "SYS_EADV",
  300. 69: "SYS_ESRMNT",
  301. 70: "SYS_ECOMM",
  302. 71: "SYS_EPROTO",
  303. 72: "SYS_EMULTIHOP",
  304. 73: "SYS_EDOTDOT",
  305. 74: "SYS_EBADMSG",
  306. 75: "SYS_EOVERFLOW",
  307. 76: "SYS_ENOTUNIQ",
  308. 77: "SYS_EBADFD",
  309. 78: "SYS_EREMCHG",
  310. 79: "SYS_ELIBACC",
  311. 80: "SYS_ELIBBAD",
  312. 81: "SYS_ELIBSCN",
  313. 82: "SYS_ELIBMAX",
  314. 83: "SYS_ELIBEXEC",
  315. 84: "SYS_EILSEQ",
  316. 85: "SYS_ERESTART",
  317. 86: "SYS_ESTRPIPE",
  318. 87: "SYS_EUSERS",
  319. 88: "SYS_ENOTSOCK",
  320. 89: "SYS_EDESTADDRREQ",
  321. 90: "SYS_EMSGSIZE",
  322. 91: "SYS_EPROTOTYPE",
  323. 92: "SYS_ENOPROTOOPT",
  324. 93: "SYS_EPROTONOSUPPORT",
  325. 94: "SYS_ESOCKTNOSUPPORT",
  326. 95: "SYS_EOPNOTSUPP",
  327. // Duplicate value: 95: "SYS_ENOTSUP",
  328. 96: "SYS_EPFNOSUPPORT",
  329. 97: "SYS_EAFNOSUPPORT",
  330. 98: "SYS_EADDRINUSE",
  331. 99: "SYS_EADDRNOTAVAIL",
  332. 100: "SYS_ENETDOWN",
  333. 101: "SYS_ENETUNREACH",
  334. 102: "SYS_ENETRESET",
  335. 103: "SYS_ECONNABORTED",
  336. 104: "SYS_ECONNRESET",
  337. 105: "SYS_ENOBUFS",
  338. 106: "SYS_EISCONN",
  339. 107: "SYS_ENOTCONN",
  340. 108: "SYS_ESHUTDOWN",
  341. 109: "SYS_ETOOMANYREFS",
  342. 110: "SYS_ETIMEDOUT",
  343. 111: "SYS_ECONNREFUSED",
  344. 112: "SYS_EHOSTDOWN",
  345. 113: "SYS_EHOSTUNREACH",
  346. 114: "SYS_EALREADY",
  347. 115: "SYS_EINPROGRESS",
  348. 116: "SYS_ESTALE",
  349. 117: "SYS_EUCLEAN",
  350. 118: "SYS_ENOTNAM",
  351. 119: "SYS_ENAVAIL",
  352. 120: "SYS_EISNAM",
  353. 121: "SYS_EREMOTEIO",
  354. 122: "SYS_EDQUOT",
  355. 123: "SYS_ENOMEDIUM",
  356. 124: "SYS_EMEDIUMTYPE",
  357. 125: "SYS_ECANCELED",
  358. 126: "SYS_ENOKEY",
  359. 127: "SYS_EKEYEXPIRED",
  360. 128: "SYS_EKEYREVOKED",
  361. 129: "SYS_EKEYREJECTED",
  362. 130: "SYS_EOWNERDEAD",
  363. 131: "SYS_ENOTRECOVERABLE",
  364. 132: "SYS_ERFKILL",
  365. }
  366. var RemoteSocketServiceError_SystemError_value = map[string]int32{
  367. "SYS_SUCCESS": 0,
  368. "SYS_EPERM": 1,
  369. "SYS_ENOENT": 2,
  370. "SYS_ESRCH": 3,
  371. "SYS_EINTR": 4,
  372. "SYS_EIO": 5,
  373. "SYS_ENXIO": 6,
  374. "SYS_E2BIG": 7,
  375. "SYS_ENOEXEC": 8,
  376. "SYS_EBADF": 9,
  377. "SYS_ECHILD": 10,
  378. "SYS_EAGAIN": 11,
  379. "SYS_EWOULDBLOCK": 11,
  380. "SYS_ENOMEM": 12,
  381. "SYS_EACCES": 13,
  382. "SYS_EFAULT": 14,
  383. "SYS_ENOTBLK": 15,
  384. "SYS_EBUSY": 16,
  385. "SYS_EEXIST": 17,
  386. "SYS_EXDEV": 18,
  387. "SYS_ENODEV": 19,
  388. "SYS_ENOTDIR": 20,
  389. "SYS_EISDIR": 21,
  390. "SYS_EINVAL": 22,
  391. "SYS_ENFILE": 23,
  392. "SYS_EMFILE": 24,
  393. "SYS_ENOTTY": 25,
  394. "SYS_ETXTBSY": 26,
  395. "SYS_EFBIG": 27,
  396. "SYS_ENOSPC": 28,
  397. "SYS_ESPIPE": 29,
  398. "SYS_EROFS": 30,
  399. "SYS_EMLINK": 31,
  400. "SYS_EPIPE": 32,
  401. "SYS_EDOM": 33,
  402. "SYS_ERANGE": 34,
  403. "SYS_EDEADLK": 35,
  404. "SYS_EDEADLOCK": 35,
  405. "SYS_ENAMETOOLONG": 36,
  406. "SYS_ENOLCK": 37,
  407. "SYS_ENOSYS": 38,
  408. "SYS_ENOTEMPTY": 39,
  409. "SYS_ELOOP": 40,
  410. "SYS_ENOMSG": 42,
  411. "SYS_EIDRM": 43,
  412. "SYS_ECHRNG": 44,
  413. "SYS_EL2NSYNC": 45,
  414. "SYS_EL3HLT": 46,
  415. "SYS_EL3RST": 47,
  416. "SYS_ELNRNG": 48,
  417. "SYS_EUNATCH": 49,
  418. "SYS_ENOCSI": 50,
  419. "SYS_EL2HLT": 51,
  420. "SYS_EBADE": 52,
  421. "SYS_EBADR": 53,
  422. "SYS_EXFULL": 54,
  423. "SYS_ENOANO": 55,
  424. "SYS_EBADRQC": 56,
  425. "SYS_EBADSLT": 57,
  426. "SYS_EBFONT": 59,
  427. "SYS_ENOSTR": 60,
  428. "SYS_ENODATA": 61,
  429. "SYS_ETIME": 62,
  430. "SYS_ENOSR": 63,
  431. "SYS_ENONET": 64,
  432. "SYS_ENOPKG": 65,
  433. "SYS_EREMOTE": 66,
  434. "SYS_ENOLINK": 67,
  435. "SYS_EADV": 68,
  436. "SYS_ESRMNT": 69,
  437. "SYS_ECOMM": 70,
  438. "SYS_EPROTO": 71,
  439. "SYS_EMULTIHOP": 72,
  440. "SYS_EDOTDOT": 73,
  441. "SYS_EBADMSG": 74,
  442. "SYS_EOVERFLOW": 75,
  443. "SYS_ENOTUNIQ": 76,
  444. "SYS_EBADFD": 77,
  445. "SYS_EREMCHG": 78,
  446. "SYS_ELIBACC": 79,
  447. "SYS_ELIBBAD": 80,
  448. "SYS_ELIBSCN": 81,
  449. "SYS_ELIBMAX": 82,
  450. "SYS_ELIBEXEC": 83,
  451. "SYS_EILSEQ": 84,
  452. "SYS_ERESTART": 85,
  453. "SYS_ESTRPIPE": 86,
  454. "SYS_EUSERS": 87,
  455. "SYS_ENOTSOCK": 88,
  456. "SYS_EDESTADDRREQ": 89,
  457. "SYS_EMSGSIZE": 90,
  458. "SYS_EPROTOTYPE": 91,
  459. "SYS_ENOPROTOOPT": 92,
  460. "SYS_EPROTONOSUPPORT": 93,
  461. "SYS_ESOCKTNOSUPPORT": 94,
  462. "SYS_EOPNOTSUPP": 95,
  463. "SYS_ENOTSUP": 95,
  464. "SYS_EPFNOSUPPORT": 96,
  465. "SYS_EAFNOSUPPORT": 97,
  466. "SYS_EADDRINUSE": 98,
  467. "SYS_EADDRNOTAVAIL": 99,
  468. "SYS_ENETDOWN": 100,
  469. "SYS_ENETUNREACH": 101,
  470. "SYS_ENETRESET": 102,
  471. "SYS_ECONNABORTED": 103,
  472. "SYS_ECONNRESET": 104,
  473. "SYS_ENOBUFS": 105,
  474. "SYS_EISCONN": 106,
  475. "SYS_ENOTCONN": 107,
  476. "SYS_ESHUTDOWN": 108,
  477. "SYS_ETOOMANYREFS": 109,
  478. "SYS_ETIMEDOUT": 110,
  479. "SYS_ECONNREFUSED": 111,
  480. "SYS_EHOSTDOWN": 112,
  481. "SYS_EHOSTUNREACH": 113,
  482. "SYS_EALREADY": 114,
  483. "SYS_EINPROGRESS": 115,
  484. "SYS_ESTALE": 116,
  485. "SYS_EUCLEAN": 117,
  486. "SYS_ENOTNAM": 118,
  487. "SYS_ENAVAIL": 119,
  488. "SYS_EISNAM": 120,
  489. "SYS_EREMOTEIO": 121,
  490. "SYS_EDQUOT": 122,
  491. "SYS_ENOMEDIUM": 123,
  492. "SYS_EMEDIUMTYPE": 124,
  493. "SYS_ECANCELED": 125,
  494. "SYS_ENOKEY": 126,
  495. "SYS_EKEYEXPIRED": 127,
  496. "SYS_EKEYREVOKED": 128,
  497. "SYS_EKEYREJECTED": 129,
  498. "SYS_EOWNERDEAD": 130,
  499. "SYS_ENOTRECOVERABLE": 131,
  500. "SYS_ERFKILL": 132,
  501. }
  502. func (x RemoteSocketServiceError_SystemError) Enum() *RemoteSocketServiceError_SystemError {
  503. p := new(RemoteSocketServiceError_SystemError)
  504. *p = x
  505. return p
  506. }
  507. func (x RemoteSocketServiceError_SystemError) String() string {
  508. return proto.EnumName(RemoteSocketServiceError_SystemError_name, int32(x))
  509. }
  510. func (x *RemoteSocketServiceError_SystemError) UnmarshalJSON(data []byte) error {
  511. value, err := proto.UnmarshalJSONEnum(RemoteSocketServiceError_SystemError_value, data, "RemoteSocketServiceError_SystemError")
  512. if err != nil {
  513. return err
  514. }
  515. *x = RemoteSocketServiceError_SystemError(value)
  516. return nil
  517. }
  518. type CreateSocketRequest_SocketFamily int32
  519. const (
  520. CreateSocketRequest_IPv4 CreateSocketRequest_SocketFamily = 1
  521. CreateSocketRequest_IPv6 CreateSocketRequest_SocketFamily = 2
  522. )
  523. var CreateSocketRequest_SocketFamily_name = map[int32]string{
  524. 1: "IPv4",
  525. 2: "IPv6",
  526. }
  527. var CreateSocketRequest_SocketFamily_value = map[string]int32{
  528. "IPv4": 1,
  529. "IPv6": 2,
  530. }
  531. func (x CreateSocketRequest_SocketFamily) Enum() *CreateSocketRequest_SocketFamily {
  532. p := new(CreateSocketRequest_SocketFamily)
  533. *p = x
  534. return p
  535. }
  536. func (x CreateSocketRequest_SocketFamily) String() string {
  537. return proto.EnumName(CreateSocketRequest_SocketFamily_name, int32(x))
  538. }
  539. func (x *CreateSocketRequest_SocketFamily) UnmarshalJSON(data []byte) error {
  540. value, err := proto.UnmarshalJSONEnum(CreateSocketRequest_SocketFamily_value, data, "CreateSocketRequest_SocketFamily")
  541. if err != nil {
  542. return err
  543. }
  544. *x = CreateSocketRequest_SocketFamily(value)
  545. return nil
  546. }
  547. type CreateSocketRequest_SocketProtocol int32
  548. const (
  549. CreateSocketRequest_TCP CreateSocketRequest_SocketProtocol = 1
  550. CreateSocketRequest_UDP CreateSocketRequest_SocketProtocol = 2
  551. )
  552. var CreateSocketRequest_SocketProtocol_name = map[int32]string{
  553. 1: "TCP",
  554. 2: "UDP",
  555. }
  556. var CreateSocketRequest_SocketProtocol_value = map[string]int32{
  557. "TCP": 1,
  558. "UDP": 2,
  559. }
  560. func (x CreateSocketRequest_SocketProtocol) Enum() *CreateSocketRequest_SocketProtocol {
  561. p := new(CreateSocketRequest_SocketProtocol)
  562. *p = x
  563. return p
  564. }
  565. func (x CreateSocketRequest_SocketProtocol) String() string {
  566. return proto.EnumName(CreateSocketRequest_SocketProtocol_name, int32(x))
  567. }
  568. func (x *CreateSocketRequest_SocketProtocol) UnmarshalJSON(data []byte) error {
  569. value, err := proto.UnmarshalJSONEnum(CreateSocketRequest_SocketProtocol_value, data, "CreateSocketRequest_SocketProtocol")
  570. if err != nil {
  571. return err
  572. }
  573. *x = CreateSocketRequest_SocketProtocol(value)
  574. return nil
  575. }
  576. type SocketOption_SocketOptionLevel int32
  577. const (
  578. SocketOption_SOCKET_SOL_IP SocketOption_SocketOptionLevel = 0
  579. SocketOption_SOCKET_SOL_SOCKET SocketOption_SocketOptionLevel = 1
  580. SocketOption_SOCKET_SOL_TCP SocketOption_SocketOptionLevel = 6
  581. SocketOption_SOCKET_SOL_UDP SocketOption_SocketOptionLevel = 17
  582. )
  583. var SocketOption_SocketOptionLevel_name = map[int32]string{
  584. 0: "SOCKET_SOL_IP",
  585. 1: "SOCKET_SOL_SOCKET",
  586. 6: "SOCKET_SOL_TCP",
  587. 17: "SOCKET_SOL_UDP",
  588. }
  589. var SocketOption_SocketOptionLevel_value = map[string]int32{
  590. "SOCKET_SOL_IP": 0,
  591. "SOCKET_SOL_SOCKET": 1,
  592. "SOCKET_SOL_TCP": 6,
  593. "SOCKET_SOL_UDP": 17,
  594. }
  595. func (x SocketOption_SocketOptionLevel) Enum() *SocketOption_SocketOptionLevel {
  596. p := new(SocketOption_SocketOptionLevel)
  597. *p = x
  598. return p
  599. }
  600. func (x SocketOption_SocketOptionLevel) String() string {
  601. return proto.EnumName(SocketOption_SocketOptionLevel_name, int32(x))
  602. }
  603. func (x *SocketOption_SocketOptionLevel) UnmarshalJSON(data []byte) error {
  604. value, err := proto.UnmarshalJSONEnum(SocketOption_SocketOptionLevel_value, data, "SocketOption_SocketOptionLevel")
  605. if err != nil {
  606. return err
  607. }
  608. *x = SocketOption_SocketOptionLevel(value)
  609. return nil
  610. }
  611. type SocketOption_SocketOptionName int32
  612. const (
  613. SocketOption_SOCKET_SO_DEBUG SocketOption_SocketOptionName = 1
  614. SocketOption_SOCKET_SO_REUSEADDR SocketOption_SocketOptionName = 2
  615. SocketOption_SOCKET_SO_TYPE SocketOption_SocketOptionName = 3
  616. SocketOption_SOCKET_SO_ERROR SocketOption_SocketOptionName = 4
  617. SocketOption_SOCKET_SO_DONTROUTE SocketOption_SocketOptionName = 5
  618. SocketOption_SOCKET_SO_BROADCAST SocketOption_SocketOptionName = 6
  619. SocketOption_SOCKET_SO_SNDBUF SocketOption_SocketOptionName = 7
  620. SocketOption_SOCKET_SO_RCVBUF SocketOption_SocketOptionName = 8
  621. SocketOption_SOCKET_SO_KEEPALIVE SocketOption_SocketOptionName = 9
  622. SocketOption_SOCKET_SO_OOBINLINE SocketOption_SocketOptionName = 10
  623. SocketOption_SOCKET_SO_LINGER SocketOption_SocketOptionName = 13
  624. SocketOption_SOCKET_SO_RCVTIMEO SocketOption_SocketOptionName = 20
  625. SocketOption_SOCKET_SO_SNDTIMEO SocketOption_SocketOptionName = 21
  626. SocketOption_SOCKET_IP_TOS SocketOption_SocketOptionName = 1
  627. SocketOption_SOCKET_IP_TTL SocketOption_SocketOptionName = 2
  628. SocketOption_SOCKET_IP_HDRINCL SocketOption_SocketOptionName = 3
  629. SocketOption_SOCKET_IP_OPTIONS SocketOption_SocketOptionName = 4
  630. SocketOption_SOCKET_TCP_NODELAY SocketOption_SocketOptionName = 1
  631. SocketOption_SOCKET_TCP_MAXSEG SocketOption_SocketOptionName = 2
  632. SocketOption_SOCKET_TCP_CORK SocketOption_SocketOptionName = 3
  633. SocketOption_SOCKET_TCP_KEEPIDLE SocketOption_SocketOptionName = 4
  634. SocketOption_SOCKET_TCP_KEEPINTVL SocketOption_SocketOptionName = 5
  635. SocketOption_SOCKET_TCP_KEEPCNT SocketOption_SocketOptionName = 6
  636. SocketOption_SOCKET_TCP_SYNCNT SocketOption_SocketOptionName = 7
  637. SocketOption_SOCKET_TCP_LINGER2 SocketOption_SocketOptionName = 8
  638. SocketOption_SOCKET_TCP_DEFER_ACCEPT SocketOption_SocketOptionName = 9
  639. SocketOption_SOCKET_TCP_WINDOW_CLAMP SocketOption_SocketOptionName = 10
  640. SocketOption_SOCKET_TCP_INFO SocketOption_SocketOptionName = 11
  641. SocketOption_SOCKET_TCP_QUICKACK SocketOption_SocketOptionName = 12
  642. )
  643. var SocketOption_SocketOptionName_name = map[int32]string{
  644. 1: "SOCKET_SO_DEBUG",
  645. 2: "SOCKET_SO_REUSEADDR",
  646. 3: "SOCKET_SO_TYPE",
  647. 4: "SOCKET_SO_ERROR",
  648. 5: "SOCKET_SO_DONTROUTE",
  649. 6: "SOCKET_SO_BROADCAST",
  650. 7: "SOCKET_SO_SNDBUF",
  651. 8: "SOCKET_SO_RCVBUF",
  652. 9: "SOCKET_SO_KEEPALIVE",
  653. 10: "SOCKET_SO_OOBINLINE",
  654. 13: "SOCKET_SO_LINGER",
  655. 20: "SOCKET_SO_RCVTIMEO",
  656. 21: "SOCKET_SO_SNDTIMEO",
  657. // Duplicate value: 1: "SOCKET_IP_TOS",
  658. // Duplicate value: 2: "SOCKET_IP_TTL",
  659. // Duplicate value: 3: "SOCKET_IP_HDRINCL",
  660. // Duplicate value: 4: "SOCKET_IP_OPTIONS",
  661. // Duplicate value: 1: "SOCKET_TCP_NODELAY",
  662. // Duplicate value: 2: "SOCKET_TCP_MAXSEG",
  663. // Duplicate value: 3: "SOCKET_TCP_CORK",
  664. // Duplicate value: 4: "SOCKET_TCP_KEEPIDLE",
  665. // Duplicate value: 5: "SOCKET_TCP_KEEPINTVL",
  666. // Duplicate value: 6: "SOCKET_TCP_KEEPCNT",
  667. // Duplicate value: 7: "SOCKET_TCP_SYNCNT",
  668. // Duplicate value: 8: "SOCKET_TCP_LINGER2",
  669. // Duplicate value: 9: "SOCKET_TCP_DEFER_ACCEPT",
  670. // Duplicate value: 10: "SOCKET_TCP_WINDOW_CLAMP",
  671. 11: "SOCKET_TCP_INFO",
  672. 12: "SOCKET_TCP_QUICKACK",
  673. }
  674. var SocketOption_SocketOptionName_value = map[string]int32{
  675. "SOCKET_SO_DEBUG": 1,
  676. "SOCKET_SO_REUSEADDR": 2,
  677. "SOCKET_SO_TYPE": 3,
  678. "SOCKET_SO_ERROR": 4,
  679. "SOCKET_SO_DONTROUTE": 5,
  680. "SOCKET_SO_BROADCAST": 6,
  681. "SOCKET_SO_SNDBUF": 7,
  682. "SOCKET_SO_RCVBUF": 8,
  683. "SOCKET_SO_KEEPALIVE": 9,
  684. "SOCKET_SO_OOBINLINE": 10,
  685. "SOCKET_SO_LINGER": 13,
  686. "SOCKET_SO_RCVTIMEO": 20,
  687. "SOCKET_SO_SNDTIMEO": 21,
  688. "SOCKET_IP_TOS": 1,
  689. "SOCKET_IP_TTL": 2,
  690. "SOCKET_IP_HDRINCL": 3,
  691. "SOCKET_IP_OPTIONS": 4,
  692. "SOCKET_TCP_NODELAY": 1,
  693. "SOCKET_TCP_MAXSEG": 2,
  694. "SOCKET_TCP_CORK": 3,
  695. "SOCKET_TCP_KEEPIDLE": 4,
  696. "SOCKET_TCP_KEEPINTVL": 5,
  697. "SOCKET_TCP_KEEPCNT": 6,
  698. "SOCKET_TCP_SYNCNT": 7,
  699. "SOCKET_TCP_LINGER2": 8,
  700. "SOCKET_TCP_DEFER_ACCEPT": 9,
  701. "SOCKET_TCP_WINDOW_CLAMP": 10,
  702. "SOCKET_TCP_INFO": 11,
  703. "SOCKET_TCP_QUICKACK": 12,
  704. }
  705. func (x SocketOption_SocketOptionName) Enum() *SocketOption_SocketOptionName {
  706. p := new(SocketOption_SocketOptionName)
  707. *p = x
  708. return p
  709. }
  710. func (x SocketOption_SocketOptionName) String() string {
  711. return proto.EnumName(SocketOption_SocketOptionName_name, int32(x))
  712. }
  713. func (x *SocketOption_SocketOptionName) UnmarshalJSON(data []byte) error {
  714. value, err := proto.UnmarshalJSONEnum(SocketOption_SocketOptionName_value, data, "SocketOption_SocketOptionName")
  715. if err != nil {
  716. return err
  717. }
  718. *x = SocketOption_SocketOptionName(value)
  719. return nil
  720. }
  721. type ShutDownRequest_How int32
  722. const (
  723. ShutDownRequest_SOCKET_SHUT_RD ShutDownRequest_How = 1
  724. ShutDownRequest_SOCKET_SHUT_WR ShutDownRequest_How = 2
  725. ShutDownRequest_SOCKET_SHUT_RDWR ShutDownRequest_How = 3
  726. )
  727. var ShutDownRequest_How_name = map[int32]string{
  728. 1: "SOCKET_SHUT_RD",
  729. 2: "SOCKET_SHUT_WR",
  730. 3: "SOCKET_SHUT_RDWR",
  731. }
  732. var ShutDownRequest_How_value = map[string]int32{
  733. "SOCKET_SHUT_RD": 1,
  734. "SOCKET_SHUT_WR": 2,
  735. "SOCKET_SHUT_RDWR": 3,
  736. }
  737. func (x ShutDownRequest_How) Enum() *ShutDownRequest_How {
  738. p := new(ShutDownRequest_How)
  739. *p = x
  740. return p
  741. }
  742. func (x ShutDownRequest_How) String() string {
  743. return proto.EnumName(ShutDownRequest_How_name, int32(x))
  744. }
  745. func (x *ShutDownRequest_How) UnmarshalJSON(data []byte) error {
  746. value, err := proto.UnmarshalJSONEnum(ShutDownRequest_How_value, data, "ShutDownRequest_How")
  747. if err != nil {
  748. return err
  749. }
  750. *x = ShutDownRequest_How(value)
  751. return nil
  752. }
  753. type ReceiveRequest_Flags int32
  754. const (
  755. ReceiveRequest_MSG_OOB ReceiveRequest_Flags = 1
  756. ReceiveRequest_MSG_PEEK ReceiveRequest_Flags = 2
  757. )
  758. var ReceiveRequest_Flags_name = map[int32]string{
  759. 1: "MSG_OOB",
  760. 2: "MSG_PEEK",
  761. }
  762. var ReceiveRequest_Flags_value = map[string]int32{
  763. "MSG_OOB": 1,
  764. "MSG_PEEK": 2,
  765. }
  766. func (x ReceiveRequest_Flags) Enum() *ReceiveRequest_Flags {
  767. p := new(ReceiveRequest_Flags)
  768. *p = x
  769. return p
  770. }
  771. func (x ReceiveRequest_Flags) String() string {
  772. return proto.EnumName(ReceiveRequest_Flags_name, int32(x))
  773. }
  774. func (x *ReceiveRequest_Flags) UnmarshalJSON(data []byte) error {
  775. value, err := proto.UnmarshalJSONEnum(ReceiveRequest_Flags_value, data, "ReceiveRequest_Flags")
  776. if err != nil {
  777. return err
  778. }
  779. *x = ReceiveRequest_Flags(value)
  780. return nil
  781. }
  782. type PollEvent_PollEventFlag int32
  783. const (
  784. PollEvent_SOCKET_POLLNONE PollEvent_PollEventFlag = 0
  785. PollEvent_SOCKET_POLLIN PollEvent_PollEventFlag = 1
  786. PollEvent_SOCKET_POLLPRI PollEvent_PollEventFlag = 2
  787. PollEvent_SOCKET_POLLOUT PollEvent_PollEventFlag = 4
  788. PollEvent_SOCKET_POLLERR PollEvent_PollEventFlag = 8
  789. PollEvent_SOCKET_POLLHUP PollEvent_PollEventFlag = 16
  790. PollEvent_SOCKET_POLLNVAL PollEvent_PollEventFlag = 32
  791. PollEvent_SOCKET_POLLRDNORM PollEvent_PollEventFlag = 64
  792. PollEvent_SOCKET_POLLRDBAND PollEvent_PollEventFlag = 128
  793. PollEvent_SOCKET_POLLWRNORM PollEvent_PollEventFlag = 256
  794. PollEvent_SOCKET_POLLWRBAND PollEvent_PollEventFlag = 512
  795. PollEvent_SOCKET_POLLMSG PollEvent_PollEventFlag = 1024
  796. PollEvent_SOCKET_POLLREMOVE PollEvent_PollEventFlag = 4096
  797. PollEvent_SOCKET_POLLRDHUP PollEvent_PollEventFlag = 8192
  798. )
  799. var PollEvent_PollEventFlag_name = map[int32]string{
  800. 0: "SOCKET_POLLNONE",
  801. 1: "SOCKET_POLLIN",
  802. 2: "SOCKET_POLLPRI",
  803. 4: "SOCKET_POLLOUT",
  804. 8: "SOCKET_POLLERR",
  805. 16: "SOCKET_POLLHUP",
  806. 32: "SOCKET_POLLNVAL",
  807. 64: "SOCKET_POLLRDNORM",
  808. 128: "SOCKET_POLLRDBAND",
  809. 256: "SOCKET_POLLWRNORM",
  810. 512: "SOCKET_POLLWRBAND",
  811. 1024: "SOCKET_POLLMSG",
  812. 4096: "SOCKET_POLLREMOVE",
  813. 8192: "SOCKET_POLLRDHUP",
  814. }
  815. var PollEvent_PollEventFlag_value = map[string]int32{
  816. "SOCKET_POLLNONE": 0,
  817. "SOCKET_POLLIN": 1,
  818. "SOCKET_POLLPRI": 2,
  819. "SOCKET_POLLOUT": 4,
  820. "SOCKET_POLLERR": 8,
  821. "SOCKET_POLLHUP": 16,
  822. "SOCKET_POLLNVAL": 32,
  823. "SOCKET_POLLRDNORM": 64,
  824. "SOCKET_POLLRDBAND": 128,
  825. "SOCKET_POLLWRNORM": 256,
  826. "SOCKET_POLLWRBAND": 512,
  827. "SOCKET_POLLMSG": 1024,
  828. "SOCKET_POLLREMOVE": 4096,
  829. "SOCKET_POLLRDHUP": 8192,
  830. }
  831. func (x PollEvent_PollEventFlag) Enum() *PollEvent_PollEventFlag {
  832. p := new(PollEvent_PollEventFlag)
  833. *p = x
  834. return p
  835. }
  836. func (x PollEvent_PollEventFlag) String() string {
  837. return proto.EnumName(PollEvent_PollEventFlag_name, int32(x))
  838. }
  839. func (x *PollEvent_PollEventFlag) UnmarshalJSON(data []byte) error {
  840. value, err := proto.UnmarshalJSONEnum(PollEvent_PollEventFlag_value, data, "PollEvent_PollEventFlag")
  841. if err != nil {
  842. return err
  843. }
  844. *x = PollEvent_PollEventFlag(value)
  845. return nil
  846. }
  847. type ResolveReply_ErrorCode int32
  848. const (
  849. ResolveReply_SOCKET_EAI_ADDRFAMILY ResolveReply_ErrorCode = 1
  850. ResolveReply_SOCKET_EAI_AGAIN ResolveReply_ErrorCode = 2
  851. ResolveReply_SOCKET_EAI_BADFLAGS ResolveReply_ErrorCode = 3
  852. ResolveReply_SOCKET_EAI_FAIL ResolveReply_ErrorCode = 4
  853. ResolveReply_SOCKET_EAI_FAMILY ResolveReply_ErrorCode = 5
  854. ResolveReply_SOCKET_EAI_MEMORY ResolveReply_ErrorCode = 6
  855. ResolveReply_SOCKET_EAI_NODATA ResolveReply_ErrorCode = 7
  856. ResolveReply_SOCKET_EAI_NONAME ResolveReply_ErrorCode = 8
  857. ResolveReply_SOCKET_EAI_SERVICE ResolveReply_ErrorCode = 9
  858. ResolveReply_SOCKET_EAI_SOCKTYPE ResolveReply_ErrorCode = 10
  859. ResolveReply_SOCKET_EAI_SYSTEM ResolveReply_ErrorCode = 11
  860. ResolveReply_SOCKET_EAI_BADHINTS ResolveReply_ErrorCode = 12
  861. ResolveReply_SOCKET_EAI_PROTOCOL ResolveReply_ErrorCode = 13
  862. ResolveReply_SOCKET_EAI_OVERFLOW ResolveReply_ErrorCode = 14
  863. ResolveReply_SOCKET_EAI_MAX ResolveReply_ErrorCode = 15
  864. )
  865. var ResolveReply_ErrorCode_name = map[int32]string{
  866. 1: "SOCKET_EAI_ADDRFAMILY",
  867. 2: "SOCKET_EAI_AGAIN",
  868. 3: "SOCKET_EAI_BADFLAGS",
  869. 4: "SOCKET_EAI_FAIL",
  870. 5: "SOCKET_EAI_FAMILY",
  871. 6: "SOCKET_EAI_MEMORY",
  872. 7: "SOCKET_EAI_NODATA",
  873. 8: "SOCKET_EAI_NONAME",
  874. 9: "SOCKET_EAI_SERVICE",
  875. 10: "SOCKET_EAI_SOCKTYPE",
  876. 11: "SOCKET_EAI_SYSTEM",
  877. 12: "SOCKET_EAI_BADHINTS",
  878. 13: "SOCKET_EAI_PROTOCOL",
  879. 14: "SOCKET_EAI_OVERFLOW",
  880. 15: "SOCKET_EAI_MAX",
  881. }
  882. var ResolveReply_ErrorCode_value = map[string]int32{
  883. "SOCKET_EAI_ADDRFAMILY": 1,
  884. "SOCKET_EAI_AGAIN": 2,
  885. "SOCKET_EAI_BADFLAGS": 3,
  886. "SOCKET_EAI_FAIL": 4,
  887. "SOCKET_EAI_FAMILY": 5,
  888. "SOCKET_EAI_MEMORY": 6,
  889. "SOCKET_EAI_NODATA": 7,
  890. "SOCKET_EAI_NONAME": 8,
  891. "SOCKET_EAI_SERVICE": 9,
  892. "SOCKET_EAI_SOCKTYPE": 10,
  893. "SOCKET_EAI_SYSTEM": 11,
  894. "SOCKET_EAI_BADHINTS": 12,
  895. "SOCKET_EAI_PROTOCOL": 13,
  896. "SOCKET_EAI_OVERFLOW": 14,
  897. "SOCKET_EAI_MAX": 15,
  898. }
  899. func (x ResolveReply_ErrorCode) Enum() *ResolveReply_ErrorCode {
  900. p := new(ResolveReply_ErrorCode)
  901. *p = x
  902. return p
  903. }
  904. func (x ResolveReply_ErrorCode) String() string {
  905. return proto.EnumName(ResolveReply_ErrorCode_name, int32(x))
  906. }
  907. func (x *ResolveReply_ErrorCode) UnmarshalJSON(data []byte) error {
  908. value, err := proto.UnmarshalJSONEnum(ResolveReply_ErrorCode_value, data, "ResolveReply_ErrorCode")
  909. if err != nil {
  910. return err
  911. }
  912. *x = ResolveReply_ErrorCode(value)
  913. return nil
  914. }
  915. type RemoteSocketServiceError struct {
  916. SystemError *int32 `protobuf:"varint,1,opt,name=system_error,def=0" json:"system_error,omitempty"`
  917. ErrorDetail *string `protobuf:"bytes,2,opt,name=error_detail" json:"error_detail,omitempty"`
  918. XXX_unrecognized []byte `json:"-"`
  919. }
  920. func (m *RemoteSocketServiceError) Reset() { *m = RemoteSocketServiceError{} }
  921. func (m *RemoteSocketServiceError) String() string { return proto.CompactTextString(m) }
  922. func (*RemoteSocketServiceError) ProtoMessage() {}
  923. const Default_RemoteSocketServiceError_SystemError int32 = 0
  924. func (m *RemoteSocketServiceError) GetSystemError() int32 {
  925. if m != nil && m.SystemError != nil {
  926. return *m.SystemError
  927. }
  928. return Default_RemoteSocketServiceError_SystemError
  929. }
  930. func (m *RemoteSocketServiceError) GetErrorDetail() string {
  931. if m != nil && m.ErrorDetail != nil {
  932. return *m.ErrorDetail
  933. }
  934. return ""
  935. }
  936. type AddressPort struct {
  937. Port *int32 `protobuf:"varint,1,req,name=port" json:"port,omitempty"`
  938. PackedAddress []byte `protobuf:"bytes,2,opt,name=packed_address" json:"packed_address,omitempty"`
  939. HostnameHint *string `protobuf:"bytes,3,opt,name=hostname_hint" json:"hostname_hint,omitempty"`
  940. XXX_unrecognized []byte `json:"-"`
  941. }
  942. func (m *AddressPort) Reset() { *m = AddressPort{} }
  943. func (m *AddressPort) String() string { return proto.CompactTextString(m) }
  944. func (*AddressPort) ProtoMessage() {}
  945. func (m *AddressPort) GetPort() int32 {
  946. if m != nil && m.Port != nil {
  947. return *m.Port
  948. }
  949. return 0
  950. }
  951. func (m *AddressPort) GetPackedAddress() []byte {
  952. if m != nil {
  953. return m.PackedAddress
  954. }
  955. return nil
  956. }
  957. func (m *AddressPort) GetHostnameHint() string {
  958. if m != nil && m.HostnameHint != nil {
  959. return *m.HostnameHint
  960. }
  961. return ""
  962. }
  963. type CreateSocketRequest struct {
  964. Family *CreateSocketRequest_SocketFamily `protobuf:"varint,1,req,name=family,enum=appengine.CreateSocketRequest_SocketFamily" json:"family,omitempty"`
  965. Protocol *CreateSocketRequest_SocketProtocol `protobuf:"varint,2,req,name=protocol,enum=appengine.CreateSocketRequest_SocketProtocol" json:"protocol,omitempty"`
  966. SocketOptions []*SocketOption `protobuf:"bytes,3,rep,name=socket_options" json:"socket_options,omitempty"`
  967. ProxyExternalIp *AddressPort `protobuf:"bytes,4,opt,name=proxy_external_ip" json:"proxy_external_ip,omitempty"`
  968. ListenBacklog *int32 `protobuf:"varint,5,opt,name=listen_backlog,def=0" json:"listen_backlog,omitempty"`
  969. RemoteIp *AddressPort `protobuf:"bytes,6,opt,name=remote_ip" json:"remote_ip,omitempty"`
  970. AppId *string `protobuf:"bytes,9,opt,name=app_id" json:"app_id,omitempty"`
  971. ProjectId *int64 `protobuf:"varint,10,opt,name=project_id" json:"project_id,omitempty"`
  972. XXX_unrecognized []byte `json:"-"`
  973. }
  974. func (m *CreateSocketRequest) Reset() { *m = CreateSocketRequest{} }
  975. func (m *CreateSocketRequest) String() string { return proto.CompactTextString(m) }
  976. func (*CreateSocketRequest) ProtoMessage() {}
  977. const Default_CreateSocketRequest_ListenBacklog int32 = 0
  978. func (m *CreateSocketRequest) GetFamily() CreateSocketRequest_SocketFamily {
  979. if m != nil && m.Family != nil {
  980. return *m.Family
  981. }
  982. return CreateSocketRequest_IPv4
  983. }
  984. func (m *CreateSocketRequest) GetProtocol() CreateSocketRequest_SocketProtocol {
  985. if m != nil && m.Protocol != nil {
  986. return *m.Protocol
  987. }
  988. return CreateSocketRequest_TCP
  989. }
  990. func (m *CreateSocketRequest) GetSocketOptions() []*SocketOption {
  991. if m != nil {
  992. return m.SocketOptions
  993. }
  994. return nil
  995. }
  996. func (m *CreateSocketRequest) GetProxyExternalIp() *AddressPort {
  997. if m != nil {
  998. return m.ProxyExternalIp
  999. }
  1000. return nil
  1001. }
  1002. func (m *CreateSocketRequest) GetListenBacklog() int32 {
  1003. if m != nil && m.ListenBacklog != nil {
  1004. return *m.ListenBacklog
  1005. }
  1006. return Default_CreateSocketRequest_ListenBacklog
  1007. }
  1008. func (m *CreateSocketRequest) GetRemoteIp() *AddressPort {
  1009. if m != nil {
  1010. return m.RemoteIp
  1011. }
  1012. return nil
  1013. }
  1014. func (m *CreateSocketRequest) GetAppId() string {
  1015. if m != nil && m.AppId != nil {
  1016. return *m.AppId
  1017. }
  1018. return ""
  1019. }
  1020. func (m *CreateSocketRequest) GetProjectId() int64 {
  1021. if m != nil && m.ProjectId != nil {
  1022. return *m.ProjectId
  1023. }
  1024. return 0
  1025. }
  1026. type CreateSocketReply struct {
  1027. SocketDescriptor *string `protobuf:"bytes,1,opt,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1028. ServerAddress *AddressPort `protobuf:"bytes,3,opt,name=server_address" json:"server_address,omitempty"`
  1029. ProxyExternalIp *AddressPort `protobuf:"bytes,4,opt,name=proxy_external_ip" json:"proxy_external_ip,omitempty"`
  1030. XXX_extensions map[int32]proto.Extension `json:"-"`
  1031. XXX_unrecognized []byte `json:"-"`
  1032. }
  1033. func (m *CreateSocketReply) Reset() { *m = CreateSocketReply{} }
  1034. func (m *CreateSocketReply) String() string { return proto.CompactTextString(m) }
  1035. func (*CreateSocketReply) ProtoMessage() {}
  1036. var extRange_CreateSocketReply = []proto.ExtensionRange{
  1037. {1000, 536870911},
  1038. }
  1039. func (*CreateSocketReply) ExtensionRangeArray() []proto.ExtensionRange {
  1040. return extRange_CreateSocketReply
  1041. }
  1042. func (m *CreateSocketReply) ExtensionMap() map[int32]proto.Extension {
  1043. if m.XXX_extensions == nil {
  1044. m.XXX_extensions = make(map[int32]proto.Extension)
  1045. }
  1046. return m.XXX_extensions
  1047. }
  1048. func (m *CreateSocketReply) GetSocketDescriptor() string {
  1049. if m != nil && m.SocketDescriptor != nil {
  1050. return *m.SocketDescriptor
  1051. }
  1052. return ""
  1053. }
  1054. func (m *CreateSocketReply) GetServerAddress() *AddressPort {
  1055. if m != nil {
  1056. return m.ServerAddress
  1057. }
  1058. return nil
  1059. }
  1060. func (m *CreateSocketReply) GetProxyExternalIp() *AddressPort {
  1061. if m != nil {
  1062. return m.ProxyExternalIp
  1063. }
  1064. return nil
  1065. }
  1066. type BindRequest struct {
  1067. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1068. ProxyExternalIp *AddressPort `protobuf:"bytes,2,req,name=proxy_external_ip" json:"proxy_external_ip,omitempty"`
  1069. XXX_unrecognized []byte `json:"-"`
  1070. }
  1071. func (m *BindRequest) Reset() { *m = BindRequest{} }
  1072. func (m *BindRequest) String() string { return proto.CompactTextString(m) }
  1073. func (*BindRequest) ProtoMessage() {}
  1074. func (m *BindRequest) GetSocketDescriptor() string {
  1075. if m != nil && m.SocketDescriptor != nil {
  1076. return *m.SocketDescriptor
  1077. }
  1078. return ""
  1079. }
  1080. func (m *BindRequest) GetProxyExternalIp() *AddressPort {
  1081. if m != nil {
  1082. return m.ProxyExternalIp
  1083. }
  1084. return nil
  1085. }
  1086. type BindReply struct {
  1087. ProxyExternalIp *AddressPort `protobuf:"bytes,1,opt,name=proxy_external_ip" json:"proxy_external_ip,omitempty"`
  1088. XXX_unrecognized []byte `json:"-"`
  1089. }
  1090. func (m *BindReply) Reset() { *m = BindReply{} }
  1091. func (m *BindReply) String() string { return proto.CompactTextString(m) }
  1092. func (*BindReply) ProtoMessage() {}
  1093. func (m *BindReply) GetProxyExternalIp() *AddressPort {
  1094. if m != nil {
  1095. return m.ProxyExternalIp
  1096. }
  1097. return nil
  1098. }
  1099. type GetSocketNameRequest struct {
  1100. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1101. XXX_unrecognized []byte `json:"-"`
  1102. }
  1103. func (m *GetSocketNameRequest) Reset() { *m = GetSocketNameRequest{} }
  1104. func (m *GetSocketNameRequest) String() string { return proto.CompactTextString(m) }
  1105. func (*GetSocketNameRequest) ProtoMessage() {}
  1106. func (m *GetSocketNameRequest) GetSocketDescriptor() string {
  1107. if m != nil && m.SocketDescriptor != nil {
  1108. return *m.SocketDescriptor
  1109. }
  1110. return ""
  1111. }
  1112. type GetSocketNameReply struct {
  1113. ProxyExternalIp *AddressPort `protobuf:"bytes,2,opt,name=proxy_external_ip" json:"proxy_external_ip,omitempty"`
  1114. XXX_unrecognized []byte `json:"-"`
  1115. }
  1116. func (m *GetSocketNameReply) Reset() { *m = GetSocketNameReply{} }
  1117. func (m *GetSocketNameReply) String() string { return proto.CompactTextString(m) }
  1118. func (*GetSocketNameReply) ProtoMessage() {}
  1119. func (m *GetSocketNameReply) GetProxyExternalIp() *AddressPort {
  1120. if m != nil {
  1121. return m.ProxyExternalIp
  1122. }
  1123. return nil
  1124. }
  1125. type GetPeerNameRequest struct {
  1126. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1127. XXX_unrecognized []byte `json:"-"`
  1128. }
  1129. func (m *GetPeerNameRequest) Reset() { *m = GetPeerNameRequest{} }
  1130. func (m *GetPeerNameRequest) String() string { return proto.CompactTextString(m) }
  1131. func (*GetPeerNameRequest) ProtoMessage() {}
  1132. func (m *GetPeerNameRequest) GetSocketDescriptor() string {
  1133. if m != nil && m.SocketDescriptor != nil {
  1134. return *m.SocketDescriptor
  1135. }
  1136. return ""
  1137. }
  1138. type GetPeerNameReply struct {
  1139. PeerIp *AddressPort `protobuf:"bytes,2,opt,name=peer_ip" json:"peer_ip,omitempty"`
  1140. XXX_unrecognized []byte `json:"-"`
  1141. }
  1142. func (m *GetPeerNameReply) Reset() { *m = GetPeerNameReply{} }
  1143. func (m *GetPeerNameReply) String() string { return proto.CompactTextString(m) }
  1144. func (*GetPeerNameReply) ProtoMessage() {}
  1145. func (m *GetPeerNameReply) GetPeerIp() *AddressPort {
  1146. if m != nil {
  1147. return m.PeerIp
  1148. }
  1149. return nil
  1150. }
  1151. type SocketOption struct {
  1152. Level *SocketOption_SocketOptionLevel `protobuf:"varint,1,req,name=level,enum=appengine.SocketOption_SocketOptionLevel" json:"level,omitempty"`
  1153. Option *SocketOption_SocketOptionName `protobuf:"varint,2,req,name=option,enum=appengine.SocketOption_SocketOptionName" json:"option,omitempty"`
  1154. Value []byte `protobuf:"bytes,3,req,name=value" json:"value,omitempty"`
  1155. XXX_unrecognized []byte `json:"-"`
  1156. }
  1157. func (m *SocketOption) Reset() { *m = SocketOption{} }
  1158. func (m *SocketOption) String() string { return proto.CompactTextString(m) }
  1159. func (*SocketOption) ProtoMessage() {}
  1160. func (m *SocketOption) GetLevel() SocketOption_SocketOptionLevel {
  1161. if m != nil && m.Level != nil {
  1162. return *m.Level
  1163. }
  1164. return SocketOption_SOCKET_SOL_IP
  1165. }
  1166. func (m *SocketOption) GetOption() SocketOption_SocketOptionName {
  1167. if m != nil && m.Option != nil {
  1168. return *m.Option
  1169. }
  1170. return SocketOption_SOCKET_SO_DEBUG
  1171. }
  1172. func (m *SocketOption) GetValue() []byte {
  1173. if m != nil {
  1174. return m.Value
  1175. }
  1176. return nil
  1177. }
  1178. type SetSocketOptionsRequest struct {
  1179. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1180. Options []*SocketOption `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"`
  1181. XXX_unrecognized []byte `json:"-"`
  1182. }
  1183. func (m *SetSocketOptionsRequest) Reset() { *m = SetSocketOptionsRequest{} }
  1184. func (m *SetSocketOptionsRequest) String() string { return proto.CompactTextString(m) }
  1185. func (*SetSocketOptionsRequest) ProtoMessage() {}
  1186. func (m *SetSocketOptionsRequest) GetSocketDescriptor() string {
  1187. if m != nil && m.SocketDescriptor != nil {
  1188. return *m.SocketDescriptor
  1189. }
  1190. return ""
  1191. }
  1192. func (m *SetSocketOptionsRequest) GetOptions() []*SocketOption {
  1193. if m != nil {
  1194. return m.Options
  1195. }
  1196. return nil
  1197. }
  1198. type SetSocketOptionsReply struct {
  1199. XXX_unrecognized []byte `json:"-"`
  1200. }
  1201. func (m *SetSocketOptionsReply) Reset() { *m = SetSocketOptionsReply{} }
  1202. func (m *SetSocketOptionsReply) String() string { return proto.CompactTextString(m) }
  1203. func (*SetSocketOptionsReply) ProtoMessage() {}
  1204. type GetSocketOptionsRequest struct {
  1205. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1206. Options []*SocketOption `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"`
  1207. XXX_unrecognized []byte `json:"-"`
  1208. }
  1209. func (m *GetSocketOptionsRequest) Reset() { *m = GetSocketOptionsRequest{} }
  1210. func (m *GetSocketOptionsRequest) String() string { return proto.CompactTextString(m) }
  1211. func (*GetSocketOptionsRequest) ProtoMessage() {}
  1212. func (m *GetSocketOptionsRequest) GetSocketDescriptor() string {
  1213. if m != nil && m.SocketDescriptor != nil {
  1214. return *m.SocketDescriptor
  1215. }
  1216. return ""
  1217. }
  1218. func (m *GetSocketOptionsRequest) GetOptions() []*SocketOption {
  1219. if m != nil {
  1220. return m.Options
  1221. }
  1222. return nil
  1223. }
  1224. type GetSocketOptionsReply struct {
  1225. Options []*SocketOption `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"`
  1226. XXX_unrecognized []byte `json:"-"`
  1227. }
  1228. func (m *GetSocketOptionsReply) Reset() { *m = GetSocketOptionsReply{} }
  1229. func (m *GetSocketOptionsReply) String() string { return proto.CompactTextString(m) }
  1230. func (*GetSocketOptionsReply) ProtoMessage() {}
  1231. func (m *GetSocketOptionsReply) GetOptions() []*SocketOption {
  1232. if m != nil {
  1233. return m.Options
  1234. }
  1235. return nil
  1236. }
  1237. type ConnectRequest struct {
  1238. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1239. RemoteIp *AddressPort `protobuf:"bytes,2,req,name=remote_ip" json:"remote_ip,omitempty"`
  1240. TimeoutSeconds *float64 `protobuf:"fixed64,3,opt,name=timeout_seconds,def=-1" json:"timeout_seconds,omitempty"`
  1241. XXX_unrecognized []byte `json:"-"`
  1242. }
  1243. func (m *ConnectRequest) Reset() { *m = ConnectRequest{} }
  1244. func (m *ConnectRequest) String() string { return proto.CompactTextString(m) }
  1245. func (*ConnectRequest) ProtoMessage() {}
  1246. const Default_ConnectRequest_TimeoutSeconds float64 = -1
  1247. func (m *ConnectRequest) GetSocketDescriptor() string {
  1248. if m != nil && m.SocketDescriptor != nil {
  1249. return *m.SocketDescriptor
  1250. }
  1251. return ""
  1252. }
  1253. func (m *ConnectRequest) GetRemoteIp() *AddressPort {
  1254. if m != nil {
  1255. return m.RemoteIp
  1256. }
  1257. return nil
  1258. }
  1259. func (m *ConnectRequest) GetTimeoutSeconds() float64 {
  1260. if m != nil && m.TimeoutSeconds != nil {
  1261. return *m.TimeoutSeconds
  1262. }
  1263. return Default_ConnectRequest_TimeoutSeconds
  1264. }
  1265. type ConnectReply struct {
  1266. ProxyExternalIp *AddressPort `protobuf:"bytes,1,opt,name=proxy_external_ip" json:"proxy_external_ip,omitempty"`
  1267. XXX_extensions map[int32]proto.Extension `json:"-"`
  1268. XXX_unrecognized []byte `json:"-"`
  1269. }
  1270. func (m *ConnectReply) Reset() { *m = ConnectReply{} }
  1271. func (m *ConnectReply) String() string { return proto.CompactTextString(m) }
  1272. func (*ConnectReply) ProtoMessage() {}
  1273. var extRange_ConnectReply = []proto.ExtensionRange{
  1274. {1000, 536870911},
  1275. }
  1276. func (*ConnectReply) ExtensionRangeArray() []proto.ExtensionRange {
  1277. return extRange_ConnectReply
  1278. }
  1279. func (m *ConnectReply) ExtensionMap() map[int32]proto.Extension {
  1280. if m.XXX_extensions == nil {
  1281. m.XXX_extensions = make(map[int32]proto.Extension)
  1282. }
  1283. return m.XXX_extensions
  1284. }
  1285. func (m *ConnectReply) GetProxyExternalIp() *AddressPort {
  1286. if m != nil {
  1287. return m.ProxyExternalIp
  1288. }
  1289. return nil
  1290. }
  1291. type ListenRequest struct {
  1292. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1293. Backlog *int32 `protobuf:"varint,2,req,name=backlog" json:"backlog,omitempty"`
  1294. XXX_unrecognized []byte `json:"-"`
  1295. }
  1296. func (m *ListenRequest) Reset() { *m = ListenRequest{} }
  1297. func (m *ListenRequest) String() string { return proto.CompactTextString(m) }
  1298. func (*ListenRequest) ProtoMessage() {}
  1299. func (m *ListenRequest) GetSocketDescriptor() string {
  1300. if m != nil && m.SocketDescriptor != nil {
  1301. return *m.SocketDescriptor
  1302. }
  1303. return ""
  1304. }
  1305. func (m *ListenRequest) GetBacklog() int32 {
  1306. if m != nil && m.Backlog != nil {
  1307. return *m.Backlog
  1308. }
  1309. return 0
  1310. }
  1311. type ListenReply struct {
  1312. XXX_unrecognized []byte `json:"-"`
  1313. }
  1314. func (m *ListenReply) Reset() { *m = ListenReply{} }
  1315. func (m *ListenReply) String() string { return proto.CompactTextString(m) }
  1316. func (*ListenReply) ProtoMessage() {}
  1317. type AcceptRequest struct {
  1318. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1319. TimeoutSeconds *float64 `protobuf:"fixed64,2,opt,name=timeout_seconds,def=-1" json:"timeout_seconds,omitempty"`
  1320. XXX_unrecognized []byte `json:"-"`
  1321. }
  1322. func (m *AcceptRequest) Reset() { *m = AcceptRequest{} }
  1323. func (m *AcceptRequest) String() string { return proto.CompactTextString(m) }
  1324. func (*AcceptRequest) ProtoMessage() {}
  1325. const Default_AcceptRequest_TimeoutSeconds float64 = -1
  1326. func (m *AcceptRequest) GetSocketDescriptor() string {
  1327. if m != nil && m.SocketDescriptor != nil {
  1328. return *m.SocketDescriptor
  1329. }
  1330. return ""
  1331. }
  1332. func (m *AcceptRequest) GetTimeoutSeconds() float64 {
  1333. if m != nil && m.TimeoutSeconds != nil {
  1334. return *m.TimeoutSeconds
  1335. }
  1336. return Default_AcceptRequest_TimeoutSeconds
  1337. }
  1338. type AcceptReply struct {
  1339. NewSocketDescriptor []byte `protobuf:"bytes,2,opt,name=new_socket_descriptor" json:"new_socket_descriptor,omitempty"`
  1340. RemoteAddress *AddressPort `protobuf:"bytes,3,opt,name=remote_address" json:"remote_address,omitempty"`
  1341. XXX_unrecognized []byte `json:"-"`
  1342. }
  1343. func (m *AcceptReply) Reset() { *m = AcceptReply{} }
  1344. func (m *AcceptReply) String() string { return proto.CompactTextString(m) }
  1345. func (*AcceptReply) ProtoMessage() {}
  1346. func (m *AcceptReply) GetNewSocketDescriptor() []byte {
  1347. if m != nil {
  1348. return m.NewSocketDescriptor
  1349. }
  1350. return nil
  1351. }
  1352. func (m *AcceptReply) GetRemoteAddress() *AddressPort {
  1353. if m != nil {
  1354. return m.RemoteAddress
  1355. }
  1356. return nil
  1357. }
  1358. type ShutDownRequest struct {
  1359. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1360. How *ShutDownRequest_How `protobuf:"varint,2,req,name=how,enum=appengine.ShutDownRequest_How" json:"how,omitempty"`
  1361. SendOffset *int64 `protobuf:"varint,3,req,name=send_offset" json:"send_offset,omitempty"`
  1362. XXX_unrecognized []byte `json:"-"`
  1363. }
  1364. func (m *ShutDownRequest) Reset() { *m = ShutDownRequest{} }
  1365. func (m *ShutDownRequest) String() string { return proto.CompactTextString(m) }
  1366. func (*ShutDownRequest) ProtoMessage() {}
  1367. func (m *ShutDownRequest) GetSocketDescriptor() string {
  1368. if m != nil && m.SocketDescriptor != nil {
  1369. return *m.SocketDescriptor
  1370. }
  1371. return ""
  1372. }
  1373. func (m *ShutDownRequest) GetHow() ShutDownRequest_How {
  1374. if m != nil && m.How != nil {
  1375. return *m.How
  1376. }
  1377. return ShutDownRequest_SOCKET_SHUT_RD
  1378. }
  1379. func (m *ShutDownRequest) GetSendOffset() int64 {
  1380. if m != nil && m.SendOffset != nil {
  1381. return *m.SendOffset
  1382. }
  1383. return 0
  1384. }
  1385. type ShutDownReply struct {
  1386. XXX_unrecognized []byte `json:"-"`
  1387. }
  1388. func (m *ShutDownReply) Reset() { *m = ShutDownReply{} }
  1389. func (m *ShutDownReply) String() string { return proto.CompactTextString(m) }
  1390. func (*ShutDownReply) ProtoMessage() {}
  1391. type CloseRequest struct {
  1392. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1393. SendOffset *int64 `protobuf:"varint,2,opt,name=send_offset,def=-1" json:"send_offset,omitempty"`
  1394. XXX_unrecognized []byte `json:"-"`
  1395. }
  1396. func (m *CloseRequest) Reset() { *m = CloseRequest{} }
  1397. func (m *CloseRequest) String() string { return proto.CompactTextString(m) }
  1398. func (*CloseRequest) ProtoMessage() {}
  1399. const Default_CloseRequest_SendOffset int64 = -1
  1400. func (m *CloseRequest) GetSocketDescriptor() string {
  1401. if m != nil && m.SocketDescriptor != nil {
  1402. return *m.SocketDescriptor
  1403. }
  1404. return ""
  1405. }
  1406. func (m *CloseRequest) GetSendOffset() int64 {
  1407. if m != nil && m.SendOffset != nil {
  1408. return *m.SendOffset
  1409. }
  1410. return Default_CloseRequest_SendOffset
  1411. }
  1412. type CloseReply struct {
  1413. XXX_unrecognized []byte `json:"-"`
  1414. }
  1415. func (m *CloseReply) Reset() { *m = CloseReply{} }
  1416. func (m *CloseReply) String() string { return proto.CompactTextString(m) }
  1417. func (*CloseReply) ProtoMessage() {}
  1418. type SendRequest struct {
  1419. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1420. Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"`
  1421. StreamOffset *int64 `protobuf:"varint,3,req,name=stream_offset" json:"stream_offset,omitempty"`
  1422. Flags *int32 `protobuf:"varint,4,opt,name=flags,def=0" json:"flags,omitempty"`
  1423. SendTo *AddressPort `protobuf:"bytes,5,opt,name=send_to" json:"send_to,omitempty"`
  1424. TimeoutSeconds *float64 `protobuf:"fixed64,6,opt,name=timeout_seconds,def=-1" json:"timeout_seconds,omitempty"`
  1425. XXX_unrecognized []byte `json:"-"`
  1426. }
  1427. func (m *SendRequest) Reset() { *m = SendRequest{} }
  1428. func (m *SendRequest) String() string { return proto.CompactTextString(m) }
  1429. func (*SendRequest) ProtoMessage() {}
  1430. const Default_SendRequest_Flags int32 = 0
  1431. const Default_SendRequest_TimeoutSeconds float64 = -1
  1432. func (m *SendRequest) GetSocketDescriptor() string {
  1433. if m != nil && m.SocketDescriptor != nil {
  1434. return *m.SocketDescriptor
  1435. }
  1436. return ""
  1437. }
  1438. func (m *SendRequest) GetData() []byte {
  1439. if m != nil {
  1440. return m.Data
  1441. }
  1442. return nil
  1443. }
  1444. func (m *SendRequest) GetStreamOffset() int64 {
  1445. if m != nil && m.StreamOffset != nil {
  1446. return *m.StreamOffset
  1447. }
  1448. return 0
  1449. }
  1450. func (m *SendRequest) GetFlags() int32 {
  1451. if m != nil && m.Flags != nil {
  1452. return *m.Flags
  1453. }
  1454. return Default_SendRequest_Flags
  1455. }
  1456. func (m *SendRequest) GetSendTo() *AddressPort {
  1457. if m != nil {
  1458. return m.SendTo
  1459. }
  1460. return nil
  1461. }
  1462. func (m *SendRequest) GetTimeoutSeconds() float64 {
  1463. if m != nil && m.TimeoutSeconds != nil {
  1464. return *m.TimeoutSeconds
  1465. }
  1466. return Default_SendRequest_TimeoutSeconds
  1467. }
  1468. type SendReply struct {
  1469. DataSent *int32 `protobuf:"varint,1,opt,name=data_sent" json:"data_sent,omitempty"`
  1470. XXX_unrecognized []byte `json:"-"`
  1471. }
  1472. func (m *SendReply) Reset() { *m = SendReply{} }
  1473. func (m *SendReply) String() string { return proto.CompactTextString(m) }
  1474. func (*SendReply) ProtoMessage() {}
  1475. func (m *SendReply) GetDataSent() int32 {
  1476. if m != nil && m.DataSent != nil {
  1477. return *m.DataSent
  1478. }
  1479. return 0
  1480. }
  1481. type ReceiveRequest struct {
  1482. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1483. DataSize *int32 `protobuf:"varint,2,req,name=data_size" json:"data_size,omitempty"`
  1484. Flags *int32 `protobuf:"varint,3,opt,name=flags,def=0" json:"flags,omitempty"`
  1485. TimeoutSeconds *float64 `protobuf:"fixed64,5,opt,name=timeout_seconds,def=-1" json:"timeout_seconds,omitempty"`
  1486. XXX_unrecognized []byte `json:"-"`
  1487. }
  1488. func (m *ReceiveRequest) Reset() { *m = ReceiveRequest{} }
  1489. func (m *ReceiveRequest) String() string { return proto.CompactTextString(m) }
  1490. func (*ReceiveRequest) ProtoMessage() {}
  1491. const Default_ReceiveRequest_Flags int32 = 0
  1492. const Default_ReceiveRequest_TimeoutSeconds float64 = -1
  1493. func (m *ReceiveRequest) GetSocketDescriptor() string {
  1494. if m != nil && m.SocketDescriptor != nil {
  1495. return *m.SocketDescriptor
  1496. }
  1497. return ""
  1498. }
  1499. func (m *ReceiveRequest) GetDataSize() int32 {
  1500. if m != nil && m.DataSize != nil {
  1501. return *m.DataSize
  1502. }
  1503. return 0
  1504. }
  1505. func (m *ReceiveRequest) GetFlags() int32 {
  1506. if m != nil && m.Flags != nil {
  1507. return *m.Flags
  1508. }
  1509. return Default_ReceiveRequest_Flags
  1510. }
  1511. func (m *ReceiveRequest) GetTimeoutSeconds() float64 {
  1512. if m != nil && m.TimeoutSeconds != nil {
  1513. return *m.TimeoutSeconds
  1514. }
  1515. return Default_ReceiveRequest_TimeoutSeconds
  1516. }
  1517. type ReceiveReply struct {
  1518. StreamOffset *int64 `protobuf:"varint,2,opt,name=stream_offset" json:"stream_offset,omitempty"`
  1519. Data []byte `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
  1520. ReceivedFrom *AddressPort `protobuf:"bytes,4,opt,name=received_from" json:"received_from,omitempty"`
  1521. BufferSize *int32 `protobuf:"varint,5,opt,name=buffer_size" json:"buffer_size,omitempty"`
  1522. XXX_unrecognized []byte `json:"-"`
  1523. }
  1524. func (m *ReceiveReply) Reset() { *m = ReceiveReply{} }
  1525. func (m *ReceiveReply) String() string { return proto.CompactTextString(m) }
  1526. func (*ReceiveReply) ProtoMessage() {}
  1527. func (m *ReceiveReply) GetStreamOffset() int64 {
  1528. if m != nil && m.StreamOffset != nil {
  1529. return *m.StreamOffset
  1530. }
  1531. return 0
  1532. }
  1533. func (m *ReceiveReply) GetData() []byte {
  1534. if m != nil {
  1535. return m.Data
  1536. }
  1537. return nil
  1538. }
  1539. func (m *ReceiveReply) GetReceivedFrom() *AddressPort {
  1540. if m != nil {
  1541. return m.ReceivedFrom
  1542. }
  1543. return nil
  1544. }
  1545. func (m *ReceiveReply) GetBufferSize() int32 {
  1546. if m != nil && m.BufferSize != nil {
  1547. return *m.BufferSize
  1548. }
  1549. return 0
  1550. }
  1551. type PollEvent struct {
  1552. SocketDescriptor *string `protobuf:"bytes,1,req,name=socket_descriptor" json:"socket_descriptor,omitempty"`
  1553. RequestedEvents *int32 `protobuf:"varint,2,req,name=requested_events" json:"requested_events,omitempty"`
  1554. ObservedEvents *int32 `protobuf:"varint,3,req,name=observed_events" json:"observed_events,omitempty"`
  1555. XXX_unrecognized []byte `json:"-"`
  1556. }
  1557. func (m *PollEvent) Reset() { *m = PollEvent{} }
  1558. func (m *PollEvent) String() string { return proto.CompactTextString(m) }
  1559. func (*PollEvent) ProtoMessage() {}
  1560. func (m *PollEvent) GetSocketDescriptor() string {
  1561. if m != nil && m.SocketDescriptor != nil {
  1562. return *m.SocketDescriptor
  1563. }
  1564. return ""
  1565. }
  1566. func (m *PollEvent) GetRequestedEvents() int32 {
  1567. if m != nil && m.RequestedEvents != nil {
  1568. return *m.RequestedEvents
  1569. }
  1570. return 0
  1571. }
  1572. func (m *PollEvent) GetObservedEvents() int32 {
  1573. if m != nil && m.ObservedEvents != nil {
  1574. return *m.ObservedEvents
  1575. }
  1576. return 0
  1577. }
  1578. type PollRequest struct {
  1579. Events []*PollEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
  1580. TimeoutSeconds *float64 `protobuf:"fixed64,2,opt,name=timeout_seconds,def=-1" json:"timeout_seconds,omitempty"`
  1581. XXX_unrecognized []byte `json:"-"`
  1582. }
  1583. func (m *PollRequest) Reset() { *m = PollRequest{} }
  1584. func (m *PollRequest) String() string { return proto.CompactTextString(m) }
  1585. func (*PollRequest) ProtoMessage() {}
  1586. const Default_PollRequest_TimeoutSeconds float64 = -1
  1587. func (m *PollRequest) GetEvents() []*PollEvent {
  1588. if m != nil {
  1589. return m.Events
  1590. }
  1591. return nil
  1592. }
  1593. func (m *PollRequest) GetTimeoutSeconds() float64 {
  1594. if m != nil && m.TimeoutSeconds != nil {
  1595. return *m.TimeoutSeconds
  1596. }
  1597. return Default_PollRequest_TimeoutSeconds
  1598. }
  1599. type PollReply struct {
  1600. Events []*PollEvent `protobuf:"bytes,2,rep,name=events" json:"events,omitempty"`
  1601. XXX_unrecognized []byte `json:"-"`
  1602. }
  1603. func (m *PollReply) Reset() { *m = PollReply{} }
  1604. func (m *PollReply) String() string { return proto.CompactTextString(m) }
  1605. func (*PollReply) ProtoMessage() {}
  1606. func (m *PollReply) GetEvents() []*PollEvent {
  1607. if m != nil {
  1608. return m.Events
  1609. }
  1610. return nil
  1611. }
  1612. type ResolveRequest struct {
  1613. Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
  1614. AddressFamilies []CreateSocketRequest_SocketFamily `protobuf:"varint,2,rep,name=address_families,enum=appengine.CreateSocketRequest_SocketFamily" json:"address_families,omitempty"`
  1615. XXX_unrecognized []byte `json:"-"`
  1616. }
  1617. func (m *ResolveRequest) Reset() { *m = ResolveRequest{} }
  1618. func (m *ResolveRequest) String() string { return proto.CompactTextString(m) }
  1619. func (*ResolveRequest) ProtoMessage() {}
  1620. func (m *ResolveRequest) GetName() string {
  1621. if m != nil && m.Name != nil {
  1622. return *m.Name
  1623. }
  1624. return ""
  1625. }
  1626. func (m *ResolveRequest) GetAddressFamilies() []CreateSocketRequest_SocketFamily {
  1627. if m != nil {
  1628. return m.AddressFamilies
  1629. }
  1630. return nil
  1631. }
  1632. type ResolveReply struct {
  1633. PackedAddress [][]byte `protobuf:"bytes,2,rep,name=packed_address" json:"packed_address,omitempty"`
  1634. CanonicalName *string `protobuf:"bytes,3,opt,name=canonical_name" json:"canonical_name,omitempty"`
  1635. Aliases []string `protobuf:"bytes,4,rep,name=aliases" json:"aliases,omitempty"`
  1636. XXX_unrecognized []byte `json:"-"`
  1637. }
  1638. func (m *ResolveReply) Reset() { *m = ResolveReply{} }
  1639. func (m *ResolveReply) String() string { return proto.CompactTextString(m) }
  1640. func (*ResolveReply) ProtoMessage() {}
  1641. func (m *ResolveReply) GetPackedAddress() [][]byte {
  1642. if m != nil {
  1643. return m.PackedAddress
  1644. }
  1645. return nil
  1646. }
  1647. func (m *ResolveReply) GetCanonicalName() string {
  1648. if m != nil && m.CanonicalName != nil {
  1649. return *m.CanonicalName
  1650. }
  1651. return ""
  1652. }
  1653. func (m *ResolveReply) GetAliases() []string {
  1654. if m != nil {
  1655. return m.Aliases
  1656. }
  1657. return nil
  1658. }
  1659. func init() {
  1660. }