Interface OpeningHours.Builder

  • Method Details

    • display

      List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.

      Parameters:
      display - List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • display

      OpeningHours.Builder display(String... display)

      List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.

      Parameters:
      display - List of opening hours in the format they are displayed in. This can vary by result and in most cases represents how the result uniquely formats their opening hours.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • openNow

      OpeningHours.Builder openNow(Boolean openNow)

      Boolean which indicates if the result/place is currently open.

      Parameters:
      openNow - Boolean which indicates if the result/place is currently open.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • components

      Components of the opening hours object.

      Parameters:
      components - Components of the opening hours object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • components

      OpeningHours.Builder components(OpeningHoursComponents... components)

      Components of the opening hours object.

      Parameters:
      components - Components of the opening hours object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • components

      Components of the opening hours object.

      This is a convenience method that creates an instance of the OpeningHoursComponents.Builder avoiding the need to create one manually via OpeningHoursComponents.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to components(List<OpeningHoursComponents>).

      Parameters:
      components - a consumer that will call methods on OpeningHoursComponents.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • categories

      OpeningHours.Builder categories(Collection<Category> categories)

      Categories of results that results must belong too.

      Parameters:
      categories - Categories of results that results must belong too.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • categories

      OpeningHours.Builder categories(Category... categories)

      Categories of results that results must belong too.

      Parameters:
      categories - Categories of results that results must belong too.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • categories

      OpeningHours.Builder categories(Consumer<Category.Builder>... categories)

      Categories of results that results must belong too.

      This is a convenience method that creates an instance of the Category.Builder avoiding the need to create one manually via Category.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to categories(List<Category>).

      Parameters:
      categories - a consumer that will call methods on Category.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: