0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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 \\ Context

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ left_schema_paths` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context.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`. Each field at index i in this list must correspond to a field at the same index in the `right_schema_paths` list. |
| `↳ right_schema_paths` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context.SchemaRelationship.SchemaPaths` 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. |
| `↳ sources` | `int[]` Optional. Sources which generated the schema relation edge. |
| `↳ confidence_score` | `float` Optional. 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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context.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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context.SchemaRelationship.SchemaPaths` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSources

Optional. Sources which generated the schema relation edge.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<int>` |   |

### setSources

Optional. Sources which generated the schema relation edge.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfidenceScore

Optional. A confidence score for the suggested relationship.

Manually added edges have the highest confidence score.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setConfidenceScore

Optional. A confidence score for the suggested relationship.

Manually added edges have the highest confidence score.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |