Spanner/src/V1/StructType/Field.php
public function setType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Type::class);
        $this->type = $var;

        return $this;
    }
public function setType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Type::class);
        $this->type = $var;

        return $this;
    }
public function setType ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Spanner \ V1 \ Type :: class ) ; $ this -> type = $ var ; return $ this ; }
The type of the field.

Generated from protobuf field <code>.google.spanner.v1.Type type = 2;</code>
@param \Google\Cloud\Spanner\V1\Type $var
@return $this
The type of the field .