According to the API documentation, only Circular shape Geofences allowed:
https://developers.google.com/android/reference/com/google/android/gms/location/Geofence.B
The Android Geofencing API only provides support for Circular Geofences. If you want to monitor Polygon shaped geofences then you have to implement it your self.
One solution would be something like this:
Get the current location update using Location API.
Now you have polygon shaped geofence. You can use ray-casting Algorithm to check if a point is inside the Closed Polygon or not?
You have to do it by yourself (however I think it's rather senseless - geofences/location services are inaccurate enough to not even be able to alert about circles, don't even think about some other concrete shape).
Create smallest circular geofence which contains your polygon and if triggered just check if you are in the polygon inside with Google Maps Android API utility library.
In other words check if you are in white area not in grey: