/
analytics_data_api.pb.go
2043 lines (1873 loc) · 98.1 KB
/
analytics_data_api.pb.go
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: google/analytics/data/v1alpha/analytics_data_api.proto
package data
import (
context "context"
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// The dimensions and metrics currently accepted in reporting methods.
type Metadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource name of this metadata.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// The dimensions descriptions.
Dimensions []*DimensionMetadata `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
// The metric descriptions.
Metrics []*MetricMetadata `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
}
func (x *Metadata) Reset() {
*x = Metadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Metadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Metadata) ProtoMessage() {}
func (x *Metadata) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Metadata.ProtoReflect.Descriptor instead.
func (*Metadata) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{0}
}
func (x *Metadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Metadata) GetDimensions() []*DimensionMetadata {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *Metadata) GetMetrics() []*MetricMetadata {
if x != nil {
return x.Metrics
}
return nil
}
// The request to generate a report.
type RunReportRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A property whose events are tracked. Within a batch request, this entity
// should either be unspecified or consistent with the batch-level entity.
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
// The dimensions requested and displayed.
Dimensions []*Dimension `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
// The metrics requested and displayed.
Metrics []*Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics,omitempty"`
// Date ranges of data to read. If multiple date ranges are requested, each
// response row will contain a zero based date range index. If two date
// ranges overlap, the event data for the overlapping days is included in the
// response rows for both date ranges. In a cohort request, this `dateRanges`
// must be unspecified.
DateRanges []*DateRange `protobuf:"bytes,4,rep,name=date_ranges,json=dateRanges,proto3" json:"date_ranges,omitempty"`
// The row count of the start row. The first row is counted as row 0.
Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
// The number of rows to return. If unspecified, 10 rows are returned. If
// -1, all rows are returned.
Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
// Aggregation of metrics. Aggregated metric values will be shown in rows
// where the dimension_values are set to "RESERVED_(MetricAggregation)".
MetricAggregations []MetricAggregation `protobuf:"varint,7,rep,packed,name=metric_aggregations,json=metricAggregations,proto3,enum=google.analytics.data.v1alpha.MetricAggregation" json:"metric_aggregations,omitempty"`
// The filter clause of dimensions. Dimensions must be requested to be used in
// this filter. Metrics cannot be used in this filter.
DimensionFilter *FilterExpression `protobuf:"bytes,8,opt,name=dimension_filter,json=dimensionFilter,proto3" json:"dimension_filter,omitempty"`
// The filter clause of metrics. Applied at post aggregation phase, similar to
// SQL having-clause. Metrics must be requested to be used in this filter.
// Dimensions cannot be used in this filter.
MetricFilter *FilterExpression `protobuf:"bytes,9,opt,name=metric_filter,json=metricFilter,proto3" json:"metric_filter,omitempty"`
// Specifies how rows are ordered in the response.
OrderBys []*OrderBy `protobuf:"bytes,10,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"`
// A currency code in ISO4217 format, such as "AED", "USD", "JPY".
// If the field is empty, the report uses the entity's default currency.
CurrencyCode string `protobuf:"bytes,11,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
// Cohort group associated with this request. If there is a cohort group
// in the request the 'cohort' dimension must be present.
CohortSpec *CohortSpec `protobuf:"bytes,12,opt,name=cohort_spec,json=cohortSpec,proto3" json:"cohort_spec,omitempty"`
// If false or unspecified, each row with all metrics equal to 0 will not be
// returned. If true, these rows will be returned if they are not separately
// removed by a filter.
KeepEmptyRows bool `protobuf:"varint,13,opt,name=keep_empty_rows,json=keepEmptyRows,proto3" json:"keep_empty_rows,omitempty"`
// Toggles whether to return the current state of this Analytics Property's
// quota. Quota is returned in [PropertyQuota](#PropertyQuota).
ReturnPropertyQuota bool `protobuf:"varint,14,opt,name=return_property_quota,json=returnPropertyQuota,proto3" json:"return_property_quota,omitempty"`
}
func (x *RunReportRequest) Reset() {
*x = RunReportRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RunReportRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RunReportRequest) ProtoMessage() {}
func (x *RunReportRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RunReportRequest.ProtoReflect.Descriptor instead.
func (*RunReportRequest) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{1}
}
func (x *RunReportRequest) GetEntity() *Entity {
if x != nil {
return x.Entity
}
return nil
}
func (x *RunReportRequest) GetDimensions() []*Dimension {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *RunReportRequest) GetMetrics() []*Metric {
if x != nil {
return x.Metrics
}
return nil
}
func (x *RunReportRequest) GetDateRanges() []*DateRange {
if x != nil {
return x.DateRanges
}
return nil
}
func (x *RunReportRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *RunReportRequest) GetLimit() int64 {
if x != nil {
return x.Limit
}
return 0
}
func (x *RunReportRequest) GetMetricAggregations() []MetricAggregation {
if x != nil {
return x.MetricAggregations
}
return nil
}
func (x *RunReportRequest) GetDimensionFilter() *FilterExpression {
if x != nil {
return x.DimensionFilter
}
return nil
}
func (x *RunReportRequest) GetMetricFilter() *FilterExpression {
if x != nil {
return x.MetricFilter
}
return nil
}
func (x *RunReportRequest) GetOrderBys() []*OrderBy {
if x != nil {
return x.OrderBys
}
return nil
}
func (x *RunReportRequest) GetCurrencyCode() string {
if x != nil {
return x.CurrencyCode
}
return ""
}
func (x *RunReportRequest) GetCohortSpec() *CohortSpec {
if x != nil {
return x.CohortSpec
}
return nil
}
func (x *RunReportRequest) GetKeepEmptyRows() bool {
if x != nil {
return x.KeepEmptyRows
}
return false
}
func (x *RunReportRequest) GetReturnPropertyQuota() bool {
if x != nil {
return x.ReturnPropertyQuota
}
return false
}
// The response report table corresponding to a request.
type RunReportResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Describes dimension columns. The number of DimensionHeaders and ordering of
// DimensionHeaders matches the dimensions present in rows.
DimensionHeaders []*DimensionHeader `protobuf:"bytes,11,rep,name=dimension_headers,json=dimensionHeaders,proto3" json:"dimension_headers,omitempty"`
// Describes metric columns. The number of MetricHeaders and ordering of
// MetricHeaders matches the metrics present in rows.
MetricHeaders []*MetricHeader `protobuf:"bytes,1,rep,name=metric_headers,json=metricHeaders,proto3" json:"metric_headers,omitempty"`
// Rows of dimension value combinations and metric values in the report.
Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
// If requested, the totaled values of metrics.
Totals []*Row `protobuf:"bytes,8,rep,name=totals,proto3" json:"totals,omitempty"`
// If requested, the maximum values of metrics.
Maximums []*Row `protobuf:"bytes,9,rep,name=maximums,proto3" json:"maximums,omitempty"`
// If requested, the minimum values of metrics.
Minimums []*Row `protobuf:"bytes,10,rep,name=minimums,proto3" json:"minimums,omitempty"`
// The total number of rows in the query result, regardless of the number of
// rows returned in the response. For example if a query returns 175 rows and
// includes limit = 50 in the API request, the response will contain row_count
// = 175 but only 50 rows.
RowCount int32 `protobuf:"varint,12,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
// Metadata for the report.
Metadata *ResponseMetaData `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// This Analytics Property's quota state including this request.
PropertyQuota *PropertyQuota `protobuf:"bytes,7,opt,name=property_quota,json=propertyQuota,proto3" json:"property_quota,omitempty"`
}
func (x *RunReportResponse) Reset() {
*x = RunReportResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RunReportResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RunReportResponse) ProtoMessage() {}
func (x *RunReportResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RunReportResponse.ProtoReflect.Descriptor instead.
func (*RunReportResponse) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{2}
}
func (x *RunReportResponse) GetDimensionHeaders() []*DimensionHeader {
if x != nil {
return x.DimensionHeaders
}
return nil
}
func (x *RunReportResponse) GetMetricHeaders() []*MetricHeader {
if x != nil {
return x.MetricHeaders
}
return nil
}
func (x *RunReportResponse) GetRows() []*Row {
if x != nil {
return x.Rows
}
return nil
}
func (x *RunReportResponse) GetTotals() []*Row {
if x != nil {
return x.Totals
}
return nil
}
func (x *RunReportResponse) GetMaximums() []*Row {
if x != nil {
return x.Maximums
}
return nil
}
func (x *RunReportResponse) GetMinimums() []*Row {
if x != nil {
return x.Minimums
}
return nil
}
func (x *RunReportResponse) GetRowCount() int32 {
if x != nil {
return x.RowCount
}
return 0
}
func (x *RunReportResponse) GetMetadata() *ResponseMetaData {
if x != nil {
return x.Metadata
}
return nil
}
func (x *RunReportResponse) GetPropertyQuota() *PropertyQuota {
if x != nil {
return x.PropertyQuota
}
return nil
}
// The request to generate a pivot report.
type RunPivotReportRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A property whose events are tracked. Within a batch request, this entity
// should either be unspecified or consistent with the batch-level entity.
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
// The dimensions requested. All defined dimensions must be used by one of the
// following: dimension_expression, dimension_filter, pivots, order_bys.
Dimensions []*Dimension `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
// The metrics requested, at least one metric needs to be specified. All
// defined metrics must be used by one of the following: metric_expression,
// metric_filter, order_bys.
Metrics []*Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics,omitempty"`
// The filter clause of dimensions. Dimensions must be requested to be used in
// this filter. Metrics cannot be used in this filter.
DimensionFilter *FilterExpression `protobuf:"bytes,4,opt,name=dimension_filter,json=dimensionFilter,proto3" json:"dimension_filter,omitempty"`
// The filter clause of metrics. Applied at post aggregation phase, similar to
// SQL having-clause. Metrics must be requested to be used in this filter.
// Dimensions cannot be used in this filter.
MetricFilter *FilterExpression `protobuf:"bytes,5,opt,name=metric_filter,json=metricFilter,proto3" json:"metric_filter,omitempty"`
// Describes the visual format of the report's dimensions in columns or rows.
// The union of the fieldNames (dimension names) in all pivots must be a
// subset of dimension names defined in Dimensions. No two pivots can share a
// dimension. A dimension is only visible if it appears in a pivot.
Pivots []*Pivot `protobuf:"bytes,6,rep,name=pivots,proto3" json:"pivots,omitempty"`
// The date range to retrieve event data for the report. If multiple date
// ranges are specified, event data from each date range is used in the
// report. A special dimension with field name "dateRange" can be included in
// a Pivot's field names; if included, the report compares between date
// ranges. In a cohort request, this `dateRanges` must be unspecified.
DateRanges []*DateRange `protobuf:"bytes,7,rep,name=date_ranges,json=dateRanges,proto3" json:"date_ranges,omitempty"`
// A currency code in ISO4217 format, such as "AED", "USD", "JPY".
// If the field is empty, the report uses the entity's default currency.
CurrencyCode string `protobuf:"bytes,8,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
// Cohort group associated with this request. If there is a cohort group
// in the request the 'cohort' dimension must be present.
CohortSpec *CohortSpec `protobuf:"bytes,9,opt,name=cohort_spec,json=cohortSpec,proto3" json:"cohort_spec,omitempty"`
// If false or unspecified, each row with all metrics equal to 0 will not be
// returned. If true, these rows will be returned if they are not separately
// removed by a filter.
KeepEmptyRows bool `protobuf:"varint,10,opt,name=keep_empty_rows,json=keepEmptyRows,proto3" json:"keep_empty_rows,omitempty"`
// Toggles whether to return the current state of this Analytics Property's
// quota. Quota is returned in [PropertyQuota](#PropertyQuota).
ReturnPropertyQuota bool `protobuf:"varint,11,opt,name=return_property_quota,json=returnPropertyQuota,proto3" json:"return_property_quota,omitempty"`
}
func (x *RunPivotReportRequest) Reset() {
*x = RunPivotReportRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RunPivotReportRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RunPivotReportRequest) ProtoMessage() {}
func (x *RunPivotReportRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RunPivotReportRequest.ProtoReflect.Descriptor instead.
func (*RunPivotReportRequest) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{3}
}
func (x *RunPivotReportRequest) GetEntity() *Entity {
if x != nil {
return x.Entity
}
return nil
}
func (x *RunPivotReportRequest) GetDimensions() []*Dimension {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *RunPivotReportRequest) GetMetrics() []*Metric {
if x != nil {
return x.Metrics
}
return nil
}
func (x *RunPivotReportRequest) GetDimensionFilter() *FilterExpression {
if x != nil {
return x.DimensionFilter
}
return nil
}
func (x *RunPivotReportRequest) GetMetricFilter() *FilterExpression {
if x != nil {
return x.MetricFilter
}
return nil
}
func (x *RunPivotReportRequest) GetPivots() []*Pivot {
if x != nil {
return x.Pivots
}
return nil
}
func (x *RunPivotReportRequest) GetDateRanges() []*DateRange {
if x != nil {
return x.DateRanges
}
return nil
}
func (x *RunPivotReportRequest) GetCurrencyCode() string {
if x != nil {
return x.CurrencyCode
}
return ""
}
func (x *RunPivotReportRequest) GetCohortSpec() *CohortSpec {
if x != nil {
return x.CohortSpec
}
return nil
}
func (x *RunPivotReportRequest) GetKeepEmptyRows() bool {
if x != nil {
return x.KeepEmptyRows
}
return false
}
func (x *RunPivotReportRequest) GetReturnPropertyQuota() bool {
if x != nil {
return x.ReturnPropertyQuota
}
return false
}
// The response pivot report table corresponding to a pivot request.
type RunPivotReportResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Summarizes the columns and rows created by a pivot. Each pivot in the
// request produces one header in the response. If we have a request like
// this:
//
// "pivots": [{
// "fieldNames": ["country",
// "city"]
// },
// {
// "fieldNames": "eventName"
// }]
//
// We will have the following `pivotHeaders` in the response:
//
// "pivotHeaders" : [{
// "dimensionHeaders": [{
// "dimensionValues": [
// { "value": "United Kingdom" },
// { "value": "London" }
// ]
// },
// {
// "dimensionValues": [
// { "value": "Japan" },
// { "value": "Osaka" }
// ]
// }]
// },
// {
// "dimensionHeaders": [{
// "dimensionValues": [{ "value": "session_start" }]
// },
// {
// "dimensionValues": [{ "value": "scroll" }]
// }]
// }]
PivotHeaders []*PivotHeader `protobuf:"bytes,1,rep,name=pivot_headers,json=pivotHeaders,proto3" json:"pivot_headers,omitempty"`
// Describes dimension columns. The number of DimensionHeaders and ordering of
// DimensionHeaders matches the dimensions present in rows.
DimensionHeaders []*DimensionHeader `protobuf:"bytes,7,rep,name=dimension_headers,json=dimensionHeaders,proto3" json:"dimension_headers,omitempty"`
// Describes metric columns. The number of MetricHeaders and ordering of
// MetricHeaders matches the metrics present in rows.
MetricHeaders []*MetricHeader `protobuf:"bytes,2,rep,name=metric_headers,json=metricHeaders,proto3" json:"metric_headers,omitempty"`
// Rows of dimension value combinations and metric values in the report.
Rows []*Row `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
// Aggregation of metric values. Can be totals, minimums, or maximums. The
// returned aggregations are controlled by the metric_aggregations in the
// pivot. The type of aggregation returned in each row is shown by the
// dimension_values which are set to "RESERVED_<MetricAggregation>".
Aggregates []*Row `protobuf:"bytes,4,rep,name=aggregates,proto3" json:"aggregates,omitempty"`
// Metadata for the report.
Metadata *ResponseMetaData `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
// This Analytics Property's quota state including this request.
PropertyQuota *PropertyQuota `protobuf:"bytes,6,opt,name=property_quota,json=propertyQuota,proto3" json:"property_quota,omitempty"`
}
func (x *RunPivotReportResponse) Reset() {
*x = RunPivotReportResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RunPivotReportResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RunPivotReportResponse) ProtoMessage() {}
func (x *RunPivotReportResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RunPivotReportResponse.ProtoReflect.Descriptor instead.
func (*RunPivotReportResponse) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{4}
}
func (x *RunPivotReportResponse) GetPivotHeaders() []*PivotHeader {
if x != nil {
return x.PivotHeaders
}
return nil
}
func (x *RunPivotReportResponse) GetDimensionHeaders() []*DimensionHeader {
if x != nil {
return x.DimensionHeaders
}
return nil
}
func (x *RunPivotReportResponse) GetMetricHeaders() []*MetricHeader {
if x != nil {
return x.MetricHeaders
}
return nil
}
func (x *RunPivotReportResponse) GetRows() []*Row {
if x != nil {
return x.Rows
}
return nil
}
func (x *RunPivotReportResponse) GetAggregates() []*Row {
if x != nil {
return x.Aggregates
}
return nil
}
func (x *RunPivotReportResponse) GetMetadata() *ResponseMetaData {
if x != nil {
return x.Metadata
}
return nil
}
func (x *RunPivotReportResponse) GetPropertyQuota() *PropertyQuota {
if x != nil {
return x.PropertyQuota
}
return nil
}
// The batch request containing multiple report requests.
type BatchRunReportsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A property whose events are tracked. This entity must be specified for the
// batch. The entity within RunReportRequest may either be unspecified or
// consistent with this entity.
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
// Individual requests. Each request has a separate report response. Each
// batch request is allowed up to 5 requests.
Requests []*RunReportRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
}
func (x *BatchRunReportsRequest) Reset() {
*x = BatchRunReportsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchRunReportsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchRunReportsRequest) ProtoMessage() {}
func (x *BatchRunReportsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchRunReportsRequest.ProtoReflect.Descriptor instead.
func (*BatchRunReportsRequest) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{5}
}
func (x *BatchRunReportsRequest) GetEntity() *Entity {
if x != nil {
return x.Entity
}
return nil
}
func (x *BatchRunReportsRequest) GetRequests() []*RunReportRequest {
if x != nil {
return x.Requests
}
return nil
}
// The batch response containing multiple reports.
type BatchRunReportsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Individual responses. Each response has a separate report request.
Reports []*RunReportResponse `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"`
}
func (x *BatchRunReportsResponse) Reset() {
*x = BatchRunReportsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchRunReportsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchRunReportsResponse) ProtoMessage() {}
func (x *BatchRunReportsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchRunReportsResponse.ProtoReflect.Descriptor instead.
func (*BatchRunReportsResponse) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{6}
}
func (x *BatchRunReportsResponse) GetReports() []*RunReportResponse {
if x != nil {
return x.Reports
}
return nil
}
// The batch request containing multiple pivot report requests.
type BatchRunPivotReportsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A property whose events are tracked. This entity must be specified for the
// batch. The entity within RunPivotReportRequest may either be unspecified or
// consistent with this entity.
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
// Individual requests. Each request has a separate pivot report response.
// Each batch request is allowed up to 5 requests.
Requests []*RunPivotReportRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
}
func (x *BatchRunPivotReportsRequest) Reset() {
*x = BatchRunPivotReportsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchRunPivotReportsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchRunPivotReportsRequest) ProtoMessage() {}
func (x *BatchRunPivotReportsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchRunPivotReportsRequest.ProtoReflect.Descriptor instead.
func (*BatchRunPivotReportsRequest) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{7}
}
func (x *BatchRunPivotReportsRequest) GetEntity() *Entity {
if x != nil {
return x.Entity
}
return nil
}
func (x *BatchRunPivotReportsRequest) GetRequests() []*RunPivotReportRequest {
if x != nil {
return x.Requests
}
return nil
}
// The batch response containing multiple pivot reports.
type BatchRunPivotReportsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Individual responses. Each response has a separate pivot report request.
PivotReports []*RunPivotReportResponse `protobuf:"bytes,1,rep,name=pivot_reports,json=pivotReports,proto3" json:"pivot_reports,omitempty"`
}
func (x *BatchRunPivotReportsResponse) Reset() {
*x = BatchRunPivotReportsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchRunPivotReportsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchRunPivotReportsResponse) ProtoMessage() {}
func (x *BatchRunPivotReportsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchRunPivotReportsResponse.ProtoReflect.Descriptor instead.
func (*BatchRunPivotReportsResponse) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{8}
}
func (x *BatchRunPivotReportsResponse) GetPivotReports() []*RunPivotReportResponse {
if x != nil {
return x.PivotReports
}
return nil
}
// Request for the universal dimension and metric metadata.
type GetUniversalMetadataRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetUniversalMetadataRequest) Reset() {
*x = GetUniversalMetadataRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUniversalMetadataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUniversalMetadataRequest) ProtoMessage() {}
func (x *GetUniversalMetadataRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUniversalMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetUniversalMetadataRequest) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_analytics_data_api_proto_rawDescGZIP(), []int{9}
}
// The dimensions and metrics currently accepted in reporting methods.
type UniversalMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The dimensions descriptions.
Dimensions []*DimensionMetadata `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
// The metric descriptions.
Metrics []*MetricMetadata `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
}
func (x *UniversalMetadata) Reset() {
*x = UniversalMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_analytics_data_api_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}