protected function extractAutoDetectValue($obj_property)
{
if (isset($obj_property->stringValue)) {
return $obj_property->stringValue;
}
if (isset($obj_property->integerValue)) {
return $obj_property->integerValue;
}
if (isset($obj_property->doubleValue)) {
return $obj_property->doubleValue;
}
if (isset($obj_property->booleanValue)) {
return $obj_property->booleanValue;
}
if (isset($obj_property->timestampValue)) {
return $this->extractDatetimeValue($obj_property);
}
if (isset($obj_property->geoPointValue)) {
return $this->extractGeopointValue($obj_property);
}
if (isset($obj_property->arrayValue)) {
return $this->extractStringListValue($obj_property);
}
if (property_exists($obj_property, 'nullValue')) {
return null;
}
}