Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class SchemaRelationship.
The relationship between two tables, including referencing and referenced columns. This is a derived context retrieved from Dataplex Dataset Insights.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1beta \ ContextMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ left_schema_paths |
SchemaRelationship\SchemaPaths
An ordered list of fields for the join from the first table. The size of this list must be the same as |
↳ right_schema_paths |
SchemaRelationship\SchemaPaths
An ordered list of fields for the join from the second table. The size of this list must be the same as |
↳ sources |
array
Sources which generated the schema relation edge. |
↳ confidence_score |
float
A confidence score for the suggested relationship. Manually added edges have the highest confidence score. |
getLeftSchemaPaths
An ordered list of fields for the join from the first table.
The size of this list must be the same as right_schema_paths.
Each field at index i in this list must correspond to a field at the same
index in the right_schema_paths list.
| Returns | |
|---|---|
| Type | Description |
SchemaRelationship\SchemaPaths|null |
|
hasLeftSchemaPaths
clearLeftSchemaPaths
setLeftSchemaPaths
An ordered list of fields for the join from the first table.
The size of this list must be the same as right_schema_paths.
Each field at index i in this list must correspond to a field at the same
index in the right_schema_paths list.
| Parameter | |
|---|---|
| Name | Description |
var |
SchemaRelationship\SchemaPaths
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRightSchemaPaths
An ordered list of fields for the join from the second table.
The size of this list must be the same as left_schema_paths.
Each field at index i in this list must correspond to a field at the same
index in the left_schema_paths list.
| Returns | |
|---|---|
| Type | Description |
SchemaRelationship\SchemaPaths|null |
|
hasRightSchemaPaths
clearRightSchemaPaths
setRightSchemaPaths
An ordered list of fields for the join from the second table.
The size of this list must be the same as left_schema_paths.
Each field at index i in this list must correspond to a field at the same
index in the left_schema_paths list.
| Parameter | |
|---|---|
| Name | Description |
var |
SchemaRelationship\SchemaPaths
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSources
Sources which generated the schema relation edge.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSources
Sources which generated the schema relation edge.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConfidenceScore
A confidence score for the suggested relationship.
Manually added edges have the highest confidence score.
| Returns | |
|---|---|
| Type | Description |
float |
|
setConfidenceScore
A confidence score for the suggested relationship.
Manually added edges have the highest confidence score.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|