diff --git a/AnalyticsData/metadata/V1Alpha/Data.php b/AnalyticsData/metadata/V1Alpha/Data.php index e82dcc15264d..7d2de72a86be 100644 Binary files a/AnalyticsData/metadata/V1Alpha/Data.php and b/AnalyticsData/metadata/V1Alpha/Data.php differ diff --git a/AnalyticsData/src/V1alpha/EmptyFilter.php b/AnalyticsData/src/V1alpha/EmptyFilter.php new file mode 100644 index 000000000000..2b44c2ba4688 --- /dev/null +++ b/AnalyticsData/src/V1alpha/EmptyFilter.php @@ -0,0 +1,33 @@ +google.analytics.data.v1alpha.EmptyFilter + */ +class EmptyFilter extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AnalyticsData/src/V1alpha/Filter.php b/AnalyticsData/src/V1alpha/Filter.php index 06dfb9994435..6c758aa91778 100644 --- a/AnalyticsData/src/V1alpha/Filter.php +++ b/AnalyticsData/src/V1alpha/Filter.php @@ -41,6 +41,8 @@ class Filter extends \Google\Protobuf\Internal\Message * A filter for numeric or date values. * @type \Google\Analytics\Data\V1alpha\BetweenFilter $between_filter * A filter for between two values. + * @type \Google\Analytics\Data\V1alpha\EmptyFilter $empty_filter + * A filter for empty values such as "(not set)" and "" values. * } */ public function __construct($data = NULL) { @@ -200,6 +202,37 @@ public function setBetweenFilter($var) return $this; } + /** + * A filter for empty values such as "(not set)" and "" values. + * + * Generated from protobuf field .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * @return \Google\Analytics\Data\V1alpha\EmptyFilter|null + */ + public function getEmptyFilter() + { + return $this->readOneof(6); + } + + public function hasEmptyFilter() + { + return $this->hasOneof(6); + } + + /** + * A filter for empty values such as "(not set)" and "" values. + * + * Generated from protobuf field .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * @param \Google\Analytics\Data\V1alpha\EmptyFilter $var + * @return $this + */ + public function setEmptyFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\EmptyFilter::class); + $this->writeOneof(6, $var); + + return $this; + } + /** * @return string */ diff --git a/AnalyticsData/src/V1alpha/FunnelResponseMetadata.php b/AnalyticsData/src/V1alpha/FunnelResponseMetadata.php index 78714d6506c6..e3b524be392e 100644 --- a/AnalyticsData/src/V1alpha/FunnelResponseMetadata.php +++ b/AnalyticsData/src/V1alpha/FunnelResponseMetadata.php @@ -21,8 +21,8 @@ class FunnelResponseMetadata extends \Google\Protobuf\Internal\Message * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel 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. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * However if the results are not sampled, this field will not be defined. * * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; @@ -40,8 +40,8 @@ class FunnelResponseMetadata extends \Google\Protobuf\Internal\Message * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel 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. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * However if the results are not sampled, this field will not be defined. * } */ @@ -55,8 +55,8 @@ public function __construct($data = NULL) { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel 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. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * However if the results are not sampled, this field will not be defined. * * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; @@ -72,8 +72,8 @@ public function getSamplingMetadatas() * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel 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. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * However if the results are not sampled, this field will not be defined. * * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; diff --git a/AnalyticsData/src/V1alpha/ResponseMetaData.php b/AnalyticsData/src/V1alpha/ResponseMetaData.php index 8874cfd66fc9..d0b7c3744a18 100644 --- a/AnalyticsData/src/V1alpha/ResponseMetaData.php +++ b/AnalyticsData/src/V1alpha/ResponseMetaData.php @@ -81,6 +81,18 @@ class ResponseMetaData extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional bool subject_to_thresholding = 8; */ private $subject_to_thresholding = null; + /** + * If this report's results are + * [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 the order that date + * ranges were specified in the request. + * However if the results are not sampled, this field will not be defined. + * + * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + private $sampling_metadatas; /** * Constructor. @@ -130,6 +142,14 @@ class ResponseMetaData extends \Google\Protobuf\Internal\Message * thresholds](https://support.google.com/analytics/answer/9383630) and [About * Demographics and * Interests](https://support.google.com/analytics/answer/2799357). + * @type array<\Google\Analytics\Data\V1alpha\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $sampling_metadatas + * If this report's results are + * [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 the order that date + * ranges were specified in the request. + * However if the results are not sampled, this field will not be defined. * } */ public function __construct($data = NULL) { @@ -403,5 +423,43 @@ public function setSubjectToThresholding($var) return $this; } + /** + * If this report's results are + * [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 the order that date + * ranges were specified in the request. + * However if the results are not sampled, this field will not be defined. + * + * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSamplingMetadatas() + { + return $this->sampling_metadatas; + } + + /** + * If this report's results are + * [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 the order that date + * ranges were specified in the request. + * However if the results are not sampled, this field will not be defined. + * + * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + * @param array<\Google\Analytics\Data\V1alpha\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSamplingMetadatas($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\SamplingMetadata::class); + $this->sampling_metadatas = $arr; + + return $this; + } + }