Resource: Document
Document captures all raw metadata information of items to be recommended or searched.
| JSON representation | 
|---|
{ "name": string, "id": string, "schemaId": string, "content": { object (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 Immutable. The full resource name of the document. Format:  This field must be a UTF-8 encoded string with a length limit of 1024 characters.  | 
              
id | 
                
                   
 Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 128 characters.  | 
              
schemaId | 
                
                   
 The identifier of the schema located in the same data store.  | 
              
content | 
                
                   
 The unstructured data linked to this document. Content can only be set and must be set if this document is under a   | 
              
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.  | 
              
derivedStructData | 
                
                   
 Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.  | 
              
aclInfo | 
                
                   
 Access control information for the document.  | 
              
indexTime | 
                
                   
 Output only. The last time the document was indexed. If this field is set, the document could be returned in search results. This field is OUTPUT_ONLY. If this field is not populated, it means the document has never been indexed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
indexStatus | 
                
                   
 Output only. The index status of the document. 
  | 
              
Union field data. Data representation. One of struct_data or json_data should be provided otherwise an INVALID_ARGUMENT error is thrown. data can be only one of the following: | 
              |
structData | 
                
                   
 The structured JSON data for the document. It should conform to the registered   | 
              
jsonData | 
                
                   
 The JSON string representation of the document. It should conform to the registered   | 
              
Methods | 
            |
|---|---|
                
 | 
              
                Creates a Document. | 
            
                
 | 
              
                Deletes a Document. | 
            
                
 | 
              
                Gets a Document. | 
            
                
 | 
              
                Gets the parsed layout information for a Document. | 
            
                
 | 
              
                Bulk import of multiple Documents. | 
            
                
 | 
              
                Gets a list of Documents. | 
            
                
 | 
              
                Updates a Document. | 
            
                
 | 
              
                Permanently deletes all selected Documents in a branch. |