google-analytics-data-v1beta 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/analytics/data/v1beta/analytics_data/client.rb +6 -4
- data/lib/google/analytics/data/v1beta/analytics_data/rest/client.rb +6 -4
- data/lib/google/analytics/data/v1beta/analytics_data/rest/service_stub.rb +7 -7
- data/lib/google/analytics/data/v1beta/analytics_data_api_pb.rb +25 -111
- data/lib/google/analytics/data/v1beta/data_pb.rb +24 -273
- data/lib/google/analytics/data/v1beta/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0216299e3a52f758f918d01a4e0c33ad953ea4d9a3c0fa01cbd96b3c453e3332'
|
4
|
+
data.tar.gz: b827ebeed2b1b11cb5ef153a45277c5b41471eb02bdf8ff3e6113332789c0f1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e508d9f2536c3eea84045c0850c4a8fd4629a484915adf5fd894515453d74c3598ee18e84b1e70fc60e1cdbb22b0c93e8e8a8d4ab099f98339caab2da56bcb7c
|
7
|
+
data.tar.gz: 5812899ff083dd34e880c399b71125d4c4675f733e732002d1afbd47c39ab4b476bd07a4b94371fa9ea85c57372996c15dc865cf084f7e67f4317bafe32b65cc
|
data/README.md
CHANGED
@@ -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://
|
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://
|
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 ==
|
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
|
@@ -1044,9 +1044,9 @@ module Google
|
|
1044
1044
|
# * (`String`) The path to a service account key file in JSON format
|
1045
1045
|
# * (`Hash`) A service account key as a Hash
|
1046
1046
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1047
|
-
# (see the [googleauth docs](https://
|
1047
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1048
1048
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1049
|
-
# (see the [signet docs](https://
|
1049
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1050
1050
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1051
1051
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1052
1052
|
# * (`nil`) indicating no credentials
|
@@ -1088,7 +1088,9 @@ module Google
|
|
1088
1088
|
class Configuration
|
1089
1089
|
extend ::Gapic::Config
|
1090
1090
|
|
1091
|
-
|
1091
|
+
DEFAULT_ENDPOINT = "analyticsdata.googleapis.com"
|
1092
|
+
|
1093
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1092
1094
|
config_attr :credentials, nil do |value|
|
1093
1095
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1094
1096
|
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 ==
|
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
|
@@ -874,9 +874,9 @@ module Google
|
|
874
874
|
# * (`String`) The path to a service account key file in JSON format
|
875
875
|
# * (`Hash`) A service account key as a Hash
|
876
876
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
877
|
-
# (see the [googleauth docs](https://
|
877
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
878
878
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
879
|
-
# (see the [signet docs](https://
|
879
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
880
880
|
# * (`nil`) indicating no credentials
|
881
881
|
# @return [::Object]
|
882
882
|
# @!attribute [rw] scope
|
@@ -909,7 +909,9 @@ module Google
|
|
909
909
|
class Configuration
|
910
910
|
extend ::Gapic::Config
|
911
911
|
|
912
|
-
|
912
|
+
DEFAULT_ENDPOINT = "analyticsdata.googleapis.com"
|
913
|
+
|
914
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
913
915
|
config_attr :credentials, nil do |value|
|
914
916
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
915
917
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
7
|
-
add_file("google/analytics/data/v1beta/data.proto", :syntax => :proto3) do
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
@@ -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
|
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
|
-
#
|
244
|
-
# - selector:
|
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.
|
4
|
+
version: 0.8.0
|
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-
|
11
|
+
date: 2023-06-06 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.
|
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.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|