GetDocumentResult constructor
Creates a new GetDocumentResult.
content The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIRED data store.
derivedStructData This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
jsonData The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
name Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
parentDocumentId The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
schemaId The identifier of the schema located in the same data store.
structData The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
Implementation
const GetDocumentResult({
required this.content,
required this.derivedStructData,
required this.jsonData,
required this.name,
required this.parentDocumentId,
required this.schemaId,
required this.structData,
});