Vision/src/V1/OperationMetadata.php
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Vision\V1\OperationMetadata_State::class);
        $this->state = $var;

        return $this;
    }
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Vision\V1\OperationMetadata_State::class);
        $this->state = $var;

        return $this;
    }
public function setState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Vision \ V1 \ OperationMetadata_State :: class ) ; $ this -> state = $ var ; return $ this ; }
Current state of the batch operation.

Generated from protobuf field <code>.google.cloud.vision.v1.OperationMetadata.State state = 1;</code>
@param int $var
@return $this
Current state of the batch operation .