Lines Matching refs:stub
59 function emptyUnary($stub) argument
62 $stub->EmptyCall(new Grpc\Testing\EmptyMessage())->wait();
72 function largeUnary($stub) argument
74 performLargeUnary($stub);
84 function performLargeUnary($stub, $fillUsername = false, argument
105 list($result, $status) = $stub->UnaryCall($request, [], $options)->wait();
125 function serviceAccountCreds($stub, $args) argument
133 $result = performLargeUnary($stub, $fillUsername = true,
148 function computeEngineCreds($stub, $args) argument
156 $result = performLargeUnary($stub, $fillUsername = true,
168 function jwtTokenCreds($stub, $args) argument
173 $result = performLargeUnary($stub, $fillUsername = true,
185 function oauth2AuthToken($stub, $args) argument
190 $result = performLargeUnary($stub, $fillUsername = true,
217 function perRpcCreds($stub, $args) argument
223 $result = performLargeUnary($stub, $fillUsername = true,
235 function clientStreaming($stub) argument
249 $call = $stub->StreamingInputCall();
264 function serverStreaming($stub) argument
276 $call = $stub->StreamingOutputCall($request);
296 function pingPong($stub) argument
301 $call = $stub->FullDuplexCall();
333 function emptyStream($stub) argument
335 $call = $stub->FullDuplexCall();
346 function cancelAfterBegin($stub) argument
348 $call = $stub->StreamingInputCall();
360 function cancelAfterFirstResponse($stub) argument
362 $call = $stub->FullDuplexCall();
380 function timeoutOnSleepingServer($stub) argument
382 $call = $stub->FullDuplexCall([], ['timeout' => 1000]);
399 function customMetadata($stub) argument
420 $call = $stub->UnaryCall($request, $metadata);
439 $streaming_call = $stub->FullDuplexCall($metadata);
467 function statusCodeAndMessage($stub) argument
476 $call = $stub->UnaryCall($request);
486 $streaming_call = $stub->FullDuplexCall();
504 function unimplementedService($stub) argument
506 $call = $stub->UnimplementedCall(new Grpc\Testing\EmptyMessage());
513 function unimplementedMethod($stub) argument
515 $call = $stub->UnimplementedCall(new Grpc\Testing\EmptyMessage());
606 $stub = new Grpc\Testing\UnimplementedServiceClient($server_address,
609 $stub = new Grpc\Testing\TestServiceClient($server_address, $opts);
612 return $stub;
615 function interop_main($args, $stub = false) argument
617 if (!$stub) {
618 $stub = _makeStub($args);
626 emptyUnary($stub);
629 largeUnary($stub);
632 clientStreaming($stub);
635 serverStreaming($stub);
638 pingPong($stub);
641 emptyStream($stub);
644 cancelAfterBegin($stub);
647 cancelAfterFirstResponse($stub);
650 timeoutOnSleepingServer($stub);
653 customMetadata($stub);
656 statusCodeAndMessage($stub);
659 unimplementedService($stub);
662 unimplementedMethod($stub);
665 serviceAccountCreds($stub, $args);
668 computeEngineCreds($stub, $args);
671 jwtTokenCreds($stub, $args);
674 oauth2AuthToken($stub, $args);
677 perRpcCreds($stub, $args);
684 return $stub;