Class SchemaServiceConnection (2.31.0-rc)

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 >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >