for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protos/dice.proto
namespace MeadSteve\DiceApi\Protos\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>MeadSteve.DiceApi.Protos.V1.Dice</code>
*/
class Dice extends \Google\Protobuf\Internal\Message
{
* Generated from protobuf field <code>int32 value = 1;</code>
private $value = 0;
* Generated from protobuf field <code>string name = 2;</code>
private $name = '';
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
* @type int $value
* @type string $name
* }
public function __construct($data = NULL) {
\MeadSteve\DiceApi\Protos\V1\Meta\Dice::initOnce();
parent::__construct($data);
}
* @return int
public function getValue()
return $this->value;
* @param int $var
* @return $this
public function setValue($var)
GPBUtil::checkInt32($var);
$this->value = $var;
return $this;
* @return string
public function getName()
return $this->name;
* @param string $var
public function setName($var)
GPBUtil::checkString($var, True);
$this->name = $var;