googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1beta
/
MinuteRange.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1beta
Last commit date
CohortsRange
3 years ago
DimensionExpression
3 years ago
Filter
3 years ago
Gapic
3 years ago
MetricMetadata
3 years ago
OrderBy
3 years ago
ResponseMetaData
3 years ago
resources
3 years ago
BatchRunPivotReportsRequest.php
3 years ago
BatchRunPivotReportsResponse.php
3 years ago
BatchRunReportsRequest.php
3 years ago
BatchRunReportsResponse.php
3 years ago
BetaAnalyticsDataClient.php
3 years ago
BetaAnalyticsDataGrpcClient.php
3 years ago
CheckCompatibilityRequest.php
3 years ago
CheckCompatibilityResponse.php
3 years ago
Cohort.php
3 years ago
CohortReportSettings.php
3 years ago
CohortSpec.php
3 years ago
CohortsRange.php
3 years ago
Compatibility.php
3 years ago
DateRange.php
3 years ago
Dimension.php
3 years ago
DimensionCompatibility.php
3 years ago
DimensionExpression.php
3 years ago
DimensionHeader.php
3 years ago
DimensionMetadata.php
3 years ago
DimensionValue.php
3 years ago
Filter.php
3 years ago
FilterExpression.php
3 years ago
FilterExpressionList.php
3 years ago
GetMetadataRequest.php
3 years ago
Metadata.php
3 years ago
Metric.php
3 years ago
MetricAggregation.php
3 years ago
MetricCompatibility.php
3 years ago
MetricHeader.php
3 years ago
MetricMetadata.php
3 years ago
MetricType.php
3 years ago
MetricValue.php
3 years ago
MinuteRange.php
3 years ago
NumericValue.php
3 years ago
OrderBy.php
3 years ago
Pivot.php
3 years ago
PivotDimensionHeader.php
3 years ago
PivotHeader.php
3 years ago
PropertyQuota.php
3 years ago
QuotaStatus.php
3 years ago
ResponseMetaData.php
3 years ago
RestrictedMetricType.php
3 years ago
Row.php
3 years ago
RunPivotReportRequest.php
3 years ago
RunPivotReportResponse.php
3 years ago
RunRealtimeReportRequest.php
3 years ago
RunRealtimeReportResponse.php
3 years ago
RunReportRequest.php
3 years ago
RunReportResponse.php
3 years ago
gapic_metadata.json
3 years ago
MinuteRange.php
221 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/analytics/data/v1beta/data.proto |
| 4 | |
| 5 | namespace Google\Analytics\Data\V1beta; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ..., |
| 13 | * endMinutesAgo. Requests are allowed up to 2 minute ranges. |
| 14 | * |
| 15 | * Generated from protobuf message <code>google.analytics.data.v1beta.MinuteRange</code> |
| 16 | */ |
| 17 | class MinuteRange extends \Google\Protobuf\Internal\Message |
| 18 | { |
| 19 | /** |
| 20 | * The inclusive start minute for the query as a number of minutes before now. |
| 21 | * For example, `"startMinutesAgo": 29` specifies the report should include |
| 22 | * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. |
| 23 | * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics |
| 24 | * properties can request up to the last 30 minutes of event data |
| 25 | * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 26 | * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). |
| 27 | * |
| 28 | * Generated from protobuf field <code>optional int32 start_minutes_ago = 1;</code> |
| 29 | */ |
| 30 | private $start_minutes_ago = null; |
| 31 | /** |
| 32 | * The inclusive end minute for the query as a number of minutes before now. |
| 33 | * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` |
| 34 | * specifies the report should include event data from prior to 15 minutes |
| 35 | * ago. |
| 36 | * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics |
| 37 | * properties can request any minute in the last 30 minutes of event data |
| 38 | * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 39 | * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). |
| 40 | * |
| 41 | * Generated from protobuf field <code>optional int32 end_minutes_ago = 2;</code> |
| 42 | */ |
| 43 | private $end_minutes_ago = null; |
| 44 | /** |
| 45 | * Assigns a name to this minute range. The dimension `dateRange` is valued to |
| 46 | * this name in a report response. If set, cannot begin with `date_range_` or |
| 47 | * `RESERVED_`. If not set, minute ranges are named by their zero based index |
| 48 | * in the request: `date_range_0`, `date_range_1`, etc. |
| 49 | * |
| 50 | * Generated from protobuf field <code>string name = 3;</code> |
| 51 | */ |
| 52 | private $name = ''; |
| 53 | |
| 54 | /** |
| 55 | * Constructor. |
| 56 | * |
| 57 | * @param array $data { |
| 58 | * Optional. Data for populating the Message object. |
| 59 | * |
| 60 | * @type int $start_minutes_ago |
| 61 | * The inclusive start minute for the query as a number of minutes before now. |
| 62 | * For example, `"startMinutesAgo": 29` specifies the report should include |
| 63 | * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. |
| 64 | * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics |
| 65 | * properties can request up to the last 30 minutes of event data |
| 66 | * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 67 | * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). |
| 68 | * @type int $end_minutes_ago |
| 69 | * The inclusive end minute for the query as a number of minutes before now. |
| 70 | * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` |
| 71 | * specifies the report should include event data from prior to 15 minutes |
| 72 | * ago. |
| 73 | * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics |
| 74 | * properties can request any minute in the last 30 minutes of event data |
| 75 | * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 76 | * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). |
| 77 | * @type string $name |
| 78 | * Assigns a name to this minute range. The dimension `dateRange` is valued to |
| 79 | * this name in a report response. If set, cannot begin with `date_range_` or |
| 80 | * `RESERVED_`. If not set, minute ranges are named by their zero based index |
| 81 | * in the request: `date_range_0`, `date_range_1`, etc. |
| 82 | * } |
| 83 | */ |
| 84 | public function __construct($data = NULL) { |
| 85 | \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); |
| 86 | parent::__construct($data); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * The inclusive start minute for the query as a number of minutes before now. |
| 91 | * For example, `"startMinutesAgo": 29` specifies the report should include |
| 92 | * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. |
| 93 | * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics |
| 94 | * properties can request up to the last 30 minutes of event data |
| 95 | * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 96 | * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). |
| 97 | * |
| 98 | * Generated from protobuf field <code>optional int32 start_minutes_ago = 1;</code> |
| 99 | * @return int |
| 100 | */ |
| 101 | public function getStartMinutesAgo() |
| 102 | { |
| 103 | return isset($this->start_minutes_ago) ? $this->start_minutes_ago : 0; |
| 104 | } |
| 105 | |
| 106 | public function hasStartMinutesAgo() |
| 107 | { |
| 108 | return isset($this->start_minutes_ago); |
| 109 | } |
| 110 | |
| 111 | public function clearStartMinutesAgo() |
| 112 | { |
| 113 | unset($this->start_minutes_ago); |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * The inclusive start minute for the query as a number of minutes before now. |
| 118 | * For example, `"startMinutesAgo": 29` specifies the report should include |
| 119 | * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. |
| 120 | * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics |
| 121 | * properties can request up to the last 30 minutes of event data |
| 122 | * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 123 | * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). |
| 124 | * |
| 125 | * Generated from protobuf field <code>optional int32 start_minutes_ago = 1;</code> |
| 126 | * @param int $var |
| 127 | * @return $this |
| 128 | */ |
| 129 | public function setStartMinutesAgo($var) |
| 130 | { |
| 131 | GPBUtil::checkInt32($var); |
| 132 | $this->start_minutes_ago = $var; |
| 133 | |
| 134 | return $this; |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * The inclusive end minute for the query as a number of minutes before now. |
| 139 | * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` |
| 140 | * specifies the report should include event data from prior to 15 minutes |
| 141 | * ago. |
| 142 | * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics |
| 143 | * properties can request any minute in the last 30 minutes of event data |
| 144 | * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 145 | * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). |
| 146 | * |
| 147 | * Generated from protobuf field <code>optional int32 end_minutes_ago = 2;</code> |
| 148 | * @return int |
| 149 | */ |
| 150 | public function getEndMinutesAgo() |
| 151 | { |
| 152 | return isset($this->end_minutes_ago) ? $this->end_minutes_ago : 0; |
| 153 | } |
| 154 | |
| 155 | public function hasEndMinutesAgo() |
| 156 | { |
| 157 | return isset($this->end_minutes_ago); |
| 158 | } |
| 159 | |
| 160 | public function clearEndMinutesAgo() |
| 161 | { |
| 162 | unset($this->end_minutes_ago); |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * The inclusive end minute for the query as a number of minutes before now. |
| 167 | * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` |
| 168 | * specifies the report should include event data from prior to 15 minutes |
| 169 | * ago. |
| 170 | * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics |
| 171 | * properties can request any minute in the last 30 minutes of event data |
| 172 | * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request |
| 173 | * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). |
| 174 | * |
| 175 | * Generated from protobuf field <code>optional int32 end_minutes_ago = 2;</code> |
| 176 | * @param int $var |
| 177 | * @return $this |
| 178 | */ |
| 179 | public function setEndMinutesAgo($var) |
| 180 | { |
| 181 | GPBUtil::checkInt32($var); |
| 182 | $this->end_minutes_ago = $var; |
| 183 | |
| 184 | return $this; |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Assigns a name to this minute range. The dimension `dateRange` is valued to |
| 189 | * this name in a report response. If set, cannot begin with `date_range_` or |
| 190 | * `RESERVED_`. If not set, minute ranges are named by their zero based index |
| 191 | * in the request: `date_range_0`, `date_range_1`, etc. |
| 192 | * |
| 193 | * Generated from protobuf field <code>string name = 3;</code> |
| 194 | * @return string |
| 195 | */ |
| 196 | public function getName() |
| 197 | { |
| 198 | return $this->name; |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Assigns a name to this minute range. The dimension `dateRange` is valued to |
| 203 | * this name in a report response. If set, cannot begin with `date_range_` or |
| 204 | * `RESERVED_`. If not set, minute ranges are named by their zero based index |
| 205 | * in the request: `date_range_0`, `date_range_1`, etc. |
| 206 | * |
| 207 | * Generated from protobuf field <code>string name = 3;</code> |
| 208 | * @param string $var |
| 209 | * @return $this |
| 210 | */ |
| 211 | public function setName($var) |
| 212 | { |
| 213 | GPBUtil::checkString($var, True); |
| 214 | $this->name = $var; |
| 215 | |
| 216 | return $this; |
| 217 | } |
| 218 | |
| 219 | } |
| 220 | |
| 221 |