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