classroom  v1
Public Member Functions | Static Public Member Functions | List of all members
google_classroom_api::Date Class Reference

#include <date.h>

Inheritance diagram for google_classroom_api::Date:

Public Member Functions

 Date (const Json::Value &storage)
 
 Date (Json::Value *storage)
 
virtual ~Date ()
 
const StringPiece GetTypeName () const
 
bool has_day () const
 
void clear_day ()
 
int32 get_day () const
 
void set_day (int32 value)
 
bool has_month () const
 
void clear_month ()
 
int32 get_month () const
 
void set_month (int32 value)
 
bool has_year () const
 
void clear_year ()
 
int32 get_year () const
 
void set_year (int32 value)
 

Static Public Member Functions

static DateNew ()
 

Detailed Description

Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:

Related types are google.type.TimeOfDay and google.protobuf.Timestamp.

Constructor & Destructor Documentation

◆ Date() [1/2]

google_classroom_api::Date::Date ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Date() [2/2]

google_classroom_api::Date::Date ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Date()

google_classroom_api::Date::~Date ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_day()

void google_classroom_api::Date::clear_day ( )
inline

Clears the 'day' attribute.

◆ clear_month()

void google_classroom_api::Date::clear_month ( )
inline

Clears the 'month' attribute.

◆ clear_year()

void google_classroom_api::Date::clear_year ( )
inline

Clears the 'year' attribute.

◆ get_day()

int32 google_classroom_api::Date::get_day ( ) const
inline

Get the value of the 'day' attribute.

◆ get_month()

int32 google_classroom_api::Date::get_month ( ) const
inline

Get the value of the 'month' attribute.

◆ get_year()

int32 google_classroom_api::Date::get_year ( ) const
inline

Get the value of the 'year' attribute.

◆ GetTypeName()

const StringPiece google_classroom_api::Date::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_classroom_api::Date

◆ has_day()

bool google_classroom_api::Date::has_day ( ) const
inline

Determine if the 'day' attribute was set.

Returns
true if the 'day' attribute was set.

◆ has_month()

bool google_classroom_api::Date::has_month ( ) const
inline

Determine if the 'month' attribute was set.

Returns
true if the 'month' attribute was set.

◆ has_year()

bool google_classroom_api::Date::has_year ( ) const
inline

Determine if the 'year' attribute was set.

Returns
true if the 'year' attribute was set.

◆ New()

Date * google_classroom_api::Date::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_day()

void google_classroom_api::Date::set_day ( int32  value)
inline

Change the 'day' attribute.

Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.

Parameters
[in]valueThe new value.

◆ set_month()

void google_classroom_api::Date::set_month ( int32  value)
inline

Change the 'month' attribute.

Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.

Parameters
[in]valueThe new value.

◆ set_year()

void google_classroom_api::Date::set_year ( int32  value)
inline

Change the 'year' attribute.

Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: