google-analytics-data-v1beta 0.7.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9177b63c8a4e928cf21993f422f53650f6e2ef309103f0738f55272bf0ab81c2
4
- data.tar.gz: bfe38a506a945aae66d9787a7589c12e2365fdb9c764111a2400550bd1b13e45
3
+ metadata.gz: ef5116aed6f9d5fa8ca303079895797ee0a991ec330f8859868263689174b890
4
+ data.tar.gz: 04f1bc9a21cde97026cad035d37dda4ecbfdc0cb382e6ed25d62cd4aa3a04f22
5
5
  SHA512:
6
- metadata.gz: dee419b6ba097e9d9e042ba4c343dfe3ea01c5f51750c7495e1f99348fa89f8c4d61acf2c9b99535a05f98f05814647c339b17ccda608389378087d1af3b6332
7
- data.tar.gz: ccb2ec5a6f03d00e1d7c060641df12f26d848a361c649c9af2c0fdf735032130534913413e7dc55cb20d383b572f5716f5320458d2025f2adf0c7d792b50a767
6
+ metadata.gz: 803c1ac50c49e575e3cc33ee723e93a5279df0fdf34974b1b55ef63c8c6c05f524d095dc5638a6dae30c71f9c5e496de78b4d255db8c9bb9a8958aa3ecc684ed
7
+ data.tar.gz: a47733f2c3909f1ebeb26bdc70bde2be0b98a640b642eec1bceab762d8f33492d853cb1a4314472d194ce86cb10debc967a68a0cfe9ef03ed471846ae089edce
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Google Analytics Data V1beta API
2
2
 
3
- Accesses report data in Google Analytics.
3
+ Accesses report data in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.
4
4
 
5
5
  The Google Analytics Data API provides programmatic methods to access report data in Google Analytics 4 (GA4) properties. Google Analytics 4 helps you understand how people use your web, iOS, or Android app.
6
6
 
@@ -37,7 +37,7 @@ request = ::Google::Analytics::Data::V1beta::RunReportRequest.new # (request fie
37
37
  response = client.run_report request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-analytics-data-v1beta/latest)
