Class DocumentSchemaServiceConnection (2.16.0)

This interface defines virtual methods for each of the user-facing overload sets in DocumentSchemaServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DocumentSchemaServiceClient.

To create a concrete instance, see MakeDocumentSchemaServiceConnection().

For mocking, see contentwarehouse_v1_mocks::MockDocumentSchemaServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateDocumentSchema(google::cloud::contentwarehouse::v1::CreateDocumentSchemaRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::CreateDocumentSchemaRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::DocumentSchema >

virtual UpdateDocumentSchema(google::cloud::contentwarehouse::v1::UpdateDocumentSchemaRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::UpdateDocumentSchemaRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::DocumentSchema >

virtual GetDocumentSchema(google::cloud::contentwarehouse::v1::GetDocumentSchemaRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::GetDocumentSchemaRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::DocumentSchema >

virtual DeleteDocumentSchema(google::cloud::contentwarehouse::v1::DeleteDocumentSchemaRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::DeleteDocumentSchemaRequest const &
Returns
Type Description
Status

virtual ListDocumentSchemas(google::cloud::contentwarehouse::v1::ListDocumentSchemasRequest)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::ListDocumentSchemasRequest
Returns
Type Description
StreamRange< google::cloud::contentwarehouse::v1::DocumentSchema >