GeostoreOpeningHoursProto

GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto


Table of Contents ▼

Jump to a specific part of the page:

Description

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

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. exception (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreExceptionalHoursProto), default: nil)
    - Date delimited exceptions to the typical recurring opening hours. May only be present if regular weekly hours are also specified.
  2. regularHours (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreBusinessHoursProto, 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.

Type

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

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.GeostoreOpeningHoursProto