google-analytics-data-v1beta 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/analytics/data/v1beta/analytics_data_api.proto
3
4
 
@@ -9,119 +10,32 @@ require 'google/api/client_pb'
9
10
  require 'google/api/field_behavior_pb'
10
11
  require 'google/api/resource_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/analytics/data/v1beta/analytics_data_api.proto", :syntax => :proto3) do
14
- add_message "google.analytics.data.v1beta.CheckCompatibilityRequest" do
15
- optional :property, :string, 1
16
- repeated :dimensions, :message, 2, "google.analytics.data.v1beta.Dimension"
17
- repeated :metrics, :message, 3, "google.analytics.data.v1beta.Metric"
18
- optional :dimension_filter, :message, 4, "google.analytics.data.v1beta.FilterExpression"
19
- optional :metric_filter, :message, 5, "google.analytics.data.v1beta.FilterExpression"
20
- optional :compatibility_filter, :enum, 6, "google.analytics.data.v1beta.Compatibility"
21
- end
22
- add_message "google.analytics.data.v1beta.CheckCompatibilityResponse" do
23
- repeated :dimension_compatibilities, :message, 1, "google.analytics.data.v1beta.DimensionCompatibility"
24
- repeated :metric_compatibilities, :message, 2, "google.analytics.data.v1beta.MetricCompatibility"
25
- end
26
- add_message "google.analytics.data.v1beta.Metadata" do
27
- optional :name, :string, 3
28
- repeated :dimensions, :message, 1, "google.analytics.data.v1beta.DimensionMetadata"
29
- repeated :metrics, :message, 2, "google.analytics.data.v1beta.MetricMetadata"
30
- end
31
- add_message "google.analytics.data.v1beta.RunReportRequest" do
32
- optional :property, :string, 1
33
- repeated :dimensions, :message, 2, "google.analytics.data.v1beta.Dimension"
34
- repeated :metrics, :message, 3, "google.analytics.data.v1beta.Metric"
35
- repeated :date_ranges, :message, 4, "google.analytics.data.v1beta.DateRange"
36
- optional :dimension_filter, :message, 5, "google.analytics.data.v1beta.FilterExpression"
37
- optional :metric_filter, :message, 6, "google.analytics.data.v1beta.FilterExpression"
38
- optional :offset, :int64, 7
39
- optional :limit, :int64, 8
40
- repeated :metric_aggregations, :enum, 9, "google.analytics.data.v1beta.MetricAggregation"
41
- repeated :order_bys, :message, 10, "google.analytics.data.v1beta.OrderBy"
42
- optional :currency_code, :string, 11
43
- optional :cohort_spec, :message, 12, "google.analytics.data.v1beta.CohortSpec"
44
- optional :keep_empty_rows, :bool, 13
45
- optional :return_property_quota, :bool, 14
46
- end
47
- add_message "google.analytics.data.v1beta.RunReportResponse" do
48
- repeated :dimension_headers, :message, 1, "google.analytics.data.v1beta.DimensionHeader"
49
- repeated :metric_headers, :message, 2, "google.analytics.data.v1beta.MetricHeader"
50
- repeated :rows, :message, 3, "google.analytics.data.v1beta.Row"
51
- repeated :totals, :message, 4, "google.analytics.data.v1beta.Row"
52
- repeated :maximums, :message, 5, "google.analytics.data.v1beta.Row"
53
- repeated :minimums, :message, 6, "google.analytics.data.v1beta.Row"
54
- optional :row_count, :int32, 7
55
- optional :metadata, :message, 8, "google.analytics.data.v1beta.ResponseMetaData"
56
- optional :property_quota, :message, 9, "google.analytics.data.v1beta.PropertyQuota"
57
- optional :kind, :string, 10
58
- end
59
- add_message "google.analytics.data.v1beta.RunPivotReportRequest" do
60
- optional :property, :string, 1
61
- repeated :dimensions, :message, 2, "google.analytics.data.v1beta.Dimension"
62
- repeated :metrics, :message, 3, "google.analytics.data.v1beta.Metric"
63
- repeated :date_ranges, :message, 4, "google.analytics.data.v1beta.DateRange"
64
- repeated :pivots, :message, 5, "google.analytics.data.v1beta.Pivot"
65
- optional :dimension_filter, :message, 6, "google.analytics.data.v1beta.FilterExpression"
66
- optional :metric_filter, :message, 7, "google.analytics.data.v1beta.FilterExpression"
67
- optional :currency_code, :string, 8
68
- optional :cohort_spec, :message, 9, "google.analytics.data.v1beta.CohortSpec"
69
- optional :keep_empty_rows, :bool, 10
70
- optional :return_property_quota, :bool, 11
71
- end
72
- add_message "google.analytics.data.v1beta.RunPivotReportResponse" do
73
- repeated :pivot_headers, :message, 1, "google.analytics.data.v1beta.PivotHeader"
74
- repeated :dimension_headers, :message, 2, "google.analytics.data.v1beta.DimensionHeader"
75
- repeated :metric_headers, :message, 3, "google.analytics.data.v1beta.MetricHeader"
76
- repeated :rows, :message, 4, "google.analytics.data.v1beta.Row"
77
- repeated :aggregates, :message, 5, "google.analytics.data.v1beta.Row"
78
- optional :metadata, :message, 6, "google.analytics.data.v1beta.ResponseMetaData"
79
- optional :property_quota, :message, 7, "google.analytics.data.v1beta.PropertyQuota"
80
- optional :kind, :string, 8
81
- end
82
- add_message "google.analytics.data.v1beta.BatchRunReportsRequest" do
83
- optional :property, :string, 1
84
- repeated :requests, :message, 2, "google.analytics.data.v1beta.RunReportRequest"
85
- end
86
- add_message "google.analytics.data.v1beta.BatchRunReportsResponse" do
87
- repeated :reports, :message, 1, "google.analytics.data.v1beta.RunReportResponse"
88
- optional :kind, :string, 2
89
- end
90
- add_message "google.analytics.data.v1beta.BatchRunPivotReportsRequest" do
91
- optional :property, :string, 1
92
- repeated :requests, :message, 2, "google.analytics.data.v1beta.RunPivotReportRequest"
93
- end
94
- add_message "google.analytics.data.v1beta.BatchRunPivotReportsResponse" do
95
- repeated :pivot_reports, :message, 1, "google.analytics.data.v1beta.RunPivotReportResponse"
96
- optional :kind, :string, 2
97
- end
98
- add_message "google.analytics.data.v1beta.GetMetadataRequest" do
99
- optional :name, :string, 1
100
- end
101
- add_message "google.analytics.data.v1beta.RunRealtimeReportRequest" do
102
- optional :property, :string, 1
103
- repeated :dimensions, :message, 2, "google.analytics.data.v1beta.Dimension"
104
- repeated :metrics, :message, 3, "google.analytics.data.v1beta.Metric"
105
- optional :dimension_filter, :message, 4, "google.analytics.data.v1beta.FilterExpression"
106
- optional :metric_filter, :message, 5, "google.analytics.data.v1beta.FilterExpression"
107
- optional :limit, :int64, 6
108
- repeated :metric_aggregations, :enum, 7, "google.analytics.data.v1beta.MetricAggregation"
109
- repeated :order_bys, :message, 8, "google.analytics.data.v1beta.OrderBy"
110
- optional :return_property_quota, :bool, 9
111
- repeated :minute_ranges, :message, 10, "google.analytics.data.v1beta.MinuteRange"
112
- end
113
- add_message "google.analytics.data.v1beta.RunRealtimeReportResponse" do
114
- repeated :dimension_headers, :message, 1, "google.analytics.data.v1beta.DimensionHeader"
115
- repeated :metric_headers, :message, 2, "google.analytics.data.v1beta.MetricHeader"
116
- repeated :rows, :message, 3, "google.analytics.data.v1beta.Row"
117
- repeated :totals, :message, 4, "google.analytics.data.v1beta.Row"
118
- repeated :maximums, :message, 5, "google.analytics.data.v1beta.Row"
119
- repeated :minimums, :message, 6, "google.analytics.data.v1beta.Row"
120
- optional :row_count, :int32, 7
121
- optional :property_quota, :message, 8, "google.analytics.data.v1beta.PropertyQuota"
122
- optional :kind, :string, 9
13
+
14
+ descriptor_data = "\n5google/analytics/data/v1beta/analytics_data_api.proto\x12\x1cgoogle.analytics.data.v1beta\x1a\'google/analytics/data/v1beta/data.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xfd\x02\n\x19\x43heckCompatibilityRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12;\n\ndimensions\x18\x02 \x03(\x0b\x32\'.google.analytics.data.v1beta.Dimension\x12\x35\n\x07metrics\x18\x03 \x03(\x0b\x32$.google.analytics.data.v1beta.Metric\x12H\n\x10\x64imension_filter\x18\x04 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12\x45\n\rmetric_filter\x18\x05 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12I\n\x14\x63ompatibility_filter\x18\x06 \x01(\x0e\x32+.google.analytics.data.v1beta.Compatibility\"\xc8\x01\n\x1a\x43heckCompatibilityResponse\x12W\n\x19\x64imension_compatibilities\x18\x01 \x03(\x0b\x32\x34.google.analytics.data.v1beta.DimensionCompatibility\x12Q\n\x16metric_compatibilities\x18\x02 \x03(\x0b\x32\x31.google.analytics.data.v1beta.MetricCompatibility\"\xe8\x01\n\x08Metadata\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x43\n\ndimensions\x18\x01 \x03(\x0b\x32/.google.analytics.data.v1beta.DimensionMetadata\x12=\n\x07metrics\x18\x02 \x03(\x0b\x32,.google.analytics.data.v1beta.MetricMetadata:J\xea\x41G\n%analyticsdata.googleapis.com/Metadata\x12\x1eproperties/{property}/metadata\"\x9c\x05\n\x10RunReportRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12;\n\ndimensions\x18\x02 \x03(\x0b\x32\'.google.analytics.data.v1beta.Dimension\x12\x35\n\x07metrics\x18\x03 \x03(\x0b\x32$.google.analytics.data.v1beta.Metric\x12<\n\x0b\x64\x61te_ranges\x18\x04 \x03(\x0b\x32\'.google.analytics.data.v1beta.DateRange\x12H\n\x10\x64imension_filter\x18\x05 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12\x45\n\rmetric_filter\x18\x06 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12\x0e\n\x06offset\x18\x07 \x01(\x03\x12\r\n\x05limit\x18\x08 \x01(\x03\x12L\n\x13metric_aggregations\x18\t \x03(\x0e\x32/.google.analytics.data.v1beta.MetricAggregation\x12\x38\n\torder_bys\x18\n \x03(\x0b\x32%.google.analytics.data.v1beta.OrderBy\x12\x15\n\rcurrency_code\x18\x0b \x01(\t\x12=\n\x0b\x63ohort_spec\x18\x0c \x01(\x0b\x32(.google.analytics.data.v1beta.CohortSpec\x12\x17\n\x0fkeep_empty_rows\x18\r \x01(\x08\x12\x1d\n\x15return_property_quota\x18\x0e \x01(\x08\"\x97\x04\n\x11RunReportResponse\x12H\n\x11\x64imension_headers\x18\x01 \x03(\x0b\x32-.google.analytics.data.v1beta.DimensionHeader\x12\x42\n\x0emetric_headers\x18\x02 \x03(\x0b\x32*.google.analytics.data.v1beta.MetricHeader\x12/\n\x04rows\x18\x03 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x31\n\x06totals\x18\x04 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x33\n\x08maximums\x18\x05 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x33\n\x08minimums\x18\x06 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x11\n\trow_count\x18\x07 \x01(\x05\x12@\n\x08metadata\x18\x08 \x01(\x0b\x32..google.analytics.data.v1beta.ResponseMetaData\x12\x43\n\x0eproperty_quota\x18\t \x01(\x0b\x32+.google.analytics.data.v1beta.PropertyQuota\x12\x0c\n\x04kind\x18\n \x01(\t\"\xaf\x04\n\x15RunPivotReportRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12;\n\ndimensions\x18\x02 \x03(\x0b\x32\'.google.analytics.data.v1beta.Dimension\x12\x35\n\x07metrics\x18\x03 \x03(\x0b\x32$.google.analytics.data.v1beta.Metric\x12<\n\x0b\x64\x61te_ranges\x18\x04 \x03(\x0b\x32\'.google.analytics.data.v1beta.DateRange\x12\x33\n\x06pivots\x18\x05 \x03(\x0b\x32#.google.analytics.data.v1beta.Pivot\x12H\n\x10\x64imension_filter\x18\x06 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12\x45\n\rmetric_filter\x18\x07 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12\x15\n\rcurrency_code\x18\x08 \x01(\t\x12=\n\x0b\x63ohort_spec\x18\t \x01(\x0b\x32(.google.analytics.data.v1beta.CohortSpec\x12\x17\n\x0fkeep_empty_rows\x18\n \x01(\x08\x12\x1d\n\x15return_property_quota\x18\x0b \x01(\x08\"\xe5\x03\n\x16RunPivotReportResponse\x12@\n\rpivot_headers\x18\x01 \x03(\x0b\x32).google.analytics.data.v1beta.PivotHeader\x12H\n\x11\x64imension_headers\x18\x02 \x03(\x0b\x32-.google.analytics.data.v1beta.DimensionHeader\x12\x42\n\x0emetric_headers\x18\x03 \x03(\x0b\x32*.google.analytics.data.v1beta.MetricHeader\x12/\n\x04rows\x18\x04 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x35\n\naggregates\x18\x05 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12@\n\x08metadata\x18\x06 \x01(\x0b\x32..google.analytics.data.v1beta.ResponseMetaData\x12\x43\n\x0eproperty_quota\x18\x07 \x01(\x0b\x32+.google.analytics.data.v1beta.PropertyQuota\x12\x0c\n\x04kind\x18\x08 \x01(\t\"l\n\x16\x42\x61tchRunReportsRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12@\n\x08requests\x18\x02 \x03(\x0b\x32..google.analytics.data.v1beta.RunReportRequest\"i\n\x17\x42\x61tchRunReportsResponse\x12@\n\x07reports\x18\x01 \x03(\x0b\x32/.google.analytics.data.v1beta.RunReportResponse\x12\x0c\n\x04kind\x18\x02 \x01(\t\"v\n\x1b\x42\x61tchRunPivotReportsRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12\x45\n\x08requests\x18\x02 \x03(\x0b\x32\x33.google.analytics.data.v1beta.RunPivotReportRequest\"y\n\x1c\x42\x61tchRunPivotReportsResponse\x12K\n\rpivot_reports\x18\x01 \x03(\x0b\x32\x34.google.analytics.data.v1beta.RunPivotReportResponse\x12\x0c\n\x04kind\x18\x02 \x01(\t\"Q\n\x12GetMetadataRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsdata.googleapis.com/Metadata\"\xa9\x04\n\x18RunRealtimeReportRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12;\n\ndimensions\x18\x02 \x03(\x0b\x32\'.google.analytics.data.v1beta.Dimension\x12\x35\n\x07metrics\x18\x03 \x03(\x0b\x32$.google.analytics.data.v1beta.Metric\x12H\n\x10\x64imension_filter\x18\x04 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12\x45\n\rmetric_filter\x18\x05 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpression\x12\r\n\x05limit\x18\x06 \x01(\x03\x12L\n\x13metric_aggregations\x18\x07 \x03(\x0e\x32/.google.analytics.data.v1beta.MetricAggregation\x12\x38\n\torder_bys\x18\x08 \x03(\x0b\x32%.google.analytics.data.v1beta.OrderBy\x12\x1d\n\x15return_property_quota\x18\t \x01(\x08\x12@\n\rminute_ranges\x18\n \x03(\x0b\x32).google.analytics.data.v1beta.MinuteRange\"\xdd\x03\n\x19RunRealtimeReportResponse\x12H\n\x11\x64imension_headers\x18\x01 \x03(\x0b\x32-.google.analytics.data.v1beta.DimensionHeader\x12\x42\n\x0emetric_headers\x18\x02 \x03(\x0b\x32*.google.analytics.data.v1beta.MetricHeader\x12/\n\x04rows\x18\x03 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x31\n\x06totals\x18\x04 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x33\n\x08maximums\x18\x05 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x33\n\x08minimums\x18\x06 \x03(\x0b\x32!.google.analytics.data.v1beta.Row\x12\x11\n\trow_count\x18\x07 \x01(\x05\x12\x43\n\x0eproperty_quota\x18\x08 \x01(\x0b\x32+.google.analytics.data.v1beta.PropertyQuota\x12\x0c\n\x04kind\x18\t \x01(\t2\xac\x0b\n\x11\x42\x65taAnalyticsData\x12\xa2\x01\n\tRunReport\x12..google.analytics.data.v1beta.RunReportRequest\x1a/.google.analytics.data.v1beta.RunReportResponse\"4\x82\xd3\xe4\x93\x02.\")/v1beta/{property=properties/*}:runReport:\x01*\x12\xb6\x01\n\x0eRunPivotReport\x12\x33.google.analytics.data.v1beta.RunPivotReportRequest\x1a\x34.google.analytics.data.v1beta.RunPivotReportResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v1beta/{property=properties/*}:runPivotReport:\x01*\x12\xba\x01\n\x0f\x42\x61tchRunReports\x12\x34.google.analytics.data.v1beta.BatchRunReportsRequest\x1a\x35.google.analytics.data.v1beta.BatchRunReportsResponse\":\x82\xd3\xe4\x93\x02\x34\"//v1beta/{property=properties/*}:batchRunReports:\x01*\x12\xce\x01\n\x14\x42\x61tchRunPivotReports\x12\x39.google.analytics.data.v1beta.BatchRunPivotReportsRequest\x1a:.google.analytics.data.v1beta.BatchRunPivotReportsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1beta/{property=properties/*}:batchRunPivotReports:\x01*\x12\x9c\x01\n\x0bGetMetadata\x12\x30.google.analytics.data.v1beta.GetMetadataRequest\x1a&.google.analytics.data.v1beta.Metadata\"3\x82\xd3\xe4\x93\x02&\x12$/v1beta/{name=properties/*/metadata}\xda\x41\x04name\x12\xc2\x01\n\x11RunRealtimeReport\x12\x36.google.analytics.data.v1beta.RunRealtimeReportRequest\x1a\x37.google.analytics.data.v1beta.RunRealtimeReportResponse\"<\x82\xd3\xe4\x93\x02\x36\"1/v1beta/{property=properties/*}:runRealtimeReport:\x01*\x12\xc6\x01\n\x12\x43heckCompatibility\x12\x37.google.analytics.data.v1beta.CheckCompatibilityRequest\x1a\x38.google.analytics.data.v1beta.CheckCompatibilityResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1beta/{property=properties/*}:checkCompatibility:\x01*\x1a~\xca\x41\x1c\x61nalyticsdata.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/analytics,https://www.googleapis.com/auth/analytics.readonlyB}\n com.google.analytics.data.v1betaB\x15\x41nalyticsDataApiProtoP\x01Z@google.golang.org/genproto/googleapis/analytics/data/v1beta;datab\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.analytics.data.v1beta.Dimension", "google/analytics/data/v1beta/data.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
123
35
  end
