dataflow  v1b3
Public Member Functions | Static Public Member Functions | List of all members
google_dataflow_api::AutoscalingEvent Class Reference

#include <autoscaling_event.h>

Inheritance diagram for google_dataflow_api::AutoscalingEvent:

Public Member Functions

 AutoscalingEvent (const Json::Value &storage)
 
 AutoscalingEvent (Json::Value *storage)
 
virtual ~AutoscalingEvent ()
 
const StringPiece GetTypeName () const
 
bool has_current_num_workers () const
 
void clear_current_num_workers ()
 
int64 get_current_num_workers () const
 
void set_current_num_workers (int64 value)
 
bool has_description () const
 
void clear_description ()
 
const StructuredMessage get_description () const
 
StructuredMessage mutable_description ()
 
bool has_event_type () const
 
void clear_event_type ()
 
const StringPiece get_event_type () const
 
void set_event_type (const StringPiece &value)
 
bool has_target_num_workers () const
 
void clear_target_num_workers ()
 
int64 get_target_num_workers () const
 
void set_target_num_workers (int64 value)
 
bool has_time () const
 
void clear_time ()
 
const StringPiece get_time () const
 
void set_time (const StringPiece &value)
 
bool has_worker_pool () const
 
void clear_worker_pool ()
 
const StringPiece get_worker_pool () const
 
void set_worker_pool (const StringPiece &value)
 

Static Public Member Functions

static AutoscalingEventNew ()
 

Detailed Description

A structured message reporting an autoscaling decision made by the Dataflow service.

Constructor & Destructor Documentation

◆ AutoscalingEvent() [1/2]

google_dataflow_api::AutoscalingEvent::AutoscalingEvent ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ AutoscalingEvent() [2/2]

google_dataflow_api::AutoscalingEvent::AutoscalingEvent ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~AutoscalingEvent()

google_dataflow_api::AutoscalingEvent::~AutoscalingEvent ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_current_num_workers()

void google_dataflow_api::AutoscalingEvent::clear_current_num_workers ( )
inline

Clears the 'currentNumWorkers' attribute.

◆ clear_description()

void google_dataflow_api::AutoscalingEvent::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_event_type()

void google_dataflow_api::AutoscalingEvent::clear_event_type ( )
inline

Clears the 'eventType' attribute.

◆ clear_target_num_workers()

void google_dataflow_api::AutoscalingEvent::clear_target_num_workers ( )
inline

Clears the 'targetNumWorkers' attribute.

◆ clear_time()

void google_dataflow_api::AutoscalingEvent::clear_time ( )
inline

Clears the 'time' attribute.

◆ clear_worker_pool()

void google_dataflow_api::AutoscalingEvent::clear_worker_pool ( )
inline

Clears the 'workerPool' attribute.

◆ get_current_num_workers()

int64 google_dataflow_api::AutoscalingEvent::get_current_num_workers ( ) const
inline

Get the value of the 'currentNumWorkers' attribute.

◆ get_description()

const StructuredMessage google_dataflow_api::AutoscalingEvent::get_description ( ) const

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

◆ get_event_type()

const StringPiece google_dataflow_api::AutoscalingEvent::get_event_type ( ) const
inline

Get the value of the 'eventType' attribute.

◆ get_target_num_workers()

int64 google_dataflow_api::AutoscalingEvent::get_target_num_workers ( ) const
inline

Get the value of the 'targetNumWorkers' attribute.

◆ get_time()

const StringPiece google_dataflow_api::AutoscalingEvent::get_time ( ) const
inline

Get the value of the 'time' attribute.

◆ get_worker_pool()

const StringPiece google_dataflow_api::AutoscalingEvent::get_worker_pool ( ) const
inline

Get the value of the 'workerPool' attribute.

◆ GetTypeName()

const StringPiece google_dataflow_api::AutoscalingEvent::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_dataflow_api::AutoscalingEvent

◆ has_current_num_workers()

bool google_dataflow_api::AutoscalingEvent::has_current_num_workers ( ) const
inline

Determine if the 'currentNumWorkers' attribute was set.

Returns
true if the 'currentNumWorkers' attribute was set.

◆ has_description()

bool google_dataflow_api::AutoscalingEvent::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_event_type()

bool google_dataflow_api::AutoscalingEvent::has_event_type ( ) const
inline

Determine if the 'eventType' attribute was set.

Returns
true if the 'eventType' attribute was set.

◆ has_target_num_workers()

bool google_dataflow_api::AutoscalingEvent::has_target_num_workers ( ) const
inline

Determine if the 'targetNumWorkers' attribute was set.

Returns
true if the 'targetNumWorkers' attribute was set.

◆ has_time()

bool google_dataflow_api::AutoscalingEvent::has_time ( ) const
inline

Determine if the 'time' attribute was set.

Returns
true if the 'time' attribute was set.

◆ has_worker_pool()

bool google_dataflow_api::AutoscalingEvent::has_worker_pool ( ) const
inline

Determine if the 'workerPool' attribute was set.

Returns
true if the 'workerPool' attribute was set.

◆ mutable_description()

StructuredMessage google_dataflow_api::AutoscalingEvent::mutable_description ( )

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

A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.

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

◆ New()

AutoscalingEvent * google_dataflow_api::AutoscalingEvent::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_current_num_workers()

void google_dataflow_api::AutoscalingEvent::set_current_num_workers ( int64  value)
inline

Change the 'currentNumWorkers' attribute.

The current number of workers the job has.

Parameters
[in]valueThe new value.

◆ set_event_type()

void google_dataflow_api::AutoscalingEvent::set_event_type ( const StringPiece &  value)
inline

Change the 'eventType' attribute.

The type of autoscaling event to report.

Parameters
[in]valueThe new value.

◆ set_target_num_workers()

void google_dataflow_api::AutoscalingEvent::set_target_num_workers ( int64  value)
inline

Change the 'targetNumWorkers' attribute.

The target number of workers the worker pool wants to resize to use.

Parameters
[in]valueThe new value.

◆ set_time()

void google_dataflow_api::AutoscalingEvent::set_time ( const StringPiece &  value)
inline

Change the 'time' attribute.

The time this event was emitted to indicate a new target or current num_workers value.

Parameters
[in]valueThe new value.

◆ set_worker_pool()

void google_dataflow_api::AutoscalingEvent::set_worker_pool ( const StringPiece &  value)
inline

Change the 'workerPool' attribute.

A short and friendly name for the worker pool this event refers to, populated from the value of PoolStageRelation::user_pool_name.

Parameters
[in]valueThe new value.

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