RequestPublicSendSms.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: proto/game.proto
  4. namespace Uraus\Kku\Request;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * 发送验证码
  10. *
  11. * Generated from protobuf message <code>uraus.kku.Request.RequestPublicSendSms</code>
  12. */
  13. class RequestPublicSendSms extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>int64 type = 1;</code>
  17. */
  18. protected $type = 0;
  19. /**
  20. * Generated from protobuf field <code>string mobile = 2;</code>
  21. */
  22. protected $mobile = '';
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type int|string $type
  30. * @type string $mobile
  31. * }
  32. */
  33. public function __construct($data = NULL) {
  34. \GPBMetadata\Proto\Game::initOnce();
  35. parent::__construct($data);
  36. }
  37. /**
  38. * Generated from protobuf field <code>int64 type = 1;</code>
  39. * @return int|string
  40. */
  41. public function getType()
  42. {
  43. return $this->type;
  44. }
  45. /**
  46. * Generated from protobuf field <code>int64 type = 1;</code>
  47. * @param int|string $var
  48. * @return $this
  49. */
  50. public function setType($var)
  51. {
  52. GPBUtil::checkInt64($var);
  53. $this->type = $var;
  54. return $this;
  55. }
  56. /**
  57. * Generated from protobuf field <code>string mobile = 2;</code>
  58. * @return string
  59. */
  60. public function getMobile()
  61. {
  62. return $this->mobile;
  63. }
  64. /**
  65. * Generated from protobuf field <code>string mobile = 2;</code>
  66. * @param string $var
  67. * @return $this
  68. */
  69. public function setMobile($var)
  70. {
  71. GPBUtil::checkString($var, True);
  72. $this->mobile = $var;
  73. return $this;
  74. }
  75. }
  76. // Adding a class alias for backwards compatibility with the previous class name.
  77. class_alias(RequestPublicSendSms::class, \Uraus\Kku\Request_RequestPublicSendSms::class);