@google-analytics/data 4.5.0 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.7.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.6.0...data-v4.7.0) (2024-05-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5351](https://github.com/googleapis/google-cloud-node/issues/5351)) ([01f48fc](https://github.com/googleapis/google-cloud-node/commit/01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372))
9
+ * [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5354](https://github.com/googleapis/google-cloud-node/issues/5354)) ([a9784ed](https://github.com/googleapis/google-cloud-node/commit/a9784ed3db6ee96d171762308bbbcd57390b6866))
10
+
11
+ ## [4.6.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.5.0...data-v4.6.0) (2024-05-08)
12
+
13
+
14
+ ### Features
15
+
16
+ * Add `ReportTask`, `Metric`, `OrderBy`, `Cohort`, `CohortsRange`, `CohortReportSettings`, `ResponseMetaData`, `MetricAggregation`, `RestrictedMetricType` types to the Data API v1alpha ([#5318](https://github.com/googleapis/google-cloud-node/issues/5318)) ([76ae561](https://github.com/googleapis/google-cloud-node/commit/76ae561ee40d66cbba815cd7c9c964a6b92cc00c))
17
+
3
18
  ## [4.5.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.4.0...data-v4.5.0) (2024-04-16)
4
19
 
5
20
 
package/README.md CHANGED
@@ -111,11 +111,15 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
111
111
  | --------------------------- | --------------------------------- | ------ |
112
112
  | Alpha_analytics_data.create_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.create_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.create_audience_list.js,packages/google-analytics-data/samples/README.md) |
113
113
  | Alpha_analytics_data.create_recurring_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.create_recurring_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.create_recurring_audience_list.js,packages/google-analytics-data/samples/README.md) |
114
+ | Alpha_analytics_data.create_report_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.create_report_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.create_report_task.js,packages/google-analytics-data/samples/README.md) |
114
115
  | Alpha_analytics_data.get_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.get_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.get_audience_list.js,packages/google-analytics-data/samples/README.md) |
115
116
  | Alpha_analytics_data.get_recurring_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.get_recurring_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.get_recurring_audience_list.js,packages/google-analytics-data/samples/README.md) |
117
+ | Alpha_analytics_data.get_report_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.get_report_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.get_report_task.js,packages/google-analytics-data/samples/README.md) |
116
118
  | Alpha_analytics_data.list_audience_lists | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_audience_lists.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_audience_lists.js,packages/google-analytics-data/samples/README.md) |
117
119
  | Alpha_analytics_data.list_recurring_audience_lists | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_recurring_audience_lists.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_recurring_audience_lists.js,packages/google-analytics-data/samples/README.md) |
120
+ | Alpha_analytics_data.list_report_tasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_report_tasks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.list_report_tasks.js,packages/google-analytics-data/samples/README.md) |
118
121
  | Alpha_analytics_data.query_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.query_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.query_audience_list.js,packages/google-analytics-data/samples/README.md) |
122
+ | Alpha_analytics_data.query_report_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.query_report_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.query_report_task.js,packages/google-analytics-data/samples/README.md) |
119
123
  | Alpha_analytics_data.run_funnel_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.run_funnel_report.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.run_funnel_report.js,packages/google-analytics-data/samples/README.md) |
120
124
  | Alpha_analytics_data.sheet_export_audience_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.sheet_export_audience_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1alpha/alpha_analytics_data.sheet_export_audience_list.js,packages/google-analytics-data/samples/README.md) |
121
125
  | Beta_analytics_data.batch_run_pivot_reports | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.batch_run_pivot_reports.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-data/samples/generated/v1beta/beta_analytics_data.batch_run_pivot_reports.js,packages/google-analytics-data/samples/README.md) |
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -265,6 +265,56 @@ service AlphaAnalyticsData {
265
265
  };
266
266
  option (google.api.method_signature) = "parent";
267
267
  }
