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

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

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

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

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

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

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

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

Parameter
Name Description
request google::cloud::discoveryengine::v1::UpdateSchemaRequest const &
Returns
Type Description
future< StatusOr< google::cloud::discoveryengine::v1::Schema > >

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

Parameter
Name Description
request google::cloud::discoveryengine::v1::DeleteSchemaRequest const &
Returns
Type Description
future< StatusOr< google::cloud::discoveryengine::v1::DeleteSchemaMetadata > >