Class DocumentSchemaServiceConnection (2.21.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::CreateDocumentSchemaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::DocumentSchema >

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::UpdateDocumentSchemaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::DocumentSchema >

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::GetDocumentSchemaRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::DocumentSchema >

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::DeleteDocumentSchemaRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::ListDocumentSchemasRequest
Returns
TypeDescription
StreamRange< google::cloud::contentwarehouse::v1::DocumentSchema >