268
+
269
+ // Initiates the creation of a report task. This method quickly
270
+ // returns a report task and initiates a long running
271
+ // asynchronous request to form a customized report of your Google Analytics
272
+ // event data.
273
+ rpc CreateReportTask(CreateReportTaskRequest)
274
+ returns (google.longrunning.Operation) {
275
+ option (google.api.http) = {
276
+ post: "/v1alpha/{parent=properties/*}/reportTasks"
277
+ body: "report_task"
278
+ };
279
+ option (google.api.method_signature) = "parent,report_task";
280
+ option (google.longrunning.operation_info) = {
281
+ response_type: "ReportTask"
282
+ metadata_type: "ReportTaskMetadata"
283
+ };
284
+ }
285
+
286
+ // Retrieves a report task's content. After requesting the `CreateReportTask`,
287
+ // you are able to retrieve the report content once the report is
288
+ // ACTIVE. This method will return an error if the report task's state is not
289
+ // `ACTIVE`. A query response will return the tabular row & column values of
290
+ // the report.
291
+ rpc QueryReportTask(QueryReportTaskRequest)
292
+ returns (QueryReportTaskResponse) {
293
+ option (google.api.http) = {
294
+ post: "/v1alpha/{name=properties/*/reportTasks/*}:query"
295
+ body: "*"
296
+ };
297
+ option (google.api.method_signature) = "name";
298
+ }
299
+
300
+ // Gets report metadata about a specific report task. After creating a report
301
+ // task, use this method to check its processing state or inspect its
302
+ // report definition.
303
+ rpc GetReportTask(GetReportTaskRequest) returns (ReportTask) {
304
+ option (google.api.http) = {
305
+ get: "/v1alpha/{name=properties/*/reportTasks/*}"
306
+ };
307
+ option (google.api.method_signature) = "name";
308
+ }
309
+
310
+ // Lists all report tasks for a property.
311
+ rpc ListReportTasks(ListReportTasksRequest)
312
+ returns (ListReportTasksResponse) {
313
+ option (google.api.http) = {
314
+ get: "/v1alpha/{parent=properties/*}/reportTasks"
315
+ };
316
+ option (google.api.method_signature) = "parent";
317
+ }
268
318
  }
269
319
 
270
320
  // A request to create a new recurring audience list.
@@ -898,3 +948,303 @@ message RunFunnelReportResponse {
898
948
  // response types in JSON.
899
949
  string kind = 4;
900
950
  }
