Merge pull request #24880 from stanley-cheung/php-regenerate-protos

Re-generate protos for PHP
pull/24883/head
Stanley Cheung 4 years ago committed by GitHub
commit b1737f23b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Messages.php
  2. 2
      src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Test.php
  3. 101
      src/php/tests/interop/Grpc/Testing/ClientConfigureRequest.php
  4. 117
      src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/Metadata.php
  5. 53
      src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/RpcType.php
  6. 16
      src/php/tests/interop/Grpc/Testing/ClientConfigureRequest_Metadata.php
  7. 16
      src/php/tests/interop/Grpc/Testing/ClientConfigureRequest_RpcType.php
  8. 33
      src/php/tests/interop/Grpc/Testing/ClientConfigureResponse.php
  9. 33
      src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsRequest.php
  10. 135
      src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsResponse.php
  11. 15
      src/php/tests/interop/Grpc/Testing/LoadBalancerStatsServiceClient.php
  12. 53
      src/php/tests/interop/Grpc/Testing/XdsUpdateClientConfigureServiceClient.php

File diff suppressed because one or more lines are too long

@ -17,7 +17,7 @@ class Test
\GPBMetadata\Src\Proto\Grpc\Testing\PBEmpty::initOnce();
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0af40a0a217372632f70726f746f2f677270632f74657374696e672f746573742e70726f746f120c677270632e74657374696e671a257372632f70726f746f2f677270632f74657374696e672f6d657373616765732e70726f746f32e7050a0b546573745365727669636512430a09456d70747943616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512460a09556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365124f0a12436163686561626c65556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365126c0a1353747265616d696e674f757470757443616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e7365300112690a1253747265616d696e67496e70757443616c6c12272e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526571756573741a282e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526573706f6e7365280112690a0e46756c6c4475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e73652801300112690a0e48616c664475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e736528013001124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676532630a14556e696d706c656d656e74656453657276696365124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d6573736167653297010a105265636f6e6e6563745365727669636512420a055374617274121d2e677270632e74657374696e672e5265636f6e6e656374506172616d731a1a2e677270632e74657374696e672e456d7074794d657373616765123f0a0453746f70121a2e677270632e74657374696e672e456d7074794d6573736167651a1b2e677270632e74657374696e672e5265636f6e6e656374496e666f327f0a184c6f616442616c616e63657253746174735365727669636512630a0e476574436c69656e74537461747312262e677270632e74657374696e672e4c6f616442616c616e6365725374617473526571756573741a272e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e7365220032a7010a165864735570646174654865616c74685365727669636512440a0a53657453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512470a0d5365744e6f7453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d657373616765620670726f746f33"
"0af90c0a217372632f70726f746f2f677270632f74657374696e672f746573742e70726f746f120c677270632e74657374696e671a257372632f70726f746f2f677270632f74657374696e672f6d657373616765732e70726f746f32e7050a0b546573745365727669636512430a09456d70747943616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512460a09556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365124f0a12436163686561626c65556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365126c0a1353747265616d696e674f757470757443616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e7365300112690a1253747265616d696e67496e70757443616c6c12272e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526571756573741a282e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526573706f6e7365280112690a0e46756c6c4475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e73652801300112690a0e48616c664475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e736528013001124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676532630a14556e696d706c656d656e74656453657276696365124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d6573736167653297010a105265636f6e6e6563745365727669636512420a055374617274121d2e677270632e74657374696e672e5265636f6e6e656374506172616d731a1a2e677270632e74657374696e672e456d7074794d657373616765123f0a0453746f70121a2e677270632e74657374696e672e456d7074794d6573736167651a1b2e677270632e74657374696e672e5265636f6e6e656374496e666f3286020a184c6f616442616c616e63657253746174735365727669636512630a0e476574436c69656e74537461747312262e677270632e74657374696e672e4c6f616442616c616e6365725374617473526571756573741a272e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e736522001284010a19476574436c69656e74416363756d756c61746564537461747312312e677270632e74657374696e672e4c6f616442616c616e636572416363756d756c617465645374617473526571756573741a322e677270632e74657374696e672e4c6f616442616c616e636572416363756d756c617465645374617473526573706f6e7365220032a7010a165864735570646174654865616c74685365727669636512440a0a53657453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512470a0d5365744e6f7453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d657373616765327b0a1f586473557064617465436c69656e74436f6e6669677572655365727669636512580a09436f6e66696775726512242e677270632e74657374696e672e436c69656e74436f6e666967757265526571756573741a252e677270632e74657374696e672e436c69656e74436f6e666967757265526573706f6e7365620670726f746f33"
), true);
static::$is_initialized = true;

