View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto (google_api_content_warehouse v0.3.0)

Message to represent opening hours including regular weekly hours and a set of exceptions.

Attributes

  • exception (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto.t), default: nil) - Date delimited exceptions to the typical recurring opening hours. May only be present if regular weekly hours are also specified.
  • regularHours (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto.t, default: nil) - Typical recurring opening hours, expressed as a weekly schedule. NOTE: this field was introduced to have a more client-friendly format for representing weekly hours but, as of November 2018, it's not used for the main opening hours of TYPE_ESTABLISHMENT features (instead, the data is stored in the EstablishmentProto.hours field, see b/23105782 tracking the possible schema migration). It is however used in other contexts where OpeningHoursProto appears in the Geo Schema. In openinghours.h there is a utility function GetOpeningHoursFromFeature that merges EstablishmentProto.hours into this proto.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto{
  exception:
    [GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto.t()]
    | nil,
  regularHours:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.