google-analytics-data-v1beta 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-analytics-data-v1beta.rb +21 -0
- data/lib/google/analytics/data/v1beta.rb +38 -0
- data/lib/google/analytics/data/v1beta/analytics_data.rb +49 -0
- data/lib/google/analytics/data/v1beta/analytics_data/client.rb +957 -0
- data/lib/google/analytics/data/v1beta/analytics_data/credentials.rb +52 -0
- data/lib/google/analytics/data/v1beta/analytics_data/paths.rb +47 -0
- data/lib/google/analytics/data/v1beta/analytics_data_api_pb.rb +132 -0
- data/lib/google/analytics/data/v1beta/analytics_data_api_services_pb.rb +78 -0
- data/lib/google/analytics/data/v1beta/data_pb.rb +288 -0
- data/lib/google/analytics/data/v1beta/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/analytics/data/v1beta/analytics_data_api.rb +492 -0
- data/proto_docs/google/analytics/data/v1beta/data.rb +890 -0
- data/proto_docs/google/api/field_behavior.rb +65 -0
- data/proto_docs/google/api/resource.rb +283 -0
- metadata +211 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Analytics
|
23
|
+
module Data
|
24
|
+
module V1beta
|
25
|
+
module AnalyticsData
|
26
|
+
# Credentials for the AnalyticsData API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/analytics",
|
30
|
+
"https://www.googleapis.com/auth/analytics.readonly"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"ANALYTICS_DATA_CREDENTIALS",
|
34
|
+
"ANALYTICS_DATA_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"ANALYTICS_DATA_CREDENTIALS_JSON",
|
39
|
+
"ANALYTICS_DATA_KEYFILE_JSON",
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
43
|
+
]
|
44
|
+
self.paths = [
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
+
]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Analytics
|
22
|
+
module Data
|
23
|
+
module V1beta
|
24
|
+
module AnalyticsData
|
25
|
+
# Path helper methods for the AnalyticsData API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Metadata resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `properties/{property}/metadata`
|
33
|
+
#
|
34
|
+
# @param property [String]
|
35
|
+
#
|
36
|
+
# @return [::String]
|
37
|
+
def metadata_path property:
|
38
|
+
"properties/#{property}/metadata"
|
39
|
+
end
|
40
|
+
|
41
|
+
extend self
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/analytics/data/v1beta/analytics_data_api.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/analytics/data/v1beta/data_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/analytics/data/v1beta/analytics_data_api.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.analytics.data.v1beta.Metadata" do
|
14
|
+
optional :name, :string, 3
|
15
|
+
repeated :dimensions, :message, 1, "google.analytics.data.v1beta.DimensionMetadata"
|
16
|
+
repeated :metrics, :message, 2, "google.analytics.data.v1beta.MetricMetadata"
|
17
|
+
end
|
18
|
+
add_message "google.analytics.data.v1beta.RunReportRequest" do
|
19
|
+
optional :property, :string, 1
|
20
|
+
repeated :dimensions, :message, 2, "google.analytics.data.v1beta.Dimension"
|
21
|
+
repeated :metrics, :message, 3, "google.analytics.data.v1beta.Metric"
|
22
|
+
repeated :date_ranges, :message, 4, "google.analytics.data.v1beta.DateRange"
|
23
|
+
optional :dimension_filter, :message, 5, "google.analytics.data.v1beta.FilterExpression"
|
24
|
+
optional :metric_filter, :message, 6, "google.analytics.data.v1beta.FilterExpression"
|
25
|
+
optional :offset, :int64, 7
|
26
|
+
optional :limit, :int64, 8
|
27
|
+
repeated :metric_aggregations, :enum, 9, "google.analytics.data.v1beta.MetricAggregation"
|
28
|
+
repeated :order_bys, :message, 10, "google.analytics.data.v1beta.OrderBy"
|
29
|
+
optional :currency_code, :string, 11
|
30
|
+
optional :cohort_spec, :message, 12, "google.analytics.data.v1beta.CohortSpec"
|
31
|
+
optional :keep_empty_rows, :bool, 13
|
32
|
+
optional :return_property_quota, :bool, 14
|
33
|
+
end
|
34
|
+
add_message "google.analytics.data.v1beta.RunReportResponse" do
|
35
|
+
repeated :dimension_headers, :message, 1, "google.analytics.data.v1beta.DimensionHeader"
|
36
|
+
repeated :metric_headers, :message, 2, "google.analytics.data.v1beta.MetricHeader"
|
37
|
+
repeated :rows, :message, 3, "google.analytics.data.v1beta.Row"
|
38
|
+
repeated :totals, :message, 4, "google.analytics.data.v1beta.Row"
|
39
|
+
repeated :maximums, :message, 5, "google.analytics.data.v1beta.Row"
|
40
|
+
repeated :minimums, :message, 6, "google.analytics.data.v1beta.Row"
|
41
|
+
optional :row_count, :int32, 7
|
42
|
+
optional :metadata, :message, 8, "google.analytics.data.v1beta.ResponseMetaData"
|
43
|
+
optional :property_quota, :message, 9, "google.analytics.data.v1beta.PropertyQuota"
|
44
|
+
optional :kind, :string, 10
|
45
|
+
end
|
46
|
+
add_message "google.analytics.data.v1beta.RunPivotReportRequest" do
|
47
|
+
optional :property, :string, 1
|
48
|
+
repeated :dimensions, :message, 2, "google.analytics.data.v1beta.Dimension"
|
49
|
+
repeated :metrics, :message, 3, "google.analytics.data.v1beta.Metric"
|
50
|
+
repeated :date_ranges, :message, 4, "google.analytics.data.v1beta.DateRange"
|
51
|
+
repeated :pivots, :message, 5, "google.analytics.data.v1beta.Pivot"
|
52
|
+
optional :dimension_filter, :message, 6, "google.analytics.data.v1beta.FilterExpression"
|
53
|
+
optional :metric_filter, :message, 7, "google.analytics.data.v1beta.FilterExpression"
|
54
|
+
optional :currency_code, :string, 8
|
55
|
+
optional :cohort_spec, :message, 9, "google.analytics.data.v1beta.CohortSpec"
|
56
|
+
optional :keep_empty_rows, :bool, 10
|
57
|
+
optional :return_property_quota, :bool, 11
|
58
|
+
end
|
59
|
+
add_message "google.analytics.data.v1beta.RunPivotReportResponse" do
|
60
|
+
repeated :pivot_headers, :message, 1, "google.analytics.data.v1beta.PivotHeader"
|
61
|
+
repeated :dimension_headers, :message, 2, "google.analytics.data.v1beta.DimensionHeader"
|
62
|
+
repeated :metric_headers, :message, 3, "google.analytics.data.v1beta.MetricHeader"
|
63
|
+
repeated :rows, :message, 4, "google.analytics.data.v1beta.Row"
|
64
|
+
repeated :aggregates, :message, 5, "google.analytics.data.v1beta.Row"
|
65
|
+
optional :metadata, :message, 6, "google.analytics.data.v1beta.ResponseMetaData"
|
66
|
+
optional :property_quota, :message, 7, "google.analytics.data.v1beta.PropertyQuota"
|
67
|
+
optional :kind, :string, 8
|
68
|
+
end
|
69
|
+
add_message "google.analytics.data.v1beta.BatchRunReportsRequest" do
|
70
|
+
optional :property, :string, 1
|
71
|
+
repeated :requests, :message, 2, "google.analytics.data.v1beta.RunReportRequest"
|
72
|
+
end
|
73
|
+
add_message "google.analytics.data.v1beta.BatchRunReportsResponse" do
|
74
|
+
repeated :reports, :message, 1, "google.analytics.data.v1beta.RunReportResponse"
|
75
|
+
optional :kind, :string, 2
|
76
|
+
end
|
77
|
+
add_message "google.analytics.data.v1beta.BatchRunPivotReportsRequest" do
|
78
|
+
optional :property, :string, 1
|
79
|
+
repeated :requests, :message, 2, "google.analytics.data.v1beta.RunPivotReportRequest"
|
80
|
+
end
|
81
|
+
add_message "google.analytics.data.v1beta.BatchRunPivotReportsResponse" do
|
82
|
+
repeated :pivot_reports, :message, 1, "google.analytics.data.v1beta.RunPivotReportResponse"
|
83
|
+
optional :kind, :string, 2
|
84
|
+
end
|
85
|
+
add_message "google.analytics.data.v1beta.GetMetadataRequest" do
|
86
|
+
optional :name, :string, 1
|
87
|
+
end
|
88
|
+
add_message "google.analytics.data.v1beta.RunRealtimeReportRequest" do
|
89
|
+
optional :property, :string, 1
|
90
|
+
repeated :dimensions, :message, 2, "google.analytics.data.v1beta.Dimension"
|
91
|
+
repeated :metrics, :message, 3, "google.analytics.data.v1beta.Metric"
|
92
|
+
optional :dimension_filter, :message, 4, "google.analytics.data.v1beta.FilterExpression"
|
93
|
+
optional :metric_filter, :message, 5, "google.analytics.data.v1beta.FilterExpression"
|
94
|
+
optional :limit, :int64, 6
|
95
|
+
repeated :metric_aggregations, :enum, 7, "google.analytics.data.v1beta.MetricAggregation"
|
96
|
+
repeated :order_bys, :message, 8, "google.analytics.data.v1beta.OrderBy"
|
97
|
+
optional :return_property_quota, :bool, 9
|
98
|
+
end
|
99
|
+
add_message "google.analytics.data.v1beta.RunRealtimeReportResponse" do
|
100
|
+
repeated :dimension_headers, :message, 1, "google.analytics.data.v1beta.DimensionHeader"
|
101
|
+
repeated :metric_headers, :message, 2, "google.analytics.data.v1beta.MetricHeader"
|
102
|
+
repeated :rows, :message, 3, "google.analytics.data.v1beta.Row"
|
103
|
+
repeated :totals, :message, 4, "google.analytics.data.v1beta.Row"
|
104
|
+
repeated :maximums, :message, 5, "google.analytics.data.v1beta.Row"
|
105
|
+
repeated :minimums, :message, 6, "google.analytics.data.v1beta.Row"
|
106
|
+
optional :row_count, :int32, 7
|
107
|
+
optional :property_quota, :message, 8, "google.analytics.data.v1beta.PropertyQuota"
|
108
|
+
optional :kind, :string, 9
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
module Google
|
114
|
+
module Analytics
|
115
|
+
module Data
|
116
|
+
module V1beta
|
117
|
+
Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Metadata").msgclass
|
118
|
+
RunReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.RunReportRequest").msgclass
|
119
|
+
RunReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.RunReportResponse").msgclass
|
120
|
+
RunPivotReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.RunPivotReportRequest").msgclass
|
121
|
+
RunPivotReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.RunPivotReportResponse").msgclass
|
122
|
+
BatchRunReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.BatchRunReportsRequest").msgclass
|
123
|
+
BatchRunReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.BatchRunReportsResponse").msgclass
|
124
|
+
BatchRunPivotReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.BatchRunPivotReportsRequest").msgclass
|
125
|
+
BatchRunPivotReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.BatchRunPivotReportsResponse").msgclass
|
126
|
+
GetMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.GetMetadataRequest").msgclass
|
127
|
+
RunRealtimeReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.RunRealtimeReportRequest").msgclass
|
128
|
+
RunRealtimeReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.RunRealtimeReportResponse").msgclass
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/analytics/data/v1beta/analytics_data_api.proto for package 'google.analytics.data.v1beta'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/analytics/data/v1beta/analytics_data_api_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Analytics
|
24
|
+
module Data
|
25
|
+
module V1beta
|
26
|
+
module BetaAnalyticsData
|
27
|
+
# Google Analytics reporting data service.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.analytics.data.v1beta.BetaAnalyticsData'
|
35
|
+
|
36
|
+
# Returns a customized report of your Google Analytics event data. Reports
|
37
|
+
# contain statistics derived from data collected by the Google Analytics
|
38
|
+
# tracking code. The data returned from the API is as a table with columns
|
39
|
+
# for the requested dimensions and metrics. Metrics are individual
|
40
|
+
# measurements of user activity on your property, such as active users or
|
41
|
+
# event count. Dimensions break down metrics across some common criteria,
|
42
|
+
# such as country or event name.
|
43
|
+
rpc :RunReport, ::Google::Analytics::Data::V1beta::RunReportRequest, ::Google::Analytics::Data::V1beta::RunReportResponse
|
44
|
+
# Returns a customized pivot report of your Google Analytics event data.
|
45
|
+
# Pivot reports are more advanced and expressive formats than regular
|
46
|
+
# reports. In a pivot report, dimensions are only visible if they are
|
47
|
+
# included in a pivot. Multiple pivots can be specified to further dissect
|
48
|
+
# your data.
|
49
|
+
rpc :RunPivotReport, ::Google::Analytics::Data::V1beta::RunPivotReportRequest, ::Google::Analytics::Data::V1beta::RunPivotReportResponse
|
50
|
+
# Returns multiple reports in a batch. All reports must be for the same
|
51
|
+
# GA4 Property.
|
52
|
+
rpc :BatchRunReports, ::Google::Analytics::Data::V1beta::BatchRunReportsRequest, ::Google::Analytics::Data::V1beta::BatchRunReportsResponse
|
53
|
+
# Returns multiple pivot reports in a batch. All reports must be for the same
|
54
|
+
# GA4 Property.
|
55
|
+
rpc :BatchRunPivotReports, ::Google::Analytics::Data::V1beta::BatchRunPivotReportsRequest, ::Google::Analytics::Data::V1beta::BatchRunPivotReportsResponse
|
56
|
+
# Returns metadata for dimensions and metrics available in reporting methods.
|
57
|
+
# Used to explore the dimensions and metrics. In this method, a Google
|
58
|
+
# Analytics GA4 Property Identifier is specified in the request, and
|
59
|
+
# the metadata response includes Custom dimensions and metrics as well as
|
60
|
+
# Universal metadata.
|
61
|
+
#
|
62
|
+
# For example if a custom metric with parameter name `levels_unlocked` is
|
63
|
+
# registered to a property, the Metadata response will contain
|
64
|
+
# `customEvent:levels_unlocked`. Universal metadata are dimensions and
|
65
|
+
# metrics applicable to any property such as `country` and `totalUsers`.
|
66
|
+
rpc :GetMetadata, ::Google::Analytics::Data::V1beta::GetMetadataRequest, ::Google::Analytics::Data::V1beta::Metadata
|
67
|
+
# The Google Analytics Realtime API returns a customized report of realtime
|
68
|
+
# event data for your property. These reports show events and usage from the
|
69
|
+
# last 30 minutes.
|
70
|
+
rpc :RunRealtimeReport, ::Google::Analytics::Data::V1beta::RunRealtimeReportRequest, ::Google::Analytics::Data::V1beta::RunRealtimeReportResponse
|
71
|
+
end
|
72
|
+
|
73
|
+
Stub = Service.rpc_stub_class
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,288 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/analytics/data/v1beta/data.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
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.Dimension" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :dimension_expression, :message, 2, "google.analytics.data.v1beta.DimensionExpression"
|
16
|
+
end
|
17
|
+
add_message "google.analytics.data.v1beta.DimensionExpression" do
|
18
|
+
oneof :one_expression do
|
19
|
+
optional :lower_case, :message, 4, "google.analytics.data.v1beta.DimensionExpression.CaseExpression"
|
20
|
+
optional :upper_case, :message, 5, "google.analytics.data.v1beta.DimensionExpression.CaseExpression"
|
21
|
+
optional :concatenate, :message, 6, "google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
add_message "google.analytics.data.v1beta.DimensionExpression.CaseExpression" do
|
25
|
+
optional :dimension_name, :string, 1
|
26
|
+
end
|
27
|
+
add_message "google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression" do
|
28
|
+
repeated :dimension_names, :string, 1
|
29
|
+
optional :delimiter, :string, 2
|
30
|
+
end
|
31
|
+
add_message "google.analytics.data.v1beta.Metric" do
|
32
|
+
optional :name, :string, 1
|
33
|
+
optional :expression, :string, 2
|
34
|
+
optional :invisible, :bool, 3
|
35
|
+
end
|
36
|
+
add_message "google.analytics.data.v1beta.FilterExpression" do
|
37
|
+
oneof :expr do
|
38
|
+
optional :and_group, :message, 1, "google.analytics.data.v1beta.FilterExpressionList"
|
39
|
+
optional :or_group, :message, 2, "google.analytics.data.v1beta.FilterExpressionList"
|
40
|
+
optional :not_expression, :message, 3, "google.analytics.data.v1beta.FilterExpression"
|
41
|
+
optional :filter, :message, 4, "google.analytics.data.v1beta.Filter"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
add_message "google.analytics.data.v1beta.FilterExpressionList" do
|
45
|
+
repeated :expressions, :message, 1, "google.analytics.data.v1beta.FilterExpression"
|
46
|
+
end
|
47
|
+
add_message "google.analytics.data.v1beta.Filter" do
|
48
|
+
optional :field_name, :string, 1
|
49
|
+
oneof :one_filter do
|
50
|
+
optional :string_filter, :message, 3, "google.analytics.data.v1beta.Filter.StringFilter"
|
51
|
+
optional :in_list_filter, :message, 4, "google.analytics.data.v1beta.Filter.InListFilter"
|
52
|
+
optional :numeric_filter, :message, 5, "google.analytics.data.v1beta.Filter.NumericFilter"
|
53
|
+
optional :between_filter, :message, 6, "google.analytics.data.v1beta.Filter.BetweenFilter"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
add_message "google.analytics.data.v1beta.Filter.StringFilter" do
|
57
|
+
optional :match_type, :enum, 1, "google.analytics.data.v1beta.Filter.StringFilter.MatchType"
|
58
|
+
optional :value, :string, 2
|
59
|
+
optional :case_sensitive, :bool, 3
|
60
|
+
end
|
61
|
+
add_enum "google.analytics.data.v1beta.Filter.StringFilter.MatchType" do
|
62
|
+
value :MATCH_TYPE_UNSPECIFIED, 0
|
63
|
+
value :EXACT, 1
|
64
|
+
value :BEGINS_WITH, 2
|
65
|
+
value :ENDS_WITH, 3
|
66
|
+
value :CONTAINS, 4
|
67
|
+
value :FULL_REGEXP, 5
|
68
|
+
value :PARTIAL_REGEXP, 6
|
69
|
+
end
|
70
|
+
add_message "google.analytics.data.v1beta.Filter.InListFilter" do
|
71
|
+
repeated :values, :string, 1
|
72
|
+
optional :case_sensitive, :bool, 2
|
73
|
+
end
|
74
|
+
add_message "google.analytics.data.v1beta.Filter.NumericFilter" do
|
75
|
+
optional :operation, :enum, 1, "google.analytics.data.v1beta.Filter.NumericFilter.Operation"
|
76
|
+
optional :value, :message, 2, "google.analytics.data.v1beta.NumericValue"
|
77
|
+
end
|
78
|
+
add_enum "google.analytics.data.v1beta.Filter.NumericFilter.Operation" do
|
79
|
+
value :OPERATION_UNSPECIFIED, 0
|
80
|
+
value :EQUAL, 1
|
81
|
+
value :LESS_THAN, 2
|
82
|
+
value :LESS_THAN_OR_EQUAL, 3
|
83
|
+
value :GREATER_THAN, 4
|
84
|
+
value :GREATER_THAN_OR_EQUAL, 5
|
85
|
+
end
|
86
|
+
add_message "google.analytics.data.v1beta.Filter.BetweenFilter" do
|
87
|
+
optional :from_value, :message, 1, "google.analytics.data.v1beta.NumericValue"
|
88
|
+
optional :to_value, :message, 2, "google.analytics.data.v1beta.NumericValue"
|
89
|
+
end
|
90
|
+
add_message "google.analytics.data.v1beta.OrderBy" do
|
91
|
+
optional :desc, :bool, 4
|
92
|
+
oneof :one_order_by do
|
93
|
+
optional :metric, :message, 1, "google.analytics.data.v1beta.OrderBy.MetricOrderBy"
|
94
|
+
optional :dimension, :message, 2, "google.analytics.data.v1beta.OrderBy.DimensionOrderBy"
|
95
|
+
optional :pivot, :message, 3, "google.analytics.data.v1beta.OrderBy.PivotOrderBy"
|
96
|
+
end
|
97
|
+
end
|
98
|
+
add_message "google.analytics.data.v1beta.OrderBy.MetricOrderBy" do
|
99
|
+
optional :metric_name, :string, 1
|
100
|
+
end
|
101
|
+
add_message "google.analytics.data.v1beta.OrderBy.DimensionOrderBy" do
|
102
|
+
optional :dimension_name, :string, 1
|
103
|
+
optional :order_type, :enum, 2, "google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType"
|
104
|
+
end
|
105
|
+
add_enum "google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType" do
|
106
|
+
value :ORDER_TYPE_UNSPECIFIED, 0
|
107
|
+
value :ALPHANUMERIC, 1
|
108
|
+
value :CASE_INSENSITIVE_ALPHANUMERIC, 2
|
109
|
+
value :NUMERIC, 3
|
110
|
+
end
|
111
|
+
add_message "google.analytics.data.v1beta.OrderBy.PivotOrderBy" do
|
112
|
+
optional :metric_name, :string, 1
|
113
|
+
repeated :pivot_selections, :message, 2, "google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection"
|
114
|
+
end
|
115
|
+
add_message "google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection" do
|
116
|
+
optional :dimension_name, :string, 1
|
117
|
+
optional :dimension_value, :string, 2
|
118
|
+
end
|
119
|
+
add_message "google.analytics.data.v1beta.Pivot" do
|
120
|
+
repeated :field_names, :string, 1
|
121
|
+
repeated :order_bys, :message, 2, "google.analytics.data.v1beta.OrderBy"
|
122
|
+
optional :offset, :int64, 3
|
123
|
+
optional :limit, :int64, 4
|
124
|
+
repeated :metric_aggregations, :enum, 5, "google.analytics.data.v1beta.MetricAggregation"
|
125
|
+
end
|
126
|
+
add_message "google.analytics.data.v1beta.CohortSpec" do
|
127
|
+
repeated :cohorts, :message, 1, "google.analytics.data.v1beta.Cohort"
|
128
|
+
optional :cohorts_range, :message, 2, "google.analytics.data.v1beta.CohortsRange"
|
129
|
+
optional :cohort_report_settings, :message, 3, "google.analytics.data.v1beta.CohortReportSettings"
|
130
|
+
end
|
131
|
+
add_message "google.analytics.data.v1beta.Cohort" do
|
132
|
+
optional :name, :string, 1
|
133
|
+
optional :dimension, :string, 2
|
134
|
+
optional :date_range, :message, 3, "google.analytics.data.v1beta.DateRange"
|
135
|
+
end
|
136
|
+
add_message "google.analytics.data.v1beta.CohortsRange" do
|
137
|
+
optional :granularity, :enum, 1, "google.analytics.data.v1beta.CohortsRange.Granularity"
|
138
|
+
optional :start_offset, :int32, 2
|
139
|
+
optional :end_offset, :int32, 3
|
140
|
+
end
|
141
|
+
add_enum "google.analytics.data.v1beta.CohortsRange.Granularity" do
|
142
|
+
value :GRANULARITY_UNSPECIFIED, 0
|
143
|
+
value :DAILY, 1
|
144
|
+
value :WEEKLY, 2
|
145
|
+
value :MONTHLY, 3
|
146
|
+
end
|
147
|
+
add_message "google.analytics.data.v1beta.CohortReportSettings" do
|
148
|
+
optional :accumulate, :bool, 1
|
149
|
+
end
|
150
|
+
add_message "google.analytics.data.v1beta.ResponseMetaData" do
|
151
|
+
optional :data_loss_from_other_row, :bool, 3
|
152
|
+
end
|
153
|
+
add_message "google.analytics.data.v1beta.DimensionHeader" do
|
154
|
+
optional :name, :string, 1
|
155
|
+
end
|
156
|
+
add_message "google.analytics.data.v1beta.MetricHeader" do
|
157
|
+
optional :name, :string, 1
|
158
|
+
optional :type, :enum, 2, "google.analytics.data.v1beta.MetricType"
|
159
|
+
end
|
160
|
+
add_message "google.analytics.data.v1beta.PivotHeader" do
|
161
|
+
repeated :pivot_dimension_headers, :message, 1, "google.analytics.data.v1beta.PivotDimensionHeader"
|
162
|
+
optional :row_count, :int32, 2
|
163
|
+
end
|
164
|
+
add_message "google.analytics.data.v1beta.PivotDimensionHeader" do
|
165
|
+
repeated :dimension_values, :message, 1, "google.analytics.data.v1beta.DimensionValue"
|
166
|
+
end
|
167
|
+
add_message "google.analytics.data.v1beta.Row" do
|
168
|
+
repeated :dimension_values, :message, 1, "google.analytics.data.v1beta.DimensionValue"
|
169
|
+
repeated :metric_values, :message, 2, "google.analytics.data.v1beta.MetricValue"
|
170
|
+
end
|
171
|
+
add_message "google.analytics.data.v1beta.DimensionValue" do
|
172
|
+
oneof :one_value do
|
173
|
+
optional :value, :string, 1
|
174
|
+
end
|
175
|
+
end
|
176
|
+
add_message "google.analytics.data.v1beta.MetricValue" do
|
177
|
+
oneof :one_value do
|
178
|
+
optional :value, :string, 4
|
179
|
+
end
|
180
|
+
end
|
181
|
+
add_message "google.analytics.data.v1beta.NumericValue" do
|
182
|
+
oneof :one_value do
|
183
|
+
optional :int64_value, :int64, 1
|
184
|
+
optional :double_value, :double, 2
|
185
|
+
end
|
186
|
+
end
|
187
|
+
add_message "google.analytics.data.v1beta.PropertyQuota" do
|
188
|
+
optional :tokens_per_day, :message, 1, "google.analytics.data.v1beta.QuotaStatus"
|
189
|
+
optional :tokens_per_hour, :message, 2, "google.analytics.data.v1beta.QuotaStatus"
|
190
|
+
optional :concurrent_requests, :message, 3, "google.analytics.data.v1beta.QuotaStatus"
|
191
|
+
optional :server_errors_per_project_per_hour, :message, 4, "google.analytics.data.v1beta.QuotaStatus"
|
192
|
+
optional :potentially_thresholded_requests_per_hour, :message, 5, "google.analytics.data.v1beta.QuotaStatus"
|
193
|
+
end
|
194
|
+
add_message "google.analytics.data.v1beta.QuotaStatus" do
|
195
|
+
optional :consumed, :int32, 1
|
196
|
+
optional :remaining, :int32, 2
|
197
|
+
end
|
198
|
+
add_message "google.analytics.data.v1beta.DimensionMetadata" do
|
199
|
+
optional :api_name, :string, 1
|
200
|
+
optional :ui_name, :string, 2
|
201
|
+
optional :description, :string, 3
|
202
|
+
repeated :deprecated_api_names, :string, 4
|
203
|
+
optional :custom_definition, :bool, 5
|
204
|
+
end
|
205
|
+
add_message "google.analytics.data.v1beta.MetricMetadata" do
|
206
|
+
optional :api_name, :string, 1
|
207
|
+
optional :ui_name, :string, 2
|
208
|
+
optional :description, :string, 3
|
209
|
+
repeated :deprecated_api_names, :string, 4
|
210
|
+
optional :type, :enum, 5, "google.analytics.data.v1beta.MetricType"
|
211
|
+
optional :expression, :string, 6
|
212
|
+
optional :custom_definition, :bool, 7
|
213
|
+
end
|
214
|
+
add_enum "google.analytics.data.v1beta.MetricAggregation" do
|
215
|
+
value :METRIC_AGGREGATION_UNSPECIFIED, 0
|
216
|
+
value :TOTAL, 1
|
217
|
+
value :MINIMUM, 5
|
218
|
+
value :MAXIMUM, 6
|
219
|
+
value :COUNT, 4
|
220
|
+
end
|
221
|
+
add_enum "google.analytics.data.v1beta.MetricType" do
|
222
|
+
value :METRIC_TYPE_UNSPECIFIED, 0
|
223
|
+
value :TYPE_INTEGER, 1
|
224
|
+
value :TYPE_FLOAT, 2
|
225
|
+
value :TYPE_SECONDS, 4
|
226
|
+
value :TYPE_MILLISECONDS, 5
|
227
|
+
value :TYPE_MINUTES, 6
|
228
|
+
value :TYPE_HOURS, 7
|
229
|
+
value :TYPE_STANDARD, 8
|
230
|
+
value :TYPE_CURRENCY, 9
|
231
|
+
value :TYPE_FEET, 10
|
232
|
+
value :TYPE_MILES, 11
|
233
|
+
value :TYPE_METERS, 12
|
234
|
+
value :TYPE_KILOMETERS, 13
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
module Google
|
240
|
+
module Analytics
|
241
|
+
module Data
|
242
|
+
module V1beta
|
243
|
+
DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DateRange").msgclass
|
244
|
+
Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Dimension").msgclass
|
245
|
+
DimensionExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionExpression").msgclass
|
246
|
+
DimensionExpression::CaseExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionExpression.CaseExpression").msgclass
|
247
|
+
DimensionExpression::ConcatenateExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression").msgclass
|
248
|
+
Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Metric").msgclass
|
249
|
+
FilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.FilterExpression").msgclass
|
250
|
+
FilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.FilterExpressionList").msgclass
|
251
|
+
Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Filter").msgclass
|
252
|
+
Filter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Filter.StringFilter").msgclass
|
253
|
+
Filter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Filter.StringFilter.MatchType").enummodule
|
254
|
+
Filter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Filter.InListFilter").msgclass
|
255
|
+
Filter::NumericFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Filter.NumericFilter").msgclass
|
256
|
+
Filter::NumericFilter::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Filter.NumericFilter.Operation").enummodule
|
257
|
+
Filter::BetweenFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Filter.BetweenFilter").msgclass
|
258
|
+
OrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.OrderBy").msgclass
|
259
|
+
OrderBy::MetricOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.OrderBy.MetricOrderBy").msgclass
|
260
|
+
OrderBy::DimensionOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.OrderBy.DimensionOrderBy").msgclass
|
261
|
+
OrderBy::DimensionOrderBy::OrderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType").enummodule
|
262
|
+
OrderBy::PivotOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.OrderBy.PivotOrderBy").msgclass
|
263
|
+
OrderBy::PivotOrderBy::PivotSelection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection").msgclass
|
264
|
+
Pivot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Pivot").msgclass
|
265
|
+
CohortSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.CohortSpec").msgclass
|
266
|
+
Cohort = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Cohort").msgclass
|
267
|
+
CohortsRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.CohortsRange").msgclass
|
268
|
+
CohortsRange::Granularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.CohortsRange.Granularity").enummodule
|
269
|
+
CohortReportSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.CohortReportSettings").msgclass
|
270
|
+
ResponseMetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.ResponseMetaData").msgclass
|
271
|
+
DimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionHeader").msgclass
|
272
|
+
MetricHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricHeader").msgclass
|
273
|
+
PivotHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.PivotHeader").msgclass
|
274
|
+
PivotDimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.PivotDimensionHeader").msgclass
|
275
|
+
Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Row").msgclass
|
276
|
+
DimensionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionValue").msgclass
|
277
|
+
MetricValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricValue").msgclass
|
278
|
+
NumericValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.NumericValue").msgclass
|
279
|
+
PropertyQuota = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.PropertyQuota").msgclass
|
280
|
+
QuotaStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.QuotaStatus").msgclass
|
281
|
+
DimensionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionMetadata").msgclass
|
282
|
+
MetricMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricMetadata").msgclass
|
283
|
+
MetricAggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricAggregation").enummodule
|
284
|
+
MetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricType").enummodule
|
285
|
+
end
|
286
|
+
end
|
287
|
+
end
|
288
|
+
end
|