# Google Cloud Recaptcha Enterprise V1 Client - Class FraudPreventionAssessment (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.3 2.0.1 1.17.2 1.16.1 1.15.0 1.14.0 1.13.0 1.12.2 1.8.0 1.7.0 1.6.0 1.5.2 1.4.2 1.3.2 1.2.6 Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class FraudPreventionAssessment.

Assessment for Fraud Prevention.

Generated from protobuf message `google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment`

## Namespace

Google \\ Cloud \\ RecaptchaEnterprise \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ transaction_risk` | `float` Output only. Probability of this transaction being fraudulent. Summarizes the combined risk of attack vectors below. Values are from 0.0 (lowest) to 1.0 (highest). |
| `↳ risk_reasons` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.RiskReason>` Output only. Reasons why the transaction is probably fraudulent and received a high transaction risk score. |
| `↳ stolen_instrument_verdict` | `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.StolenInstrumentVerdict` Output only. Assessment of this transaction for risk of a stolen instrument. |
| `↳ card_testing_verdict` | `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.CardTestingVerdict` Output only. Assessment of this transaction for risk of being part of a card testing attack. |
| `↳ behavioral_trust_verdict` | `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.BehavioralTrustVerdict` Output only. Assessment of this transaction for behavioral trust. |

### getTransactionRisk

Output only. Probability of this transaction being fraudulent. Summarizes
the combined risk of attack vectors below. Values are from 0.0 (lowest)
to 1.0 (highest).

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

### setTransactionRisk

Output only. Probability of this transaction being fraudulent. Summarizes
the combined risk of attack vectors below. Values are from 0.0 (lowest)
to 1.0 (highest).

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

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

### getRiskReasons

Output only. Reasons why the transaction is probably fraudulent and
received a high transaction risk score.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.RiskReason>` |   |

### setRiskReasons

Output only. Reasons why the transaction is probably fraudulent and
received a high transaction risk score.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.RiskReason>` |

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

### getStolenInstrumentVerdict

Output only. Assessment of this transaction for risk of a stolen
instrument.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.StolenInstrumentVerdict|null` |   |

### hasStolenInstrumentVerdict

### clearStolenInstrumentVerdict

### setStolenInstrumentVerdict

Output only. Assessment of this transaction for risk of a stolen
instrument.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.StolenInstrumentVerdict` |

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

### getCardTestingVerdict

Output only. Assessment of this transaction for risk of being part of a
card testing attack.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.CardTestingVerdict|null` |   |

### hasCardTestingVerdict

### clearCardTestingVerdict

### setCardTestingVerdict

Output only. Assessment of this transaction for risk of being part of a
card testing attack.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.CardTestingVerdict` |

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

### getBehavioralTrustVerdict

Output only. Assessment of this transaction for behavioral trust.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.BehavioralTrustVerdict|null` |   |

### hasBehavioralTrustVerdict

### clearBehavioralTrustVerdict

### setBehavioralTrustVerdict

Output only. Assessment of this transaction for behavioral trust.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FraudPreventionAssessment.BehavioralTrustVerdict` |

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