calendar  v3
Public Member Functions | List of all members
google_calendar_api::EventsResource_InstancesMethod Class Reference

#include <calendar_service.h>

Inheritance diagram for google_calendar_api::EventsResource_InstancesMethod:
google_calendar_api::CalendarServiceBaseRequest

Public Member Functions

 EventsResource_InstancesMethod (const CalendarService *_service_, client::AuthorizationCredential *_credential_, const absl::string_view &calendar_id, const absl::string_view &event_id)
 
virtual ~EventsResource_InstancesMethod ()
 
void clear_always_include_email ()
 
bool get_always_include_email () const
 
void set_always_include_email (bool value)
 
void clear_max_attendees ()
 
int32 get_max_attendees () const
 
void set_max_attendees (int32 value)
 
void clear_max_results ()
 
int32 get_max_results () const
 
void set_max_results (int32 value)
 
void clear_original_start ()
 
const string & get_original_start () const
 
string * mutable_originalStart ()
 
void set_original_start (const string &value)
 
void clear_page_token ()
 
const string & get_page_token () const
 
string * mutable_pageToken ()
 
void set_page_token (const string &value)
 
void clear_show_deleted ()
 
bool get_show_deleted () const
 
void set_show_deleted (bool value)
 
void clear_time_max ()
 
client::DateTime get_time_max () const
 
void set_time_max (client::DateTime value)
 
void clear_time_min ()
 
client::DateTime get_time_min () const
 
void set_time_min (client::DateTime value)
 
void clear_time_zone ()
 
const string & get_time_zone () const
 
string * mutable_timeZone ()
 
void set_time_zone (const string &value)
 
virtual util::Status AppendVariable (const StringPiece &variable_name, const client::UriTemplateConfig &config, string *target)
 
virtual util::Status AppendOptionalQueryParameters (string *target)
 
util::Status ExecuteAndParseResponse (Events *data)
 
- Public Member Functions inherited from google_calendar_api::CalendarServiceBaseRequest
 CalendarServiceBaseRequest (const client::ClientService *service, client::AuthorizationCredential *credential, client::HttpRequest::HttpMethod method, const StringPiece &uri_template)
 
virtual ~CalendarServiceBaseRequest ()
 
void clear_alt ()
 
const string & get_alt () const
 
string * mutable_alt ()
 
void set_alt (const string &value)
 
void clear_fields ()
 
const string & get_fields () const
 
string * mutable_fields ()
 
void set_fields (const string &value)
 
void clear_key ()
 
const string & get_key () const
 
string * mutable_key ()
 
void set_key (const string &value)
 
void clear_oauth_token ()
 
const string & get_oauth_token () const
 
string * mutable_oauthToken ()
 
void set_oauth_token (const string &value)
 
void clear_pretty_print ()
 
bool get_pretty_print () const
 
void set_pretty_print (bool value)
 
void clear_quota_user ()
 
const string & get_quota_user () const
 
string * mutable_quotaUser ()
 
void set_quota_user (const string &value)
 
void clear_user_ip ()
 
const string & get_user_ip () const
 
string * mutable_userIp ()
 
void set_user_ip (const string &value)
 

Additional Inherited Members

- Protected Member Functions inherited from google_calendar_api::CalendarServiceBaseRequest
void AddJsonContentToRequest (const client::JsonCppData *content)
 

Detailed Description

Implements the instances method.

This class uses the Command Pattern. Construct an instance with the required parameters, then set any additional optional parameters by using the attribute setters. To invoke the method, call Execute.

One or more of these authorization scopes are required for this method: https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.readonly https://www.googleapis.com/auth/calendar.readonly

Constructor & Destructor Documentation

◆ EventsResource_InstancesMethod()

google_calendar_api::EventsResource_InstancesMethod::EventsResource_InstancesMethod ( const CalendarService _service_,
client::AuthorizationCredential *  _credential_,
const absl::string_view &  calendar_id,
const absl::string_view &  event_id 
)

The standard constructor takes all the required method parameters.

