ReconnectInfo.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: src/proto/grpc/testing/messages.proto
  4. namespace Grpc\Testing;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * <pre>
  10. * For reconnect interop test only.
  11. * Server tells client whether its reconnects are following the spec and the
  12. * reconnect backoffs it saw.
  13. * </pre>
  14. *
  15. * Protobuf type <code>grpc.testing.ReconnectInfo</code>
  16. */
  17. class ReconnectInfo extends \Google\Protobuf\Internal\Message
  18. {
  19. /**
  20. * <code>bool passed = 1;</code>
  21. */
  22. private $passed = false;
  23. /**
  24. * <code>repeated int32 backoff_ms = 2;</code>
  25. */
  26. private $backoff_ms;
  27. public function __construct() {
  28. \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
  29. parent::__construct();
  30. }
  31. /**
  32. * <code>bool passed = 1;</code>
  33. */
  34. public function getPassed()
  35. {
  36. return $this->passed;
  37. }
  38. /**
  39. * <code>bool passed = 1;</code>
  40. */
  41. public function setPassed($var)
  42. {
  43. GPBUtil::checkBool($var);
  44. $this->passed = $var;
  45. }
  46. /**
  47. * <code>repeated int32 backoff_ms = 2;</code>
  48. */
  49. public function getBackoffMs()
  50. {
  51. return $this->backoff_ms;
  52. }
  53. /**
  54. * <code>repeated int32 backoff_ms = 2;</code>
  55. */
  56. public function setBackoffMs(&$var)
  57. {
  58. GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
  59. $this->backoff_ms = $var;
  60. }
  61. }