# Google Cloud Storage Insights V1 Client - Class ReportDetail (1.4.0)

1.4.0 (latest) 1.3.3 1.2.1 1.1.0 1.0.3 0.3.5 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Storage Insights V1 Client class ReportDetail.

Message describing ReportDetail object. ReportDetail represents metadata of
generated reports for a ReportConfig.

Next ID: 10

Generated from protobuf message `google.cloud.storageinsights.v1.ReportDetail`

## Namespace

Google \\ Cloud \\ StorageInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Name of resource. It will be of form projects/ |
| `↳ snapshot_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The snapshot time. All the report data is referenced at this point of time. |
| `↳ report_path_prefix` | `string` Prefix of the object name of each report's shard. This will have full prefix except the "extension" and "shard_id". For example, if the `destination_path` is `{{report-config-id}}/dt={{datetime}}`, the shard object name would be `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv` and the value of `report_path_prefix` field would be `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`. |
| `↳ shards_count` | `int|string` Total shards generated for the report. |
| `↳ status` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Status of the ReportDetail. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels as key value pairs |
| `↳ target_datetime` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DateTime.html` The date for which report is generated. The time part of target_datetime will be zero till we support multiple reports per day. |
| `↳ report_metrics` | `https://docs.cloud.google.com/php/docs/reference/cloud-storageinsights/latest/V1.ReportDetail.Metrics` Metrics of the report. |

### getName

Name of resource. It will be of form
projects/


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

### setName

Name of resource. It will be of form
projects/


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

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

### getSnapshotTime

The snapshot time.

All the report data is referenced at this point of time.

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

### hasSnapshotTime

### clearSnapshotTime

### setSnapshotTime

The snapshot time.

All the report data is referenced at this point of time.

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

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

### getReportPathPrefix

Prefix of the object name of each report's shard. This will have full
prefix except the "extension" and "shard_id".

For example, if the `destination_path` is
`{{report-config-id}}/dt={{datetime}}`, the shard object name would be
`gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv`
and the value of `report_path_prefix` field would be
`gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`.

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

### setReportPathPrefix

Prefix of the object name of each report's shard. This will have full
prefix except the "extension" and "shard_id".

For example, if the `destination_path` is
`{{report-config-id}}/dt={{datetime}}`, the shard object name would be
`gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv`
and the value of `report_path_prefix` field would be
`gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`.

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

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

### getShardsCount

Total shards generated for the report.

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

### setShardsCount

Total shards generated for the report.

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

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

### getStatus

Status of the ReportDetail.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasStatus

### clearStatus

### setStatus

Status of the ReportDetail.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

| **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` |   |

### getTargetDatetime

The date for which report is generated. The time part of target_datetime
will be zero till we support multiple reports per day.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DateTime.html|null` |   |

### hasTargetDatetime

### clearTargetDatetime

### setTargetDatetime

The date for which report is generated. The time part of target_datetime
will be zero till we support multiple reports per day.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DateTime.html` |

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

### getReportMetrics

Metrics of the report.

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

### hasReportMetrics

### clearReportMetrics

### setReportMetrics

Metrics of the report.

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

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