<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: grpc_gcp.proto
namespace DeliciousBrains\WP_Offload_Media\Gcp\Grpc\Gcp;

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