<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Testing/mocks.proto namespace Google\ApiCore\Testing; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Generated from protobuf message <code>google.apicore.testing.MockRequest</code> */ class MockRequest extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field <code>string page_token = 1;</code> */ protected $page_token = ''; /** * Generated from protobuf field <code>uint64 page_size = 2;</code> */ protected $page_size = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $page_token * @type int|string $page_size * } */ public function __construct($data = NULL) { \GPBMetadata\ApiCore\Testing\Mocks::initOnce(); parent::__construct($data); } /** * Generated from protobuf field <code>string page_token = 1;</code> * @return string */ public function getPageToken() { return $this->page_token; } /** * Generated from protobuf field <code>string page_token = 1;</code> * @param string $var * @return $this */ public function setPageToken($var) { GPBUtil::checkString($var, True); $this->page_token = $var; return $this; } /** * Generated from protobuf field <code>uint64 page_size = 2;</code> * @return int|string */ public function getPageSize() { return $this->page_size; } /** * Generated from protobuf field <code>uint64 page_size = 2;</code> * @param int|string $var * @return $this */ public function setPageSize($var) { GPBUtil::checkUint64($var); $this->page_size = $var; return $this; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
GeneratedTest.php | File | 3.5 KB | 0644 |
|
MessageAwareArrayComparator.php | File | 881 B | 0644 |
|
MessageAwareExporter.php | File | 1.25 KB | 0644 |
|
MockBidiStreamingCall.php | File | 5.52 KB | 0644 |
|
MockClientStreamingCall.php | File | 4.24 KB | 0644 |
|
MockGrpcTransport.php | File | 3.47 KB | 0644 |
|
MockRequest.php | File | 1.93 KB | 0644 |
|
MockRequestBody.php | File | 16.76 KB | 0644 |
|
MockResponse.php | File | 4.22 KB | 0644 |
|
MockServerStreamingCall.php | File | 3.22 KB | 0644 |
|
MockStatus.php | File | 1.88 KB | 0644 |
|
MockStubTrait.php | File | 10.72 KB | 0644 |
|
MockTransport.php | File | 4.1 KB | 0644 |
|
MockUnaryCall.php | File | 2.98 KB | 0644 |
|
ProtobufGPBEmptyComparator.php | File | 2.11 KB | 0644 |
|
ProtobufMessageComparator.php | File | 2.65 KB | 0644 |
|
ReceivedRequest.php | File | 2.52 KB | 0644 |
|
SerializationTrait.php | File | 2.39 KB | 0644 |
|
mocks.proto | File | 1.25 KB | 0644 |
|