# Google Cloud Security Command Center V1 Client - Class CreateFindingRequest (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class CreateFindingRequest.

Request message for creating a finding.

Generated from protobuf message `google.cloud.securitycenter.v1.CreateFindingRequest`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name of the new finding's parent. Its format should be `organizations/[organization_id]/sources/[source_id]`. |
| `↳ finding_id` | `string` Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `↳ finding` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |

### getParent

Required. Resource name of the new finding's parent. Its format should be
`organizations/[organization_id]/sources/[source_id]`.

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

### setParent

Required. Resource name of the new finding's parent. Its format should be
`organizations/[organization_id]/sources/[source_id]`.

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

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

### getFindingId

Required. Unique identifier provided by the client within the parent scope.

It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.

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

### setFindingId

Required. Unique identifier provided by the client within the parent scope.

It must be alphanumeric and less than or equal to 32 characters and
greater than 0 characters in length.

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

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

### getFinding

Required. The Finding being created. The name and security_marks will be
ignored as they are both output only fields on this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Finding|null` |   |

### hasFinding

### clearFinding

### setFinding

Required. The Finding being created. The name and security_marks will be
ignored as they are both output only fields on this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Finding` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name of the new finding's parent. Its format should be `organizations/[organization_id]/sources/[source_id]`. Please see SecurityCenterClient::sourceName() for help formatting this field. |
| `findingId` | `string` Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. |
| `finding` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Finding` Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CreateFindingRequest` |   |