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

A googlemock-based mock for pubsub::SchemaAdminConnection. More...

#include <google/cloud/pubsub/mocks/mock_schema_admin_connection.h>

Public Member Functions

 MOCK_METHOD (StatusOr< google::pubsub::v1::Schema >, CreateSchema,(google::pubsub::v1::CreateSchemaRequest const &),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::Schema >, GetSchema,(google::pubsub::v1::GetSchemaRequest const &),(override))
 
 MOCK_METHOD (ListSchemasRange, ListSchemas,(google::pubsub::v1::ListSchemasRequest const &),(override))
 
 MOCK_METHOD (Status, DeleteSchema,(google::pubsub::v1::DeleteSchemaRequest const &),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::ValidateSchemaResponse >, ValidateSchema,(google::pubsub::v1::ValidateSchemaRequest const &),(override))
 
 MOCK_METHOD (StatusOr< google::pubsub::v1::ValidateMessageResponse >, ValidateMessage,(google::pubsub::v1::ValidateMessageRequest const &),(override))
 
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...
 
virtual Options options () const
 Return the options used to create the connection. More...
 

Detailed Description

A googlemock-based mock for pubsub::SchemaAdminConnection.

Definition at line 32 of file mock_schema_admin_connection.h.

Member Function Documentation

◆ CreateSchema()

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

Defines the interface for SchemaAdminClient::CreateSchema()

◆ DeleteSchema()

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

Defines the interface for SchemaAdminClient::DeleteSchema()

◆ GetSchema()

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

Defines the interface for SchemaAdminClient::GetSchema()

◆ ListSchemas()

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

Defines the interface for SchemaAdminClient::ListSchemas()

◆ MOCK_METHOD() [1/6]

google::cloud::pubsub::MockSchemaAdminConnection::MOCK_METHOD ( ListSchemasRange  ,
ListSchemas  ,
(google::pubsub::v1::ListSchemasRequest const &)  ,
(override)   
)

◆ MOCK_METHOD() [2/6]

google::cloud::pubsub::MockSchemaAdminConnection::MOCK_METHOD ( Status  ,
DeleteSchema  ,
(google::pubsub::v1::DeleteSchemaRequest const &)  ,
(override)   
)

◆ MOCK_METHOD() [3/6]

google::cloud::pubsub::MockSchemaAdminConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::Schema >  ,
CreateSchema  ,
(google::pubsub::v1::CreateSchemaRequest const &)  ,
(override)   
)

◆ MOCK_METHOD() [4/6]

google::cloud::pubsub::MockSchemaAdminConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::Schema >  ,
GetSchema  ,
(google::pubsub::v1::GetSchemaRequest const &)  ,
(override)   
)

◆ MOCK_METHOD() [5/6]

google::cloud::pubsub::MockSchemaAdminConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::ValidateMessageResponse >  ,
ValidateMessage  ,
(google::pubsub::v1::ValidateMessageRequest const &)  ,
(override)   
)

◆ MOCK_METHOD() [6/6]

google::cloud::pubsub::MockSchemaAdminConnection::MOCK_METHOD ( StatusOr< google::pubsub::v1::ValidateSchemaResponse >  ,
ValidateSchema  ,
(google::pubsub::v1::ValidateSchemaRequest const &)  ,
(override)   
)

◆ options()

virtual Options google::cloud::pubsub::SchemaAdminConnection::options ( ) const
inlinevirtualinherited

Return the options used to create the connection.

Definition at line 94 of file schema_admin_connection.h.

◆ ValidateMessage()

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

Defines the interface for SchemaAdminClient::ValidateMessage()

◆ ValidateSchema()

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

Defines the interface for SchemaAdminClient::ValidateSchema()