drive  v2
Public Member Functions | Static Public Member Functions | List of all members
google_drive_api::Comment::CommentContext Class Reference

#include <comment.h>

Inheritance diagram for google_drive_api::Comment::CommentContext:

Public Member Functions

 CommentContext (const Json::Value &storage)
 
 CommentContext (Json::Value *storage)
 
virtual ~CommentContext ()
 
const StringPiece GetTypeName () const
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 
bool has_value () const
 
void clear_value ()
 
const StringPiece get_value () const
 
void set_value (const StringPiece &value)
 

Static Public Member Functions

static CommentContextNew ()
 

Detailed Description

The context of the file which is being commented on.

Constructor & Destructor Documentation

◆ CommentContext() [1/2]

google_drive_api::Comment::CommentContext::CommentContext ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ CommentContext() [2/2]

google_drive_api::Comment::CommentContext::CommentContext ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~CommentContext()

google_drive_api::Comment::CommentContext::~CommentContext ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_type()

void google_drive_api::Comment::CommentContext::clear_type ( )
inline

Clears the 'type' attribute.

◆ clear_value()

void google_drive_api::Comment::CommentContext::clear_value ( )
inline

Clears the 'value' attribute.

◆ get_type()

const StringPiece google_drive_api::Comment::CommentContext::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ get_value()

const StringPiece google_drive_api::Comment::CommentContext::get_value ( ) const
inline

Get the value of the 'value' attribute.

◆ GetTypeName()

const StringPiece google_drive_api::Comment::CommentContext::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_drive_api::CommentContext

◆ has_type()

bool google_drive_api::Comment::CommentContext::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ has_value()

bool google_drive_api::Comment::CommentContext::has_value ( ) const
inline

Determine if the 'value' attribute was set.

Returns
true if the 'value' attribute was set.

◆ New()

Comment::CommentContext * google_drive_api::Comment::CommentContext::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_type()

void google_drive_api::Comment::CommentContext::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

The MIME type of the context snippet.

Parameters
[in]valueThe new value.

◆ set_value()

void google_drive_api::Comment::CommentContext::set_value ( const StringPiece &  value)
inline

Change the 'value' attribute.

Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.

Parameters
[in]valueThe new value.

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