rv.data.GetMediaThumbnail
*/
class GetMediaThumbnail extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field int32 width_hint = 3;
*/
protected $width_hint = 0;
/**
* Generated from protobuf field int32 height_hint = 4;
*/
protected $height_hint = 0;
protected $MediaType;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $width_hint
* @type int $height_hint
* @type \Rv\Data\Media $media
* @type \Rv\Data\Action $action
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProCore::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field int32 width_hint = 3;
* @return int
*/
public function getWidthHint()
{
return $this->width_hint;
}
/**
* Generated from protobuf field int32 width_hint = 3;
* @param int $var
* @return $this
*/
public function setWidthHint($var)
{
GPBUtil::checkInt32($var);
$this->width_hint = $var;
return $this;
}
/**
* Generated from protobuf field int32 height_hint = 4;
* @return int
*/
public function getHeightHint()
{
return $this->height_hint;
}
/**
* Generated from protobuf field int32 height_hint = 4;
* @param int $var
* @return $this
*/
public function setHeightHint($var)
{
GPBUtil::checkInt32($var);
$this->height_hint = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Media media = 1;
* @return \Rv\Data\Media|null
*/
public function getMedia()
{
return $this->readOneof(1);
}
public function hasMedia()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .rv.data.Media media = 1;
* @param \Rv\Data\Media $var
* @return $this
*/
public function setMedia($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Media::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.Action action = 2;
* @return \Rv\Data\Action|null
*/
public function getAction()
{
return $this->readOneof(2);
}
public function hasAction()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .rv.data.Action action = 2;
* @param \Rv\Data\Action $var
* @return $this
*/
public function setAction($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Action::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* @return string
*/
public function getMediaType()
{
return $this->whichOneof("MediaType");
}
}