Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
google::cloud::pubsub::Schema Class Reference

Objects of this class identify a Cloud Pub/Sub schema. More...

#include <google/cloud/pubsub/schema.h>

Public Member Functions

 Schema (std::string project_id, std::string schema_id)
 
std::string const & project_id () const
 Returns the Project ID. More...
 
std::string const & schema_id () const
 Returns the Schema ID. More...
 
std::string FullName () const
 Returns the fully qualified schema name as a string of the form: "projects/<project-id>/schemas/<schema-id>". More...
 
Copy and move
 Schema (Schema const &)=default
 
Schemaoperator= (Schema const &)=default
 
 Schema (Schema &&)=default
 
Schemaoperator= (Schema &&)=default
 

Friends

std::ostream & operator<< (std::ostream &os, Schema const &rhs)
 Output the FullName() format. More...
 
Equality operators
bool operator== (Schema const &a, Schema const &b)
 
bool operator!= (Schema const &a, Schema const &b)
 

Detailed Description

Objects of this class identify a Cloud Pub/Sub schema.

Note
This class makes no effort to validate the ids provided. The application should verify that any ids passed to this application conform to the Cloud Pub/Sub resource name restrictions.

Constructor & Destructor Documentation

◆ Schema() [1/3]

google::cloud::pubsub::Schema::Schema ( std::string  project_id,
std::string  schema_id 
)
inline

◆ Schema() [2/3]

google::cloud::pubsub::Schema::Schema ( Schema const &  )
default

◆ Schema() [3/3]

google::cloud::pubsub::Schema::Schema ( Schema &&  )
default

Member Function Documentation

◆ FullName()

std::string google::cloud::pubsub::Schema::FullName ( ) const

Returns the fully qualified schema name as a string of the form: "projects/<project-id>/schemas/<schema-id>".

◆ operator=() [1/2]

Schema & google::cloud::pubsub::Schema::operator= ( Schema &&  )
default

◆ operator=() [2/2]

Schema & google::cloud::pubsub::Schema::operator= ( Schema const &  )
default

◆ project_id()

std::string const & google::cloud::pubsub::Schema::project_id ( ) const
inline

Returns the Project ID.

◆ schema_id()

std::string const & google::cloud::pubsub::Schema::schema_id ( ) const
inline

Returns the Schema ID.

Friends And Related Function Documentation

◆ operator!=

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

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
Schema const &  rhs 
)
friend

Output the FullName() format.

◆ operator==

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