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

#include <time_of_day.h>

Inheritance diagram for google_classroom_api::TimeOfDay:

Public Member Functions

 TimeOfDay (const Json::Value &storage)
 
 TimeOfDay (Json::Value *storage)
 
virtual ~TimeOfDay ()
 
const StringPiece GetTypeName () const
 
bool has_hours () const
 
void clear_hours ()
 
int32 get_hours () const
 
void set_hours (int32 value)
 
bool has_minutes () const
 
void clear_minutes ()
 
int32 get_minutes () const
 
void set_minutes (int32 value)
 
bool has_nanos () const
 
void clear_nanos ()
 
int32 get_nanos () const
 
void set_nanos (int32 value)
 
bool has_seconds () const
 
void clear_seconds ()
 
int32 get_seconds () const
 
void set_seconds (int32 value)
 

Static Public Member Functions

static TimeOfDayNew ()
 

Detailed Description

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and google.protobuf.Timestamp.

Constructor & Destructor Documentation

◆ TimeOfDay() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ TimeOfDay() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~TimeOfDay()

google_classroom_api::TimeOfDay::~TimeOfDay ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_hours()

void google_classroom_api::TimeOfDay::clear_hours ( )
inline

Clears the 'hours' attribute.

◆ clear_minutes()

void google_classroom_api::TimeOfDay::clear_minutes ( )
inline

Clears the 'minutes' attribute.

◆ clear_nanos()

void google_classroom_api::TimeOfDay::clear_nanos ( )
inline

Clears the 'nanos' attribute.

◆ clear_seconds()

void google_classroom_api::TimeOfDay::clear_seconds ( )
inline

Clears the 'seconds' attribute.

◆ get_hours()

int32 google_classroom_api::TimeOfDay::get_hours ( ) const
inline

Get the value of the 'hours' attribute.

◆ get_minutes()

int32 google_classroom_api::TimeOfDay::get_minutes ( ) const
inline

Get the value of the 'minutes' attribute.

◆ get_nanos()

int32 google_classroom_api::TimeOfDay::get_nanos ( ) const
inline

Get the value of the 'nanos' attribute.

◆ get_seconds()

int32 google_classroom_api::TimeOfDay::get_seconds ( ) const
inline

Get the value of the 'seconds' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_classroom_api::TimeOfDay

◆ has_hours()

bool google_classroom_api::TimeOfDay::has_hours ( ) const
inline

Determine if the 'hours' attribute was set.

Returns
true if the 'hours' attribute was set.

◆ has_minutes()

bool google_classroom_api::TimeOfDay::has_minutes ( ) const
inline

Determine if the 'minutes' attribute was set.

Returns
true if the 'minutes' attribute was set.

◆ has_nanos()

bool google_classroom_api::TimeOfDay::has_nanos ( ) const
inline

Determine if the 'nanos' attribute was set.

Returns
true if the 'nanos' attribute was set.

◆ has_seconds()

bool google_classroom_api::TimeOfDay::has_seconds ( ) const
inline

Determine if the 'seconds' attribute was set.

Returns
true if the 'seconds' attribute was set.

◆ New()

TimeOfDay * google_classroom_api::TimeOfDay::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_hours()

void google_classroom_api::TimeOfDay::set_hours ( int32  value)
inline

Change the 'hours' attribute.

Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.

Parameters
[in]valueThe new value.

◆ set_minutes()

void google_classroom_api::TimeOfDay::set_minutes ( int32  value)
inline

Change the 'minutes' attribute.

Minutes of hour of day. Must be from 0 to 59.

Parameters
[in]valueThe new value.

◆ set_nanos()

void google_classroom_api::TimeOfDay::set_nanos ( int32  value)
inline

Change the 'nanos' attribute.

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

Parameters
[in]valueThe new value.

◆ set_seconds()

void google_classroom_api::TimeOfDay::set_seconds ( int32  value)
inline

Change the 'seconds' attribute.

Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.

Parameters
[in]valueThe new value.

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