# Google Cloud Binary Authorization V1 Client - Class CreateAttestorRequest (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.8.7 0.7.0 0.6.1 0.5.13 Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class CreateAttestorRequest.

Request message for BinauthzManagementService.CreateAttestor.

Generated from protobuf message `google.cloud.binaryauthorization.v1.CreateAttestorRequest`

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getParent

Required. The parent of this [attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor).

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

### setParent

Required. The parent of this [attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor).

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

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

### getAttestorId

Required. The [attestors](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) ID.

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

### setAttestorId

Required. The [attestors](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) ID.

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

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

### getAttestor

Required. The initial [attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) value. The service will
overwrite the [attestor name](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor#_Google_Cloud_BinaryAuthorization_V1_Attestor__getName__) field with the resource name,
in the format `projects/*/attestors/*`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor|null` |   |

### hasAttestor

### clearAttestor

### setAttestor

Required. The initial [attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) value. The service will
overwrite the [attestor name](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor#_Google_Cloud_BinaryAuthorization_V1_Attestor__getName__) field with the resource name,
in the format `projects/*/attestors/*`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent of this [attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor). Please see BinauthzManagementServiceV1Client::projectName() for help formatting this field. |
| `attestorId` | `string` Required. The [attestors](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) ID. |
| `attestor` | `https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor` Required. The initial [attestor](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor) value. The service will overwrite the [attestor name](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor#_Google_Cloud_BinaryAuthorization_V1_Attestor__getName__) field with the resource name, in the format `projects/*/attestors/*`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.CreateAttestorRequest` |   |