discovery  v1
Classes | Public Member Functions | Static Public Member Functions | List of all members
google_discovery_api::RestMethod::RestMethodMediaUpload Class Reference

#include <rest_method.h>

Inheritance diagram for google_discovery_api::RestMethod::RestMethodMediaUpload:

Classes

class  RestMethodMediaUploadProtocols
 

Public Member Functions

 RestMethodMediaUpload (const Json::Value &storage)
 
 RestMethodMediaUpload (Json::Value *storage)
 
virtual ~RestMethodMediaUpload ()
 
const StringPiece GetTypeName () const
 
bool has_accept () const
 
void clear_accept ()
 
const client::JsonCppArray< string > get_accept () const
 
client::JsonCppArray< string > mutable_accept ()
 
bool has_max_size () const
 
void clear_max_size ()
 
const StringPiece get_max_size () const
 
void set_max_size (const StringPiece &value)
 
bool has_protocols () const
 
void clear_protocols ()
 
const RestMethodMediaUploadProtocols get_protocols () const
 
RestMethodMediaUploadProtocols mutable_protocols ()
 

Static Public Member Functions

static RestMethodMediaUploadNew ()
 

Detailed Description

Media upload parameters.

Constructor & Destructor Documentation

◆ RestMethodMediaUpload() [1/2]

google_discovery_api::RestMethod::RestMethodMediaUpload::RestMethodMediaUpload ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ RestMethodMediaUpload() [2/2]

google_discovery_api::RestMethod::RestMethodMediaUpload::RestMethodMediaUpload ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~RestMethodMediaUpload()

google_discovery_api::RestMethod::RestMethodMediaUpload::~RestMethodMediaUpload ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_accept()

void google_discovery_api::RestMethod::RestMethodMediaUpload::clear_accept ( )
inline

Clears the 'accept' attribute.

◆ clear_max_size()

void google_discovery_api::RestMethod::RestMethodMediaUpload::clear_max_size ( )
inline

Clears the 'maxSize' attribute.

◆ clear_protocols()

void google_discovery_api::RestMethod::RestMethodMediaUpload::clear_protocols ( )
inline

Clears the 'protocols' attribute.

◆ get_accept()

const client::JsonCppArray<string > google_discovery_api::RestMethod::RestMethodMediaUpload::get_accept ( ) const
inline

Get a reference to the value of the 'accept' attribute.

◆ get_max_size()

const StringPiece google_discovery_api::RestMethod::RestMethodMediaUpload::get_max_size ( ) const
inline

Get the value of the 'maxSize' attribute.

◆ get_protocols()

const RestMethodMediaUploadProtocols google_discovery_api::RestMethod::RestMethodMediaUpload::get_protocols ( ) const
inline

Get a reference to the value of the 'protocols' attribute.

◆ GetTypeName()

const StringPiece google_discovery_api::RestMethod::RestMethodMediaUpload::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_discovery_api::RestMethodMediaUpload

◆ has_accept()

bool google_discovery_api::RestMethod::RestMethodMediaUpload::has_accept ( ) const
inline

Determine if the 'accept' attribute was set.

Returns
true if the 'accept' attribute was set.

◆ has_max_size()

bool google_discovery_api::RestMethod::RestMethodMediaUpload::has_max_size ( ) const
inline

Determine if the 'maxSize' attribute was set.

Returns
true if the 'maxSize' attribute was set.

◆ has_protocols()

bool google_discovery_api::RestMethod::RestMethodMediaUpload::has_protocols ( ) const
inline

Determine if the 'protocols' attribute was set.

Returns
true if the 'protocols' attribute was set.

◆ mutable_accept()

client::JsonCppArray<string > google_discovery_api::RestMethod::RestMethodMediaUpload::mutable_accept ( )
inline

Gets a reference to a mutable value of the 'accept' property.

MIME Media Ranges for acceptable media uploads to this method.

Returns
The result can be modified to change the attribute value.

◆ mutable_protocols()

RestMethodMediaUploadProtocols google_discovery_api::RestMethod::RestMethodMediaUpload::mutable_protocols ( )
inline

Gets a reference to a mutable value of the 'protocols' property.

Supported upload protocols.

Returns
The result can be modified to change the attribute value.

◆ New()

RestMethod::RestMethodMediaUpload * google_discovery_api::RestMethod::RestMethodMediaUpload::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_max_size()

void google_discovery_api::RestMethod::RestMethodMediaUpload::set_max_size ( const StringPiece &  value)
inline

Change the 'maxSize' attribute.

Maximum size of a media upload, such as "1MB", "2GB" or "3TB".

Parameters
[in]valueThe new value.

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