Class SchemaServiceConnection (2.27.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 CreateSchema(NoAwaitTag, google::cloud::discoveryengine::v1::CreateSchemaRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::discoveryengine::v1::CreateSchemaRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateSchema(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 UpdateSchema(NoAwaitTag, google::cloud::discoveryengine::v1::UpdateSchemaRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::discoveryengine::v1::UpdateSchemaRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateSchema(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::discoveryengine::v1::DeleteSchemaRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteSchema(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::discoveryengine::v1::DeleteSchemaMetadata > >