124
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
125
39
  end
126
40
 
127
41
  module Google
@@ -1,283 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/analytics/data/v1beta/data.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/analytics/data/v1beta/data.proto", :syntax => :proto3) do
8
- add_message "google.analytics.data.v1beta.DateRange" do
9
- optional :start_date, :string, 1
10
- optional :end_date, :string, 2
11
- optional :name, :string, 3
12
- end
13
- add_message "google.analytics.data.v1beta.MinuteRange" do
14
- proto3_optional :start_minutes_ago, :int32, 1
15
- proto3_optional :end_minutes_ago, :int32, 2
16
- optional :name, :string, 3
17
- end
18
- add_message "google.analytics.data.v1beta.Dimension" do
19
- optional :name, :string, 1
20
- optional :dimension_expression, :message, 2, "google.analytics.data.v1beta.DimensionExpression"
21
- end
22
- add_message "google.analytics.data.v1beta.DimensionExpression" do
23
- oneof :one_expression do
24
- optional :lower_case, :message, 4, "google.analytics.data.v1beta.DimensionExpression.CaseExpression"
25
- optional :upper_case, :message, 5, "google.analytics.data.v1beta.DimensionExpression.CaseExpression"
26
- optional :concatenate, :message, 6, "google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression"
27
- end
28
- end
29
- add_message "google.analytics.data.v1beta.DimensionExpression.CaseExpression" do
30
- optional :dimension_name, :string, 1
31
- end
32
- add_message "google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression" do
33
- repeated :dimension_names, :string, 1
34
- optional :delimiter, :string, 2
35
- end
36
- add_message "google.analytics.data.v1beta.Metric" do
37
- optional :name, :string, 1
38
- optional :expression, :string, 2
39
- optional :invisible, :bool, 3
40
- end
41
- add_message "google.analytics.data.v1beta.FilterExpression" do
42
- oneof :expr do
43
- optional :and_group, :message, 1, "google.analytics.data.v1beta.FilterExpressionList"
44
- optional :or_group, :message, 2, "google.analytics.data.v1beta.FilterExpressionList"
45
- optional :not_expression, :message, 3, "google.analytics.data.v1beta.FilterExpression"
46
- optional :filter, :message, 4, "google.analytics.data.v1beta.Filter"
47
- end
48
- end
49
- add_message "google.analytics.data.v1beta.FilterExpressionList" do
50
- repeated :expressions, :message, 1, "google.analytics.data.v1beta.FilterExpression"
51
- end
52
- add_message "google.analytics.data.v1beta.Filter" do
53
- optional :field_name, :string, 1
54
- oneof :one_filter do
55
- optional :string_filter, :message, 3, "google.analytics.data.v1beta.Filter.StringFilter"
56
- optional :in_list_filter, :message, 4, "google.analytics.data.v1beta.Filter.InListFilter"
57
- optional :numeric_filter, :message, 5, "google.analytics.data.v1beta.Filter.NumericFilter"
58
- optional :between_filter, :message, 6, "google.analytics.data.v1beta.Filter.BetweenFilter"
59
- end
60
- end
61
- add_message "google.analytics.data.v1beta.Filter.StringFilter" do
62
- optional :match_type, :enum, 1, "google.analytics.data.v1beta.Filter.StringFilter.MatchType"
63
- optional :value, :string, 2
64
- optional :case_sensitive, :bool, 3
65
- end
66
- add_enum "google.analytics.data.v1beta.Filter.StringFilter.MatchType" do
67
- value :MATCH_TYPE_UNSPECIFIED, 0
68
- value :EXACT, 1
69
- value :BEGINS_WITH, 2
70
- value :ENDS_WITH, 3
71
- value :CONTAINS, 4
72
- value :FULL_REGEXP, 5
73
- value :PARTIAL_REGEXP, 6
74
- end
75
- add_message "google.analytics.data.v1beta.Filter.InListFilter" do
76
- repeated :values, :string, 1
77
- optional :case_sensitive, :bool, 2
78
- end
79
- add_message "google.analytics.data.v1beta.Filter.NumericFilter" do
80
- optional :operation, :enum, 1, "google.analytics.data.v1beta.Filter.NumericFilter.Operation"
81
- optional :value, :message, 2, "google.analytics.data.v1beta.NumericValue"
82
- end
83
- add_enum "google.analytics.data.v1beta.Filter.NumericFilter.Operation" do
84
- value :OPERATION_UNSPECIFIED, 0
85
- value :EQUAL, 1
86
- value :LESS_THAN, 2
87
- value :LESS_THAN_OR_EQUAL, 3
88
- value :GREATER_THAN, 4
89
- value :GREATER_THAN_OR_EQUAL, 5
90
- end
91
- add_message "google.analytics.data.v1beta.Filter.BetweenFilter" do
92
- optional :from_value, :message, 1, "google.analytics.data.v1beta.NumericValue"
93
- optional :to_value, :message, 2, "google.analytics.data.v1beta.NumericValue"
94
- end
95
- add_message "google.analytics.data.v1beta.OrderBy" do
96
- optional :desc, :bool, 4
97
- oneof :one_order_by do
98
- optional :metric, :message, 1, "google.analytics.data.v1beta.OrderBy.MetricOrderBy"
99
- optional :dimension, :message, 2, "google.analytics.data.v1beta.OrderBy.DimensionOrderBy"
100
- optional :pivot, :message, 3, "google.analytics.data.v1beta.OrderBy.PivotOrderBy"
101
- end
102
- end
103
- add_message "google.analytics.data.v1beta.OrderBy.MetricOrderBy" do
104
- optional :metric_name, :string, 1
105
- end
106
- add_message "google.analytics.data.v1beta.OrderBy.DimensionOrderBy" do
107
- optional :dimension_name, :string, 1
108
- optional :order_type, :enum, 2, "google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType"
109
- end
110
- add_enum "google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType" do
111
- value :ORDER_TYPE_UNSPECIFIED, 0
112
- value :ALPHANUMERIC, 1
113
- value :CASE_INSENSITIVE_ALPHANUMERIC, 2
114
- value :NUMERIC, 3
115
- end
116
- add_message "google.analytics.data.v1beta.OrderBy.PivotOrderBy" do
117
- optional :metric_name, :string, 1
118
- repeated :pivot_selections, :message, 2, "google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection"
119
- end
120
- add_message "google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection" do
121
- optional :dimension_name, :string, 1
122
- optional :dimension_value, :string, 2
123
- end
124
- add_message "google.analytics.data.v1beta.Pivot" do
125
- repeated :field_names, :string, 1
126
- repeated :order_bys, :message, 2, "google.analytics.data.v1beta.OrderBy"
127
- optional :offset, :int64, 3
128
- optional :limit, :int64, 4
129
- repeated :metric_aggregations, :enum, 5, "google.analytics.data.v1beta.MetricAggregation"
130
- end
131
- add_message "google.analytics.data.v1beta.CohortSpec" do
132
- repeated :cohorts, :message, 1, "google.analytics.data.v1beta.Cohort"
133
- optional :cohorts_range, :message, 2, "google.analytics.data.v1beta.CohortsRange"
134
- optional :cohort_report_settings, :message, 3, "google.analytics.data.v1beta.CohortReportSettings"
135
- end
136
- add_message "google.analytics.data.v1beta.Cohort" do
137
- optional :name, :string, 1
138
- optional :dimension, :string, 2
139
- optional :date_range, :message, 3, "google.analytics.data.v1beta.DateRange"
140
- end
141
- add_message "google.analytics.data.v1beta.CohortsRange" do
142
- optional :granularity, :enum, 1, "google.analytics.data.v1beta.CohortsRange.Granularity"
143
- optional :start_offset, :int32, 2
144
- optional :end_offset, :int32, 3
145
- end
146
- add_enum "google.analytics.data.v1beta.CohortsRange.Granularity" do
147
- value :GRANULARITY_UNSPECIFIED, 0
148
- value :DAILY, 1
149
- value :WEEKLY, 2
150
- value :MONTHLY, 3
151
- end
152
- add_message "google.analytics.data.v1beta.CohortReportSettings" do
153
- optional :accumulate, :bool, 1
154
- end
155
- add_message "google.analytics.data.v1beta.ResponseMetaData" do
156
- optional :data_loss_from_other_row, :bool, 3
157
- proto3_optional :schema_restriction_response, :message, 4, "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse"
158
- proto3_optional :currency_code, :string, 5
159
- proto3_optional :time_zone, :string, 6
160
- proto3_optional :empty_reason, :string, 7
161
- proto3_optional :subject_to_thresholding, :bool, 8
162
- end
163
- add_message "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse" do
164
- repeated :active_metric_restrictions, :message, 1, "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction"
165
- end
166
- add_message "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction" do
167
- proto3_optional :metric_name, :string, 1
168
- repeated :restricted_metric_types, :enum, 2, "google.analytics.data.v1beta.RestrictedMetricType"
169
- end
170
- add_message "google.analytics.data.v1beta.DimensionHeader" do
171
- optional :name, :string, 1
172
- end
173
- add_message "google.analytics.data.v1beta.MetricHeader" do
174
- optional :name, :string, 1
175
- optional :type, :enum, 2, "google.analytics.data.v1beta.MetricType"
176
- end
177
- add_message "google.analytics.data.v1beta.PivotHeader" do
178
- repeated :pivot_dimension_headers, :message, 1, "google.analytics.data.v1beta.PivotDimensionHeader"
179
- optional :row_count, :int32, 2
180
- end
181
- add_message "google.analytics.data.v1beta.PivotDimensionHeader" do
182
- repeated :dimension_values, :message, 1, "google.analytics.data.v1beta.DimensionValue"
183
- end
184
- add_message "google.analytics.data.v1beta.Row" do
185
- repeated :dimension_values, :message, 1, "google.analytics.data.v1beta.DimensionValue"
186
- repeated :metric_values, :message, 2, "google.analytics.data.v1beta.MetricValue"
187
- end
188
- add_message "google.analytics.data.v1beta.DimensionValue" do
189
- oneof :one_value do
190
- optional :value, :string, 1
191
- end
192
- end
193
- add_message "google.analytics.data.v1beta.MetricValue" do
194
- oneof :one_value do
195
- optional :value, :string, 4
196
- end
197
- end
198
- add_message "google.analytics.data.v1beta.NumericValue" do
199
- oneof :one_value do
200
- optional :int64_value, :int64, 1
201
- optional :double_value, :double, 2
202
- end
203
- end
204
- add_message "google.analytics.data.v1beta.PropertyQuota" do
205
- optional :tokens_per_day, :message, 1, "google.analytics.data.v1beta.QuotaStatus"
206
- optional :tokens_per_hour, :message, 2, "google.analytics.data.v1beta.QuotaStatus"
207
- optional :concurrent_requests, :message, 3, "google.analytics.data.v1beta.QuotaStatus"
208
- optional :server_errors_per_project_per_hour, :message, 4, "google.analytics.data.v1beta.QuotaStatus"
209
- optional :potentially_thresholded_requests_per_hour, :message, 5, "google.analytics.data.v1beta.QuotaStatus"
210
- optional :tokens_per_project_per_hour, :message, 6, "google.analytics.data.v1beta.QuotaStatus"
211
- end
212
- add_message "google.analytics.data.v1beta.QuotaStatus" do
213
- optional :consumed, :int32, 1
214
- optional :remaining, :int32, 2
215
- end
216
- add_message "google.analytics.data.v1beta.DimensionMetadata" do
217
- optional :api_name, :string, 1
218
- optional :ui_name, :string, 2
219
- optional :description, :string, 3
220
- repeated :deprecated_api_names, :string, 4
221
- optional :custom_definition, :bool, 5
222
- optional :category, :string, 7
223
- end
224
- add_message "google.analytics.data.v1beta.MetricMetadata" do
225
- optional :api_name, :string, 1
226
- optional :ui_name, :string, 2
227
- optional :description, :string, 3
228
- repeated :deprecated_api_names, :string, 4
229
- optional :type, :enum, 5, "google.analytics.data.v1beta.MetricType"
230
- optional :expression, :string, 6
231
- optional :custom_definition, :bool, 7
232
- repeated :blocked_reasons, :enum, 8, "google.analytics.data.v1beta.MetricMetadata.BlockedReason"
233
- optional :category, :string, 10
234
- end
235
- add_enum "google.analytics.data.v1beta.MetricMetadata.BlockedReason" do
236
- value :BLOCKED_REASON_UNSPECIFIED, 0
237
- value :NO_REVENUE_METRICS, 1
238
- value :NO_COST_METRICS, 2
239
- end
240
- add_message "google.analytics.data.v1beta.DimensionCompatibility" do
241
- proto3_optional :dimension_metadata, :message, 1, "google.analytics.data.v1beta.DimensionMetadata"
242
- proto3_optional :compatibility, :enum, 2, "google.analytics.data.v1beta.Compatibility"
243
- end
244
- add_message "google.analytics.data.v1beta.MetricCompatibility" do
245
- proto3_optional :metric_metadata, :message, 1, "google.analytics.data.v1beta.MetricMetadata"
246
- proto3_optional :compatibility, :enum, 2, "google.analytics.data.v1beta.Compatibility"
247
- end
248
- add_enum "google.analytics.data.v1beta.MetricAggregation" do
249
- value :METRIC_AGGREGATION_UNSPECIFIED, 0
250
- value :TOTAL, 1
251
- value :MINIMUM, 5
252
- value :MAXIMUM, 6
253
- value :COUNT, 4
254
- end
255
- add_enum "google.analytics.data.v1beta.MetricType" do
256
- value :METRIC_TYPE_UNSPECIFIED, 0
257
- value :TYPE_INTEGER, 1
258
- value :TYPE_FLOAT, 2
259
- value :TYPE_SECONDS, 4
260
- value :TYPE_MILLISECONDS, 5
261
- value :TYPE_MINUTES, 6
262
- value :TYPE_HOURS, 7
263
- value :TYPE_STANDARD, 8
264
- value :TYPE_CURRENCY, 9
265
- value :TYPE_FEET, 10
266
- value :TYPE_MILES, 11
267
- value :TYPE_METERS, 12
268
- value :TYPE_KILOMETERS, 13
269
- end
270
- add_enum "google.analytics.data.v1beta.RestrictedMetricType" do
271
- value :RESTRICTED_METRIC_TYPE_UNSPECIFIED, 0
272
- value :COST_DATA, 1
273
- value :REVENUE_DATA, 2
274
- end
275
- add_enum "google.analytics.data.v1beta.Compatibility" do
276
- value :COMPATIBILITY_UNSPECIFIED, 0
277
- value :COMPATIBLE, 1
278
- value :INCOMPATIBLE, 2
7
+
8
+ descriptor_data = "\n\'google/analytics/data/v1beta/data.proto\x12\x1cgoogle.analytics.data.v1beta\"?\n\tDateRange\x12\x12\n\nstart_date\x18\x01 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\"\x83\x01\n\x0bMinuteRange\x12\x1e\n\x11start_minutes_ago\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0f\x65nd_minutes_ago\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0c\n\x04name\x18\x03 \x01(\tB\x14\n\x12_start_minutes_agoB\x12\n\x10_end_minutes_ago\"j\n\tDimension\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x14\x64imension_expression\x18\x02 \x01(\x0b\x32\x31.google.analytics.data.v1beta.DimensionExpression\"\xa6\x03\n\x13\x44imensionExpression\x12V\n\nlower_case\x18\x04 \x01(\x0b\x32@.google.analytics.data.v1beta.DimensionExpression.CaseExpressionH\x00\x12V\n\nupper_case\x18\x05 \x01(\x0b\x32@.google.analytics.data.v1beta.DimensionExpression.CaseExpressionH\x00\x12^\n\x0b\x63oncatenate\x18\x06 \x01(\x0b\x32G.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpressionH\x00\x1a(\n\x0e\x43\x61seExpression\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\x1a\x43\n\x15\x43oncatenateExpression\x12\x17\n\x0f\x64imension_names\x18\x01 \x03(\t\x12\x11\n\tdelimiter\x18\x02 \x01(\tB\x10\n\x0eone_expression\"=\n\x06Metric\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nexpression\x18\x02 \x01(\t\x12\x11\n\tinvisible\x18\x03 \x01(\x08\"\xad\x02\n\x10\x46ilterExpression\x12G\n\tand_group\x18\x01 \x01(\x0b\x32\x32.google.analytics.data.v1beta.FilterExpressionListH\x00\x12\x46\n\x08or_group\x18\x02 \x01(\x0b\x32\x32.google.analytics.data.v1beta.FilterExpressionListH\x00\x12H\n\x0enot_expression\x18\x03 \x01(\x0b\x32..google.analytics.data.v1beta.FilterExpressionH\x00\x12\x36\n\x06\x66ilter\x18\x04 \x01(\x0b\x32$.google.analytics.data.v1beta.FilterH\x00\x42\x06\n\x04\x65xpr\"[\n\x14\x46ilterExpressionList\x12\x43\n\x0b\x65xpressions\x18\x01 \x03(\x0b\x32..google.analytics.data.v1beta.FilterExpression\"\xde\x08\n\x06\x46ilter\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12J\n\rstring_filter\x18\x03 \x01(\x0b\x32\x31.google.analytics.data.v1beta.Filter.StringFilterH\x00\x12K\n\x0ein_list_filter\x18\x04 \x01(\x0b\x32\x31.google.analytics.data.v1beta.Filter.InListFilterH\x00\x12L\n\x0enumeric_filter\x18\x05 \x01(\x0b\x32\x32.google.analytics.data.v1beta.Filter.NumericFilterH\x00\x12L\n\x0e\x62\x65tween_filter\x18\x06 \x01(\x0b\x32\x32.google.analytics.data.v1beta.Filter.BetweenFilterH\x00\x1a\x8e\x02\n\x0cStringFilter\x12O\n\nmatch_type\x18\x01 \x01(\x0e\x32;.google.analytics.data.v1beta.Filter.StringFilter.MatchType\x12\r\n\x05value\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\"\x85\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x12\x12\n\x0ePARTIAL_REGEXP\x10\x06\x1a\x36\n\x0cInListFilter\x12\x0e\n\x06values\x18\x01 \x03(\t\x12\x16\n\x0e\x63\x61se_sensitive\x18\x02 \x01(\x08\x1a\xa3\x02\n\rNumericFilter\x12O\n\toperation\x18\x01 \x01(\x0e\x32<.google.analytics.data.v1beta.Filter.NumericFilter.Operation\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.google.analytics.data.v1beta.NumericValue\"\x85\x01\n\tOperation\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x45QUAL\x10\x01\x12\r\n\tLESS_THAN\x10\x02\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x03\x12\x10\n\x0cGREATER_THAN\x10\x04\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x05\x1a\x8d\x01\n\rBetweenFilter\x12>\n\nfrom_value\x18\x01 \x01(\x0b\x32*.google.analytics.data.v1beta.NumericValue\x12<\n\x08to_value\x18\x02 \x01(\x0b\x32*.google.analytics.data.v1beta.NumericValueB\x0c\n\none_filter\"\xda\x05\n\x07OrderBy\x12\x45\n\x06metric\x18\x01 \x01(\x0b\x32\x33.google.analytics.data.v1beta.OrderBy.MetricOrderByH\x00\x12K\n\tdimension\x18\x02 \x01(\x0b\x32\x36.google.analytics.data.v1beta.OrderBy.DimensionOrderByH\x00\x12\x43\n\x05pivot\x18\x03 \x01(\x0b\x32\x32.google.analytics.data.v1beta.OrderBy.PivotOrderByH\x00\x12\x0c\n\x04\x64\x65sc\x18\x04 \x01(\x08\x1a$\n\rMetricOrderBy\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\x1a\xeb\x01\n\x10\x44imensionOrderBy\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\x12T\n\norder_type\x18\x02 \x01(\x0e\x32@.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType\"i\n\tOrderType\x12\x1a\n\x16ORDER_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41LPHANUMERIC\x10\x01\x12!\n\x1d\x43\x41SE_INSENSITIVE_ALPHANUMERIC\x10\x02\x12\x0b\n\x07NUMERIC\x10\x03\x1a\xc3\x01\n\x0cPivotOrderBy\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\x12[\n\x10pivot_selections\x18\x02 \x03(\x0b\x32\x41.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection\x1a\x41\n\x0ePivotSelection\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\x12\x17\n\x0f\x64imension_value\x18\x02 \x01(\tB\x0e\n\x0cone_order_by\"\xc3\x01\n\x05Pivot\x12\x13\n\x0b\x66ield_names\x18\x01 \x03(\t\x12\x38\n\torder_bys\x18\x02 \x03(\x0b\x32%.google.analytics.data.v1beta.OrderBy\x12\x0e\n\x06offset\x18\x03 \x01(\x03\x12\r\n\x05limit\x18\x04 \x01(\x03\x12L\n\x13metric_aggregations\x18\x05 \x03(\x0e\x32/.google.analytics.data.v1beta.MetricAggregation\"\xda\x01\n\nCohortSpec\x12\x35\n\x07\x63ohorts\x18\x01 \x03(\x0b\x32$.google.analytics.data.v1beta.Cohort\x12\x41\n\rcohorts_range\x18\x02 \x01(\x0b\x32*.google.analytics.data.v1beta.CohortsRange\x12R\n\x16\x63ohort_report_settings\x18\x03 \x01(\x0b\x32\x32.google.analytics.data.v1beta.CohortReportSettings\"f\n\x06\x43ohort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tdimension\x18\x02 \x01(\t\x12;\n\ndate_range\x18\x03 \x01(\x0b\x32\'.google.analytics.data.v1beta.DateRange\"\xd5\x01\n\x0c\x43ohortsRange\x12K\n\x0bgranularity\x18\x01 \x01(\x0e\x32\x36.google.analytics.data.v1beta.CohortsRange.Granularity\x12\x14\n\x0cstart_offset\x18\x02 \x01(\x05\x12\x12\n\nend_offset\x18\x03 \x01(\x05\"N\n\x0bGranularity\x12\x1b\n\x17GRANULARITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x44\x41ILY\x10\x01\x12\n\n\x06WEEKLY\x10\x02\x12\x0b\n\x07MONTHLY\x10\x03\"*\n\x14\x43ohortReportSettings\x12\x12\n\naccumulate\x18\x01 \x01(\x08\"\xca\x05\n\x10ResponseMetaData\x12 \n\x18\x64\x61ta_loss_from_other_row\x18\x03 \x01(\x08\x12r\n\x1bschema_restriction_response\x18\x04 \x01(\x0b\x32H.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponseH\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\x16\n\ttime_zone\x18\x06 \x01(\tH\x02\x88\x01\x01\x12\x19\n\x0c\x65mpty_reason\x18\x07 \x01(\tH\x03\x88\x01\x01\x12$\n\x17subject_to_thresholding\x18\x08 \x01(\x08H\x04\x88\x01\x01\x1a\xbd\x02\n\x19SchemaRestrictionResponse\x12\x84\x01\n\x1a\x61\x63tive_metric_restrictions\x18\x01 \x03(\x0b\x32`.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction\x1a\x98\x01\n\x17\x41\x63tiveMetricRestriction\x12\x18\n\x0bmetric_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12S\n\x17restricted_metric_types\x18\x02 \x03(\x0e\x32\x32.google.analytics.data.v1beta.RestrictedMetricTypeB\x0e\n\x0c_metric_nameB\x1e\n\x1c_schema_restriction_responseB\x10\n\x0e_currency_codeB\x0c\n\n_time_zoneB\x0f\n\r_empty_reasonB\x1a\n\x18_subject_to_thresholding\"\x1f\n\x0f\x44imensionHeader\x12\x0c\n\x04name\x18\x01 \x01(\t\"T\n\x0cMetricHeader\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.analytics.data.v1beta.MetricType\"u\n\x0bPivotHeader\x12S\n\x17pivot_dimension_headers\x18\x01 \x03(\x0b\x32\x32.google.analytics.data.v1beta.PivotDimensionHeader\x12\x11\n\trow_count\x18\x02 \x01(\x05\"^\n\x14PivotDimensionHeader\x12\x46\n\x10\x64imension_values\x18\x01 \x03(\x0b\x32,.google.analytics.data.v1beta.DimensionValue\"\x8f\x01\n\x03Row\x12\x46\n\x10\x64imension_values\x18\x01 \x03(\x0b\x32,.google.analytics.data.v1beta.DimensionValue\x12@\n\rmetric_values\x18\x02 \x03(\x0b\x32).google.analytics.data.v1beta.MetricValue\".\n\x0e\x44imensionValue\x12\x0f\n\x05value\x18\x01 \x01(\tH\x00\x42\x0b\n\tone_value\"+\n\x0bMetricValue\x12\x0f\n\x05value\x18\x04 \x01(\tH\x00\x42\x0b\n\tone_value\"J\n\x0cNumericValue\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x42\x0b\n\tone_value\"\xe3\x03\n\rPropertyQuota\x12\x41\n\x0etokens_per_day\x18\x01 \x01(\x0b\x32).google.analytics.data.v1beta.QuotaStatus\x12\x42\n\x0ftokens_per_hour\x18\x02 \x01(\x0b\x32).google.analytics.data.v1beta.QuotaStatus\x12\x46\n\x13\x63oncurrent_requests\x18\x03 \x01(\x0b\x32).google.analytics.data.v1beta.QuotaStatus\x12U\n\"server_errors_per_project_per_hour\x18\x04 \x01(\x0b\x32).google.analytics.data.v1beta.QuotaStatus\x12\\\n)potentially_thresholded_requests_per_hour\x18\x05 \x01(\x0b\x32).google.analytics.data.v1beta.QuotaStatus\x12N\n\x1btokens_per_project_per_hour\x18\x06 \x01(\x0b\x32).google.analytics.data.v1beta.QuotaStatus\"2\n\x0bQuotaStatus\x12\x10\n\x08\x63onsumed\x18\x01 \x01(\x05\x12\x11\n\tremaining\x18\x02 \x01(\x05\"\x96\x01\n\x11\x44imensionMetadata\x12\x10\n\x08\x61pi_name\x18\x01 \x01(\t\x12\x0f\n\x07ui_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1c\n\x14\x64\x65precated_api_names\x18\x04 \x03(\t\x12\x19\n\x11\x63ustom_definition\x18\x05 \x01(\x08\x12\x10\n\x08\x63\x61tegory\x18\x07 \x01(\t\"\x92\x03\n\x0eMetricMetadata\x12\x10\n\x08\x61pi_name\x18\x01 \x01(\t\x12\x0f\n\x07ui_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1c\n\x14\x64\x65precated_api_names\x18\x04 \x03(\t\x12\x36\n\x04type\x18\x05 \x01(\x0e\x32(.google.analytics.data.v1beta.MetricType\x12\x12\n\nexpression\x18\x06 \x01(\t\x12\x19\n\x11\x63ustom_definition\x18\x07 \x01(\x08\x12S\n\x0f\x62locked_reasons\x18\x08 \x03(\x0e\x32:.google.analytics.data.v1beta.MetricMetadata.BlockedReason\x12\x10\n\x08\x63\x61tegory\x18\n \x01(\t\"\\\n\rBlockedReason\x12\x1e\n\x1a\x42LOCKED_REASON_UNSPECIFIED\x10\x00\x12\x16\n\x12NO_REVENUE_METRICS\x10\x01\x12\x13\n\x0fNO_COST_METRICS\x10\x02\"\xdc\x01\n\x16\x44imensionCompatibility\x12P\n\x12\x64imension_metadata\x18\x01 \x01(\x0b\x32/.google.analytics.data.v1beta.DimensionMetadataH\x00\x88\x01\x01\x12G\n\rcompatibility\x18\x02 \x01(\x0e\x32+.google.analytics.data.v1beta.CompatibilityH\x01\x88\x01\x01\x42\x15\n\x13_dimension_metadataB\x10\n\x0e_compatibility\"\xd0\x01\n\x13MetricCompatibility\x12J\n\x0fmetric_metadata\x18\x01 \x01(\x0b\x32,.google.analytics.data.v1beta.MetricMetadataH\x00\x88\x01\x01\x12G\n\rcompatibility\x18\x02 \x01(\x0e\x32+.google.analytics.data.v1beta.CompatibilityH\x01\x88\x01\x01\x42\x12\n\x10_metric_metadataB\x10\n\x0e_compatibility*g\n\x11MetricAggregation\x12\"\n\x1eMETRIC_AGGREGATION_UNSPECIFIED\x10\x00\x12\t\n\x05TOTAL\x10\x01\x12\x0b\n\x07MINIMUM\x10\x05\x12\x0b\n\x07MAXIMUM\x10\x06\x12\t\n\x05\x43OUNT\x10\x04*\x81\x02\n\nMetricType\x12\x1b\n\x17METRIC_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cTYPE_INTEGER\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x10\n\x0cTYPE_SECONDS\x10\x04\x12\x15\n\x11TYPE_MILLISECONDS\x10\x05\x12\x10\n\x0cTYPE_MINUTES\x10\x06\x12\x0e\n\nTYPE_HOURS\x10\x07\x12\x11\n\rTYPE_STANDARD\x10\x08\x12\x11\n\rTYPE_CURRENCY\x10\t\x12\r\n\tTYPE_FEET\x10\n\x12\x0e\n\nTYPE_MILES\x10\x0b\x12\x0f\n\x0bTYPE_METERS\x10\x0c\x12\x13\n\x0fTYPE_KILOMETERS\x10\r*_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02*P\n\rCompatibility\x12\x1d\n\x19\x43OMPATIBILITY_UNSPECIFIED\x10\x00\x12\x0e\n\nCOMPATIBLE\x10\x01\x12\x10\n\x0cINCOMPATIBLE\x10\x02\x42y\n com.google.analytics.data.v1betaB\x11ReportingApiProtoP\x01Z@google.golang.org/genproto/googleapis/analytics/data/v1beta;datab\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
279
28
  end
280
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
281
32
  end
282
33
 
283
34
  module Google
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/analytics/data/v1beta/analytics_data/rest"
20
+ require "google/analytics/data/v1beta/version"
21
+
22
+ module Google
23
+ module Analytics
24
+ module Data
25
+ ##
26
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
+ #
28
+ # @example
29
+ #
30
+ # require "google/analytics/data/v1beta/rest"
31
+ # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Rest::Client.new
32
+ #
33
+ module V1beta
34
+ end
35
+ end
36
+ end
37
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1beta
24
- VERSION = "0.6.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,13 +23,18 @@ module Google
23
23
  module Analytics
24
24
  module Data
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
27
  #
28
- # @example
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
29
  #
30
30
  # require "google/analytics/data/v1beta"
31
31
  # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new
32
32
  #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/analytics/data/v1beta"
36
+ # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Rest::Client.new
37
+ #
33
38
  module V1beta
34
39
  end
35
40
  end