# Google Cloud Web Risk V1 Client - Class CreateSubmissionRequest (2.3.0)

2.3.0 (latest) 2.2.2 2.1.1 2.0.3 1.5.5 1.4.4 1.3.0 1.2.7 Reference documentation and code samples for the Google Cloud Web Risk V1 Client class CreateSubmissionRequest.

Request to send a potentially phishy URI to WebRisk.

Generated from protobuf message `google.cloud.webrisk.v1.CreateSubmissionRequest`

## Namespace

Google \\ Cloud \\ WebRisk \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the project that is making the submission. This string is in the format "projects/{project_number}". |
| `↳ submission` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.Submission` Required. The submission that contains the content of the phishing report. |

### getParent

Required. The name of the project that is making the submission. This
string is in the format "projects/{project_number}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The name of the project that is making the submission. This
string is in the format "projects/{project_number}".

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

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

### getSubmission

Required. The submission that contains the content of the phishing report.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.Submission|null` |   |

### hasSubmission

### clearSubmission

### setSubmission

Required. The submission that contains the content of the phishing report.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.Submission` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the project that is making the submission. This string is in the format "projects/{project_number}". Please see WebRiskServiceClient::projectName() for help formatting this field. |
| `submission` | `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.Submission` Required. The submission that contains the content of the phishing report. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-web-risk/latest/V1.CreateSubmissionRequest` |   |