grpc.gcp.ApiConfig */ class ApiConfig extends \Google\Protobuf\Internal\Message { /** * The channel pool configurations. * * Generated from protobuf field .grpc.gcp.ChannelPoolConfig channel_pool = 2; */ private $channel_pool = null; /** * The method configurations. * * Generated from protobuf field repeated .grpc.gcp.MethodConfig method = 1001; */ private $method; public function __construct() { \GPBMetadata\GrpcGcp::initOnce(); parent::__construct(); } /** * The channel pool configurations. * * Generated from protobuf field .grpc.gcp.ChannelPoolConfig channel_pool = 2; * @return \Grpc\Gcp\ChannelPoolConfig */ public function getChannelPool() { return $this->channel_pool; } /** * The channel pool configurations. * * Generated from protobuf field .grpc.gcp.ChannelPoolConfig channel_pool = 2; * @param \Grpc\Gcp\ChannelPoolConfig $var * @return $this */ public function setChannelPool($var) { GPBUtil::checkMessage($var, \Grpc\Gcp\ChannelPoolConfig::class); $this->channel_pool = $var; return $this; } /** * The method configurations. * * Generated from protobuf field repeated .grpc.gcp.MethodConfig method = 1001; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMethod() { return $this->method; } /** * The method configurations. * * Generated from protobuf field repeated .grpc.gcp.MethodConfig method = 1001; * @param \Grpc\Gcp\MethodConfig[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMethod($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Gcp\MethodConfig::class); $this->method = $arr; return $this; } }