Class SchemaServiceConnection (2.16.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
Type Description
Options

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

Parameter
Name Description
request google::pubsub::v1::CreateSchemaRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::Schema >

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

Parameter
Name Description
request google::pubsub::v1::GetSchemaRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::Schema >

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

Parameter
Name Description
request google::pubsub::v1::ListSchemasRequest
Returns
Type Description
StreamRange< google::pubsub::v1::Schema >

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

Parameter
Name Description
request google::pubsub::v1::ListSchemaRevisionsRequest
Returns
Type Description
StreamRange< google::pubsub::v1::Schema >

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

Parameter
Name Description
request google::pubsub::v1::CommitSchemaRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::Schema >

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

Parameter
Name Description
request google::pubsub::v1::RollbackSchemaRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::Schema >

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

Parameter
Name Description
request google::pubsub::v1::DeleteSchemaRevisionRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::Schema >

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

Parameter
Name Description
request google::pubsub::v1::DeleteSchemaRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::pubsub::v1::ValidateSchemaRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::ValidateSchemaResponse >

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

Parameter
Name Description
request google::pubsub::v1::ValidateMessageRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::ValidateMessageResponse >