Class SchemaServiceConnection (2.19.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 discoveryengine_v1_mocks::MockSchemaServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetSchema(google::cloud::discoveryengine::v1::GetSchemaRequest const &)

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

virtual ListSchemas(google::cloud::discoveryengine::v1::ListSchemasRequest)

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

virtual CreateSchema(google::cloud::discoveryengine::v1::CreateSchemaRequest const &)

Parameter
NameDescription
request google::cloud::discoveryengine::v1::CreateSchemaRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::discoveryengine::v1::Schema > >

virtual UpdateSchema(google::cloud::discoveryengine::v1::UpdateSchemaRequest const &)

Parameter
NameDescription
request google::cloud::discoveryengine::v1::UpdateSchemaRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::discoveryengine::v1::Schema > >

virtual DeleteSchema(google::cloud::discoveryengine::v1::DeleteSchemaRequest const &)

Parameter
NameDescription
request google::cloud::discoveryengine::v1::DeleteSchemaRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::discoveryengine::v1::DeleteSchemaMetadata > >