Lines Matching refs:payload
93 $payload = new Grpc\Testing\Payload();
94 $payload->setType(Grpc\Testing\PayloadType::COMPRESSABLE);
95 $payload->setBody(str_repeat("\0", $request_len));
96 $request->setPayload($payload);
108 $payload = $result->getPayload();
109 hardAssert($payload->getType() === Grpc\Testing\PayloadType::COMPRESSABLE,
111 hardAssert(strlen($payload->getBody()) === $response_len,
113 hardAssert($payload->getBody() === str_repeat("\0", $response_len),
242 $payload = new Grpc\Testing\Payload();
243 $payload->setBody(str_repeat("\0", $length));
244 $request->setPayload($payload);
280 $payload = $value->getPayload();
282 $payload->getType() === Grpc\Testing\PayloadType::COMPRESSABLE,
284 hardAssert(strlen($payload->getBody()) === $sizes[$i],
308 $payload = new Grpc\Testing\Payload();
309 $payload->setBody(str_repeat("\0", $request_lengths[$i]));
310 $request->setPayload($payload);
316 $payload = $response->getPayload();
318 $payload->getType() === Grpc\Testing\PayloadType::COMPRESSABLE,
320 hardAssert(strlen($payload->getBody()) === $response_lengths[$i],
368 $payload = new Grpc\Testing\Payload();
369 $payload->setBody(str_repeat("\0", 27182));
370 $request->setPayload($payload);
388 $payload = new Grpc\Testing\Payload();
389 $payload->setBody(str_repeat("\0", 9));
390 $request->setPayload($payload);
411 $payload = new Grpc\Testing\Payload();
412 $payload->setType(Grpc\Testing\PayloadType::COMPRESSABLE);
413 $payload->setBody(str_repeat("\0", $request_len));
414 $request->setPayload($payload);
442 $streaming_request->setPayload($payload);