Google Cloud C++ Client  1.42.0
C++ Client Library for Google Cloud Platform
Public Member Functions | Friends | List of all members
google::cloud::TracingOptions Class Reference

The configuration parameters for RPC/protobuf tracing. More...

#include <google/cloud/tracing_options.h>

Public Member Functions

 TracingOptions ()=default
 
 TracingOptions (TracingOptions const &)=default
 
TracingOptionsoperator= (TracingOptions const &)=default
 
 TracingOptions (TracingOptions &&)=default
 
TracingOptionsoperator= (TracingOptions &&)=default
 
TracingOptionsSetOptions (std::string const &str)
 Override the default options with values from str. More...
 
bool single_line_mode () const
 The entire message will be output on a single line with no line breaks. More...
 
bool use_short_repeated_primitives () const
 Print repeated primitives in a compact format instead of each value on its own line. More...
 
std::int64_t truncate_string_field_longer_than () const
 If non-zero, truncate all string/bytes fields longer than this. More...
 

Friends

bool operator== (TracingOptions const &a, TracingOptions const &b)
 
bool operator!= (TracingOptions const &a, TracingOptions const &b)
 

Detailed Description

The configuration parameters for RPC/protobuf tracing.

The default options are: single_line_mode=on use_short_repeated_primitives=on truncate_string_field_longer_than=128

Definition at line 33 of file tracing_options.h.

Constructor & Destructor Documentation

◆ TracingOptions() [1/3]

google::cloud::TracingOptions::TracingOptions ( )
default

◆ TracingOptions() [2/3]

google::cloud::TracingOptions::TracingOptions ( TracingOptions const &  )
default

◆ TracingOptions() [3/3]

google::cloud::TracingOptions::TracingOptions ( TracingOptions &&  )
default

Member Function Documentation

◆ operator=() [1/2]

TracingOptions& google::cloud::TracingOptions::operator= ( TracingOptions &&  )
default

◆ operator=() [2/2]

TracingOptions& google::cloud::TracingOptions::operator= ( TracingOptions const &  )
default

◆ SetOptions()

TracingOptions& google::cloud::TracingOptions::SetOptions ( std::string const &  str)

Override the default options with values from str.

◆ single_line_mode()

bool google::cloud::TracingOptions::single_line_mode ( ) const
inline

The entire message will be output on a single line with no line breaks.

Definition at line 50 of file tracing_options.h.

◆ truncate_string_field_longer_than()

std::int64_t google::cloud::TracingOptions::truncate_string_field_longer_than ( ) const
inline

If non-zero, truncate all string/bytes fields longer than this.

Definition at line 59 of file tracing_options.h.

◆ use_short_repeated_primitives()

bool google::cloud::TracingOptions::use_short_repeated_primitives ( ) const
inline

Print repeated primitives in a compact format instead of each value on its own line.

Definition at line 54 of file tracing_options.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( TracingOptions const &  a,
TracingOptions const &  b 
)
friend

Definition at line 42 of file tracing_options.h.

◆ operator==

bool operator== ( TracingOptions const &  a,
TracingOptions const &  b 
)
friend