Datastore/src/V1/Value.php
public function setKeyValue($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Key::class);
        $this->writeOneof(5, $var);

        return $this;
    }
public function setKeyValue($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Key::class);
        $this->writeOneof(5, $var);

        return $this;
    }
public function setKeyValue ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Datastore \ V1 \ Key :: class ) ; $ this -> writeOneof ( 5 , $ var ) ; return $ this ; }
A key value.

Generated from protobuf field <code>.google.datastore.v1.Key key_value = 5;</code>
@param \Google\Cloud\Datastore\V1\Key $var
@return $this
A key value .