/
data.pb.go
4139 lines (3672 loc) · 155 KB
/
data.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/data.proto
package data
import (
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
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
// Represents aggregation of metrics.
type MetricAggregation int32
const (
// Unspecified operator.
MetricAggregation_METRIC_AGGREGATION_UNSPECIFIED MetricAggregation = 0
// SUM operator.
MetricAggregation_TOTAL MetricAggregation = 1
// Minimum operator.
MetricAggregation_MINIMUM MetricAggregation = 5
// Maximum operator.
MetricAggregation_MAXIMUM MetricAggregation = 6
// Count operator.
MetricAggregation_COUNT MetricAggregation = 4
)
// Enum value maps for MetricAggregation.
var (
MetricAggregation_name = map[int32]string{
0: "METRIC_AGGREGATION_UNSPECIFIED",
1: "TOTAL",
5: "MINIMUM",
6: "MAXIMUM",
4: "COUNT",
}
MetricAggregation_value = map[string]int32{
"METRIC_AGGREGATION_UNSPECIFIED": 0,
"TOTAL": 1,
"MINIMUM": 5,
"MAXIMUM": 6,
"COUNT": 4,
}
)
func (x MetricAggregation) Enum() *MetricAggregation {
p := new(MetricAggregation)
*p = x
return p
}
func (x MetricAggregation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MetricAggregation) Descriptor() protoreflect.EnumDescriptor {
return file_google_analytics_data_v1alpha_data_proto_enumTypes[0].Descriptor()
}
func (MetricAggregation) Type() protoreflect.EnumType {
return &file_google_analytics_data_v1alpha_data_proto_enumTypes[0]
}
func (x MetricAggregation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MetricAggregation.Descriptor instead.
func (MetricAggregation) EnumDescriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{0}
}
// A metric's value type.
type MetricType int32
const (
// Unspecified type.
MetricType_METRIC_TYPE_UNSPECIFIED MetricType = 0
// Integer type.
MetricType_TYPE_INTEGER MetricType = 1
// Floating point type.
MetricType_TYPE_FLOAT MetricType = 2
// A duration of seconds; a special floating point type.
MetricType_TYPE_SECONDS MetricType = 4
// A duration in milliseconds; a special floating point type.
MetricType_TYPE_MILLISECONDS MetricType = 5
// A duration in minutes; a special floating point type.
MetricType_TYPE_MINUTES MetricType = 6
// A duration in hours; a special floating point type.
MetricType_TYPE_HOURS MetricType = 7
// A custom metric of standard type; a special floating point type.
MetricType_TYPE_STANDARD MetricType = 8
// An amount of money; a special floating point type.
MetricType_TYPE_CURRENCY MetricType = 9
// A length in feet; a special floating point type.
MetricType_TYPE_FEET MetricType = 10
// A length in miles; a special floating point type.
MetricType_TYPE_MILES MetricType = 11
// A length in meters; a special floating point type.
MetricType_TYPE_METERS MetricType = 12
// A length in kilometers; a special floating point type.
MetricType_TYPE_KILOMETERS MetricType = 13
)
// Enum value maps for MetricType.
var (
MetricType_name = map[int32]string{
0: "METRIC_TYPE_UNSPECIFIED",
1: "TYPE_INTEGER",
2: "TYPE_FLOAT",
4: "TYPE_SECONDS",
5: "TYPE_MILLISECONDS",
6: "TYPE_MINUTES",
7: "TYPE_HOURS",
8: "TYPE_STANDARD",
9: "TYPE_CURRENCY",
10: "TYPE_FEET",
11: "TYPE_MILES",
12: "TYPE_METERS",
13: "TYPE_KILOMETERS",
}
MetricType_value = map[string]int32{
"METRIC_TYPE_UNSPECIFIED": 0,
"TYPE_INTEGER": 1,
"TYPE_FLOAT": 2,
"TYPE_SECONDS": 4,
"TYPE_MILLISECONDS": 5,
"TYPE_MINUTES": 6,
"TYPE_HOURS": 7,
"TYPE_STANDARD": 8,
"TYPE_CURRENCY": 9,
"TYPE_FEET": 10,
"TYPE_MILES": 11,
"TYPE_METERS": 12,
"TYPE_KILOMETERS": 13,
}
)
func (x MetricType) Enum() *MetricType {
p := new(MetricType)
*p = x
return p
}
func (x MetricType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MetricType) Descriptor() protoreflect.EnumDescriptor {
return file_google_analytics_data_v1alpha_data_proto_enumTypes[1].Descriptor()
}
func (MetricType) Type() protoreflect.EnumType {
return &file_google_analytics_data_v1alpha_data_proto_enumTypes[1]
}
func (x MetricType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MetricType.Descriptor instead.
func (MetricType) EnumDescriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{1}
}
// The match type of a string filter
type Filter_StringFilter_MatchType int32
const (
// Unspecified
Filter_StringFilter_MATCH_TYPE_UNSPECIFIED Filter_StringFilter_MatchType = 0
// Exact match of the string value.
Filter_StringFilter_EXACT Filter_StringFilter_MatchType = 1
// Begins with the string value.
Filter_StringFilter_BEGINS_WITH Filter_StringFilter_MatchType = 2
// Ends with the string value.
Filter_StringFilter_ENDS_WITH Filter_StringFilter_MatchType = 3
// Contains the string value.
Filter_StringFilter_CONTAINS Filter_StringFilter_MatchType = 4
// Full regular expression match with the string value.
Filter_StringFilter_FULL_REGEXP Filter_StringFilter_MatchType = 5
// Partial regular expression match with the string value.
Filter_StringFilter_PARTIAL_REGEXP Filter_StringFilter_MatchType = 6
)
// Enum value maps for Filter_StringFilter_MatchType.
var (
Filter_StringFilter_MatchType_name = map[int32]string{
0: "MATCH_TYPE_UNSPECIFIED",
1: "EXACT",
2: "BEGINS_WITH",
3: "ENDS_WITH",
4: "CONTAINS",
5: "FULL_REGEXP",
6: "PARTIAL_REGEXP",
}
Filter_StringFilter_MatchType_value = map[string]int32{
"MATCH_TYPE_UNSPECIFIED": 0,
"EXACT": 1,
"BEGINS_WITH": 2,
"ENDS_WITH": 3,
"CONTAINS": 4,
"FULL_REGEXP": 5,
"PARTIAL_REGEXP": 6,
}
)
func (x Filter_StringFilter_MatchType) Enum() *Filter_StringFilter_MatchType {
p := new(Filter_StringFilter_MatchType)
*p = x
return p
}
func (x Filter_StringFilter_MatchType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Filter_StringFilter_MatchType) Descriptor() protoreflect.EnumDescriptor {
return file_google_analytics_data_v1alpha_data_proto_enumTypes[2].Descriptor()
}
func (Filter_StringFilter_MatchType) Type() protoreflect.EnumType {
return &file_google_analytics_data_v1alpha_data_proto_enumTypes[2]
}
func (x Filter_StringFilter_MatchType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Filter_StringFilter_MatchType.Descriptor instead.
func (Filter_StringFilter_MatchType) EnumDescriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{7, 0, 0}
}
// The operation applied to a numeric filter
type Filter_NumericFilter_Operation int32
const (
// Unspecified.
Filter_NumericFilter_OPERATION_UNSPECIFIED Filter_NumericFilter_Operation = 0
// Equal
Filter_NumericFilter_EQUAL Filter_NumericFilter_Operation = 1
// Less than
Filter_NumericFilter_LESS_THAN Filter_NumericFilter_Operation = 2
// Less than or equal
Filter_NumericFilter_LESS_THAN_OR_EQUAL Filter_NumericFilter_Operation = 3
// Greater than
Filter_NumericFilter_GREATER_THAN Filter_NumericFilter_Operation = 4
// Greater than or equal
Filter_NumericFilter_GREATER_THAN_OR_EQUAL Filter_NumericFilter_Operation = 5
)
// Enum value maps for Filter_NumericFilter_Operation.
var (
Filter_NumericFilter_Operation_name = map[int32]string{
0: "OPERATION_UNSPECIFIED",
1: "EQUAL",
2: "LESS_THAN",
3: "LESS_THAN_OR_EQUAL",
4: "GREATER_THAN",
5: "GREATER_THAN_OR_EQUAL",
}
Filter_NumericFilter_Operation_value = map[string]int32{
"OPERATION_UNSPECIFIED": 0,
"EQUAL": 1,
"LESS_THAN": 2,
"LESS_THAN_OR_EQUAL": 3,
"GREATER_THAN": 4,
"GREATER_THAN_OR_EQUAL": 5,
}
)
func (x Filter_NumericFilter_Operation) Enum() *Filter_NumericFilter_Operation {
p := new(Filter_NumericFilter_Operation)
*p = x
return p
}
func (x Filter_NumericFilter_Operation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Filter_NumericFilter_Operation) Descriptor() protoreflect.EnumDescriptor {
return file_google_analytics_data_v1alpha_data_proto_enumTypes[3].Descriptor()
}
func (Filter_NumericFilter_Operation) Type() protoreflect.EnumType {
return &file_google_analytics_data_v1alpha_data_proto_enumTypes[3]
}
func (x Filter_NumericFilter_Operation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Filter_NumericFilter_Operation.Descriptor instead.
func (Filter_NumericFilter_Operation) EnumDescriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{7, 2, 0}
}
// Rule to order the string dimension values by.
type OrderBy_DimensionOrderBy_OrderType int32
const (
// Unspecified.
OrderBy_DimensionOrderBy_ORDER_TYPE_UNSPECIFIED OrderBy_DimensionOrderBy_OrderType = 0
// Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
// "b" < "z".
OrderBy_DimensionOrderBy_ALPHANUMERIC OrderBy_DimensionOrderBy_OrderType = 1
// Case insensitive alphanumeric sort by lower case Unicode code point.
// For example, "2" < "A" < "b" < "X" < "z".
OrderBy_DimensionOrderBy_CASE_INSENSITIVE_ALPHANUMERIC OrderBy_DimensionOrderBy_OrderType = 2
// Dimension values are converted to numbers before sorting. For example
// in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
// "25". Non-numeric dimension values all have equal ordering value below
// all numeric values.
OrderBy_DimensionOrderBy_NUMERIC OrderBy_DimensionOrderBy_OrderType = 3
)
// Enum value maps for OrderBy_DimensionOrderBy_OrderType.
var (
OrderBy_DimensionOrderBy_OrderType_name = map[int32]string{
0: "ORDER_TYPE_UNSPECIFIED",
1: "ALPHANUMERIC",
2: "CASE_INSENSITIVE_ALPHANUMERIC",
3: "NUMERIC",
}
OrderBy_DimensionOrderBy_OrderType_value = map[string]int32{
"ORDER_TYPE_UNSPECIFIED": 0,
"ALPHANUMERIC": 1,
"CASE_INSENSITIVE_ALPHANUMERIC": 2,
"NUMERIC": 3,
}
)
func (x OrderBy_DimensionOrderBy_OrderType) Enum() *OrderBy_DimensionOrderBy_OrderType {
p := new(OrderBy_DimensionOrderBy_OrderType)
*p = x
return p
}
func (x OrderBy_DimensionOrderBy_OrderType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OrderBy_DimensionOrderBy_OrderType) Descriptor() protoreflect.EnumDescriptor {
return file_google_analytics_data_v1alpha_data_proto_enumTypes[4].Descriptor()
}
func (OrderBy_DimensionOrderBy_OrderType) Type() protoreflect.EnumType {
return &file_google_analytics_data_v1alpha_data_proto_enumTypes[4]
}
func (x OrderBy_DimensionOrderBy_OrderType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OrderBy_DimensionOrderBy_OrderType.Descriptor instead.
func (OrderBy_DimensionOrderBy_OrderType) EnumDescriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{8, 1, 0}
}
// Reporting granularity for the cohorts.
type CohortsRange_Granularity int32
const (
// Unspecified.
CohortsRange_GRANULARITY_UNSPECIFIED CohortsRange_Granularity = 0
// Daily
CohortsRange_DAILY CohortsRange_Granularity = 1
// Weekly
CohortsRange_WEEKLY CohortsRange_Granularity = 2
// Monthly
CohortsRange_MONTHLY CohortsRange_Granularity = 3
)
// Enum value maps for CohortsRange_Granularity.
var (
CohortsRange_Granularity_name = map[int32]string{
0: "GRANULARITY_UNSPECIFIED",
1: "DAILY",
2: "WEEKLY",
3: "MONTHLY",
}
CohortsRange_Granularity_value = map[string]int32{
"GRANULARITY_UNSPECIFIED": 0,
"DAILY": 1,
"WEEKLY": 2,
"MONTHLY": 3,
}
)
func (x CohortsRange_Granularity) Enum() *CohortsRange_Granularity {
p := new(CohortsRange_Granularity)
*p = x
return p
}
func (x CohortsRange_Granularity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CohortsRange_Granularity) Descriptor() protoreflect.EnumDescriptor {
return file_google_analytics_data_v1alpha_data_proto_enumTypes[5].Descriptor()
}
func (CohortsRange_Granularity) Type() protoreflect.EnumType {
return &file_google_analytics_data_v1alpha_data_proto_enumTypes[5]
}
func (x CohortsRange_Granularity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CohortsRange_Granularity.Descriptor instead.
func (CohortsRange_Granularity) EnumDescriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{13, 0}
}
// A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
// are allowed up to 4 date ranges, and the union of the ranges can cover up to
// 1 year.
type DateRange struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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.
StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
// 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.
EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
// 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.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DateRange) Reset() {
*x = DateRange{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_data_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DateRange) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DateRange) ProtoMessage() {}
func (x *DateRange) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_data_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 DateRange.ProtoReflect.Descriptor instead.
func (*DateRange) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{0}
}
func (x *DateRange) GetStartDate() string {
if x != nil {
return x.StartDate
}
return ""
}
func (x *DateRange) GetEndDate() string {
if x != nil {
return x.EndDate
}
return ""
}
func (x *DateRange) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// The unique identifier of the property whose events are tracked.
type Entity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A Google Analytics 4 (GA4) property id.
PropertyId string `protobuf:"bytes,1,opt,name=property_id,json=propertyId,proto3" json:"property_id,omitempty"`
}
func (x *Entity) Reset() {
*x = Entity{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_data_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Entity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Entity) ProtoMessage() {}
func (x *Entity) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_data_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 Entity.ProtoReflect.Descriptor instead.
func (*Entity) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{1}
}
func (x *Entity) GetPropertyId() string {
if x != nil {
return x.PropertyId
}
return ""
}
// Dimensions are attributes of your data. For example, the dimension City
// indicates the city, for example, "Paris" or "New York", from which an event
// originates. Requests are allowed up to 8 dimensions.
type Dimension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the dimension.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// One dimension can be the result of an expression of multiple dimensions.
// For example, dimension "country, city": concatenate(country, ", ", city).
DimensionExpression *DimensionExpression `protobuf:"bytes,2,opt,name=dimension_expression,json=dimensionExpression,proto3" json:"dimension_expression,omitempty"`
}
func (x *Dimension) Reset() {
*x = Dimension{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_data_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Dimension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Dimension) ProtoMessage() {}
func (x *Dimension) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_data_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 Dimension.ProtoReflect.Descriptor instead.
func (*Dimension) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{2}
}
func (x *Dimension) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Dimension) GetDimensionExpression() *DimensionExpression {
if x != nil {
return x.DimensionExpression
}
return nil
}
// Used to express a dimension which is the result of a formula of multiple
// dimensions. Example usages:
// 1) lower_case(dimension)
// 2) concatenate(dimension1, symbol, dimension2).
type DimensionExpression struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Specify one type of dimension expression for `DimensionExpression`.
//
// Types that are assignable to OneExpression:
// *DimensionExpression_LowerCase
// *DimensionExpression_UpperCase
// *DimensionExpression_Concatenate
OneExpression isDimensionExpression_OneExpression `protobuf_oneof:"one_expression"`
}
func (x *DimensionExpression) Reset() {
*x = DimensionExpression{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_data_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DimensionExpression) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DimensionExpression) ProtoMessage() {}
func (x *DimensionExpression) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_data_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 DimensionExpression.ProtoReflect.Descriptor instead.
func (*DimensionExpression) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{3}
}
func (m *DimensionExpression) GetOneExpression() isDimensionExpression_OneExpression {
if m != nil {
return m.OneExpression
}
return nil
}
func (x *DimensionExpression) GetLowerCase() *DimensionExpression_CaseExpression {
if x, ok := x.GetOneExpression().(*DimensionExpression_LowerCase); ok {
return x.LowerCase
}
return nil
}
func (x *DimensionExpression) GetUpperCase() *DimensionExpression_CaseExpression {
if x, ok := x.GetOneExpression().(*DimensionExpression_UpperCase); ok {
return x.UpperCase
}
return nil
}
func (x *DimensionExpression) GetConcatenate() *DimensionExpression_ConcatenateExpression {
if x, ok := x.GetOneExpression().(*DimensionExpression_Concatenate); ok {
return x.Concatenate
}
return nil
}
type isDimensionExpression_OneExpression interface {
isDimensionExpression_OneExpression()
}
type DimensionExpression_LowerCase struct {
// Used to convert a dimension value to lower case.
LowerCase *DimensionExpression_CaseExpression `protobuf:"bytes,4,opt,name=lower_case,json=lowerCase,proto3,oneof"`
}
type DimensionExpression_UpperCase struct {
// Used to convert a dimension value to upper case.
UpperCase *DimensionExpression_CaseExpression `protobuf:"bytes,5,opt,name=upper_case,json=upperCase,proto3,oneof"`
}
type DimensionExpression_Concatenate struct {
// Used to combine dimension values to a single dimension.
// For example, dimension "country, city": concatenate(country, ", ", city).
Concatenate *DimensionExpression_ConcatenateExpression `protobuf:"bytes,6,opt,name=concatenate,proto3,oneof"`
}
func (*DimensionExpression_LowerCase) isDimensionExpression_OneExpression() {}
func (*DimensionExpression_UpperCase) isDimensionExpression_OneExpression() {}
func (*DimensionExpression_Concatenate) isDimensionExpression_OneExpression() {}
// The quantitative measurements of a report. For example, the metric eventCount
// is the total number of events. Requests are allowed up to 10 metrics.
type Metric struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the metric.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A mathematical expression for derived metrics. For example, the metric
// Event count per user is eventCount/totalUsers.
Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
// Indicates if a metric is invisible.
// If a metric is invisible, the metric is not in the response, but can be
// used in filters, order_bys or being referred to in a metric expression.
Invisible bool `protobuf:"varint,3,opt,name=invisible,proto3" json:"invisible,omitempty"`
}
func (x *Metric) Reset() {
*x = Metric{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_data_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Metric) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Metric) ProtoMessage() {}
func (x *Metric) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_data_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 Metric.ProtoReflect.Descriptor instead.
func (*Metric) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{4}
}
func (x *Metric) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Metric) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
func (x *Metric) GetInvisible() bool {
if x != nil {
return x.Invisible
}
return false
}
// To express dimension or metric filters.
// The fields in the same FilterExpression need to be either all dimensions or
// all metrics.
type FilterExpression struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Specify one type of filter expression for `FilterExpression`.
//
// Types that are assignable to Expr:
// *FilterExpression_AndGroup
// *FilterExpression_OrGroup
// *FilterExpression_NotExpression
// *FilterExpression_Filter
Expr isFilterExpression_Expr `protobuf_oneof:"expr"`
}
func (x *FilterExpression) Reset() {
*x = FilterExpression{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_data_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FilterExpression) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FilterExpression) ProtoMessage() {}
func (x *FilterExpression) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_data_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 FilterExpression.ProtoReflect.Descriptor instead.
func (*FilterExpression) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{5}
}
func (m *FilterExpression) GetExpr() isFilterExpression_Expr {
if m != nil {
return m.Expr
}
return nil
}
func (x *FilterExpression) GetAndGroup() *FilterExpressionList {
if x, ok := x.GetExpr().(*FilterExpression_AndGroup); ok {
return x.AndGroup
}
return nil
}
func (x *FilterExpression) GetOrGroup() *FilterExpressionList {
if x, ok := x.GetExpr().(*FilterExpression_OrGroup); ok {
return x.OrGroup
}
return nil
}
func (x *FilterExpression) GetNotExpression() *FilterExpression {
if x, ok := x.GetExpr().(*FilterExpression_NotExpression); ok {
return x.NotExpression
}
return nil
}
func (x *FilterExpression) GetFilter() *Filter {
if x, ok := x.GetExpr().(*FilterExpression_Filter); ok {
return x.Filter
}
return nil
}
type isFilterExpression_Expr interface {
isFilterExpression_Expr()
}
type FilterExpression_AndGroup struct {
// The FilterExpressions in and_group have an AND relationship.
AndGroup *FilterExpressionList `protobuf:"bytes,1,opt,name=and_group,json=andGroup,proto3,oneof"`
}
type FilterExpression_OrGroup struct {
// The FilterExpressions in or_group have an OR relationship.
OrGroup *FilterExpressionList `protobuf:"bytes,2,opt,name=or_group,json=orGroup,proto3,oneof"`
}
type FilterExpression_NotExpression struct {
// The FilterExpression is NOT of not_expression.
NotExpression *FilterExpression `protobuf:"bytes,3,opt,name=not_expression,json=notExpression,proto3,oneof"`
}
type FilterExpression_Filter struct {
// A primitive filter.
// All fields in filter in same FilterExpression needs to be either all
// dimensions or metrics.
Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3,oneof"`
}
func (*FilterExpression_AndGroup) isFilterExpression_Expr() {}
func (*FilterExpression_OrGroup) isFilterExpression_Expr() {}
func (*FilterExpression_NotExpression) isFilterExpression_Expr() {}
func (*FilterExpression_Filter) isFilterExpression_Expr() {}
// A list of filter expressions.
type FilterExpressionList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A list of filter expressions.
Expressions []*FilterExpression `protobuf:"bytes,1,rep,name=expressions,proto3" json:"expressions,omitempty"`
}
func (x *FilterExpressionList) Reset() {
*x = FilterExpressionList{}
if protoimpl.UnsafeEnabled {
mi := &file_google_analytics_data_v1alpha_data_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FilterExpressionList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FilterExpressionList) ProtoMessage() {}
func (x *FilterExpressionList) ProtoReflect() protoreflect.Message {
mi := &file_google_analytics_data_v1alpha_data_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 FilterExpressionList.ProtoReflect.Descriptor instead.
func (*FilterExpressionList) Descriptor() ([]byte, []int) {
return file_google_analytics_data_v1alpha_data_proto_rawDescGZIP(), []int{6}
}
func (x *FilterExpressionList) GetExpressions() []*FilterExpression {
if x != nil {
return x.Expressions
}
return nil
}
// An expression to filter dimension or metric values.
type Filter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The dimension name or metric name. Must be a name defined in dimensions
// or metrics.
FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
// Specify one type of filter for `Filter`.
//
// Types that are assignable to OneFilter:
// *Filter_NullFilter
// *Filter_StringFilter_
// *Filter_InListFilter_
// *Filter_NumericFilter_
// *Filter_BetweenFilter_
OneFilter isFilter_OneFilter `protobuf_oneof:"one_filter"`
}