@ -0,0 +1,101 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Configurations for a test client.
*
* Generated from protobuf message <code>grpc.testing.ClientConfigureRequest</code>
*/
class ClientConfigureRequest extends \Google\Protobuf\Internal\Message
{
/**
* The types of RPCs the client sends.
*
* Generated from protobuf field <code>repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1;</code>
*/
private $types;
/**
* The collection of custom metadata to be attached to RPCs sent by the client.
*
* Generated from protobuf field <code>repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2;</code>
*/
private $metadata;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int[]|\Google\Protobuf\Internal\RepeatedField $types
* The types of RPCs the client sends.
* @type \Grpc\Testing\ClientConfigureRequest\Metadata[]|\Google\Protobuf\Internal\RepeatedField $metadata
* The collection of custom metadata to be attached to RPCs sent by the client.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct($data);
}
/**
* The types of RPCs the client sends.
*
* Generated from protobuf field <code>repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getTypes()
{
return $this->types;
}
/**
* The types of RPCs the client sends.
*
* Generated from protobuf field <code>repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1;</code>
* @param int[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTypes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Grpc\Testing\ClientConfigureRequest\RpcType::class);
$this->types = $arr;
return $this;
}
/**
* The collection of custom metadata to be attached to RPCs sent by the client.
*
* Generated from protobuf field <code>repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The collection of custom metadata to be attached to RPCs sent by the client.
*
* Generated from protobuf field <code>repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2;</code>
* @param \Grpc\Testing\ClientConfigureRequest\Metadata[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMetadata($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\ClientConfigureRequest\Metadata::class);
$this->metadata = $arr;
return $this;
}
}

@ -0,0 +1,117 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing\ClientConfigureRequest;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Metadata to be attached for the given type of RPCs.
*
* Generated from protobuf message <code>grpc.testing.ClientConfigureRequest.Metadata</code>
*/
class Metadata extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.grpc.testing.ClientConfigureRequest.RpcType type = 1;</code>
*/
protected $type = 0;
/**
* Generated from protobuf field <code>string key = 2;</code>
*/
protected $key = '';
/**
* Generated from protobuf field <code>string value = 3;</code>
*/
protected $value = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $type
* @type string $key
* @type string $value
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.grpc.testing.ClientConfigureRequest.RpcType type = 1;</code>
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* Generated from protobuf field <code>.grpc.testing.ClientConfigureRequest.RpcType type = 1;</code>
* @param int $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkEnum($var, \Grpc\Testing\ClientConfigureRequest\RpcType::class);
$this->type = $var;
return $this;
}
/**
* Generated from protobuf field <code>string key = 2;</code>
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Generated from protobuf field <code>string key = 2;</code>
* @param string $var
* @return $this
*/
public function setKey($var)
{
GPBUtil::checkString($var, True);
$this->key = $var;
return $this;
}
/**
* Generated from protobuf field <code>string value = 3;</code>
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Generated from protobuf field <code>string value = 3;</code>
* @param string $var
* @return $this
*/
public function setValue($var)
{
GPBUtil::checkString($var, True);
$this->value = $var;
return $this;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metadata::class, \Grpc\Testing\ClientConfigureRequest_Metadata::class);

@ -0,0 +1,53 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing\ClientConfigureRequest;
use UnexpectedValueException;
/**
* Type of RPCs to send.
*
* Protobuf type <code>grpc.testing.ClientConfigureRequest.RpcType</code>
*/
class RpcType
{
/**
* Generated from protobuf enum <code>EMPTY_CALL = 0;</code>
*/
const EMPTY_CALL = 0;
/**
* Generated from protobuf enum <code>UNARY_CALL = 1;</code>
*/
const UNARY_CALL = 1;
private static $valueToName = [
self::EMPTY_CALL => 'EMPTY_CALL',
self::UNARY_CALL => 'UNARY_CALL',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RpcType::class, \Grpc\Testing\ClientConfigureRequest_RpcType::class);

@ -0,0 +1,16 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing;
if (false) {
/**
* This class is deprecated. Use Grpc\Testing\ClientConfigureRequest\Metadata instead.
* @deprecated
*/
class ClientConfigureRequest_Metadata {}
}
class_exists(ClientConfigureRequest\Metadata::class);
@trigger_error('Grpc\Testing\ClientConfigureRequest_Metadata is deprecated and will be removed in the next major release. Use Grpc\Testing\ClientConfigureRequest\Metadata instead', E_USER_DEPRECATED);

@ -0,0 +1,16 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing;
if (false) {
/**
* This class is deprecated. Use Grpc\Testing\ClientConfigureRequest\RpcType instead.
* @deprecated
*/
class ClientConfigureRequest_RpcType {}
}
class_exists(ClientConfigureRequest\RpcType::class);
@trigger_error('Grpc\Testing\ClientConfigureRequest_RpcType is deprecated and will be removed in the next major release. Use Grpc\Testing\ClientConfigureRequest\RpcType instead', E_USER_DEPRECATED);

@ -0,0 +1,33 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Response for updating a test client's configuration.
*
* Generated from protobuf message <code>grpc.testing.ClientConfigureResponse</code>
*/
class ClientConfigureResponse extends \Google\Protobuf\Internal\Message
{
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct($data);
}
}

