Highlights
Typed document retrieval
Client.GetDocument now retrieves a single document through the shared authenticated and retrying transport. It accepts the same WithDocumentView option as partial batch retrieval, including DOCUMENT_VIEW_BASIC for metadata-only responses that report contentLengthBytes without downloading document content.
DocumentOption is the shared option type for GetDocument and BatchGetDocumentsPartial. The existing BatchGetOption name remains as a type alias, so existing callers continue to compile unchanged.
The new method rejects invalid document names, unknown views, and malformed top-level null responses before returning a document.
Compatibility
This release is additive and does not contain breaking API changes. The existing BatchGetDocuments, BatchGetDocumentsAll, and BatchGetDocumentsPartial behavior remains unchanged.