Class SchemaServiceConnection (2.21.0)

This interface defines virtual methods for each of the user-facing overload sets in SchemaServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SchemaServiceClient.

To create a concrete instance, see MakeSchemaServiceConnection().

For mocking, see pubsub_mocks::MockSchemaServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateSchema(google::pubsub::v1::CreateSchemaRequest const &)

Parameter
NameDescription
request google::pubsub::v1::CreateSchemaRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Schema >

virtual GetSchema(google::pubsub::v1::GetSchemaRequest const &)

Parameter
NameDescription
request google::pubsub::v1::GetSchemaRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Schema >

virtual ListSchemas(google::pubsub::v1::ListSchemasRequest)

Parameter
NameDescription
request google::pubsub::v1::ListSchemasRequest
Returns
TypeDescription
StreamRange< google::pubsub::v1::Schema >

virtual ListSchemaRevisions(google::pubsub::v1::ListSchemaRevisionsRequest)

Parameter
NameDescription
request google::pubsub::v1::ListSchemaRevisionsRequest
Returns
TypeDescription
StreamRange< google::pubsub::v1::Schema >

virtual CommitSchema(google::pubsub::v1::CommitSchemaRequest const &)

Parameter
NameDescription
request google::pubsub::v1::CommitSchemaRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Schema >

virtual RollbackSchema(google::pubsub::v1::RollbackSchemaRequest const &)

Parameter
NameDescription
request google::pubsub::v1::RollbackSchemaRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Schema >

virtual DeleteSchemaRevision(google::pubsub::v1::DeleteSchemaRevisionRequest const &)

Parameter
NameDescription
request google::pubsub::v1::DeleteSchemaRevisionRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Schema >

virtual DeleteSchema(google::pubsub::v1::DeleteSchemaRequest const &)

Parameter
NameDescription
request google::pubsub::v1::DeleteSchemaRequest const &
Returns
TypeDescription
Status

virtual ValidateSchema(google::pubsub::v1::ValidateSchemaRequest const &)

Parameter
NameDescription
request google::pubsub::v1::ValidateSchemaRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::ValidateSchemaResponse >

virtual ValidateMessage(google::pubsub::v1::ValidateMessageRequest const &)

Parameter
NameDescription
request google::pubsub::v1::ValidateMessageRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::ValidateMessageResponse >