所有已实现的接口:
Serializable

public abstract class Admin extends DirectionsJsonObject
An objects describing the administrative boundaries the route leg travels through.
另请参阅:
  • 构造器详细资料

    • Admin

      public Admin()
  • 方法详细资料

    • countryCode

      @Nullable @SerializedName("iso_3166_1") public abstract String countryCode()
      Contains the 2 character ISO 3166-1 alpha-2 code that applies to a country boundary. Example: `"US"`.
    • countryCodeAlpha3

      @Nullable @SerializedName("iso_3166_1_alpha3") public abstract String countryCodeAlpha3()
      Contains the 3 character ISO 3166-1 alpha-3 code that applies to a country boundary. Example: `"USA"`.
    • builder

      public static Admin.Builder builder()
      Create a new instance of this class by using the Admin.Builder class.
      返回:
      this classes Admin.Builder for creating a new instance
    • toBuilder

      public abstract Admin.Builder toBuilder()
      Convert the current Admin to its builder holding the currently assigned values. This allows you to modify a single property and then rebuild the object resulting in an updated and modified Admin.
      返回:
      a Admin.Builder with the same values set to match the ones defined in this Admin
    • typeAdapter

      public static com.google.gson.TypeAdapter<Admin> typeAdapter(com.google.gson.Gson gson)
      Gson type adapter for parsing Gson to this class.
      参数:
      gson - the built Gson object
      返回:
      the type adapter for this class
    • fromJson

      public static Admin fromJson(String json)
      Create a new instance of this class by passing in a formatted valid JSON String.
      参数:
      json - a formatted valid JSON string defining an Incident
      返回:
      a new instance of this class defined by the values passed in the method