- JSON representation
- GraphProfile
- NodeType
- Field
- MetadataType
- Mode
- ExtractionHints
- ExtractionHints
- EdgeType
- ExtractionHints
- ForeignKey
- FieldMapping
Contains the result of an unstructured data profile scan.
| JSON representation |
|---|
{
"partialFailureMessage": string,
"graphProfile": {
object ( |
| Fields | |
|---|---|
partialFailureMessage |
Output only. Optional message for partial failures (e.g. node type extraction failed). |
graphProfile |
Output only. The inferred graph profile. |
description |
Output only. The inferred description. |
GraphProfile
Contains the strict structure for graph-profile for semantic inference scan result.
| JSON representation |
|---|
{ "nodeTypes": [ { object ( |
| Fields | |
|---|---|
nodeTypes[] |
Output only. Node types. |
edgeTypes[] |
Output only. Edge types. |
NodeType
Represents a type of node in the graph.
| JSON representation |
|---|
{ "name": string, "fields": [ { object ( |
| Fields | |
|---|---|
name |
Output only. Name of the node type. |
fields[] |
Output only. Fields of the node type. |
extractionHints |
Output only. Extraction hints for the node. |
description |
Output only. Description of the node type. |
primaryKeys[] |
Output only. Field names forming the primary keys. The order in this array defines the key's ordinal positions for composite keys. |
Field
Represents a field in a node or edge type.
| JSON representation |
|---|
{ "name": string, "description": string, "dataType": string, "metadataType": enum ( |
| Fields | |
|---|---|
name |
Output only. Name of the field. |
description |
Output only. Description of the field. |
dataType |
Output only. The data type of the field, e.g., STRING, INTEGER, DATE. |
metadataType |
Output only. The mapped metadata type. |
mode |
Output only. The mode of the field. |
extractionHints |
Output only. Extraction hints for the field. |
fields[] |
Output only. Sub-fields of this field (for STRUCT types). |
MetadataType
MetadataType of the field.
| Enums | |
|---|---|
METADATA_TYPE_UNSPECIFIED |
Unspecified metadata type. |
BOOLEAN |
Boolean type. |
NUMBER |
Numeric type. |
STRING |
String type. |
BYTES |
Bytes type. |
DATETIME |
Date and time type. |
TIMESTAMP |
Timestamp type. |
GEOSPATIAL |
Geospatial type. |
STRUCT |
Struct (record) type. |
OTHER |
Other types not covered above. |
Mode
The mode of the field.
| Enums | |
|---|---|
MODE_UNSPECIFIED |
Unspecified mode. |
NULLABLE |
Field can be null. |
REPEATED |
Field can be repeated. |
REQUIRED |
Field is required. |
ExtractionHints
Extraction hints (field-level).
| JSON representation |
|---|
{ "normalization": string, "synthesis": string } |
| Fields | |
|---|---|
normalization |
Output only. Standardizes extracted data (e.g., to ISO 3166-1 alpha-2). |
synthesis |
Output only. Generates value from other data instead of direct extraction (e.g., hashing). |
ExtractionHints
Extraction hints (node-level).
| JSON representation |
|---|
{ "cardinality": string } |
| Fields | |
|---|---|
cardinality |
Output only. Expected occurrence frequency of this node type within a document. Format: "[Bounds] - [Description]" Example: "0:N - A document may contain multiple people names." |
EdgeType
Represents a type of edge (relationship) in the graph.
| JSON representation |
|---|
{ "name": string, "sourceNodeType": string, "targetNodeType": string, "fields": [ { object ( |
| Fields | |
|---|---|
name |
Output only. Name of the edge type. |
sourceNodeType |
Output only. Source node type. |
targetNodeType |
Output only. Target node type. |
fields[] |
Output only. Fields of the edge type. |
extractionHints |
Output only. Extraction hints for the edge. |
description |
Output only. Description of the edge type. |
foreignKeys[] |
Output only. Defines the Foreign Key constraints for the edge. |
ExtractionHints
Extraction hints (edge-level).
| JSON representation |
|---|
{ "cardinality": string } |
| Fields | |
|---|---|
cardinality |
Output only. Expected connectivity topology and bounds of this relationship. Format: "[Topology] - [Description]" Example: "1:N - One company can have multiple financial reports." |
ForeignKey
Represents a foreign key constraint.
| JSON representation |
|---|
{
"name": string,
"description": string,
"referencedNodeType": string,
"fieldMappings": [
{
object ( |
| Fields | |
|---|---|
name |
Output only. Name of the foreign key constraint. |
description |
Output only. Description of the foreign key. |
referencedNodeType |
Output only. The node type this constraint references. |
fieldMappings[] |
Output only. Field Mappings. Mappings between local fields and the fields they reference in the referenced node type. |
FieldMapping
Maps a local field to a referenced field.
| JSON representation |
|---|
{ "field": string, "referencedField": string } |
| Fields | |
|---|---|
field |
Output only. Local field name forming part of the foreign key. |
referencedField |
Output only. Field name in the referenced node type. |