# Google Cloud Rapid Migration Assessment V1 Client - Class Collector (1.2.4)

1.2.4 (latest) 1.2.3 1.1.2 1.0.3 0.3.5 0.2.2 0.1.1 Reference documentation and code samples for the Google Cloud Rapid Migration Assessment V1 Client class Collector.

Message describing Collector object.

Generated from protobuf message `google.cloud.rapidmigrationassessment.v1.Collector`

## Namespace

Google \\ Cloud \\ RapidMigrationAssessment \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` name of resource. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Create time stamp. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Update time stamp. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels as key value pairs. |
| `↳ display_name` | `string` User specified name of the Collector. |
| `↳ description` | `string` User specified description of the Collector. |
| `↳ service_account` | `string` Service Account email used to ingest data to this Collector. |
| `↳ bucket` | `string` Output only. Store cloud storage bucket name (which is a guid) created with this Collector. |
| `↳ expected_asset_count` | `int|string` User specified expected asset count. |
| `↳ state` | `int` Output only. State of the Collector. |
| `↳ client_version` | `string` Output only. Client version. |
| `↳ guest_os_scan` | `https://docs.cloud.google.com/php/docs/reference/cloud-rapidmigrationassessment/latest/V1.GuestOsScan` Output only. Reference to MC Source Guest Os Scan. |
| `↳ vsphere_scan` | `https://docs.cloud.google.com/php/docs/reference/cloud-rapidmigrationassessment/latest/V1.VSphereScan` Output only. Reference to MC Source vsphere_scan. |
| `↳ collection_days` | `int` How many days to collect data. |
| `↳ eula_uri` | `string` Uri for EULA (End User License Agreement) from customer. |

### getName

name of resource.

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

### setName

name of resource.

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

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

### getCreateTime

Output only. Create time stamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create time stamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Update time stamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update time stamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Labels as key value pairs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Labels as key value pairs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getDisplayName

User specified name of the Collector.

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

### setDisplayName

User specified name of the Collector.

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

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

### getDescription

User specified description of the Collector.

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

### setDescription

User specified description of the Collector.

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

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

### getServiceAccount

Service Account email used to ingest data to this Collector.

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

### setServiceAccount

Service Account email used to ingest data to this Collector.

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

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

### getBucket

Output only. Store cloud storage bucket name (which is a guid) created with
this Collector.

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

### setBucket

Output only. Store cloud storage bucket name (which is a guid) created with
this Collector.

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

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

### getExpectedAssetCount

User specified expected asset count.

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

### setExpectedAssetCount

User specified expected asset count.

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

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

### getState

Output only. State of the Collector.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-rapidmigrationassessment/latest/V1.Collector.State). |

### setState

Output only. State of the Collector.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-rapidmigrationassessment/latest/V1.Collector.State). |

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

### getClientVersion

Output only. Client version.

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

### setClientVersion

Output only. Client version.

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

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

### getGuestOsScan

Output only. Reference to MC Source Guest Os Scan.

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

### hasGuestOsScan

### clearGuestOsScan

### setGuestOsScan

Output only. Reference to MC Source Guest Os Scan.

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

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

### getVsphereScan

Output only. Reference to MC Source vsphere_scan.

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

### hasVsphereScan

### clearVsphereScan

### setVsphereScan

Output only. Reference to MC Source vsphere_scan.

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

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

### getCollectionDays

How many days to collect data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setCollectionDays

How many days to collect data.

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

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

### getEulaUri

Uri for EULA (End User License Agreement) from customer.

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

### setEulaUri

Uri for EULA (End User License Agreement) from customer.

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

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