69 lines
1.5 KiB
PHP
69 lines
1.5 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: pet/v1/pet.proto
|
|
|
|
namespace Pet\V1;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>pet.v1.PutPetResponse</code>
|
|
*/
|
|
class PutPetResponse extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.pet.v1.Pet pet = 1 [json_name = "pet"];</code>
|
|
*/
|
|
protected $pet = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Pet\V1\Pet $pet
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\Pet\V1\GPBMetadata\Pet::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.pet.v1.Pet pet = 1 [json_name = "pet"];</code>
|
|
* @return \Pet\V1\Pet|null
|
|
*/
|
|
public function getPet()
|
|
{
|
|
return $this->pet;
|
|
}
|
|
|
|
public function hasPet()
|
|
{
|
|
return isset($this->pet);
|
|
}
|
|
|
|
public function clearPet()
|
|
{
|
|
unset($this->pet);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.pet.v1.Pet pet = 1 [json_name = "pet"];</code>
|
|
* @param \Pet\V1\Pet $var
|
|
* @return $this
|
|
*/
|
|
public function setPet($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Pet\V1\Pet::class);
|
|
$this->pet = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|