pet.v1.GetPetRequest */ class GetPetRequest extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string pet_id = 1 [json_name = "petId"]; */ protected $pet_id = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $pet_id * } */ public function __construct($data = NULL) { \Pet\V1\GPBMetadata\Pet::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string pet_id = 1 [json_name = "petId"]; * @return string */ public function getPetId() { return $this->pet_id; } /** * Generated from protobuf field string pet_id = 1 [json_name = "petId"]; * @param string $var * @return $this */ public function setPetId($var) { GPBUtil::checkString($var, True); $this->pet_id = $var; return $this; } }