This commit is contained in:
2022-05-31 09:30:19 +02:00
parent 9de85ee1ec
commit ccc96319a3
72 changed files with 11971 additions and 4 deletions

View File

@@ -0,0 +1,58 @@
<?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;
}
}

View File

@@ -0,0 +1,31 @@
<?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.DeletePetResponse</code>
*/
class DeletePetResponse extends \Google\Protobuf\Internal\Message
{
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* }
*/
public function __construct($data = NULL) {
\Pet\V1\GPBMetadata\Pet::initOnce();
parent::__construct($data);
}
}

Binary file not shown.

View File

@@ -0,0 +1,58 @@
<?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.GetPetRequest</code>
*/
class GetPetRequest 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;
}
}

View 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;
}
}

View File

@@ -0,0 +1,151 @@
<?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;
/**
* Pet represents a pet in the pet store.
*
* Generated from protobuf message <code>pet.v1.Pet</code>
*/
class Pet 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 pet_id = 2 [json_name = "petId"];</code>
*/
protected $pet_id = '';
/**
* Generated from protobuf field <code>string name = 3 [json_name = "name"];</code>
*/
protected $name = '';
/**
* Generated from protobuf field <code>.google.type.DateTime created_at = 4 [json_name = "createdAt"];</code>
*/
protected $created_at = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $pet_type
* @type string $pet_id
* @type string $name
* @type \Google\Type\DateTime $created_at
* }
*/
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 pet_id = 2 [json_name = "petId"];</code>
* @return string
*/
public function getPetId()
{
return $this->pet_id;
}
/**
* Generated from protobuf field <code>string pet_id = 2 [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>string name = 3 [json_name = "name"];</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field <code>string name = 3 [json_name = "name"];</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field <code>.google.type.DateTime created_at = 4 [json_name = "createdAt"];</code>
* @return \Google\Type\DateTime|null
*/
public function getCreatedAt()
{
return $this->created_at;
}
public function hasCreatedAt()
{
return isset($this->created_at);
}
public function clearCreatedAt()
{
unset($this->created_at);
}
/**
* Generated from protobuf field <code>.google.type.DateTime created_at = 4 [json_name = "createdAt"];</code>
* @param \Google\Type\DateTime $var
* @return $this
*/
public function setCreatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
$this->created_at = $var;
return $this;
}
}

View File

@@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pet/v1/pet.proto
namespace Pet\V1;
use UnexpectedValueException;
/**
* PetType represents the different types of pets in the pet store.
*
* Protobuf type <code>pet.v1.PetType</code>
*/
class PetType
{
/**
* Generated from protobuf enum <code>PET_TYPE_UNSPECIFIED = 0;</code>
*/
const PET_TYPE_UNSPECIFIED = 0;
/**
* Generated from protobuf enum <code>PET_TYPE_CAT = 1;</code>
*/
const PET_TYPE_CAT = 1;
/**
* Generated from protobuf enum <code>PET_TYPE_DOG = 2;</code>
*/
const PET_TYPE_DOG = 2;
/**
* Generated from protobuf enum <code>PET_TYPE_SNAKE = 3;</code>
*/
const PET_TYPE_SNAKE = 3;
/**
* Generated from protobuf enum <code>PET_TYPE_HAMSTER = 4;</code>
*/
const PET_TYPE_HAMSTER = 4;
private static $valueToName = [
self::PET_TYPE_UNSPECIFIED => 'PET_TYPE_UNSPECIFIED',
self::PET_TYPE_CAT => 'PET_TYPE_CAT',
self::PET_TYPE_DOG => 'PET_TYPE_DOG',
self::PET_TYPE_SNAKE => 'PET_TYPE_SNAKE',
self::PET_TYPE_HAMSTER => 'PET_TYPE_HAMSTER',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}

View File

@@ -0,0 +1,95 @@
<?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;
}
}

View File

@@ -0,0 +1,31 @@
<?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.PurchasePetResponse</code>
*/
class PurchasePetResponse extends \Google\Protobuf\Internal\Message
{
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* }
*/
public function __construct($data = NULL) {
\Pet\V1\GPBMetadata\Pet::initOnce();
parent::__construct($data);
}
}

View File

@@ -0,0 +1,85 @@
<?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;
}
}

View 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.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;
}
}