@ -0,0 +1,33 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request for retrieving a test client's accumulated stats.
*
* Generated from protobuf message <code>grpc.testing.LoadBalancerAccumulatedStatsRequest</code>
*/
class LoadBalancerAccumulatedStatsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct($data);
}
}

@ -0,0 +1,135 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto
namespace Grpc\Testing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Accumulated stats for RPCs sent by a test client.
*
* Generated from protobuf message <code>grpc.testing.LoadBalancerAccumulatedStatsResponse</code>
*/
class LoadBalancerAccumulatedStatsResponse extends \Google\Protobuf\Internal\Message
{
/**
* The total number of RPCs have ever issued for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_started_by_method = 1;</code>
*/
private $num_rpcs_started_by_method;
/**
* The total number of RPCs have ever completed successfully for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_succeeded_by_method = 2;</code>
*/
private $num_rpcs_succeeded_by_method;
/**
* The total number of RPCs have ever failed for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_failed_by_method = 3;</code>
*/
private $num_rpcs_failed_by_method;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array|\Google\Protobuf\Internal\MapField $num_rpcs_started_by_method
* The total number of RPCs have ever issued for each type.
* @type array|\Google\Protobuf\Internal\MapField $num_rpcs_succeeded_by_method
* The total number of RPCs have ever completed successfully for each type.
* @type array|\Google\Protobuf\Internal\MapField $num_rpcs_failed_by_method
* The total number of RPCs have ever failed for each type.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct($data);
}
/**
* The total number of RPCs have ever issued for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_started_by_method = 1;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getNumRpcsStartedByMethod()
{
return $this->num_rpcs_started_by_method;
}
/**
* The total number of RPCs have ever issued for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_started_by_method = 1;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setNumRpcsStartedByMethod($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32);
$this->num_rpcs_started_by_method = $arr;
return $this;
}
/**
* The total number of RPCs have ever completed successfully for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_succeeded_by_method = 2;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getNumRpcsSucceededByMethod()
{
return $this->num_rpcs_succeeded_by_method;
}
/**
* The total number of RPCs have ever completed successfully for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_succeeded_by_method = 2;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setNumRpcsSucceededByMethod($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32);
$this->num_rpcs_succeeded_by_method = $arr;
return $this;
}
/**
* The total number of RPCs have ever failed for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_failed_by_method = 3;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getNumRpcsFailedByMethod()
{
return $this->num_rpcs_failed_by_method;
}
/**
* The total number of RPCs have ever failed for each type.
*
* Generated from protobuf field <code>map<string, int32> num_rpcs_failed_by_method = 3;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setNumRpcsFailedByMethod($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32);
$this->num_rpcs_failed_by_method = $arr;
return $this;
}
}

@ -50,4 +50,19 @@ class LoadBalancerStatsServiceClient extends \Grpc\BaseStub {
$metadata, $options);
}
/**
* Gets the accumulated stats for RPCs sent by a test client.
* @param \Grpc\Testing\LoadBalancerAccumulatedStatsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetClientAccumulatedStats(\Grpc\Testing\LoadBalancerAccumulatedStatsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/grpc.testing.LoadBalancerStatsService/GetClientAccumulatedStats',
$argument,
['\Grpc\Testing\LoadBalancerAccumulatedStatsResponse', 'decode'],
$metadata, $options);
}
}

@ -0,0 +1,53 @@
<?php
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
// Copyright 2015-2016 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// An integration test service that covers all the method signature permutations
// of unary/streaming requests/responses.
//
namespace Grpc\Testing;
/**
* A service to dynamically update the configuration of an xDS test client.
*/
class XdsUpdateClientConfigureServiceClient extends \Grpc\BaseStub {
/**
* @param string $hostname hostname
* @param array $opts channel options
* @param \Grpc\Channel $channel (optional) re-use channel object
*/
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* Update the tes client's configuration.
* @param \Grpc\Testing\ClientConfigureRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Configure(\Grpc\Testing\ClientConfigureRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/grpc.testing.XdsUpdateClientConfigureService/Configure',
$argument,
['\Grpc\Testing\ClientConfigureResponse', 'decode'],
$metadata, $options);
}
}
Loading…
Cancel
Save