SupportedCodecs.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Description of supported codecs.
  10. *
  11. * Generated from protobuf message <code>Ydb.Topic.SupportedCodecs</code>
  12. */
  13. class SupportedCodecs extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * List of supported codecs.
  17. * See enum Codec above for values.
  18. *
  19. * Generated from protobuf field <code>repeated int32 codecs = 1 [(.Ydb.size) = {</code>
  20. */
  21. private $codecs;
  22. /**
  23. * Constructor.
  24. *
  25. * @param array $data {
  26. * Optional. Data for populating the Message object.
  27. *
  28. * @type array<int>|\Google\Protobuf\Internal\RepeatedField $codecs
  29. * List of supported codecs.
  30. * See enum Codec above for values.
  31. * }
  32. */
  33. public function __construct($data = NULL) {
  34. \GPBMetadata\Protos\YdbTopic::initOnce();
  35. parent::__construct($data);
  36. }
  37. /**
  38. * List of supported codecs.
  39. * See enum Codec above for values.
  40. *
  41. * Generated from protobuf field <code>repeated int32 codecs = 1 [(.Ydb.size) = {</code>
  42. * @return \Google\Protobuf\Internal\RepeatedField
  43. */
  44. public function getCodecs()
  45. {
  46. return $this->codecs;
  47. }
  48. /**
  49. * List of supported codecs.
  50. * See enum Codec above for values.
  51. *
  52. * Generated from protobuf field <code>repeated int32 codecs = 1 [(.Ydb.size) = {</code>
  53. * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
  54. * @return $this
  55. */
  56. public function setCodecs($var)
  57. {
  58. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
  59. $this->codecs = $arr;
  60. return $this;
  61. }
  62. }