x
This commit is contained in:
68
gen/proto/php/Pet/V1/GetPetResponse.php
Normal file
68
gen/proto/php/Pet/V1/GetPetResponse.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?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.GetPetResponse</code>
|
||||
*/
|
||||
class GetPetResponse 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user