public function setEndpoints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Endpoint::class);
        $this->endpoints = $arr;

        return $this;
    }
public function setEndpoints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Endpoint::class);
        $this->endpoints = $arr;

        return $this;
    }
public function setEndpoints ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Api \ Endpoint :: class ) ; $ this -> endpoints = $ arr ; return $ this ; }
Configuration for network endpoints.  If this is empty, then an endpoint
with the same name as the service is automatically generated to service all
defined APIs.

Generated from protobuf field <code>repeated .google.api.Endpoint endpoints = 18;</code>
@param \Google\Api\Endpoint[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Configuration for network endpoints . If this is empty then an endpoint with the same name as the service is automatically generated to service all defined APIs .