Parameters
[in]<em>service</em>The service instance to send to when executed.
[in]<em>credential</em>If not NULL, the credential to authorize with. In practice this is supplied by the user code that is creating the method instance.
[in]calendar_idCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
[in]event_idRecurring event identifier.

◆ ~EventsResource_InstancesMethod()

google_calendar_api::EventsResource_InstancesMethod::~EventsResource_InstancesMethod ( )
virtual

Standard destructor.

Member Function Documentation

◆ AppendOptionalQueryParameters()

util::Status google_calendar_api::EventsResource_InstancesMethod::AppendOptionalQueryParameters ( string *  target)
virtual

Appends the optional query parameters to the target URL.

Parameters
[in,out]targetThe URL string to append to.

Reimplemented from google_calendar_api::CalendarServiceBaseRequest.

◆ AppendVariable()

util::Status google_calendar_api::EventsResource_InstancesMethod::AppendVariable ( const StringPiece &  variable_name,
const client::UriTemplateConfig &  config,
string *  target 
)
virtual

Appends variable value to the target string.

This is a helper function used to resolve templated variables in the URI.

Parameters
[in]variable_nameThe name of the templated variable.
[in]configA pass-through parameter used for lists and maps.
[in,out]targetThe string to append the value to.

Reimplemented from google_calendar_api::CalendarServiceBaseRequest.

◆ clear_always_include_email()

void google_calendar_api::EventsResource_InstancesMethod::clear_always_include_email ( )
inline

Clears the 'alwaysIncludeEmail' attribute so it is no longer set.

◆ clear_max_attendees()

void google_calendar_api::EventsResource_InstancesMethod::clear_max_attendees ( )
inline

Clears the 'maxAttendees' attribute so it is no longer set.

◆ clear_max_results()

void google_calendar_api::EventsResource_InstancesMethod::clear_max_results ( )
inline

Clears the 'maxResults' attribute so it is no longer set.

◆ clear_original_start()

void google_calendar_api::EventsResource_InstancesMethod::clear_original_start ( )
inline

Clears the 'originalStart' attribute so it is no longer set.

◆ clear_page_token()

void google_calendar_api::EventsResource_InstancesMethod::clear_page_token ( )
inline

Clears the 'pageToken' attribute so it is no longer set.

◆ clear_show_deleted()

void google_calendar_api::EventsResource_InstancesMethod::clear_show_deleted ( )
inline

Clears the 'showDeleted' attribute so it is no longer set.

◆ clear_time_max()

void google_calendar_api::EventsResource_InstancesMethod::clear_time_max ( )
inline

Clears the 'timeMax' attribute so it is no longer set.

◆ clear_time_min()

void google_calendar_api::EventsResource_InstancesMethod::clear_time_min ( )
inline

Clears the 'timeMin' attribute so it is no longer set.

◆ clear_time_zone()

void google_calendar_api::EventsResource_InstancesMethod::clear_time_zone ( )
inline

Clears the 'timeZone' attribute so it is no longer set.

◆ ExecuteAndParseResponse()

util::Status google_calendar_api::EventsResource_InstancesMethod::ExecuteAndParseResponse ( Events data)
inline

Executes the method and parses the response into a data object on success.

Parameters
[out]dataLoads from the response payload JSON data on success.
Returns
Success if an HTTP 2xx response was received. Otherwise the status indicates the reason for failure. Finer detail may be available from the underlying http_request to distinguish the transport_status from the overal HTTP request status.

◆ get_always_include_email()

bool google_calendar_api::EventsResource_InstancesMethod::get_always_include_email ( ) const
inline

Gets the optional 'alwaysIncludeEmail' attribute.

If the value is not set then the default value will be returned.

◆ get_max_attendees()

int32 google_calendar_api::EventsResource_InstancesMethod::get_max_attendees ( ) const
inline

Gets the optional 'maxAttendees' attribute.

If the value is not set then the default value will be returned.

◆ get_max_results()

int32 google_calendar_api::EventsResource_InstancesMethod::get_max_results ( ) const
inline

Gets the optional 'maxResults' attribute.

