# Google Analytics Data V1beta Client - Class ResponseMetaData (0.24.0)

0.24.0 (latest) 0.23.3 0.22.3 0.21.1 0.20.1 0.19.0 0.18.0 0.17.1 0.16.4 0.14.0 0.13.0 0.12.0 0.11.2 0.10.1 0.9.5

> [!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 Data V1beta Client class ResponseMetaData.

Response's metadata carrying additional information about the report content.

Generated from protobuf message `google.analytics.data.v1beta.ResponseMetaData`

## Namespace

Google \\ Analytics \\ Data \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_loss_from_other_row` | `bool` If true, indicates some buckets of dimension combinations are rolled into "(other)" row. This can happen for high cardinality reports. The metadata parameter dataLossFromOtherRow is populated based on the aggregated data table used in the report. The parameter will be accurately populated regardless of the filters and limits in the report. For example, the (other) row could be dropped from the report because the request contains a filter on sessionSource = google. This parameter will still be populated if data loss from other row was present in the input aggregate data used to generate this report. To learn more, see [About the (other) row and data sampling](https://support.google.com/analytics/answer/13208658#reports). |
| `↳ schema_restriction_response` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.ResponseMetaData.SchemaRestrictionResponse` Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388). |
| `↳ currency_code` | `string` The currency code used in this report. Intended to be used in formatting currency metrics like `purchaseRevenue` for visualization. If currency_code was specified in the request, this response parameter will echo the request parameter; otherwise, this response parameter is the property's current currency_code. Currency codes are string encodings of currency types from the ISO 4217 standard (<https://en.wikipedia.org/wiki/ISO_4217>); for example "USD", "EUR", "JPY". To learn more, see <https://support.google.com/analytics/answer/9796179>. |
| `↳ time_zone` | `string` The property's current timezone. Intended to be used to interpret time-based dimensions like `hour` and `minute`. Formatted as strings from the IANA Time Zone database (<https://www.iana.org/time-zones>); for example "America/New_York" or "Asia/Tokyo". |
| `↳ empty_reason` | `string` If empty reason is specified, the report is empty for this reason. |
| `↳ subject_to_thresholding` | `bool` If `subjectToThresholding` is true, this report is subject to thresholding and only returns data that meets the minimum aggregation thresholds. It is possible for a request to be subject to thresholding thresholding and no data is absent from the report, and this happens when all data is above the thresholds. To learn more, see [Data thresholds](https://support.google.com/analytics/answer/9383630). |
| `↳ sampling_metadatas` | `array<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.SamplingMetadata>` If this report results is [sampled](https://support.google.com/analytics/answer/13331292), this describes the percentage of events used in this report. One `samplingMetadatas` is populated for each date range. Each `samplingMetadatas` corresponds to a date range in order that date ranges were specified in the request. However if the results are not sampled, this field will not be defined. |

### getDataLossFromOtherRow

If true, indicates some buckets of dimension combinations are rolled into
"(other)" row. This can happen for high cardinality reports.

The metadata parameter dataLossFromOtherRow is populated based on the
aggregated data table used in the report. The parameter will be accurately
populated regardless of the filters and limits in the report.
For example, the (other) row could be dropped from the report because the
request contains a filter on sessionSource = google. This parameter will
still be populated if data loss from other row was present in the input
aggregate data used to generate this report.
To learn more, see [About the (other) row and data
sampling](https://support.google.com/analytics/answer/13208658#reports).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setDataLossFromOtherRow

If true, indicates some buckets of dimension combinations are rolled into
"(other)" row. This can happen for high cardinality reports.

The metadata parameter dataLossFromOtherRow is populated based on the
aggregated data table used in the report. The parameter will be accurately
populated regardless of the filters and limits in the report.
For example, the (other) row could be dropped from the report because the
request contains a filter on sessionSource = google. This parameter will
still be populated if data loss from other row was present in the input
aggregate data used to generate this report.
To learn more, see [About the (other) row and data
sampling](https://support.google.com/analytics/answer/13208658#reports).

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

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

### getSchemaRestrictionResponse

Describes the schema restrictions actively enforced in creating this
report. To learn more, see [Access and data-restriction
management](https://support.google.com/analytics/answer/10851388).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.ResponseMetaData.SchemaRestrictionResponse|null` |   |

### hasSchemaRestrictionResponse

### clearSchemaRestrictionResponse

### setSchemaRestrictionResponse

Describes the schema restrictions actively enforced in creating this
report. To learn more, see [Access and data-restriction
management](https://support.google.com/analytics/answer/10851388).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.ResponseMetaData.SchemaRestrictionResponse` |

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

### getCurrencyCode

The currency code used in this report. Intended to be used in formatting
currency metrics like `purchaseRevenue` for visualization. If currency_code
was specified in the request, this response parameter will echo the request
parameter; otherwise, this response parameter is the property's current
currency_code.

Currency codes are string encodings of currency types from the ISO 4217
standard (<https://en.wikipedia.org/wiki/ISO_4217>); for example "USD",
"EUR", "JPY". To learn more, see
<https://support.google.com/analytics/answer/9796179>.

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

### hasCurrencyCode

### clearCurrencyCode

### setCurrencyCode

The currency code used in this report. Intended to be used in formatting
currency metrics like `purchaseRevenue` for visualization. If currency_code
was specified in the request, this response parameter will echo the request
parameter; otherwise, this response parameter is the property's current
currency_code.

Currency codes are string encodings of currency types from the ISO 4217
standard (<https://en.wikipedia.org/wiki/ISO_4217>); for example "USD",
"EUR", "JPY". To learn more, see
<https://support.google.com/analytics/answer/9796179>.

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

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

### getTimeZone

The property's current timezone. Intended to be used to interpret
time-based dimensions like `hour` and `minute`. Formatted as strings from
the IANA Time Zone database (<https://www.iana.org/time-zones>); for example
"America/New_York" or "Asia/Tokyo".

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

### hasTimeZone

### clearTimeZone

### setTimeZone

The property's current timezone. Intended to be used to interpret
time-based dimensions like `hour` and `minute`. Formatted as strings from
the IANA Time Zone database (<https://www.iana.org/time-zones>); for example
"America/New_York" or "Asia/Tokyo".

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

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

### getEmptyReason

If empty reason is specified, the report is empty for this reason.

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

### hasEmptyReason

### clearEmptyReason

### setEmptyReason

If empty reason is specified, the report is empty for this reason.

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

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

### getSubjectToThresholding

If `subjectToThresholding` is true, this report is subject to thresholding
and only returns data that meets the minimum aggregation thresholds. It is
possible for a request to be subject to thresholding thresholding and no
data is absent from the report, and this happens when all data is above the
thresholds. To learn more, see [Data
thresholds](https://support.google.com/analytics/answer/9383630).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSubjectToThresholding

### clearSubjectToThresholding

### setSubjectToThresholding

If `subjectToThresholding` is true, this report is subject to thresholding
and only returns data that meets the minimum aggregation thresholds. It is
possible for a request to be subject to thresholding thresholding and no
data is absent from the report, and this happens when all data is above the
thresholds. To learn more, see [Data
thresholds](https://support.google.com/analytics/answer/9383630).

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

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

### getSamplingMetadatas

If this report results is
[sampled](https://support.google.com/analytics/answer/13331292), this
describes the percentage of events used in this report. One
`samplingMetadatas` is populated for each date range. Each
`samplingMetadatas` corresponds to a date range in order that date ranges
were specified in the request.

However if the results are not sampled, this field will not be defined.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.SamplingMetadata>` |   |

### setSamplingMetadatas

If this report results is
[sampled](https://support.google.com/analytics/answer/13331292), this
describes the percentage of events used in this report. One
`samplingMetadatas` is populated for each date range. Each
`samplingMetadatas` corresponds to a date range in order that date ranges
were specified in the request.

However if the results are not sampled, this field will not be defined.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.SamplingMetadata>` |

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