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

Attributes

  • begin (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t, default: nil) - Begin and end are used to specify a range of times: [begin, end). If one is present, the other must be present as well. Additionally, both must have matching time granularities - all fields specified in the begin TimeEndpointProto must be present in the end TimeEndpointProto and vice-versa. Hours are not allowed to wrap (begin.hour() <= end.hour()).
  • end (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t, default: nil) -
  • inverted (type: boolean(), default: nil) - If true, then this interval actually encodes the complement of the specified occasion or range. For example, the following TimeIntervalProto encodes all times other than the month of May. TimeIntervalProto[ type = TYPE_RANGE inverted = true begin = TimeEndpointProto[ month = MAY ] end = TimeEndpointProto[ month = JUNE ] ]
  • occasion (type: String.t, default: nil) - clang-format on
  • type (type: String.t, default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeIntervalProto{
  begin:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t() | nil,
  end: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeEndpointProto.t() | nil,
  inverted: boolean() | nil,
  occasion: String.t() | nil,
  type: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.