PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 3.1.1
ShareThis Dashboard for Google Analytics v3.1.1
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / cloud / AnalyticsData / src / V1alpha / DateRange.php
googleanalytics / lib / analytics-admin / vendor / google / cloud / AnalyticsData / src / V1alpha Last commit date
CohortsRange 3 years ago DimensionExpression 3 years ago Filter 3 years ago Gapic 3 years ago OrderBy 3 years ago resources 3 years ago AlphaAnalyticsDataClient.php 3 years ago AlphaAnalyticsDataGrpcClient.php 3 years ago BatchRunPivotReportsRequest.php 3 years ago BatchRunPivotReportsResponse.php 3 years ago BatchRunReportsRequest.php 3 years ago BatchRunReportsResponse.php 3 years ago Cohort.php 3 years ago CohortReportSettings.php 3 years ago CohortSpec.php 3 years ago CohortsRange.php 3 years ago DateRange.php 3 years ago Dimension.php 3 years ago DimensionExpression.php 3 years ago DimensionHeader.php 3 years ago DimensionMetadata.php 3 years ago DimensionValue.php 3 years ago Entity.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 MetricHeader.php 3 years ago MetricMetadata.php 3 years ago MetricType.php 3 years ago MetricValue.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 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
DateRange.php
173 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/analytics/data/v1alpha/data.proto
4
5 namespace Google\Analytics\Data\V1alpha;
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 days: startDate, startDate + 1, ..., endDate. Requests
13 * are allowed up to 4 date ranges.
14 *
15 * Generated from protobuf message <code>google.analytics.data.v1alpha.DateRange</code>
16 */
17 class DateRange extends \Google\Protobuf\Internal\Message
18 {
19 /**
20 * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
21 * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
22 * accepted, and in that case, the date is inferred based on the property's
23 * reporting time zone.
24 *
25 * Generated from protobuf field <code>string start_date = 1;</code>
26 */
27 private $start_date = '';
28 /**
29 * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
30 * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
31 * also accepted, and in that case, the date is inferred based on the
32 * property's reporting time zone.
33 *
34 * Generated from protobuf field <code>string end_date = 2;</code>
35 */
36 private $end_date = '';
37 /**
38 * Assigns a name to this date range. The dimension `dateRange` is valued to
39 * this name in a report response. If set, cannot begin with `date_range_` or
40 * `RESERVED_`. If not set, date ranges are named by their zero based index in
41 * the request: `date_range_0`, `date_range_1`, etc.
42 *
43 * Generated from protobuf field <code>string name = 3;</code>
44 */
45 private $name = '';
46
47 /**
48 * Constructor.
49 *
50 * @param array $data {
51 * Optional. Data for populating the Message object.
52 *
53 * @type string $start_date
54 * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
55 * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
56 * accepted, and in that case, the date is inferred based on the property's
57 * reporting time zone.
58 * @type string $end_date
59 * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
60 * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
61 * also accepted, and in that case, the date is inferred based on the
62 * property's reporting time zone.
63 * @type string $name
64 * Assigns a name to this date range. The dimension `dateRange` is valued to
65 * this name in a report response. If set, cannot begin with `date_range_` or
66 * `RESERVED_`. If not set, date ranges are named by their zero based index in
67 * the request: `date_range_0`, `date_range_1`, etc.
68 * }
69 */
70 public function __construct($data = NULL) {
71 \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
72 parent::__construct($data);
73 }
74
75 /**
76 * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
77 * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
78 * accepted, and in that case, the date is inferred based on the property's
79 * reporting time zone.
80 *
81 * Generated from protobuf field <code>string start_date = 1;</code>
82 * @return string
83 */
84 public function getStartDate()
85 {
86 return $this->start_date;
87 }
88
89 /**
90 * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
91 * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
92 * accepted, and in that case, the date is inferred based on the property's
93 * reporting time zone.
94 *
95 * Generated from protobuf field <code>string start_date = 1;</code>
96 * @param string $var
97 * @return $this
98 */
99 public function setStartDate($var)
100 {
101 GPBUtil::checkString($var, True);
102 $this->start_date = $var;
103
104 return $this;
105 }
106
107 /**
108 * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
109 * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
110 * also accepted, and in that case, the date is inferred based on the
111 * property's reporting time zone.
112 *
113 * Generated from protobuf field <code>string end_date = 2;</code>
114 * @return string
115 */
116 public function getEndDate()
117 {
118 return $this->end_date;
119 }
120
121 /**
122 * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
123 * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
124 * also accepted, and in that case, the date is inferred based on the
125 * property's reporting time zone.
126 *
127 * Generated from protobuf field <code>string end_date = 2;</code>
128 * @param string $var
129 * @return $this
130 */
131 public function setEndDate($var)
132 {
133 GPBUtil::checkString($var, True);
134 $this->end_date = $var;
135
136 return $this;
137 }
138
139 /**
140 * Assigns a name to this date range. The dimension `dateRange` is valued to
141 * this name in a report response. If set, cannot begin with `date_range_` or
142 * `RESERVED_`. If not set, date ranges are named by their zero based index in
143 * the request: `date_range_0`, `date_range_1`, etc.
144 *
145 * Generated from protobuf field <code>string name = 3;</code>
146 * @return string
147 */
148 public function getName()
149 {
150 return $this->name;
151 }
152
153 /**
154 * Assigns a name to this date range. The dimension `dateRange` is valued to
155 * this name in a report response. If set, cannot begin with `date_range_` or
156 * `RESERVED_`. If not set, date ranges are named by their zero based index in
157 * the request: `date_range_0`, `date_range_1`, etc.
158 *
159 * Generated from protobuf field <code>string name = 3;</code>
160 * @param string $var
161 * @return $this
162 */
163 public function setName($var)
164 {
165 GPBUtil::checkString($var, True);
166 $this->name = $var;
167
168 return $this;
169 }
170
171 }
172
173