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

96 lines
2.2 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.PurchasePetRequest</code>
*/
class PurchasePetRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string pet_id = 1 [json_name = "petId"];</code>
*/
protected $pet_id = '';
/**
* Generated from protobuf field <code>.payment.v1.Order order = 2 [json_name = "order"];</code>
*/
protected $order = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $pet_id
* @type \Payment\V1\Order $order
* }
*/
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;
}
/**
* Generated from protobuf field <code>.payment.v1.Order order = 2 [json_name = "order"];</code>
* @return \Payment\V1\Order|null
*/
public function getOrder()
{
return $this->order;
}
public function hasOrder()
{
return isset($this->order);
}
public function clearOrder()
{
unset($this->order);
}
/**
* Generated from protobuf field <code>.payment.v1.Order order = 2 [json_name = "order"];</code>
* @param \Payment\V1\Order $var
* @return $this
*/
public function setOrder($var)
{
GPBUtil::checkMessage($var, \Payment\V1\Order::class);
$this->order = $var;
return $this;
}
}