GetDocumentResult constructor

const GetDocumentResult({
  1. required GoogleCloudDiscoveryengineV1alphaDocumentContentResponse content,
  2. required Map<String, String> derivedStructData,
  3. required String jsonData,
  4. required String name,
  5. required String parentDocumentId,
  6. required String schemaId,
  7. required Map<String, String> structData,
})

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,
});