PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / gax / src / Testing / MockResponse.php
googleanalytics / lib / analytics-admin / vendor / google / gax / src / Testing Last commit date
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
MockResponse.php
167 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
9 /**
10 * Generated from protobuf message <code>google.apicore.testing.MockResponse</code>
11 *
12 * @internal
13 */
14 class MockResponse extends \Google\Protobuf\Internal\Message
15 {
16 /**
17 * Generated from protobuf field <code>string name = 1;</code>
18 */
19 protected $name = '';
20 /**
21 * Generated from protobuf field <code>uint64 number = 2;</code>
22 */
23 protected $number = 0;
24 /**
25 * Generated from protobuf field <code>repeated string resources_list = 3;</code>
26 */
27 private $resources_list;
28 /**
29 * Generated from protobuf field <code>string next_page_token = 4;</code>
30 */
31 protected $next_page_token = '';
32 /**
33 * Generated from protobuf field <code>map<string, string> resources_map = 5;</code>
34 */
35 private $resources_map;
36
37 /**
38 * Constructor.
39 *
40 * @param array $data {
41 * Optional. Data for populating the Message object.
42 *
43 * @type string $name
44 * @type int|string $number
45 * @type string[]|\Google\Protobuf\Internal\RepeatedField $resources_list
46 * @type string $next_page_token
47 * @type array|\Google\Protobuf\Internal\MapField $resources_map
48 * }
49 */
50 public function __construct($data = NULL) {
51 \GPBMetadata\ApiCore\Testing\Mocks::initOnce();
52 parent::__construct($data);
53 }
54
55 /**
56 * Generated from protobuf field <code>string name = 1;</code>
57 * @return string
58 */
59 public function getName()
60 {
61 return $this->name;
62 }
63
64 /**
65 * Generated from protobuf field <code>string name = 1;</code>
66 * @param string $var
67 * @return $this
68 */
69 public function setName($var)
70 {
71 GPBUtil::checkString($var, True);
72 $this->name = $var;
73
74 return $this;
75 }
76
77 /**
78 * Generated from protobuf field <code>uint64 number = 2;</code>
79 * @return int|string
80 */
81 public function getNumber()
82 {
83 return $this->number;
84 }
85
86 /**
87 * Generated from protobuf field <code>uint64 number = 2;</code>
88 * @param int|string $var
89 * @return $this
90 */
91 public function setNumber($var)
92 {
93 GPBUtil::checkUint64($var);
94 $this->number = $var;
95
96 return $this;
97 }
98
99 /**
100 * Generated from protobuf field <code>repeated string resources_list = 3;</code>
101 * @return \Google\Protobuf\Internal\RepeatedField
102 */
103 public function getResourcesList()
104 {
105 return $this->resources_list;
106 }
107
108 /**
109 * Generated from protobuf field <code>repeated string resources_list = 3;</code>
110 * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
111 * @return $this
112 */
113 public function setResourcesList($var)
114 {
115 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
116 $this->resources_list = $arr;
117
118 return $this;
119 }
120
121 /**
122 * Generated from protobuf field <code>string next_page_token = 4;</code>
123 * @return string
124 */
125 public function getNextPageToken()
126 {
127 return $this->next_page_token;
128 }
129
130 /**
131 * Generated from protobuf field <code>string next_page_token = 4;</code>
132 * @param string $var
133 * @return $this
134 */
135 public function setNextPageToken($var)
136 {
137 GPBUtil::checkString($var, True);
138 $this->next_page_token = $var;
139
140 return $this;
141 }
142
143 /**
144 * Generated from protobuf field <code>map<string, string> resources_map = 5;</code>
145 * @return \Google\Protobuf\Internal\MapField
146 */
147 public function getResourcesMap()
148 {
149 return $this->resources_map;
150 }
151
152 /**
153 * Generated from protobuf field <code>map<string, string> resources_map = 5;</code>
154 * @param array|\Google\Protobuf\Internal\MapField $var
155 * @return $this
156 */
157 public function setResourcesMap($var)
158 {
159 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
160 $this->resources_map = $arr;
161
162 return $this;
163 }
164
165 }
166
167