src/Api/Service.php
public function setEnums($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Enum::class);
        $this->enums = $arr;

        return $this;
    }
public function setEnums($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Enum::class);
        $this->enums = $arr;

        return $this;
    }
A list of all enum types included in this API service.  Enums
referenced directly or indirectly by the `apis` are automatically
included.  Enums which are not referenced but shall be included
should be listed here by name. Example:
enums:
- name: google.someapi.v1.SomeEnum

Generated from protobuf field <code>repeated .google.protobuf.Enum enums = 5;</code>
@param \Google\Protobuf\Enum[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this