# Google Cloud Contact Center Insights V1 Client - Class Analysis (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class Analysis.

The analysis resource.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.Analysis`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
| `↳ request_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which the analysis was requested. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
| `↳ analysis_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.AnalysisResult` Output only. The result of the analysis, which is populated when the analysis finishes. |
| `↳ annotator_selector` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.AnnotatorSelector` To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. |

### getName

Immutable. The resource name of the analysis.

Format:
projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}

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

### setName

Immutable. The resource name of the analysis.

Format:
projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}

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

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

### getRequestTime

Output only. The time at which the analysis was requested.

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

### hasRequestTime

### clearRequestTime

### setRequestTime

Output only. The time at which the analysis was requested.

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

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

### getCreateTime

Output only. The time at which the analysis was created, which occurs when
the long-running operation completes.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which the analysis was created, which occurs when
the long-running operation completes.

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

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

### getAnalysisResult

Output only. The result of the analysis, which is populated when the
analysis finishes.

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

### hasAnalysisResult

### clearAnalysisResult

### setAnalysisResult

Output only. The result of the analysis, which is populated when the
analysis finishes.

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

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

### getAnnotatorSelector

To select the annotators to run and the phrase matchers to use
(if any). If not specified, all annotators will be run.

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

### hasAnnotatorSelector

### clearAnnotatorSelector

### setAnnotatorSelector

To select the annotators to run and the phrase matchers to use
(if any). If not specified, all annotators will be run.

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

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