If the value is not set then the default value will be returned.

◆ get_original_start()

const string& google_calendar_api::EventsResource_InstancesMethod::get_original_start ( ) const
inline

Gets the optional 'originalStart' attribute.

If the value is not set then the default value will be returned.

◆ get_page_token()

const string& google_calendar_api::EventsResource_InstancesMethod::get_page_token ( ) const
inline

Gets the optional 'pageToken' attribute.

If the value is not set then the default value will be returned.

◆ get_show_deleted()

bool google_calendar_api::EventsResource_InstancesMethod::get_show_deleted ( ) const
inline

Gets the optional 'showDeleted' attribute.

If the value is not set then the default value will be returned.

◆ get_time_max()

client::DateTime google_calendar_api::EventsResource_InstancesMethod::get_time_max ( ) const
inline

Gets the optional 'timeMax' attribute.

If the value is not set then the default value will be returned.

◆ get_time_min()

client::DateTime google_calendar_api::EventsResource_InstancesMethod::get_time_min ( ) const
inline

Gets the optional 'timeMin' attribute.

If the value is not set then the default value will be returned.

◆ get_time_zone()

const string& google_calendar_api::EventsResource_InstancesMethod::get_time_zone ( ) const
inline

Gets the optional 'timeZone' attribute.

If the value is not set then the default value will be returned.

◆ mutable_originalStart()

string* google_calendar_api::EventsResource_InstancesMethod::mutable_originalStart ( )
inline

Gets a modifiable pointer to the optional originalStart' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ mutable_pageToken()

string* google_calendar_api::EventsResource_InstancesMethod::mutable_pageToken ( )
inline

Gets a modifiable pointer to the optional pageToken' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ mutable_timeZone()

string* google_calendar_api::EventsResource_InstancesMethod::mutable_timeZone ( )
inline

Gets a modifiable pointer to the optional timeZone' attribute.

Returns
The value can be set by dereferencing the pointer.

◆ set_always_include_email()

void google_calendar_api::EventsResource_InstancesMethod::set_always_include_email ( bool  value)
inline

Sets the 'alwaysIncludeEmail' attribute.

Deprecated:
Parameters
[in]valueDeprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided).

◆ set_max_attendees()

void google_calendar_api::EventsResource_InstancesMethod::set_max_attendees ( int32  value)
inline

Sets the 'maxAttendees' attribute.

Parameters
[in]valueThe maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.

◆ set_max_results()

void google_calendar_api::EventsResource_InstancesMethod::set_max_results ( int32  value)
inline

Sets the 'maxResults' attribute.

Parameters
[in]valueMaximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events. Optional.

◆ set_original_start()

void google_calendar_api::EventsResource_InstancesMethod::set_original_start ( const string &  value)
inline

Sets the 'originalStart' attribute.

Parameters
[in]valueThe original start time of the instance in the result. Optional.

◆ set_page_token()

void google_calendar_api::EventsResource_InstancesMethod::set_page_token ( const string &  value)
inline

Sets the 'pageToken' attribute.

Parameters
[in]valueToken specifying which result page to return. Optional.

◆ set_show_deleted()

void google_calendar_api::EventsResource_InstancesMethod::set_show_deleted ( bool  value)
inline

Sets the 'showDeleted' attribute.

Parameters
[in]valueWhether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events will still be included if singleEvents is False. Optional. The default is False.

◆ set_time_max()

void google_calendar_api::EventsResource_InstancesMethod::set_time_max ( client::DateTime  value)
inline

Sets the 'timeMax' attribute.

Parameters
[in]valueUpper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset.

◆ set_time_min()

void google_calendar_api::EventsResource_InstancesMethod::set_time_min ( client::DateTime  value)
inline

Sets the 'timeMin' attribute.

Parameters
[in]valueLower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset.

◆ set_time_zone()

void google_calendar_api::EventsResource_InstancesMethod::set_time_zone ( const string &  value)
inline

Sets the 'timeZone' attribute.

Parameters
[in]valueTime zone used in the response. Optional. The default is the time zone of the calendar.

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