951
+
952
+ // A specific report task configuration.
953
+ message ReportTask {
954
+ option (google.api.resource) = {
955
+ type: "analyticsdata.googleapis.com/ReportTask"
956
+ pattern: "properties/{property}/reportTasks/{report_task}"
957
+ plural: "reportTasks"
958
+ singular: "reportTask"
959
+ };
960
+
961
+ // The definition of how a report should be run.
962
+ message ReportDefinition {
963
+ // Optional. The dimensions requested and displayed.
964
+ repeated Dimension dimensions = 2 [(google.api.field_behavior) = OPTIONAL];
965
+
966
+ // Optional. The metrics requested and displayed.
967
+ repeated Metric metrics = 3 [(google.api.field_behavior) = OPTIONAL];
968
+
969
+ // Optional. Date ranges of data to read. If multiple date ranges are
970
+ // requested, each response row will contain a zero based date range index.
971
+ // If two date ranges overlap, the event data for the overlapping days is
972
+ // included in the response rows for both date ranges. In a cohort request,
973
+ // this `dateRanges` must be unspecified.
974
+ repeated DateRange date_ranges = 4 [(google.api.field_behavior) = OPTIONAL];
975
+
976
+ // Optional. Dimension filters let you ask for only specific dimension
977
+ // values in the report. To learn more, see [Fundamentals of Dimension
978
+ // Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
979
+ // for examples. Metrics cannot be used in this filter.
980
+ FilterExpression dimension_filter = 5
981
+ [(google.api.field_behavior) = OPTIONAL];
982
+
983
+ // Optional. The filter clause of metrics. Applied after aggregating the
984
+ // report's rows, similar to SQL having-clause. Dimensions cannot be used in
985
+ // this filter.
986
+ FilterExpression metric_filter = 6 [(google.api.field_behavior) = OPTIONAL];
987
+
988
+ // Optional. The row count of the start row from Google Analytics Storage.
989
+ // The first row is counted as row 0.
990
+ //
991
+ // When creating a report task, the `offset` and `limit` parameters define
992
+ // the subset of data rows from Google Analytics storage to be included in
993
+ // the generated report. For example, if there are a total of 300,000 rows
994
+ // in Google Analytics storage, the initial report task may have the
995
+ // first 10,000 rows with a limit of 10,000 and an offset of 0.
996
+ // Subsequently, another report task could cover the next 10,000 rows with a
997
+ // limit of 10,000 and an offset of 10,000.
998
+ int64 offset = 7 [(google.api.field_behavior) = OPTIONAL];
999
+
1000
+ // Optional. The number of rows to return in the Report. If unspecified,
1001
+ // 10,000 rows are returned. The API returns a maximum of 250,000 rows per
1002
+ // request, no matter how many you ask for. `limit` must be positive.
1003
+ //
1004
+ // The API can also return fewer rows than the requested `limit`, if there
1005
+ // aren't as many dimension values as the `limit`. For instance, there are
1006
+ // fewer than 300 possible values for the dimension `country`, so when
1007
+ // reporting on only `country`, you can't get more than 300 rows, even if
1008
+ // you set `limit` to a higher value.
1009
+ int64 limit = 8 [(google.api.field_behavior) = OPTIONAL];
1010
+
1011
+ // Optional. Aggregation of metrics. Aggregated metric values will be shown
1012
+ // in rows where the dimension_values are set to
1013
+ // "RESERVED_(MetricAggregation)".
1014
+ repeated MetricAggregation metric_aggregations = 9
1015
+ [(google.api.field_behavior) = OPTIONAL];
1016
+
1017
+ // Optional. Specifies how rows are ordered in the response.
1018
+ repeated OrderBy order_bys = 10 [(google.api.field_behavior) = OPTIONAL];
1019
+
1020
+ // Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY".
1021
+ // If the field is empty, the report uses the property's default currency.
1022
+ string currency_code = 11 [(google.api.field_behavior) = OPTIONAL];
1023
+
1024
+ // Optional. Cohort group associated with this request. If there is a cohort
1025
+ // group in the request the 'cohort' dimension must be present.
1026
+ CohortSpec cohort_spec = 12 [(google.api.field_behavior) = OPTIONAL];
1027
+
1028
+ // Optional. If false or unspecified, each row with all metrics equal to 0
1029
+ // will not be returned. If true, these rows will be returned if they are
1030
+ // not separately removed by a filter.
1031
+ //
1032
+ // Regardless of this `keep_empty_rows` setting, only data recorded by the
1033
+ // Google Analytics (GA4) property can be displayed in a report.
1034
+ //
1035
+ // For example if a property never logs a `purchase` event, then a query for
1036
+ // the `eventName` dimension and `eventCount` metric will not have a row
1037
+ // containing eventName: "purchase" and eventCount: 0.
1038
+ bool keep_empty_rows = 13 [(google.api.field_behavior) = OPTIONAL];
1039
+ }
1040
+
1041
+ // The report metadata for a specific report task.
1042
+ message ReportMetadata {
1043
+ // The processing state.
1044
+ enum State {
1045
+ // Unspecified state will never be used.
1046
+ STATE_UNSPECIFIED = 0;
1047
+
1048
+ // The report is currently creating and will be available in the
1049
+ // future. Creating occurs immediately after the CreateReport call.
1050
+ CREATING = 1;
1051
+
1052
+ // The report is fully created and ready for querying.
1053
+ ACTIVE = 2;
1054
+
1055
+ // The report failed to be created.
1056
+ FAILED = 3;
1057
+ }
1058
+
1059
+ // Output only. The current state for this report task.
1060
+ optional State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
1061
+
1062
+ // Output only. The time when `CreateReportTask` was called and the report
1063
+ // began the `CREATING` state.
1064
+ optional google.protobuf.Timestamp begin_creating_time = 2
1065
+ [(google.api.field_behavior) = OUTPUT_ONLY];
1066
+
1067
+ // Output only. The total quota tokens charged during creation of the
1068
+ // report. Because this token count is based on activity from the `CREATING`
1069
+ // state, this tokens charge will be fixed once a report task enters the
1070
+ // `ACTIVE` or `FAILED` state.
1071
+ int32 creation_quota_tokens_charged = 3
1072
+ [(google.api.field_behavior) = OUTPUT_ONLY];
1073
+
1074
+ // Output only. The total number of rows in the report result. This field
1075
+ // will be populated when the state is active. You can utilize
1076
+ // `task_row_count` for pagination within the confines of their existing
1077
+ // report.
1078
+ optional int32 task_row_count = 4
1079
+ [(google.api.field_behavior) = OUTPUT_ONLY];
1080
+
1081
+ // Output only. Error message is populated if a report task fails during
1082
+ // creation.
1083
+ optional string error_message = 5
1084
+ [(google.api.field_behavior) = OUTPUT_ONLY];
1085
+
1086
+ // Output only. The total number of rows in Google Analytics storage. If you
1087
+ // want to query additional data rows beyond the current report, they can
1088
+ // initiate a new report task based on the `total_row_count`.
1089
+ //
1090
+ // The `task_row_count` represents the number of rows specifically
1091
+ // pertaining to the current report, whereas `total_row_count` encompasses
1092
+ // the total count of rows across all data retrieved from Google
1093
+ // Analytics storage.
1094
+ //
1095
+ // For example, suppose the current report's `task_row_count` is 20,
1096
+ // displaying the data from the first 20 rows. Simultaneously, the
1097
+ // `total_row_count` is 30, indicating the presence of data for all 30 rows.
1098
+ // The `task_row_count` can be utilizated to paginate through the initial 20
1099
+ // rows. To expand the report and include data from all 30 rows, a new
1100
+ // report task can be created using the total_row_count to access the full
1101
+ // set of 30 rows' worth of data.
1102
+ optional int32 total_row_count = 6
1103
+ [(google.api.field_behavior) = OUTPUT_ONLY];
1104
+ }
1105
+
1106
+ // Output only. Identifier. The report task resource name assigned during
1107
+ // creation. Format: `properties/{property}/reportTasks/{report_task}`
1108
+ string name = 1 [
1109
+ (google.api.field_behavior) = IDENTIFIER,
1110
+ (google.api.field_behavior) = OUTPUT_ONLY
1111
+ ];
1112
+
1113
+ // Optional. A report definition to fetch report data, which describes the
1114
+ // structure of a report. It typically includes the fields that will be
1115
+ // included in the report and the criteria that will be used to filter the
1116
+ // data.
1117
+ ReportDefinition report_definition = 2
1118
+ [(google.api.field_behavior) = OPTIONAL];
1119
+
1120
+ // Output only. The report metadata for a specific report task, which provides
1121
+ // information about a report. It typically includes the following
1122
+ // information: the resource name of the report, the state of the report, the
1123
+ // timestamp the report was created, etc,
1124
+ ReportMetadata report_metadata = 3
1125
+ [(google.api.field_behavior) = OUTPUT_ONLY];
1126
+ }
1127
+
1128
+ // A request to create a report task.
1129
+ message CreateReportTaskRequest {
1130
+ // Required. The parent resource where this report task will be created.
1131
+ // Format: `properties/{propertyId}`
1132
+ string parent = 1 [
1133
+ (google.api.field_behavior) = REQUIRED,
1134
+ (google.api.resource_reference) = {
1135
+ child_type: "analyticsdata.googleapis.com/ReportTask"
1136
+ }
1137
+ ];
1138
+
1139
+ // Required. The report task configuration to create.
1140
+ ReportTask report_task = 2 [(google.api.field_behavior) = REQUIRED];
1141
+ }
1142
+
1143
+ // Represents the metadata of a long-running operation. Currently, this metadata
1144
+ // is blank.
1145
+ message ReportTaskMetadata {}
1146
+
1147
+ // A request to fetch the report content for a report task.
1148
+ message QueryReportTaskRequest {
1149
+ // Required. The report source name.
1150
+ // Format: `properties/{property}/reportTasks/{report}`
1151
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
1152
+
1153
+ // Optional. The row count of the start row in the report. The first row is
1154
+ // counted as row 0.
1155
+ //
1156
+ // When paging, the first request does not specify offset; or equivalently,
1157
+ // sets offset to 0; the first request returns the first `limit` of rows. The
1158
+ // second request sets offset to the `limit` of the first request; the second
1159
+ // request returns the second `limit` of rows.
1160
+ //
1161
+ // To learn more about this pagination parameter, see
1162
+ // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
1163
+ int64 offset = 2 [(google.api.field_behavior) = OPTIONAL];
1164
+
1165
+ // Optional. The number of rows to return from the report. If unspecified,
1166
+ // 10,000 rows are returned. The API returns a maximum of 250,000 rows per
1167
+ // request, no matter how many you ask for. `limit` must be positive.
1168
+ //
1169
+ // The API can also return fewer rows than the requested `limit`, if there
1170
+ // aren't as many dimension values as the `limit`. The number of rows
1171
+ // available to a QueryReportTaskRequest is further limited by the limit of
1172
+ // the associated ReportTask. A query can retrieve at most ReportTask.limit
1173
+ // rows. For example, if the ReportTask has a limit of 1,000, then a
1174
+ // QueryReportTask request with offset=900 and limit=500 will return at most
1175
+ // 100 rows.
1176
+ //
1177
+ // To learn more about this pagination parameter, see
1178
+ // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
1179
+ int64 limit = 3 [(google.api.field_behavior) = OPTIONAL];
1180
+ }
1181
+
1182
+ // The report content corresponding to a report task.
1183
+ message QueryReportTaskResponse {
1184
+ // Describes dimension columns. The number of DimensionHeaders and ordering of
1185
+ // DimensionHeaders matches the dimensions present in rows.
1186
+ repeated DimensionHeader dimension_headers = 1;
1187
+
1188
+ // Describes metric columns. The number of MetricHeaders and ordering of
1189
+ // MetricHeaders matches the metrics present in rows.
1190
+ repeated MetricHeader metric_headers = 2;
1191
+
1192
+ // Rows of dimension value combinations and metric values in the report.
1193
+ repeated Row rows = 3;
1194
+
1195
+ // If requested, the totaled values of metrics.
1196
+ repeated Row totals = 4;
1197
+
1198
+ // If requested, the maximum values of metrics.
1199
+ repeated Row maximums = 5;
1200
+
1201
+ // If requested, the minimum values of metrics.
1202
+ repeated Row minimums = 6;
1203
+
1204
+ // The total number of rows in the query result.
1205
+ int32 row_count = 7;
1206
+
1207
+ // Metadata for the report.
1208
+ ResponseMetaData metadata = 8;
1209
+ }
1210
+
1211
+ // A request to retrieve configuration metadata about a specific report task.
1212
+ message GetReportTaskRequest {
1213
+ // Required. The report task resource name.
1214
+ // Format: `properties/{property}/reportTasks/{report_task}`
1215
+ string name = 1 [
1216
+ (google.api.field_behavior) = REQUIRED,
1217
+ (google.api.resource_reference) = {
1218
+ type: "analyticsdata.googleapis.com/ReportTask"
1219
+ }
1220
+ ];
1221
+ }
1222
+
1223
+ // A request to list all report tasks for a property.
1224
+ message ListReportTasksRequest {
1225
+ // Required. All report tasks for this property will be listed in the
1226
+ // response. Format: `properties/{property}`
1227
+ string parent = 1 [
1228
+ (google.api.field_behavior) = REQUIRED,
1229
+ (google.api.resource_reference) = {
1230
+ child_type: "analyticsdata.googleapis.com/ReportTask"
1231
+ }
1232
+ ];
1233
+
1234
+ // Optional. The maximum number of report tasks to return.
1235
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
1236
+
1237
+ // Optional. A page token, received from a previous `ListReportTasks` call.
1238
+ // Provide this to retrieve the subsequent page.
1239
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
1240
+ }
1241
+
1242
+ // A list of all report tasks for a property.
1243
+ message ListReportTasksResponse {
1244
+ // Each report task for a property.
1245
+ repeated ReportTask report_tasks = 1;
1246
+
1247
+ // A token, which can be sent as `page_token` to retrieve the next page.
1248
+ // If this field is omitted, there are no subsequent pages.
1249
+ optional string next_page_token = 2;
1250
+ }