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

#include <feature_value.h>

Inheritance diagram for google_bigquery_api::FeatureValue:

Public Member Functions

 FeatureValue (const Json::Value &storage)
 
 FeatureValue (Json::Value *storage)
 
virtual ~FeatureValue ()
 
const StringPiece GetTypeName () const
 
bool has_categorical_value () const
 
void clear_categorical_value ()
 
const CategoricalValue get_categorical_value () const
 
CategoricalValue mutable_categoricalValue ()
 
bool has_feature_column () const
 
void clear_feature_column ()
 
const StringPiece get_feature_column () const
 
void set_feature_column (const StringPiece &value)
 
bool has_numerical_value () const
 
void clear_numerical_value ()
 
double get_numerical_value () const
 
void set_numerical_value (double value)
 

Static Public Member Functions

static FeatureValueNew ()
 

Detailed Description

Representative value of a single feature within the cluster.

Constructor & Destructor Documentation

◆ FeatureValue() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ FeatureValue() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~FeatureValue()

google_bigquery_api::FeatureValue::~FeatureValue ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_categorical_value()

void google_bigquery_api::FeatureValue::clear_categorical_value ( )
inline

Clears the 'categoricalValue' attribute.

◆ clear_feature_column()

void google_bigquery_api::FeatureValue::clear_feature_column ( )
inline

Clears the 'featureColumn' attribute.

◆ clear_numerical_value()

void google_bigquery_api::FeatureValue::clear_numerical_value ( )
inline

Clears the 'numericalValue' attribute.

◆ get_categorical_value()

const CategoricalValue google_bigquery_api::FeatureValue::get_categorical_value ( ) const

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

◆ get_feature_column()

const StringPiece google_bigquery_api::FeatureValue::get_feature_column ( ) const
inline

Get the value of the 'featureColumn' attribute.

◆ get_numerical_value()

double google_bigquery_api::FeatureValue::get_numerical_value ( ) const
inline

Get the value of the 'numericalValue' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_bigquery_api::FeatureValue

◆ has_categorical_value()

bool google_bigquery_api::FeatureValue::has_categorical_value ( ) const
inline

Determine if the 'categoricalValue' attribute was set.

Returns
true if the 'categoricalValue' attribute was set.

◆ has_feature_column()

bool google_bigquery_api::FeatureValue::has_feature_column ( ) const
inline

Determine if the 'featureColumn' attribute was set.

Returns
true if the 'featureColumn' attribute was set.

◆ has_numerical_value()

bool google_bigquery_api::FeatureValue::has_numerical_value ( ) const
inline

Determine if the 'numericalValue' attribute was set.

Returns
true if the 'numericalValue' attribute was set.

◆ mutable_categoricalValue()

CategoricalValue google_bigquery_api::FeatureValue::mutable_categoricalValue ( )

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

The categorical feature value.

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

◆ New()

FeatureValue * google_bigquery_api::FeatureValue::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_feature_column()

void google_bigquery_api::FeatureValue::set_feature_column ( const StringPiece &  value)
inline

Change the 'featureColumn' attribute.

The feature column name.

Parameters
[in]valueThe new value.

◆ set_numerical_value()

void google_bigquery_api::FeatureValue::set_numerical_value ( double  value)
inline

Change the 'numericalValue' attribute.

The numerical feature value. This is the centroid value for this feature.

Parameters
[in]valueThe new value.

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