/**
  * Execute the given query and return the results.
  *
  * @param \Google_Collection $obj_query
  * @return array
  */
 private function executeQuery(\Google_Collection $obj_query)
 {
     $obj_request = $this->applyTransaction($this->applyNamespace(new \Google_Service_Datastore_RunQueryRequest()));
     if ($obj_query instanceof \Google_Service_Datastore_GqlQuery) {
         $obj_request->setGqlQuery($obj_query);
     } else {
         $obj_request->setQuery($obj_query);
     }
     $this->obj_last_response = $this->obj_datasets->runQuery($this->str_dataset_id, $obj_request);
     if (isset($this->obj_last_response['batch']['entityResults'])) {
         return $this->obj_last_response['batch']['entityResults'];
     }
     return [];
 }