bigquery  v2
Public Member Functions | Static Public Member Functions | List of all members
google_bigquery_api::ViewDefinition Class Reference

#include <view_definition.h>

Inheritance diagram for google_bigquery_api::ViewDefinition:

Public Member Functions

 ViewDefinition (const Json::Value &storage)
 
 ViewDefinition (Json::Value *storage)
 
virtual ~ViewDefinition ()
 
const StringPiece GetTypeName () const
 
bool has_query () const
 
void clear_query ()
 
const StringPiece get_query () const
 
void set_query (const StringPiece &value)
 
bool has_use_legacy_sql () const
 
void clear_use_legacy_sql ()
 
bool get_use_legacy_sql () const
 
void set_use_legacy_sql (bool value)
 
bool has_user_defined_function_resources () const
 
void clear_user_defined_function_resources ()
 
const client::JsonCppArray< UserDefinedFunctionResourceget_user_defined_function_resources () const
 
client::JsonCppArray< UserDefinedFunctionResourcemutable_userDefinedFunctionResources ()
 

Static Public Member Functions

static ViewDefinitionNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ ViewDefinition() [1/2]

google_bigquery_api::ViewDefinition::ViewDefinition ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ ViewDefinition() [2/2]

google_bigquery_api::ViewDefinition::ViewDefinition ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~ViewDefinition()

google_bigquery_api::ViewDefinition::~ViewDefinition ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_query()

void google_bigquery_api::ViewDefinition::clear_query ( )
inline

Clears the 'query' attribute.

◆ clear_use_legacy_sql()

void google_bigquery_api::ViewDefinition::clear_use_legacy_sql ( )
inline

Clears the 'useLegacySql' attribute.

◆ clear_user_defined_function_resources()

void google_bigquery_api::ViewDefinition::clear_user_defined_function_resources ( )
inline

Clears the 'userDefinedFunctionResources' attribute.

◆ get_query()

const StringPiece google_bigquery_api::ViewDefinition::get_query ( ) const
inline

Get the value of the 'query' attribute.

◆ get_use_legacy_sql()

bool google_bigquery_api::ViewDefinition::get_use_legacy_sql ( ) const
inline

Get the value of the 'useLegacySql' attribute.

◆ get_user_defined_function_resources()

const client::JsonCppArray<UserDefinedFunctionResource > google_bigquery_api::ViewDefinition::get_user_defined_function_resources ( ) const

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

◆ GetTypeName()

const StringPiece google_bigquery_api::ViewDefinition::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_bigquery_api::ViewDefinition

◆ has_query()

bool google_bigquery_api::ViewDefinition::has_query ( ) const
inline

Determine if the 'query' attribute was set.

Returns
true if the 'query' attribute was set.

◆ has_use_legacy_sql()

bool google_bigquery_api::ViewDefinition::has_use_legacy_sql ( ) const
inline

Determine if the 'useLegacySql' attribute was set.

Returns
true if the 'useLegacySql' attribute was set.

◆ has_user_defined_function_resources()

bool google_bigquery_api::ViewDefinition::has_user_defined_function_resources ( ) const
inline

Determine if the 'userDefinedFunctionResources' attribute was set.

Returns
true if the 'userDefinedFunctionResources' attribute was set.

◆ mutable_userDefinedFunctionResources()

client::JsonCppArray<UserDefinedFunctionResource > google_bigquery_api::ViewDefinition::mutable_userDefinedFunctionResources ( )

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

Describes user-defined function resources used in the query.

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

◆ New()

ViewDefinition * google_bigquery_api::ViewDefinition::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_query()

void google_bigquery_api::ViewDefinition::set_query ( const StringPiece &  value)
inline

Change the 'query' attribute.

[Required] A query that BigQuery executes when the view is referenced.

Parameters
[in]valueThe new value.

◆ set_use_legacy_sql()

void google_bigquery_api::ViewDefinition::set_use_legacy_sql ( bool  value)
inline

Change the 'useLegacySql' attribute.

Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.

Parameters
[in]valueThe new value.

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