001    package com.google.gwt.maps.client.placeslib;
002    
003    
004    public enum PlacesServiceStatus {
005      
006      /**
007       *  This request was invalid.
008       */
009      INVALID_REQUEST,
010      
011      /**
012       * The response contains a valid result.
013       */
014      OK,
015      
016      /**
017       * The application has gone over its request quota.
018       */
019      OVER_QUERY_LIMIT,
020      
021      /**
022       * The application is not allowed to use the PlacesService.
023       */
024      REQUEST_DENIED,
025      
026      /**
027       * The PlacesService request could not be processed due to a server error. The request may succeed if you try again.
028       */
029      UNKNOWN_ERROR, 
030      
031      /**
032       * No result was found for this request.
033       */
034      ZERO_RESULTS;  
035      
036      public String value() {
037        return name().toLowerCase();
038      }
039      
040      public static PlacesServiceStatus fromValue(String type) {
041        return valueOf(type.toUpperCase());
042      }
043    
044      public String toString() {
045        return name();
046      }
047    }