# GooglePlacesSwift Framework Reference

# HoursType

    enum HoursType

    extension HoursType : Copyable, Equatable, Escapable, Hashable, RawRepresentable

Identifies the type of secondary opening hours.

`HoursType` is only set for secondary opening hours (i.e. opening hours
returned from `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Place.html` secondaryOpeningHours).
Hours types described here:
<https://developers.google.com/maps/documentation/places/web-service/details#PlaceOpeningHours-type>
- `


  ### [RawValue](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO8RawValuea)


  ` The raw type that can be used to represent all values of the conforming
  type.

  Every distinct value of the conforming type has a corresponding unique
  value of the `RawValue` type, but there may be values of the `RawValue`
  type that don't have a corresponding value of the conforming type.

  #### Declaration

  Swift

      typealias RawValue = Int

- `


  ### [access](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO6accessyA2CmF)


  `

  #### Declaration

  Swift

      case access

- `


  ### [breakfast](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO9breakfastyA2CmF)


  `

  #### Declaration

  Swift

      case breakfast

- `


  ### [brunch](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO6brunchyA2CmF)


  `

  #### Declaration

  Swift

      case brunch

- `


  ### [delivery](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO8deliveryyA2CmF)


  `

  #### Declaration

  Swift

      case delivery

- `


  ### [dinner](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO6dinneryA2CmF)


  `

  #### Declaration

  Swift

      case dinner

- `


  ### [driveThrough](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO12driveThroughyA2CmF)


  `

  #### Declaration

  Swift

      case driveThrough

- `


  ### [happyHour](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO9happyHouryA2CmF)


  `

  #### Declaration

  Swift

      case happyHour

- `


  ### [init(rawValue:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO8rawValueACSgSi_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: Int)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |

- `


  ### [kitchen](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO7kitchenyA2CmF)


  `

  #### Declaration

  Swift

      case kitchen

- `


  ### [lunch](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO5lunchyA2CmF)


  `

  #### Declaration

  Swift

      case lunch

- `


  ### [onlineServiceHours](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO013onlineServiceD0yA2CmF)


  `

  #### Declaration

  Swift

      case onlineServiceHours

- `


  ### [pickup](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO6pickupyA2CmF)


  `

  #### Declaration

  Swift

      case pickup

- `


  ### [rawValue](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO8rawValueSivp)


  ` The corresponding value of the raw type.

  A new instance initialized with `rawValue` will be equivalent to this
  instance. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      let selectedSize = PaperSize.Letter
      print(selectedSize.rawValue)
      // Prints "Letter"

      print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
      // Prints "true"

  #### Declaration

  Swift

      var rawValue: Int { get }

- `


  ### [seniorHours](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO06seniorD0yA2CmF)


  `

  #### Declaration

  Swift

      case seniorHours

- `


  ### [takeout](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/HoursType#/s:17GooglePlacesSwift9HoursTypeO7takeoutyA2CmF)


  `

  #### Declaration

  Swift

      case takeout