google-analytics-data-v1alpha 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 +203 -0
- data/README.md +72 -0
- data/lib/google-analytics-data-v1alpha.rb +21 -0
- data/lib/google/analytics/data/v1alpha.rb +35 -0
- data/lib/google/analytics/data/v1alpha/analytics_data.rb +49 -0
- data/lib/google/analytics/data/v1alpha/analytics_data/client.rb +760 -0
- data/lib/google/analytics/data/v1alpha/analytics_data/credentials.rb +52 -0
- data/lib/google/analytics/data/v1alpha/analytics_data/paths.rb +64 -0
- data/lib/google/analytics/data/v1alpha/analytics_data_api_pb.rb +103 -0
- data/lib/google/analytics/data/v1alpha/analytics_data_api_services_pb.rb +67 -0
- data/lib/google/analytics/data/v1alpha/data_pb.rb +282 -0
- data/lib/google/analytics/data/v1alpha/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/analytics/data/v1alpha/analytics_data_api.rb +321 -0
- data/proto_docs/google/analytics/data/v1alpha/data.rb +771 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +283 -0
- metadata +205 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 V1alpha
|
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_CREDENTIALS",
|
34
|
+
"ANALYTICS_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"ANALYTICS_CREDENTIALS_JSON",
|
39
|
+
"ANALYTICS_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,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 V1alpha
|
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
|
+
# @overload metadata_path()
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `metadata`
|
34
|
+
#
|
35
|
+
# @overload metadata_path(property:)
|
36
|
+
# The resource will be in the following format:
|
37
|
+
#
|
38
|
+
# `properties/{property}/metadata`
|
39
|
+
#
|
40
|
+
# @param property [String]
|
41
|
+
#
|
42
|
+
# @return [::String]
|
43
|
+
def metadata_path **args
|
44
|
+
resources = {
|
45
|
+
"" => (proc do
|
46
|
+
"metadata"
|
47
|
+
end),
|
48
|
+
"property" => (proc do |property:|
|
49
|
+
"properties/#{property}/metadata"
|
50
|
+
end)
|
51
|
+
}
|
52
|
+
|
53
|
+
resource = resources[args.keys.sort.join(":")]
|
54
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
55
|
+
resource.call(**args)
|
56
|
+
end
|
57
|
+
|
58
|
+
extend self
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/analytics/data/v1alpha/analytics_data_api.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/analytics/data/v1alpha/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/v1alpha/analytics_data_api.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.analytics.data.v1alpha.Metadata" do
|
14
|
+
optional :name, :string, 3
|
15
|
+
repeated :dimensions, :message, 1, "google.analytics.data.v1alpha.DimensionMetadata"
|
16
|
+
repeated :metrics, :message, 2, "google.analytics.data.v1alpha.MetricMetadata"
|
17
|
+
end
|
18
|
+
add_message "google.analytics.data.v1alpha.RunReportRequest" do
|
19
|
+
optional :entity, :message, 1, "google.analytics.data.v1alpha.Entity"
|
20
|
+
repeated :dimensions, :message, 2, "google.analytics.data.v1alpha.Dimension"
|
21
|
+
repeated :metrics, :message, 3, "google.analytics.data.v1alpha.Metric"
|
22
|
+
repeated :date_ranges, :message, 4, "google.analytics.data.v1alpha.DateRange"
|
23
|
+
optional :offset, :int64, 5
|
24
|
+
optional :limit, :int64, 6
|
25
|
+
repeated :metric_aggregations, :enum, 7, "google.analytics.data.v1alpha.MetricAggregation"
|
26
|
+
optional :dimension_filter, :message, 8, "google.analytics.data.v1alpha.FilterExpression"
|
27
|
+
optional :metric_filter, :message, 9, "google.analytics.data.v1alpha.FilterExpression"
|
28
|
+
repeated :order_bys, :message, 10, "google.analytics.data.v1alpha.OrderBy"
|
29
|
+
optional :currency_code, :string, 11
|
30
|
+
optional :cohort_spec, :message, 12, "google.analytics.data.v1alpha.CohortSpec"
|
31
|
+
optional :keep_empty_rows, :bool, 13
|
32
|
+
optional :return_property_quota, :bool, 14
|
33
|
+
end
|
34
|
+
add_message "google.analytics.data.v1alpha.RunReportResponse" do
|
35
|
+
repeated :dimension_headers, :message, 11, "google.analytics.data.v1alpha.DimensionHeader"
|
36
|
+
repeated :metric_headers, :message, 1, "google.analytics.data.v1alpha.MetricHeader"
|
37
|
+
repeated :rows, :message, 2, "google.analytics.data.v1alpha.Row"
|
38
|
+
repeated :totals, :message, 8, "google.analytics.data.v1alpha.Row"
|
39
|
+
repeated :maximums, :message, 9, "google.analytics.data.v1alpha.Row"
|
40
|
+
repeated :minimums, :message, 10, "google.analytics.data.v1alpha.Row"
|
41
|
+
optional :metadata, :message, 6, "google.analytics.data.v1alpha.ResponseMetaData"
|
42
|
+
optional :property_quota, :message, 7, "google.analytics.data.v1alpha.PropertyQuota"
|
43
|
+
end
|
44
|
+
add_message "google.analytics.data.v1alpha.RunPivotReportRequest" do
|
45
|
+
optional :entity, :message, 1, "google.analytics.data.v1alpha.Entity"
|
46
|
+
repeated :dimensions, :message, 2, "google.analytics.data.v1alpha.Dimension"
|
47
|
+
repeated :metrics, :message, 3, "google.analytics.data.v1alpha.Metric"
|
48
|
+
optional :dimension_filter, :message, 4, "google.analytics.data.v1alpha.FilterExpression"
|
49
|
+
optional :metric_filter, :message, 5, "google.analytics.data.v1alpha.FilterExpression"
|
50
|
+
repeated :pivots, :message, 6, "google.analytics.data.v1alpha.Pivot"
|
51
|
+
repeated :date_ranges, :message, 7, "google.analytics.data.v1alpha.DateRange"
|
52
|
+
optional :currency_code, :string, 8
|
53
|
+
optional :cohort_spec, :message, 9, "google.analytics.data.v1alpha.CohortSpec"
|
54
|
+
optional :keep_empty_rows, :bool, 10
|
55
|
+
optional :return_property_quota, :bool, 11
|
56
|
+
end
|
57
|
+
add_message "google.analytics.data.v1alpha.RunPivotReportResponse" do
|
58
|
+
repeated :pivot_headers, :message, 1, "google.analytics.data.v1alpha.PivotHeader"
|
59
|
+
repeated :dimension_headers, :message, 7, "google.analytics.data.v1alpha.DimensionHeader"
|
60
|
+
repeated :metric_headers, :message, 2, "google.analytics.data.v1alpha.MetricHeader"
|
61
|
+
repeated :rows, :message, 3, "google.analytics.data.v1alpha.Row"
|
62
|
+
repeated :aggregates, :message, 4, "google.analytics.data.v1alpha.Row"
|
63
|
+
optional :metadata, :message, 5, "google.analytics.data.v1alpha.ResponseMetaData"
|
64
|
+
optional :property_quota, :message, 6, "google.analytics.data.v1alpha.PropertyQuota"
|
65
|
+
end
|
66
|
+
add_message "google.analytics.data.v1alpha.BatchRunReportsRequest" do
|
67
|
+
optional :entity, :message, 1, "google.analytics.data.v1alpha.Entity"
|
68
|
+
repeated :requests, :message, 2, "google.analytics.data.v1alpha.RunReportRequest"
|
69
|
+
end
|
70
|
+
add_message "google.analytics.data.v1alpha.BatchRunReportsResponse" do
|
71
|
+
repeated :reports, :message, 1, "google.analytics.data.v1alpha.RunReportResponse"
|
72
|
+
end
|
73
|
+
add_message "google.analytics.data.v1alpha.BatchRunPivotReportsRequest" do
|
74
|
+
optional :entity, :message, 1, "google.analytics.data.v1alpha.Entity"
|
75
|
+
repeated :requests, :message, 2, "google.analytics.data.v1alpha.RunPivotReportRequest"
|
76
|
+
end
|
77
|
+
add_message "google.analytics.data.v1alpha.BatchRunPivotReportsResponse" do
|
78
|
+
repeated :pivot_reports, :message, 1, "google.analytics.data.v1alpha.RunPivotReportResponse"
|
79
|
+
end
|
80
|
+
add_message "google.analytics.data.v1alpha.GetMetadataRequest" do
|
81
|
+
optional :name, :string, 1
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
module Google
|
87
|
+
module Analytics
|
88
|
+
module Data
|
89
|
+
module V1alpha
|
90
|
+
Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Metadata").msgclass
|
91
|
+
RunReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunReportRequest").msgclass
|
92
|
+
RunReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunReportResponse").msgclass
|
93
|
+
RunPivotReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunPivotReportRequest").msgclass
|
94
|
+
RunPivotReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.RunPivotReportResponse").msgclass
|
95
|
+
BatchRunReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.BatchRunReportsRequest").msgclass
|
96
|
+
BatchRunReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.BatchRunReportsResponse").msgclass
|
97
|
+
BatchRunPivotReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.BatchRunPivotReportsRequest").msgclass
|
98
|
+
BatchRunPivotReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.BatchRunPivotReportsResponse").msgclass
|
99
|
+
GetMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.GetMetadataRequest").msgclass
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/analytics/data/v1alpha/analytics_data_api.proto for package 'google.analytics.data.v1alpha'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2020 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/v1alpha/analytics_data_api_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Analytics
|
24
|
+
module Data
|
25
|
+
module V1alpha
|
26
|
+
module AlphaAnalyticsData
|
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.v1alpha.AlphaAnalyticsData'
|
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::V1alpha::RunReportRequest, ::Google::Analytics::Data::V1alpha::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::V1alpha::RunPivotReportRequest, ::Google::Analytics::Data::V1alpha::RunPivotReportResponse
|
50
|
+
# Returns multiple reports in a batch. All reports must be for the same
|
51
|
+
# Entity.
|
52
|
+
rpc :BatchRunReports, ::Google::Analytics::Data::V1alpha::BatchRunReportsRequest, ::Google::Analytics::Data::V1alpha::BatchRunReportsResponse
|
53
|
+
# Returns multiple pivot reports in a batch. All reports must be for the same
|
54
|
+
# Entity.
|
55
|
+
rpc :BatchRunPivotReports, ::Google::Analytics::Data::V1alpha::BatchRunPivotReportsRequest, ::Google::Analytics::Data::V1alpha::BatchRunPivotReportsResponse
|
56
|
+
# Returns metadata for dimensions and metrics available in reporting methods.
|
57
|
+
# Used to explore the dimensions and metrics. Dimensions and metrics will be
|
58
|
+
# mostly added over time, but renames and deletions may occur.
|
59
|
+
rpc :GetMetadata, ::Google::Analytics::Data::V1alpha::GetMetadataRequest, ::Google::Analytics::Data::V1alpha::Metadata
|
60
|
+
end
|
61
|
+
|
62
|
+
Stub = Service.rpc_stub_class
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,282 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/analytics/data/v1alpha/data.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/analytics/data/v1alpha/data.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.analytics.data.v1alpha.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.v1alpha.Entity" do
|
14
|
+
optional :property_id, :string, 1
|
15
|
+
end
|
16
|
+
add_message "google.analytics.data.v1alpha.Dimension" do
|
17
|
+
optional :name, :string, 1
|
18
|
+
optional :dimension_expression, :message, 2, "google.analytics.data.v1alpha.DimensionExpression"
|
19
|
+
end
|
20
|
+
add_message "google.analytics.data.v1alpha.DimensionExpression" do
|
21
|
+
oneof :one_expression do
|
22
|
+
optional :lower_case, :message, 4, "google.analytics.data.v1alpha.DimensionExpression.CaseExpression"
|
23
|
+
optional :upper_case, :message, 5, "google.analytics.data.v1alpha.DimensionExpression.CaseExpression"
|
24
|
+
optional :concatenate, :message, 6, "google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
add_message "google.analytics.data.v1alpha.DimensionExpression.CaseExpression" do
|
28
|
+
optional :dimension_name, :string, 1
|
29
|
+
end
|
30
|
+
add_message "google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression" do
|
31
|
+
repeated :dimension_names, :string, 1
|
32
|
+
optional :delimiter, :string, 2
|
33
|
+
end
|
34
|
+
add_message "google.analytics.data.v1alpha.Metric" do
|
35
|
+
optional :name, :string, 1
|
36
|
+
optional :expression, :string, 2
|
37
|
+
optional :invisible, :bool, 3
|
38
|
+
end
|
39
|
+
add_message "google.analytics.data.v1alpha.FilterExpression" do
|
40
|
+
oneof :expr do
|
41
|
+
optional :and_group, :message, 1, "google.analytics.data.v1alpha.FilterExpressionList"
|
42
|
+
optional :or_group, :message, 2, "google.analytics.data.v1alpha.FilterExpressionList"
|
43
|
+
optional :not_expression, :message, 3, "google.analytics.data.v1alpha.FilterExpression"
|
44
|
+
optional :filter, :message, 4, "google.analytics.data.v1alpha.Filter"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
add_message "google.analytics.data.v1alpha.FilterExpressionList" do
|
48
|
+
repeated :expressions, :message, 1, "google.analytics.data.v1alpha.FilterExpression"
|
49
|
+
end
|
50
|
+
add_message "google.analytics.data.v1alpha.Filter" do
|
51
|
+
optional :field_name, :string, 1
|
52
|
+
oneof :one_filter do
|
53
|
+
optional :null_filter, :bool, 2
|
54
|
+
optional :string_filter, :message, 3, "google.analytics.data.v1alpha.Filter.StringFilter"
|
55
|
+
optional :in_list_filter, :message, 4, "google.analytics.data.v1alpha.Filter.InListFilter"
|
56
|
+
optional :numeric_filter, :message, 5, "google.analytics.data.v1alpha.Filter.NumericFilter"
|
57
|
+
optional :between_filter, :message, 6, "google.analytics.data.v1alpha.Filter.BetweenFilter"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
add_message "google.analytics.data.v1alpha.Filter.StringFilter" do
|
61
|
+
optional :match_type, :enum, 1, "google.analytics.data.v1alpha.Filter.StringFilter.MatchType"
|
62
|
+
optional :value, :string, 2
|
63
|
+
optional :case_sensitive, :bool, 3
|
64
|
+
end
|
65
|
+
add_enum "google.analytics.data.v1alpha.Filter.StringFilter.MatchType" do
|
66
|
+
value :MATCH_TYPE_UNSPECIFIED, 0
|
67
|
+
value :EXACT, 1
|
68
|
+
value :BEGINS_WITH, 2
|
69
|
+
value :ENDS_WITH, 3
|
70
|
+
value :CONTAINS, 4
|
71
|
+
value :FULL_REGEXP, 5
|
72
|
+
value :PARTIAL_REGEXP, 6
|
73
|
+
end
|
74
|
+
add_message "google.analytics.data.v1alpha.Filter.InListFilter" do
|
75
|
+
repeated :values, :string, 1
|
76
|
+
optional :case_sensitive, :bool, 2
|
77
|
+
end
|
78
|
+
add_message "google.analytics.data.v1alpha.Filter.NumericFilter" do
|
79
|
+
optional :operation, :enum, 1, "google.analytics.data.v1alpha.Filter.NumericFilter.Operation"
|
80
|
+
optional :value, :message, 2, "google.analytics.data.v1alpha.NumericValue"
|
81
|
+
end
|
82
|
+
add_enum "google.analytics.data.v1alpha.Filter.NumericFilter.Operation" do
|
83
|
+
value :OPERATION_UNSPECIFIED, 0
|
84
|
+
value :EQUAL, 1
|
85
|
+
value :LESS_THAN, 2
|
86
|
+
value :LESS_THAN_OR_EQUAL, 3
|
87
|
+
value :GREATER_THAN, 4
|
88
|
+
value :GREATER_THAN_OR_EQUAL, 5
|
89
|
+
end
|
90
|
+
add_message "google.analytics.data.v1alpha.Filter.BetweenFilter" do
|
91
|
+
optional :from_value, :message, 1, "google.analytics.data.v1alpha.NumericValue"
|
92
|
+
optional :to_value, :message, 2, "google.analytics.data.v1alpha.NumericValue"
|
93
|
+
end
|
94
|
+
add_message "google.analytics.data.v1alpha.OrderBy" do
|
95
|
+
optional :desc, :bool, 4
|
96
|
+
oneof :one_order_by do
|
97
|
+
optional :metric, :message, 1, "google.analytics.data.v1alpha.OrderBy.MetricOrderBy"
|
98
|
+
optional :dimension, :message, 2, "google.analytics.data.v1alpha.OrderBy.DimensionOrderBy"
|
99
|
+
optional :pivot, :message, 3, "google.analytics.data.v1alpha.OrderBy.PivotOrderBy"
|
100
|
+
end
|
101
|
+
end
|
102
|
+
add_message "google.analytics.data.v1alpha.OrderBy.MetricOrderBy" do
|
103
|
+
optional :metric_name, :string, 1
|
104
|
+
end
|
105
|
+
add_message "google.analytics.data.v1alpha.OrderBy.DimensionOrderBy" do
|
106
|
+
optional :dimension_name, :string, 1
|
107
|
+
optional :order_type, :enum, 2, "google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType"
|
108
|
+
end
|
109
|
+
add_enum "google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType" do
|
110
|
+
value :ORDER_TYPE_UNSPECIFIED, 0
|
111
|
+
value :ALPHANUMERIC, 1
|
112
|
+
value :CASE_INSENSITIVE_ALPHANUMERIC, 2
|
113
|
+
value :NUMERIC, 3
|
114
|
+
end
|
115
|
+
add_message "google.analytics.data.v1alpha.OrderBy.PivotOrderBy" do
|
116
|
+
optional :metric_name, :string, 1
|
117
|
+
repeated :pivot_selections, :message, 2, "google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection"
|
118
|
+
end
|
119
|
+
add_message "google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection" do
|
120
|
+
optional :dimension_name, :string, 1
|
121
|
+
optional :dimension_value, :string, 2
|
122
|
+
end
|
123
|
+
add_message "google.analytics.data.v1alpha.Pivot" do
|
124
|
+
repeated :field_names, :string, 1
|
125
|
+
repeated :order_bys, :message, 2, "google.analytics.data.v1alpha.OrderBy"
|
126
|
+
optional :offset, :int64, 3
|
127
|
+
optional :limit, :int64, 4
|
128
|
+
repeated :metric_aggregations, :enum, 5, "google.analytics.data.v1alpha.MetricAggregation"
|
129
|
+
end
|
130
|
+
add_message "google.analytics.data.v1alpha.CohortSpec" do
|
131
|
+
repeated :cohorts, :message, 1, "google.analytics.data.v1alpha.Cohort"
|
132
|
+
optional :cohorts_range, :message, 2, "google.analytics.data.v1alpha.CohortsRange"
|
133
|
+
optional :cohort_report_settings, :message, 3, "google.analytics.data.v1alpha.CohortReportSettings"
|
134
|
+
end
|
135
|
+
add_message "google.analytics.data.v1alpha.Cohort" do
|
136
|
+
optional :name, :string, 1
|
137
|
+
optional :dimension, :string, 2
|
138
|
+
optional :date_range, :message, 3, "google.analytics.data.v1alpha.DateRange"
|
139
|
+
end
|
140
|
+
add_message "google.analytics.data.v1alpha.CohortReportSettings" do
|
141
|
+
optional :accumulate, :bool, 1
|
142
|
+
end
|
143
|
+
add_message "google.analytics.data.v1alpha.CohortsRange" do
|
144
|
+
optional :granularity, :enum, 1, "google.analytics.data.v1alpha.CohortsRange.Granularity"
|
145
|
+
optional :start_offset, :int32, 2
|
146
|
+
optional :end_offset, :int32, 3
|
147
|
+
end
|
148
|
+
add_enum "google.analytics.data.v1alpha.CohortsRange.Granularity" do
|
149
|
+
value :GRANULARITY_UNSPECIFIED, 0
|
150
|
+
value :DAILY, 1
|
151
|
+
value :WEEKLY, 2
|
152
|
+
value :MONTHLY, 3
|
153
|
+
end
|
154
|
+
add_message "google.analytics.data.v1alpha.ResponseMetaData" do
|
155
|
+
optional :data_loss_from_other_row, :bool, 3
|
156
|
+
end
|
157
|
+
add_message "google.analytics.data.v1alpha.DimensionHeader" do
|
158
|
+
optional :name, :string, 1
|
159
|
+
end
|
160
|
+
add_message "google.analytics.data.v1alpha.MetricHeader" do
|
161
|
+
optional :name, :string, 1
|
162
|
+
optional :type, :enum, 2, "google.analytics.data.v1alpha.MetricType"
|
163
|
+
end
|
164
|
+
add_message "google.analytics.data.v1alpha.PivotHeader" do
|
165
|
+
repeated :pivot_dimension_headers, :message, 1, "google.analytics.data.v1alpha.PivotDimensionHeader"
|
166
|
+
optional :row_count, :int32, 2
|
167
|
+
end
|
168
|
+
add_message "google.analytics.data.v1alpha.PivotDimensionHeader" do
|
169
|
+
repeated :dimension_values, :message, 1, "google.analytics.data.v1alpha.DimensionValue"
|
170
|
+
end
|
171
|
+
add_message "google.analytics.data.v1alpha.Row" do
|
172
|
+
repeated :dimension_values, :message, 1, "google.analytics.data.v1alpha.DimensionValue"
|
173
|
+
repeated :metric_values, :message, 2, "google.analytics.data.v1alpha.MetricValue"
|
174
|
+
end
|
175
|
+
add_message "google.analytics.data.v1alpha.DimensionValue" do
|
176
|
+
oneof :one_value do
|
177
|
+
optional :value, :string, 1
|
178
|
+
end
|
179
|
+
end
|
180
|
+
add_message "google.analytics.data.v1alpha.MetricValue" do
|
181
|
+
oneof :one_value do
|
182
|
+
optional :value, :string, 4
|
183
|
+
end
|
184
|
+
end
|
185
|
+
add_message "google.analytics.data.v1alpha.NumericValue" do
|
186
|
+
oneof :one_value do
|
187
|
+
optional :int64_value, :int64, 1
|
188
|
+
optional :double_value, :double, 2
|
189
|
+
end
|
190
|
+
end
|
191
|
+
add_message "google.analytics.data.v1alpha.PropertyQuota" do
|
192
|
+
optional :tokens_per_day, :message, 1, "google.analytics.data.v1alpha.QuotaStatus"
|
193
|
+
optional :tokens_per_hour, :message, 2, "google.analytics.data.v1alpha.QuotaStatus"
|
194
|
+
optional :concurrent_requests, :message, 3, "google.analytics.data.v1alpha.QuotaStatus"
|
195
|
+
optional :server_errors_per_project_per_hour, :message, 4, "google.analytics.data.v1alpha.QuotaStatus"
|
196
|
+
end
|
197
|
+
add_message "google.analytics.data.v1alpha.QuotaStatus" do
|
198
|
+
optional :consumed, :int32, 1
|
199
|
+
optional :remaining, :int32, 2
|
200
|
+
end
|
201
|
+
add_message "google.analytics.data.v1alpha.DimensionMetadata" do
|
202
|
+
optional :api_name, :string, 1
|
203
|
+
optional :ui_name, :string, 2
|
204
|
+
optional :description, :string, 3
|
205
|
+
repeated :deprecated_api_names, :string, 4
|
206
|
+
end
|
207
|
+
add_message "google.analytics.data.v1alpha.MetricMetadata" do
|
208
|
+
optional :api_name, :string, 1
|
209
|
+
optional :ui_name, :string, 2
|
210
|
+
optional :description, :string, 3
|
211
|
+
repeated :deprecated_api_names, :string, 4
|
212
|
+
optional :type, :enum, 5, "google.analytics.data.v1alpha.MetricType"
|
213
|
+
optional :expression, :string, 6
|
214
|
+
end
|
215
|
+
add_enum "google.analytics.data.v1alpha.MetricAggregation" do
|
216
|
+
value :METRIC_AGGREGATION_UNSPECIFIED, 0
|
217
|
+
value :TOTAL, 1
|
218
|
+
value :MINIMUM, 5
|
219
|
+
value :MAXIMUM, 6
|
220
|
+
value :COUNT, 4
|
221
|
+
end
|
222
|
+
add_enum "google.analytics.data.v1alpha.MetricType" do
|
223
|
+
value :METRIC_TYPE_UNSPECIFIED, 0
|
224
|
+
value :TYPE_INTEGER, 1
|
225
|
+
value :TYPE_FLOAT, 2
|
226
|
+
value :TYPE_SECONDS, 4
|
227
|
+
value :TYPE_CURRENCY, 9
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
module Google
|
233
|
+
module Analytics
|
234
|
+
module Data
|
235
|
+
module V1alpha
|
236
|
+
DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DateRange").msgclass
|
237
|
+
Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Entity").msgclass
|
238
|
+
Dimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Dimension").msgclass
|
239
|
+
DimensionExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DimensionExpression").msgclass
|
240
|
+
DimensionExpression::CaseExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DimensionExpression.CaseExpression").msgclass
|
241
|
+
DimensionExpression::ConcatenateExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression").msgclass
|
242
|
+
Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Metric").msgclass
|
243
|
+
FilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.FilterExpression").msgclass
|
244
|
+
FilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.FilterExpressionList").msgclass
|
245
|
+
Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Filter").msgclass
|
246
|
+
Filter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Filter.StringFilter").msgclass
|
247
|
+
Filter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Filter.StringFilter.MatchType").enummodule
|
248
|
+
Filter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Filter.InListFilter").msgclass
|
249
|
+
Filter::NumericFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Filter.NumericFilter").msgclass
|
250
|
+
Filter::NumericFilter::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Filter.NumericFilter.Operation").enummodule
|
251
|
+
Filter::BetweenFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Filter.BetweenFilter").msgclass
|
252
|
+
OrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.OrderBy").msgclass
|
253
|
+
OrderBy::MetricOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.OrderBy.MetricOrderBy").msgclass
|
254
|
+
OrderBy::DimensionOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.OrderBy.DimensionOrderBy").msgclass
|
255
|
+
OrderBy::DimensionOrderBy::OrderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType").enummodule
|
256
|
+
OrderBy::PivotOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.OrderBy.PivotOrderBy").msgclass
|
257
|
+
OrderBy::PivotOrderBy::PivotSelection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection").msgclass
|
258
|
+
Pivot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Pivot").msgclass
|
259
|
+
CohortSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortSpec").msgclass
|
260
|
+
Cohort = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Cohort").msgclass
|
261
|
+
CohortReportSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortReportSettings").msgclass
|
262
|
+
CohortsRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortsRange").msgclass
|
263
|
+
CohortsRange::Granularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortsRange.Granularity").enummodule
|
264
|
+
ResponseMetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.ResponseMetaData").msgclass
|
265
|
+
DimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DimensionHeader").msgclass
|
266
|
+
MetricHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.MetricHeader").msgclass
|
267
|
+
PivotHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.PivotHeader").msgclass
|
268
|
+
PivotDimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.PivotDimensionHeader").msgclass
|
269
|
+
Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Row").msgclass
|
270
|
+
DimensionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DimensionValue").msgclass
|
271
|
+
MetricValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.MetricValue").msgclass
|
272
|
+
NumericValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.NumericValue").msgclass
|
273
|
+
PropertyQuota = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.PropertyQuota").msgclass
|
274
|
+
QuotaStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.QuotaStatus").msgclass
|
275
|
+
DimensionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DimensionMetadata").msgclass
|
276
|
+
MetricMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.MetricMetadata").msgclass
|
277
|
+
MetricAggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.MetricAggregation").enummodule
|
278
|
+
MetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.MetricType").enummodule
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|