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

59 lines
1.3 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.DeletePetRequest</code>
*/
class DeletePetRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string pet_id = 1 [json_name = "petId"];</code>
*/
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 <code>string pet_id = 1 [json_name = "petId"];</code>
* @return string
*/
public function getPetId()
{
return $this->pet_id;
}
/**
* Generated from protobuf field <code>string pet_id = 1 [json_name = "petId"];</code>
* @param string $var
* @return $this
*/
public function setPetId($var)
{
GPBUtil::checkString($var, True);
$this->pet_id = $var;
return $this;
}
}