Google Cloud Pub/Sub C++ Client  1.32.1
A C++ Client Library for Google Cloud Pub/Sub
Public Member Functions | List of all members
google::cloud::pubsub::v1::SchemaAdminConnection Class Referenceabstract

A connection to Cloud Pub/Sub for schema-related administrative operations. More...

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

Public Member Functions

virtual ~SchemaAdminConnection ()=0
 
virtual StatusOr< google::pubsub::v1::Schema > CreateSchema (google::pubsub::v1::CreateSchemaRequest const &)=0
 Defines the interface for SchemaAdminClient::CreateSchema() More...
 
virtual StatusOr< google::pubsub::v1::Schema > GetSchema (google::pubsub::v1::GetSchemaRequest const &)=0
 Defines the interface for SchemaAdminClient::GetSchema() More...
 
virtual ListSchemasRange ListSchemas (google::pubsub::v1::ListSchemasRequest const &)=0
 Defines the interface for SchemaAdminClient::ListSchemas() More...
 
virtual Status DeleteSchema (google::pubsub::v1::DeleteSchemaRequest const &)=0
 Defines the interface for SchemaAdminClient::DeleteSchema() More...
 
virtual StatusOr< google::pubsub::v1::ValidateSchemaResponse > ValidateSchema (google::pubsub::v1::ValidateSchemaRequest const &)=0
 Defines the interface for SchemaAdminClient::ValidateSchema() More...
 
virtual StatusOr< google::pubsub::v1::ValidateMessageResponse > ValidateMessage (google::pubsub::v1::ValidateMessageRequest const &)=0
 Defines the interface for SchemaAdminClient::ValidateMessage() More...
 

Detailed Description

A connection to Cloud Pub/Sub for schema-related administrative operations.

This interface defines pure-virtual functions for each of the user-facing overload sets in SchemaAdminClient. That is, all of SchemaAdminClient's overloads will forward to the one pure-virtual function declared in this interface. This allows users to inject custom behavior (e.g., with a Google Mock object) in a SchemaAdminClient object for use in their own tests.

To create a concrete instance that connects you to the real Cloud Pub/Sub service, see MakeSchemaAdminConnection().

The *Params nested classes
Applications may define classes derived from SchemaAdminConnection, for example, because they want to mock the class. To avoid breaking all such derived classes when we change the number or type of the arguments to the member functions we define lightweight structures to pass the arguments.

Definition at line 65 of file schema_admin_connection.h.

Constructor & Destructor Documentation

◆ ~SchemaAdminConnection()

google::cloud::pubsub::v1::SchemaAdminConnection::~SchemaAdminConnection ( )
pure virtualdefault

Member Function Documentation

◆ CreateSchema()

virtual StatusOr<google::pubsub::v1::Schema> google::cloud::pubsub::v1::SchemaAdminConnection::CreateSchema ( google::pubsub::v1::CreateSchemaRequest const &  )
pure virtual

Defines the interface for SchemaAdminClient::CreateSchema()

◆ DeleteSchema()

virtual Status google::cloud::pubsub::v1::SchemaAdminConnection::DeleteSchema ( google::pubsub::v1::DeleteSchemaRequest const &  )
pure virtual

Defines the interface for SchemaAdminClient::DeleteSchema()

◆ GetSchema()

virtual StatusOr<google::pubsub::v1::Schema> google::cloud::pubsub::v1::SchemaAdminConnection::GetSchema ( google::pubsub::v1::GetSchemaRequest const &  )
pure virtual

Defines the interface for SchemaAdminClient::GetSchema()

◆ ListSchemas()

virtual ListSchemasRange google::cloud::pubsub::v1::SchemaAdminConnection::ListSchemas ( google::pubsub::v1::ListSchemasRequest const &  )
pure virtual

Defines the interface for SchemaAdminClient::ListSchemas()

◆ ValidateMessage()

virtual StatusOr<google::pubsub::v1::ValidateMessageResponse> google::cloud::pubsub::v1::SchemaAdminConnection::ValidateMessage ( google::pubsub::v1::ValidateMessageRequest const &  )
pure virtual

Defines the interface for SchemaAdminClient::ValidateMessage()

◆ ValidateSchema()

virtual StatusOr<google::pubsub::v1::ValidateSchemaResponse> google::cloud::pubsub::v1::SchemaAdminConnection::ValidateSchema ( google::pubsub::v1::ValidateSchemaRequest const &  )
pure virtual

Defines the interface for SchemaAdminClient::ValidateSchema()