# Google Analytics Admin V1alpha Client - Class DataStream (0.32.0)

0.32.0 (latest) 0.31.3 0.30.0 0.29.1 0.28.1 0.27.0 0.26.0 0.25.2 0.24.2 0.23.0 0.22.5 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.2

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class DataStream.

A resource message representing a data stream.

Generated from protobuf message `google.analytics.admin.v1alpha.DataStream`

## Namespace

Google \\ Analytics \\ Admin \\ V1alpha

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ web_stream_data` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.WebStreamData` Data specific to web streams. Must be populated if type is WEB_DATA_STREAM. |
| `↳ android_app_stream_data` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.AndroidAppStreamData` Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM. |
| `↳ ios_app_stream_data` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.IosAppStreamData` Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM. |
| `↳ name` | `string` Identifier. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000" |
| `↳ type` | `int` Required. Immutable. The type of this DataStream resource. |
| `↳ display_name` | `string` Human-readable display name for the Data Stream. Required for web data streams. The max allowed display name length is 255 UTF-16 code units. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when this stream was originally created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when stream payload fields were last updated. |

### getWebStreamData

Data specific to web streams. Must be populated if type is
WEB_DATA_STREAM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.WebStreamData|null` |   |

### hasWebStreamData

### setWebStreamData

Data specific to web streams. Must be populated if type is
WEB_DATA_STREAM.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.WebStreamData` |

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

### getAndroidAppStreamData

Data specific to Android app streams. Must be populated if type is
ANDROID_APP_DATA_STREAM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.AndroidAppStreamData|null` |   |

### hasAndroidAppStreamData

### setAndroidAppStreamData

Data specific to Android app streams. Must be populated if type is
ANDROID_APP_DATA_STREAM.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.AndroidAppStreamData` |

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

### getIosAppStreamData

Data specific to iOS app streams. Must be populated if type is
IOS_APP_DATA_STREAM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.IosAppStreamData|null` |   |

### hasIosAppStreamData

### setIosAppStreamData

Data specific to iOS app streams. Must be populated if type is
IOS_APP_DATA_STREAM.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.IosAppStreamData` |

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

### getName

Identifier. Resource name of this Data Stream.

Format: properties/{property_id}/dataStreams/{stream_id}
Example: "properties/1000/dataStreams/2000"

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

### setName

Identifier. Resource name of this Data Stream.

Format: properties/{property_id}/dataStreams/{stream_id}
Example: "properties/1000/dataStreams/2000"

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

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

### getType

Required. Immutable. The type of this DataStream resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DataStreamType](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.DataStreamType). |

### setType

Required. Immutable. The type of this DataStream resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DataStreamType](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.DataStream.DataStreamType). |

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

### getDisplayName

Human-readable display name for the Data Stream.

Required for web data streams.
The max allowed display name length is 255 UTF-16 code units.

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

### setDisplayName

Human-readable display name for the Data Stream.

Required for web data streams.
The max allowed display name length is 255 UTF-16 code units.

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

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

### getCreateTime

Output only. Time when this stream was originally created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when this stream was originally created.

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

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

### getUpdateTime

Output only. Time when stream payload fields were last updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time when stream payload fields were last updated.

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

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

### getStreamData

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