All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.content.model.Date.html Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version






Date (Content API for Shopping v2.1-rev20210325-1.31.0)












com.google.api.services.content.model

Class Date

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class Date
    extends GenericJson
    Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • Date

        public Date()
    • Method Detail

      • getDay

        public Integer getDay()
        Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
        Returns:
        value or null for none
      • setDay

        public Date setDay(Integer day)
        Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
        Parameters:
        day - day or null for none
      • getMonth

        public Integer getMonth()
        Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        Returns:
        value or null for none
      • setMonth

        public Date setMonth(Integer month)
        Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        Parameters:
        month - month or null for none
      • getYear

        public Integer getYear()
        Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        Returns:
        value or null for none
      • setYear

        public Date setYear(Integer year)
        Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        Parameters:
        year - year or null for none

Copyright © 2011–2021 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy