Ydb.Topic.SupportedCodecs
*/
class SupportedCodecs extends \Google\Protobuf\Internal\Message
{
/**
* List of supported codecs.
* See enum Codec above for values.
*
* Generated from protobuf field repeated int32 codecs = 1 [(.Ydb.size) = {
*/
private $codecs;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array|\Google\Protobuf\Internal\RepeatedField $codecs
* List of supported codecs.
* See enum Codec above for values.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbTopic::initOnce();
parent::__construct($data);
}
/**
* List of supported codecs.
* See enum Codec above for values.
*
* Generated from protobuf field repeated int32 codecs = 1 [(.Ydb.size) = {
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getCodecs()
{
return $this->codecs;
}
/**
* List of supported codecs.
* See enum Codec above for values.
*
* Generated from protobuf field repeated int32 codecs = 1 [(.Ydb.size) = {
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setCodecs($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->codecs = $arr;
return $this;
}
}