x
This commit is contained in:
58
gen/proto/php/Pet/V1/GetPetRequest.php
Normal file
58
gen/proto/php/Pet/V1/GetPetRequest.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user