Google Cloud Spanner C++ Client  1.42.0
A C++ Client Library for Google Cloud Spanner
Public Member Functions | Friends | List of all members
google::cloud::spanner::ClientOptions Class Reference

ClientOptions allows the caller to set a variety of options when constructing a Client instance. More...

#include <google/cloud/spanner/client_options.h>

Public Member Functions

 ClientOptions ()=default
 
 ClientOptions (ClientOptions const &)=default
 
ClientOptionsoperator= (ClientOptions const &)=default
 
 ClientOptions (ClientOptions &&)=default
 
ClientOptionsoperator= (ClientOptions &&)=default
 
 operator Options () const
 Convert the ClientOptions to the new, recommended way to represent options of all varieties, google::cloud::Options. More...
 
QueryOptions const & query_options () const
 Returns the QueryOptions More...
 
ClientOptionsset_query_options (QueryOptions qo)
 Sets the QueryOptions More...
 

Friends

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

Detailed Description

ClientOptions allows the caller to set a variety of options when constructing a Client instance.

Definition at line 31 of file client_options.h.

Constructor & Destructor Documentation

◆ ClientOptions() [1/3]

google::cloud::spanner::ClientOptions::ClientOptions ( )
default

◆ ClientOptions() [2/3]

google::cloud::spanner::ClientOptions::ClientOptions ( ClientOptions const &  )
default

◆ ClientOptions() [3/3]

google::cloud::spanner::ClientOptions::ClientOptions ( ClientOptions &&  )
default

Member Function Documentation

◆ operator Options()

google::cloud::spanner::ClientOptions::operator Options ( ) const
inlineexplicit

Convert the ClientOptions to the new, recommended way to represent options of all varieties, google::cloud::Options.

Definition at line 43 of file client_options.h.

◆ operator=() [1/2]

ClientOptions& google::cloud::spanner::ClientOptions::operator= ( ClientOptions &&  )
default

◆ operator=() [2/2]

ClientOptions& google::cloud::spanner::ClientOptions::operator= ( ClientOptions const &  )
default

◆ query_options()

QueryOptions const& google::cloud::spanner::ClientOptions::query_options ( ) const
inline

Returns the QueryOptions

Definition at line 46 of file client_options.h.

◆ set_query_options()

ClientOptions& google::cloud::spanner::ClientOptions::set_query_options ( QueryOptions  qo)
inline

Sets the QueryOptions

Definition at line 49 of file client_options.h.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 58 of file client_options.h.

◆ operator==

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

Definition at line 54 of file client_options.h.