Files
protobuf/gen/proto/php/Pet/V1/PutPetRequest.php
2022-05-31 09:30:19 +02:00

86 lines
2.0 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.PutPetRequest</code>
*/
class PutPetRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.pet.v1.PetType pet_type = 1 [json_name = "petType"];</code>
*/
protected $pet_type = 0;
/**
* Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
*/
protected $name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $pet_type
* @type string $name
* }
*/
public function __construct($data = NULL) {
\Pet\V1\GPBMetadata\Pet::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.pet.v1.PetType pet_type = 1 [json_name = "petType"];</code>
* @return int
*/
public function getPetType()
{
return $this->pet_type;
}
/**
* Generated from protobuf field <code>.pet.v1.PetType pet_type = 1 [json_name = "petType"];</code>
* @param int $var
* @return $this
*/
public function setPetType($var)
{
GPBUtil::checkEnum($var, \Pet\V1\PetType::class);
$this->pet_type = $var;
return $this;
}
/**
* Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
}