# Google Cloud Discovery Engine V1 Client - Class RankSignals (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RankSignals.

A set of ranking signals.

Generated from protobuf message `google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RankSignals`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ SearchResponse \\ SearchResult

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ keyword_similarity_score` | `float` Optional. Keyword matching adjustment. |
| `↳ relevance_score` | `float` Optional. Semantic relevance adjustment. |
| `↳ semantic_similarity_score` | `float` Optional. Semantic similarity adjustment. |
| `↳ pctr_rank` | `float` Optional. Predicted conversion rate adjustment as a rank. |
| `↳ topicality_rank` | `float` Optional. Topicality adjustment as a rank. |
| `↳ document_age` | `float` Optional. Age of the document in hours. |
| `↳ boosting_factor` | `float` Optional. Combined custom boosts for a doc. |
| `↳ default_rank` | `float` Optional. The default rank of the result. |
| `↳ custom_signals` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchResponse.SearchResult.RankSignals.CustomSignal>` Optional. A list of custom clearbox signals. |

### getKeywordSimilarityScore

Optional. Keyword matching adjustment.

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

### hasKeywordSimilarityScore

### clearKeywordSimilarityScore

### setKeywordSimilarityScore

Optional. Keyword matching adjustment.

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

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

### getRelevanceScore

Optional. Semantic relevance adjustment.

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

### hasRelevanceScore

### clearRelevanceScore

### setRelevanceScore

Optional. Semantic relevance adjustment.

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

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

### getSemanticSimilarityScore

Optional. Semantic similarity adjustment.

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

### hasSemanticSimilarityScore

### clearSemanticSimilarityScore

### setSemanticSimilarityScore

Optional. Semantic similarity adjustment.

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

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

### getPctrRank

Optional. Predicted conversion rate adjustment as a rank.

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

### hasPctrRank

### clearPctrRank

### setPctrRank

Optional. Predicted conversion rate adjustment as a rank.

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

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

### getTopicalityRank

Optional. Topicality adjustment as a rank.

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

### hasTopicalityRank

### clearTopicalityRank

### setTopicalityRank

Optional. Topicality adjustment as a rank.

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

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

### getDocumentAge

Optional. Age of the document in hours.

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

### hasDocumentAge

### clearDocumentAge

### setDocumentAge

Optional. Age of the document in hours.

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

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

### getBoostingFactor

Optional. Combined custom boosts for a doc.

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

### hasBoostingFactor

### clearBoostingFactor

### setBoostingFactor

Optional. Combined custom boosts for a doc.

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

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

### getDefaultRank

Optional. The default rank of the result.

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

### setDefaultRank

Optional. The default rank of the result.

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

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

### getCustomSignals

Optional. A list of custom clearbox signals.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchResponse.SearchResult.RankSignals.CustomSignal>` |   |

### setCustomSignals

Optional. A list of custom clearbox signals.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchResponse.SearchResult.RankSignals.CustomSignal>` |

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