S3GetFileRequest.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: lily.proto
  4. namespace Palm\Lily\V1;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>palm.lily.v1.S3GetFileRequest</code>
  10. */
  11. class S3GetFileRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>string bucket = 1;</code>
  15. */
  16. protected $bucket = '';
  17. /**
  18. * Generated from protobuf field <code>string name = 2;</code>
  19. */
  20. protected $name = '';
  21. /**
  22. * Generated from protobuf field <code>.google.protobuf.Duration ttl = 9;</code>
  23. */
  24. protected $ttl = null;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type string $bucket
  32. * @type string $name
  33. * @type \Google\Protobuf\Duration $ttl
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Lily::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>string bucket = 1;</code>
  42. * @return string
  43. */
  44. public function getBucket()
  45. {
  46. return $this->bucket;
  47. }
  48. /**
  49. * Generated from protobuf field <code>string bucket = 1;</code>
  50. * @param string $var
  51. * @return $this
  52. */
  53. public function setBucket($var)
  54. {
  55. GPBUtil::checkString($var, True);
  56. $this->bucket = $var;
  57. return $this;
  58. }
  59. /**
  60. * Generated from protobuf field <code>string name = 2;</code>
  61. * @return string
  62. */
  63. public function getName()
  64. {
  65. return $this->name;
  66. }
  67. /**
  68. * Generated from protobuf field <code>string name = 2;</code>
  69. * @param string $var
  70. * @return $this
  71. */
  72. public function setName($var)
  73. {
  74. GPBUtil::checkString($var, True);
  75. $this->name = $var;
  76. return $this;
  77. }
  78. /**
  79. * Generated from protobuf field <code>.google.protobuf.Duration ttl = 9;</code>
  80. * @return \Google\Protobuf\Duration|null
  81. */
  82. public function getTtl()
  83. {
  84. return $this->ttl;
  85. }
  86. public function hasTtl()
  87. {
  88. return isset($this->ttl);
  89. }
  90. public function clearTtl()
  91. {
  92. unset($this->ttl);
  93. }
  94. /**
  95. * Generated from protobuf field <code>.google.protobuf.Duration ttl = 9;</code>
  96. * @param \Google\Protobuf\Duration $var
  97. * @return $this
  98. */
  99. public function setTtl($var)
  100. {
  101. GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
  102. $this->ttl = $var;
  103. return $this;
  104. }
  105. }