-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathDateRange.php
More file actions
172 lines (157 loc) · 6.13 KB
/
DateRange.php
File metadata and controls
172 lines (157 loc) · 6.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/analytics/data/v1alpha/data.proto
namespace Google\Analytics\Data\V1alpha;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`.
* Requests are allowed up to 4 date ranges.
*
* Generated from protobuf message <code>google.analytics.data.v1alpha.DateRange</code>
*/
class DateRange extends \Google\Protobuf\Internal\Message
{
/**
* The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
* be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
* accepted, and in that case, the date is inferred based on the property's
* reporting time zone.
*
* Generated from protobuf field <code>string start_date = 1;</code>
*/
protected $start_date = '';
/**
* The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
* be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
* also accepted, and in that case, the date is inferred based on the
* property's reporting time zone.
*
* Generated from protobuf field <code>string end_date = 2;</code>
*/
protected $end_date = '';
/**
* Assigns a name to this date range. The dimension `dateRange` is valued to
* this name in a report response. If set, cannot begin with `date_range_` or
* `RESERVED_`. If not set, date ranges are named by their zero based index in
* the request: `date_range_0`, `date_range_1`, etc.
*
* Generated from protobuf field <code>string name = 3;</code>
*/
protected $name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $start_date
* The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
* be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
* accepted, and in that case, the date is inferred based on the property's
* reporting time zone.
* @type string $end_date
* The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
* be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
* also accepted, and in that case, the date is inferred based on the
* property's reporting time zone.
* @type string $name
* Assigns a name to this date range. The dimension `dateRange` is valued to
* this name in a report response. If set, cannot begin with `date_range_` or
* `RESERVED_`. If not set, date ranges are named by their zero based index in
* the request: `date_range_0`, `date_range_1`, etc.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
parent::__construct($data);
}
/**
* The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
* be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
* accepted, and in that case, the date is inferred based on the property's
* reporting time zone.
*
* Generated from protobuf field <code>string start_date = 1;</code>
* @return string
*/
public function getStartDate()
{
return $this->start_date;
}
/**
* The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
* be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
* accepted, and in that case, the date is inferred based on the property's
* reporting time zone.
*
* Generated from protobuf field <code>string start_date = 1;</code>
* @param string $var
* @return $this
*/
public function setStartDate($var)
{
GPBUtil::checkString($var, True);
$this->start_date = $var;
return $this;
}
/**
* The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
* be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
* also accepted, and in that case, the date is inferred based on the
* property's reporting time zone.
*
* Generated from protobuf field <code>string end_date = 2;</code>
* @return string
*/
public function getEndDate()
{
return $this->end_date;
}
/**
* The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
* be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
* also accepted, and in that case, the date is inferred based on the
* property's reporting time zone.
*
* Generated from protobuf field <code>string end_date = 2;</code>
* @param string $var
* @return $this
*/
public function setEndDate($var)
{
GPBUtil::checkString($var, True);
$this->end_date = $var;
return $this;
}
/**
* Assigns a name to this date range. The dimension `dateRange` is valued to
* this name in a report response. If set, cannot begin with `date_range_` or
* `RESERVED_`. If not set, date ranges are named by their zero based index in
* the request: `date_range_0`, `date_range_1`, etc.
*
* Generated from protobuf field <code>string name = 3;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Assigns a name to this date range. The dimension `dateRange` is valued to
* this name in a report response. If set, cannot begin with `date_range_` or
* `RESERVED_`. If not set, date ranges are named by their zero based index in
* the request: `date_range_0`, `date_range_1`, etc.
*
* Generated from protobuf field <code>string name = 3;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
}