40
+ View the [Client Library Documentation](https://rubydoc.info/gems/google-analytics-data-v1beta)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://developers.google.com/analytics/devguides/reporting/data/v1)
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -142,7 +142,7 @@ module Google
142
142
  credentials = @config.credentials
143
143
  # Use self-signed JWT if the endpoint is unchanged from default,
144
144
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
146
  !@config.endpoint.split(".").first.include?("-")
147
147
  credentials ||= Credentials.default scope: @config.scope,
148
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -211,7 +211,7 @@ module Google
211
211
  # response rows for both date ranges. In a cohort request, this `dateRanges`
212
212
  # must be unspecified.
213
213
  # @param dimension_filter [::Google::Analytics::Data::V1beta::FilterExpression, ::Hash]
214
- # Dimension filters allow you to ask for only specific dimension values in
214
+ # Dimension filters let you ask for only specific dimension values in
215
215
  # the report. To learn more, see [Fundamentals of Dimension
216
216
  # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
217
217
  # for examples. Metrics cannot be used in this filter.
@@ -230,7 +230,7 @@ module Google
230
230
  # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
231
231
  # @param limit [::Integer]
232
232
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
233
- # API returns a maximum of 100,000 rows per request, no matter how many you
233
+ # API returns a maximum of 250,000 rows per request, no matter how many you
234
234
  # ask for. `limit` must be positive.
235
235
  #
236
236
  # The API can also return fewer rows than the requested `limit`, if there
@@ -256,6 +256,13 @@ module Google
256
256
  # If false or unspecified, each row with all metrics equal to 0 will not be
257
257
  # returned. If true, these rows will be returned if they are not separately
258
258
  # removed by a filter.
259
+ #
260
+ # Regardless of this `keep_empty_rows` setting, only data recorded by the
261
+ # Google Analytics (GA4) property can be displayed in a report.
262
+ #
263
+ # For example if a property never logs a `purchase` event, then a query for
264
+ # the `eventName` dimension and `eventCount` metric will not have a row
265
+ # eventName: "purchase" and eventCount: 0.
259
266
  # @param return_property_quota [::Boolean]
260
267
  # Toggles whether to return the current state of this Analytics Property's
261
268
  # quota. Quota is returned in [PropertyQuota](#PropertyQuota).
@@ -390,6 +397,13 @@ module Google
390
397
  # If false or unspecified, each row with all metrics equal to 0 will not be
391
398
  # returned. If true, these rows will be returned if they are not separately
392
399
  # removed by a filter.
400
+ #
401
+ # Regardless of this `keep_empty_rows` setting, only data recorded by the
402
+ # Google Analytics (GA4) property can be displayed in a report.
403
+ #
404
+ # For example if a property never logs a `purchase` event, then a query for
405
+ # the `eventName` dimension and `eventCount` metric will not have a row
406
+ # eventName: "purchase" and eventCount: 0.
393
407
  # @param return_property_quota [::Boolean]
394
408
  # Toggles whether to return the current state of this Analytics Property's
395
409
  # quota. Quota is returned in [PropertyQuota](#PropertyQuota).
@@ -800,7 +814,7 @@ module Google
800
814
  # SQL having-clause. Dimensions cannot be used in this filter.
801
815
  # @param limit [::Integer]
802
816
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
803
- # API returns a maximum of 100,000 rows per request, no matter how many you
817
+ # API returns a maximum of 250,000 rows per request, no matter how many you
804
818
  # ask for. `limit` must be positive.
805
819
  #
806
820
  # The API can also return fewer rows than the requested `limit`, if there
@@ -921,10 +935,6 @@ module Google
921
935
  # `property` should be the same value as in your `runReport` request.
922
936
  #
923
937
  # Example: properties/1234
924
- #
925
- # Set the Property ID to 0 for compatibility checking on dimensions and
926
- # metrics common to all properties. In this special mode, this method will
927
- # not return custom dimensions and metrics.
928
938
  # @param dimensions [::Array<::Google::Analytics::Data::V1beta::Dimension, ::Hash>]
929
939
  # The dimensions in this report. `dimensions` should be the same value as in
930
940
  # your `runReport` request.
@@ -1044,9 +1054,9 @@ module Google
1044
1054
  # * (`String`) The path to a service account key file in JSON format
1045
1055
  # * (`Hash`) A service account key as a Hash
1046
1056
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1047
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1057
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1048
1058
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1049
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1059
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1050
1060
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1051
1061
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1052
1062
  # * (`nil`) indicating no credentials
@@ -1088,7 +1098,9 @@ module Google
1088
1098
  class Configuration
1089
1099
  extend ::Gapic::Config
1090
1100
 
1091
- config_attr :endpoint, "analyticsdata.googleapis.com", ::String
1101
+ DEFAULT_ENDPOINT = "analyticsdata.googleapis.com"
1102
+
1103
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1092
1104
  config_attr :credentials, nil do |value|
1093
1105
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1094
1106
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -138,7 +138,7 @@ module Google
138
138
  credentials = @config.credentials
139
139
  # Use self-signed JWT if the endpoint is unchanged from default,
140
140
  # but only if the default endpoint does not have a region prefix.
141
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
142
  !@config.endpoint.split(".").first.include?("-")
143
143
  credentials ||= Credentials.default scope: @config.scope,
144
144
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -202,7 +202,7 @@ module Google
202
202
  # response rows for both date ranges. In a cohort request, this `dateRanges`
203
203
  # must be unspecified.
204
204
  # @param dimension_filter [::Google::Analytics::Data::V1beta::FilterExpression, ::Hash]
205
- # Dimension filters allow you to ask for only specific dimension values in
205
+ # Dimension filters let you ask for only specific dimension values in
206
206
  # the report. To learn more, see [Fundamentals of Dimension
207
207
  # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
208
208
  # for examples. Metrics cannot be used in this filter.
@@ -221,7 +221,7 @@ module Google
221
221
  # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
222
222
  # @param limit [::Integer]
223
223
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
224
- # API returns a maximum of 100,000 rows per request, no matter how many you
224
+ # API returns a maximum of 250,000 rows per request, no matter how many you
225
225
  # ask for. `limit` must be positive.
226
226
  #
227
227
  # The API can also return fewer rows than the requested `limit`, if there
@@ -247,6 +247,13 @@ module Google
247
247
  # If false or unspecified, each row with all metrics equal to 0 will not be
248
248
  # returned. If true, these rows will be returned if they are not separately
249
249
  # removed by a filter.
250
+ #
251
+ # Regardless of this `keep_empty_rows` setting, only data recorded by the
252
+ # Google Analytics (GA4) property can be displayed in a report.
253
+ #
254
+ # For example if a property never logs a `purchase` event, then a query for
255
+ # the `eventName` dimension and `eventCount` metric will not have a row
256
+ # eventName: "purchase" and eventCount: 0.
250
257
  # @param return_property_quota [::Boolean]
251
258
  # Toggles whether to return the current state of this Analytics Property's
252
259
  # quota. Quota is returned in [PropertyQuota](#PropertyQuota).
@@ -358,6 +365,13 @@ module Google
358
365
  # If false or unspecified, each row with all metrics equal to 0 will not be
359
366
  # returned. If true, these rows will be returned if they are not separately
360
367
  # removed by a filter.
368
+ #
369
+ # Regardless of this `keep_empty_rows` setting, only data recorded by the
370
+ # Google Analytics (GA4) property can be displayed in a report.
371
+ #
372
+ # For example if a property never logs a `purchase` event, then a query for
373
+ # the `eventName` dimension and `eventCount` metric will not have a row
374
+ # eventName: "purchase" and eventCount: 0.
361
375
  # @param return_property_quota [::Boolean]
362
376
  # Toggles whether to return the current state of this Analytics Property's
363
377
  # quota. Quota is returned in [PropertyQuota](#PropertyQuota).
@@ -676,7 +690,7 @@ module Google
676
690
  # SQL having-clause. Dimensions cannot be used in this filter.
677
691
  # @param limit [::Integer]
678
692
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
679
- # API returns a maximum of 100,000 rows per request, no matter how many you
693
+ # API returns a maximum of 250,000 rows per request, no matter how many you
680
694
  # ask for. `limit` must be positive.
681
695
  #
682
696
  # The API can also return fewer rows than the requested `limit`, if there
@@ -774,10 +788,6 @@ module Google
774
788
  # `property` should be the same value as in your `runReport` request.
775
789
  #
776
790
  # Example: properties/1234
777
- #
778
- # Set the Property ID to 0 for compatibility checking on dimensions and
779
- # metrics common to all properties. In this special mode, this method will
780
- # not return custom dimensions and metrics.
781
791
  # @param dimensions [::Array<::Google::Analytics::Data::V1beta::Dimension, ::Hash>]
782
792
  # The dimensions in this report. `dimensions` should be the same value as in
783
793
  # your `runReport` request.
@@ -874,9 +884,9 @@ module Google
874
884
  # * (`String`) The path to a service account key file in JSON format
875
885
  # * (`Hash`) A service account key as a Hash
876
886
  # * (`Google::Auth::Credentials`) A googleauth credentials object
877
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
887
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
878
888
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
879
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
889
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
880
890
  # * (`nil`) indicating no credentials
881
891
  # @return [::Object]
882
892
  # @!attribute [rw] scope
@@ -909,7 +919,9 @@ module Google
909
919
  class Configuration
910
920
  extend ::Gapic::Config
911
921
 
912
- config_attr :endpoint, "analyticsdata.googleapis.com", ::String
922
+ DEFAULT_ENDPOINT = "analyticsdata.googleapis.com"
923
+
924
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
913
925
  config_attr :credentials, nil do |value|
914
926
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
915
927
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_run_report_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_run_pivot_report_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_run_reports_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_run_pivot_reports_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_get_metadata_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_run_realtime_report_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_check_compatibility_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1beta
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.1"
25
25
  end
26
26
  end
27
27
  end
@@ -33,10 +33,6 @@ module Google
33
33
  # `property` should be the same value as in your `runReport` request.
34
34
  #
35
35
  # Example: properties/1234
36
- #
37
- # Set the Property ID to 0 for compatibility checking on dimensions and
38
- # metrics common to all properties. In this special mode, this method will
39
- # not return custom dimensions and metrics.
40
36
  # @!attribute [rw] dimensions
41
37
  # @return [::Array<::Google::Analytics::Data::V1beta::Dimension>]
42
38
  # The dimensions in this report. `dimensions` should be the same value as in
@@ -116,7 +112,7 @@ module Google
116
112
  # must be unspecified.
117
113
  # @!attribute [rw] dimension_filter
118
114
  # @return [::Google::Analytics::Data::V1beta::FilterExpression]
119
- # Dimension filters allow you to ask for only specific dimension values in
115
+ # Dimension filters let you ask for only specific dimension values in
120
116
  # the report. To learn more, see [Fundamentals of Dimension
121
117
  # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
122
118
  # for examples. Metrics cannot be used in this filter.
@@ -138,7 +134,7 @@ module Google
138
134
  # @!attribute [rw] limit
139
135
  # @return [::Integer]
140
136
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
141
- # API returns a maximum of 100,000 rows per request, no matter how many you
137
+ # API returns a maximum of 250,000 rows per request, no matter how many you
142
138
  # ask for. `limit` must be positive.
143
139
  #
144
140
  # The API can also return fewer rows than the requested `limit`, if there
@@ -169,6 +165,13 @@ module Google
169
165
  # If false or unspecified, each row with all metrics equal to 0 will not be
170
166
  # returned. If true, these rows will be returned if they are not separately
171
167
  # removed by a filter.
168
+ #
169
+ # Regardless of this `keep_empty_rows` setting, only data recorded by the
170
+ # Google Analytics (GA4) property can be displayed in a report.
171
+ #
172
+ # For example if a property never logs a `purchase` event, then a query for
173
+ # the `eventName` dimension and `eventCount` metric will not have a row
174
+ # eventName: "purchase" and eventCount: 0.
172
175
  # @!attribute [rw] return_property_quota
173
176
  # @return [::Boolean]
174
177
  # Toggles whether to return the current state of this Analytics Property's
@@ -280,6 +283,13 @@ module Google
280
283
  # If false or unspecified, each row with all metrics equal to 0 will not be
281
284
  # returned. If true, these rows will be returned if they are not separately
282
285
  # removed by a filter.
286
+ #
287
+ # Regardless of this `keep_empty_rows` setting, only data recorded by the
288
+ # Google Analytics (GA4) property can be displayed in a report.
289
+ #
290
+ # For example if a property never logs a `purchase` event, then a query for
291
+ # the `eventName` dimension and `eventCount` metric will not have a row
292
+ # eventName: "purchase" and eventCount: 0.
283
293
  # @!attribute [rw] return_property_quota
284
294
  # @return [::Boolean]
285
295
  # Toggles whether to return the current state of this Analytics Property's
@@ -475,7 +485,7 @@ module Google
475
485
  # @!attribute [rw] limit
476
486
  # @return [::Integer]
477
487
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
478
- # API returns a maximum of 100,000 rows per request, no matter how many you
488
+ # API returns a maximum of 250,000 rows per request, no matter how many you
479
489
  # ask for. `limit` must be positive.
480
490
  #
481
491
  # The API can also return fewer rows than the requested `limit`, if there
@@ -21,8 +21,8 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1beta
24
- # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
25
- # are allowed up to 4 date ranges.
24
+ # A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`.
25
+ # Requests are allowed up to 4 date ranges.
26
26
  # @!attribute [rw] start_date
27
27
  # @return [::String]
28
28
  # The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
@@ -46,8 +46,8 @@ module Google
46
46
  extend ::Google::Protobuf::MessageExts::ClassMethods
47
47
  end
48
48
 
49
- # A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ...,
50
- # endMinutesAgo. Requests are allowed up to 2 minute ranges.
49
+ # A contiguous set of minutes: `startMinutesAgo`, `startMinutesAgo + 1`, ...,
50
+ # `endMinutesAgo`. Requests are allowed up to 2 minute ranges.
51
51
  # @!attribute [rw] start_minutes_ago
52
52
  # @return [::Integer]
53
53
  # The inclusive start minute for the query as a number of minutes before now.
@@ -466,7 +466,7 @@ module Google
466
466
  # single pivot requests.
467
467
  #
468
468
  # The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
469
- # must not exceed 100,000. For example, a two pivot request with `limit:
469
+ # must not exceed 250,000. For example, a two pivot request with `limit:
470
470
  # 1000` in each pivot will fail because the product is `1,000,000`.
471
471
  # @!attribute [rw] metric_aggregations
472
472
  # @return [::Array<::Google::Analytics::Data::V1beta::MetricAggregation>]
@@ -622,6 +622,18 @@ module Google
622
622
  # @return [::Boolean]
623
623
  # If true, indicates some buckets of dimension combinations are rolled into
624
624
  # "(other)" row. This can happen for high cardinality reports.
625
+ #
626
+ # The metadata parameter dataLossFromOtherRow is populated based on the
627
+ # aggregated data table used in the report. The parameter will be accurately
628
+ # populated regardless of the filters and limits in the report.
629
+ #
630
+ # For example, the (other) row could be dropped from the report because the
631
+ # request contains a filter on sessionSource = google. This parameter will
632
+ # still be populated if data loss from other row was present in the input
633
+ # aggregate data used to generate this report.
634
+ #
635
+ # To learn more, see [About the (other) row and data
636
+ # sampling](https://support.google.com/analytics/answer/13208658#reports).
625
637
  # @!attribute [rw] schema_restriction_response
626
638
  # @return [::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse]
627
639
  # Describes the schema restrictions actively enforced in creating this
@@ -824,13 +836,13 @@ module Google
824
836
  # Exhausted errors.
825
837
  # @!attribute [rw] tokens_per_day
826
838
  # @return [::Google::Analytics::Data::V1beta::QuotaStatus]
827
- # Standard Analytics Properties can use up to 25,000 tokens per day;
828
- # Analytics 360 Properties can use 250,000 tokens per day. Most requests
839
+ # Standard Analytics Properties can use up to 200,000 tokens per day;
840
+ # Analytics 360 Properties can use 2,000,000 tokens per day. Most requests
829
841
  # consume fewer than 10 tokens.
830
842
  # @!attribute [rw] tokens_per_hour
831
843
  # @return [::Google::Analytics::Data::V1beta::QuotaStatus]
832
- # Standard Analytics Properties can use up to 5,000 tokens per hour;
833
- # Analytics 360 Properties can use 50,000 tokens per hour. An API request
844
+ # Standard Analytics Properties can use up to 40,000 tokens per hour;
845
+ # Analytics 360 Properties can use 400,000 tokens per hour. An API request
834
846
  # consumes a single number of tokens, and that number is deducted from all of
835
847
  # the hourly, daily, and per project hourly quotas.
836
848
  # @!attribute [rw] concurrent_requests
@@ -850,9 +862,9 @@ module Google
850
862
  # thresholded dimensions.
851
863
  # @!attribute [rw] tokens_per_project_per_hour
852
864
  # @return [::Google::Analytics::Data::V1beta::QuotaStatus]
853
- # Analytics Properties can use up to 25% of their tokens per project per
854
- # hour. This amounts to standard Analytics Properties can use up to 1,250
855
- # tokens per project per hour, and Analytics 360 Properties can use 12,500
865
+ # Analytics Properties can use up to 35% of their tokens per project per
866
+ # hour. This amounts to standard Analytics Properties can use up to 14,000
867
+ # tokens per project per hour, and Analytics 360 Properties can use 140,000
856
868
  # tokens per project per hour. An API request consumes a single number of
857
869
  # tokens, and that number is deducted from all of the hourly, daily, and per
858
870
  # project hourly quotas.
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-data-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -214,5 +214,10 @@ requirements: []
214
214
  rubygems_version: 3.4.2
215
215
  signing_key:
216
216
  specification_version: 4
217
- summary: Accesses report data in Google Analytics.
217
+ summary: 'Accesses report data in Google Analytics. Warning: Creating multiple Customer
218
+ Applications, Accounts, or Projects to simulate or act as a single Customer Application,
219
+ Account, or Project (respectively) or to circumvent Service-specific usage limits
220
+ or quotas is a direct violation of Google Cloud Platform Terms of Service as well
221
+ as Google APIs Terms of Service. These actions can result in immediate termination
222
+ of your GCP project(s) without any warning.'
218
223
  test_files: []