# Review

    @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
    struct Review

    extension Review : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable, SendableMetatype

- `
  ### [==(_:_:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV2eeoiySbAC_ACtFZ)

  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`, `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: Review, rhs: Review) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `
  ### [authorAttribution](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV17authorAttributionAA06AuthorF0VSgvp)

  ` The attribution that must be shown to the user if this review is displayed.

  See [Other Attribution Requirements](https://developers.google.com/maps/documentation/places/ios-sdk/policies#other_attribution_requirements) for more details.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var authorAttribution: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AuthorAttribution.html? { get }

- `
  ### [description](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV11descriptionSSvp)

  ` A textual representation of this instance.

  Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`:

      struct Point: CustomStringConvertible {
          let x: Int, y: Int

          var description: String {
              return "(\(x), \(y))"
          }
      }

      let p = Point(x: 21, y: 30)
      let s = String(describing: p)
      print(s)
      // Prints "(21, 30)"

  The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

  #### Declaration

  Swift

      var description: String { get }

- `
  ### [hash(into:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV4hash4intoys6HasherVz_tF)

  ` Hashes the essential components of this value by feeding them into the given hasher.

  Implement this method to conform to the `Hashable` protocol. The components used for hashing must be the same as the components compared in your type's `==` operator implementation. Call `hasher.combine(_:)` with each of these components.
  Important

  In your implementation of `hash(into:)`, don't call `finalize()` on the `hasher` instance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.

  #### Declaration

  Swift

      func hash(into hasher: inout Hasher)

- `
  ### [hashValue](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV9hashValueSivp)

  ` The hash value.

  Hash values are not guaranteed to be equal across different executions of your program. Do not save hash values to use during a future execution.
  Important
  `hashValue` is deprecated as a `Hashable` requirement. To conform to `Hashable`, implement the `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review.html#/s:17GooglePlacesSwift6ReviewV4hash4intoys6HasherVz_tF` requirement instead. The compiler provides an implementation for `hashValue` for you.

  #### Declaration

  Swift

      var hashValue: Int { get }

- `
  ### [init(publishDate:rating:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:authorAttribution:visitYear:visitMonth:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV11publishDate6rating015relativePublishF11Description4text0K12LanguageCode12originalText0nolM017authorAttribution9visitYear0R5MonthAC10Foundation0F0V_SfSSSgA4qA06AuthorQ0VSgS2utcfc)

  ` Instantiates a `Review` with detail properties.

  Parameters:
  - publishDate: The `Date` the review was published.
  - relativePublishTimeDescription: The description of the publish time relative to the time of the request.
  - text: The localized text of the review.
  - textLanguageCode: The language code of the localized review text.
  - originalText: The review text in its original language.
  - originalTextLanguageCode: The language code the review was originally written in.
  - rating: The 0.0 - 5.0 rating associated with the review.
  - authorAttribution: The `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AuthorAttribution.html` of the review's author.
  - visitYear: The year user visited the place.
  - visitMonth: The month user visited the place.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      init(publishDate: Date, rating: Float, relativePublishDateDescription: String? = nil, text: String? = nil, textLanguageCode: String? = nil, originalText: String? = nil, originalTextLanguageCode: String? = nil, authorAttribution: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AuthorAttribution.html? = nil, visitYear: UInt = 0, visitMonth: UInt = 0)

  #### Parameters

  |---|---|
  | ` publishDate ` | The `Date` the review was published. |
  | ` rating ` | The 0.0 - 5.0 rating associated with the review. |
  | ` text ` | The localized text of the review. |
  | ` textLanguageCode ` | The language code of the localized review text. |
  | ` originalText ` | The review text in its original language. |
  | ` originalTextLanguageCode ` | The language code the review was originally written in. |
  | ` authorAttribution ` | The `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AuthorAttribution.html` of the review's author. |
  | ` visitYear ` | The year user visited the place. |
  | ` visitMonth ` | The month user visited the place. |

- `
  ### [originalText](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV12originalTextSSSgvp)

  ` The text of the review in its original language.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var originalText: String? { get }

- `
  ### [originalTextLanguageCode](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV24originalTextLanguageCodeSSSgvp)

  ` The language code of the original text of the review.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var originalTextLanguageCode: String? { get }

- `
  ### [publishDate](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV11publishDate10Foundation0F0Vvp)

  ` The `Date` the review was published.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var publishDate: Date { get }

- `
  ### [rating](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV6ratingSfvp)

  ` A whole number between 1.0 and 5.0, a.k.a. the number of stars.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var rating: Float { get }

- `
  ### [relativePublishDateDescription](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV30relativePublishDateDescriptionSSSgvp)

  ` A formatted string expressing the review date/time relative to the current time. Specific to the language and country (e.g. "6 months ago").

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var relativePublishDateDescription: String? { get }

- `
  ### [text](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV4textSSSgvp)

  ` The text of the review.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var text: String? { get }

- `
  ### [textLanguageCode](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV16textLanguageCodeSSSgvp)

  ` The language code of the text of the review.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var textLanguageCode: String? { get }

- `
  ### [visitMonth](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV10visitMonthSuvp)

  ` The month user visited the place. 1-based, 1 is January and 12 is December. 0 is unset.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var visitMonth: UInt { get }

- `
  ### [visitYear](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Review#/s:17GooglePlacesSwift6ReviewV9visitYearSuvp)

  ` The year user visited the place. 0 is unset.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      var visitYear: UInt { get }