GeneratedTest.php
3 years ago
MessageAwareArrayComparator.php
3 years ago
MessageAwareExporter.php
3 years ago
MockBidiStreamingCall.php
3 years ago
MockClientStreamingCall.php
3 years ago
MockGrpcTransport.php
3 years ago
MockRequest.php
3 years ago
MockRequestBody.php
3 years ago
MockResponse.php
3 years ago
MockServerStreamingCall.php
3 years ago
MockStatus.php
3 years ago
MockStubTrait.php
3 years ago
MockTransport.php
3 years ago
MockUnaryCall.php
3 years ago
ProtobufGPBEmptyComparator.php
3 years ago
ProtobufMessageComparator.php
3 years ago
ReceivedRequest.php
3 years ago
SerializationTrait.php
3 years ago
mocks.proto
3 years ago
MockRequest.php
87 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: Testing/mocks.proto |
| 4 | |
| 5 | namespace Google\ApiCore\Testing; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBUtil; |
| 8 | use GPBMetadata\ApiCore\Testing\Mocks; |
| 9 | |
| 10 | /** |
| 11 | * Generated from protobuf message <code>google.apicore.testing.MockRequest</code> |
| 12 | * |
| 13 | * @internal |
| 14 | */ |
| 15 | class MockRequest extends \Google\Protobuf\Internal\Message |
| 16 | { |
| 17 | /** |
| 18 | * Generated from protobuf field <code>string page_token = 1;</code> |
| 19 | */ |
| 20 | protected $page_token = ''; |
| 21 | /** |
| 22 | * Generated from protobuf field <code>uint64 page_size = 2;</code> |
| 23 | */ |
| 24 | protected $page_size = 0; |
| 25 | |
| 26 | /** |
| 27 | * Constructor. |
| 28 | * |
| 29 | * @param array $data { |
| 30 | * Optional. Data for populating the Message object. |
| 31 | * |
| 32 | * @type string $page_token |
| 33 | * @type int|string $page_size |
| 34 | * } |
| 35 | */ |
| 36 | public function __construct($data = NULL) { |
| 37 | Mocks::initOnce(); |
| 38 | parent::__construct($data); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Generated from protobuf field <code>string page_token = 1;</code> |
| 43 | * @return string |
| 44 | */ |
| 45 | public function getPageToken() |
| 46 | { |
| 47 | return $this->page_token; |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Generated from protobuf field <code>string page_token = 1;</code> |
| 52 | * @param string $var |
| 53 | * @return $this |
| 54 | */ |
| 55 | public function setPageToken($var) |
| 56 | { |
| 57 | GPBUtil::checkString($var, True); |
| 58 | $this->page_token = $var; |
| 59 | |
| 60 | return $this; |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Generated from protobuf field <code>uint64 page_size = 2;</code> |
| 65 | * @return int|string |
| 66 | */ |
| 67 | public function getPageSize() |
| 68 | { |
| 69 | return $this->page_size; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Generated from protobuf field <code>uint64 page_size = 2;</code> |
| 74 | * @param int|string $var |
| 75 | * @return $this |
| 76 | */ |
| 77 | public function setPageSize($var) |
| 78 | { |
| 79 | GPBUtil::checkUint64($var); |
| 80 | $this->page_size = $var; |
| 81 | |
| 82 | return $this; |
| 83 | } |
| 84 | |
| 85 | } |
| 86 | |
| 87 |