google-cloud-monitoring-dashboard-v1 0.6.6 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/monitoring/dashboard/v1/version.rb +1 -1
- data/lib/google/cloud/monitoring/dashboard/v1.rb +2 -0
- data/lib/google/monitoring/dashboard/v1/collapsible_group_pb.rb +24 -0
- data/lib/google/monitoring/dashboard/v1/common_pb.rb +0 -1
- data/lib/google/monitoring/dashboard/v1/dashboard_filter_pb.rb +39 -0
- data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +3 -0
- data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +1 -2
- data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +0 -1
- data/lib/google/monitoring/dashboard/v1/logs_panel_pb.rb +25 -0
- data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +7 -0
- data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +0 -1
- data/lib/google/monitoring/dashboard/v1/table_display_options_pb.rb +25 -0
- data/lib/google/monitoring/dashboard/v1/table_pb.rb +35 -0
- data/lib/google/monitoring/dashboard/v1/widget_pb.rb +6 -0
- data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +8 -0
- data/proto_docs/google/monitoring/dashboard/v1/collapsible_group.rb +38 -0
- data/proto_docs/google/monitoring/dashboard/v1/dashboard.rb +15 -0
- data/proto_docs/google/monitoring/dashboard/v1/dashboard_filter.rb +69 -0
- data/proto_docs/google/monitoring/dashboard/v1/logs_panel.rb +44 -0
- data/proto_docs/google/monitoring/dashboard/v1/metrics.rb +16 -0
- data/proto_docs/google/monitoring/dashboard/v1/table.rb +63 -0
- data/proto_docs/google/monitoring/dashboard/v1/table_display_options.rb +38 -0
- data/proto_docs/google/monitoring/dashboard/v1/widget.rb +10 -0
- data/proto_docs/google/monitoring/dashboard/v1/xychart.rb +18 -0
- metadata +13 -7
- data/proto_docs/google/api/distribution.rb +0 -225
- data/proto_docs/google/protobuf/any.rb +0 -141
- data/proto_docs/google/protobuf/field_mask.rb +0 -229
- data/proto_docs/google/protobuf/timestamp.rb +0 -129
@@ -42,6 +42,16 @@ module Google
|
|
42
42
|
# @!attribute [rw] alert_chart
|
43
43
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::AlertChart]
|
44
44
|
# A chart of alert policy data.
|
45
|
+
# @!attribute [rw] time_series_table
|
46
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesTable]
|
47
|
+
# A widget that displays time series data in a tabular format.
|
48
|
+
# @!attribute [rw] collapsible_group
|
49
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::CollapsibleGroup]
|
50
|
+
# A widget that groups the other widgets. All widgets that are within
|
51
|
+
# the area spanned by the grouping widget are considered member widgets.
|
52
|
+
# @!attribute [rw] logs_panel
|
53
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::LogsPanel]
|
54
|
+
# A widget that shows a stream of logs.
|
45
55
|
class Widget
|
46
56
|
include ::Google::Protobuf::MessageExts
|
47
57
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -42,6 +42,9 @@ module Google
|
|
42
42
|
# @!attribute [rw] y_axis
|
43
43
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis]
|
44
44
|
# The properties applied to the Y axis.
|
45
|
+
# @!attribute [rw] y2_axis
|
46
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis]
|
47
|
+
# The properties applied to the Y2 axis.
|
45
48
|
# @!attribute [rw] chart_options
|
46
49
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::ChartOptions]
|
47
50
|
# Display options for the chart.
|
@@ -69,6 +72,9 @@ module Google
|
|
69
72
|
# For example, if the data is published once every 10 minutes, the
|
70
73
|
# `min_alignment_period` should be at least 10 minutes. It would not
|
71
74
|
# make sense to fetch and align data at one minute intervals.
|
75
|
+
# @!attribute [rw] target_axis
|
76
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::XyChart::DataSet::TargetAxis]
|
77
|
+
# Optional. The target axis to use for plotting the metric.
|
72
78
|
class DataSet
|
73
79
|
include ::Google::Protobuf::MessageExts
|
74
80
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -99,6 +105,18 @@ module Google
|
|
99
105
|
# Stackdriver Monitoring application.
|
100
106
|
HEATMAP = 4
|
101
107
|
end
|
108
|
+
|
109
|
+
# An axis identifier.
|
110
|
+
module TargetAxis
|
111
|
+
# The target axis was not specified. Defaults to Y1.
|
112
|
+
TARGET_AXIS_UNSPECIFIED = 0
|
113
|
+
|
114
|
+
# The y_axis (the right axis of chart).
|
115
|
+
Y1 = 1
|
116
|
+
|
117
|
+
# The y2_axis (the left axis of chart).
|
118
|
+
Y2 = 2
|
119
|
+
end
|
102
120
|
end
|
103
121
|
|
104
122
|
# A chart axis.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-dashboard-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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: 2022-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -178,37 +178,43 @@ files:
|
|
178
178
|
- lib/google/cloud/monitoring/dashboard/v1/dashboards_service/paths.rb
|
179
179
|
- lib/google/cloud/monitoring/dashboard/v1/version.rb
|
180
180
|
- lib/google/monitoring/dashboard/v1/alertchart_pb.rb
|
181
|
+
- lib/google/monitoring/dashboard/v1/collapsible_group_pb.rb
|
181
182
|
- lib/google/monitoring/dashboard/v1/common_pb.rb
|
183
|
+
- lib/google/monitoring/dashboard/v1/dashboard_filter_pb.rb
|
182
184
|
- lib/google/monitoring/dashboard/v1/dashboard_pb.rb
|
183
185
|
- lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb
|
184
186
|
- lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb
|
185
187
|
- lib/google/monitoring/dashboard/v1/drilldowns_pb.rb
|
186
188
|
- lib/google/monitoring/dashboard/v1/layouts_pb.rb
|
189
|
+
- lib/google/monitoring/dashboard/v1/logs_panel_pb.rb
|
187
190
|
- lib/google/monitoring/dashboard/v1/metrics_pb.rb
|
188
191
|
- lib/google/monitoring/dashboard/v1/scorecard_pb.rb
|
189
192
|
- lib/google/monitoring/dashboard/v1/service_pb.rb
|
193
|
+
- lib/google/monitoring/dashboard/v1/table_display_options_pb.rb
|
194
|
+
- lib/google/monitoring/dashboard/v1/table_pb.rb
|
190
195
|
- lib/google/monitoring/dashboard/v1/text_pb.rb
|
191
196
|
- lib/google/monitoring/dashboard/v1/widget_pb.rb
|
192
197
|
- lib/google/monitoring/dashboard/v1/xychart_pb.rb
|
193
198
|
- proto_docs/README.md
|
194
|
-
- proto_docs/google/api/distribution.rb
|
195
199
|
- proto_docs/google/api/field_behavior.rb
|
196
200
|
- proto_docs/google/api/resource.rb
|
197
201
|
- proto_docs/google/monitoring/dashboard/v1/alertchart.rb
|
202
|
+
- proto_docs/google/monitoring/dashboard/v1/collapsible_group.rb
|
198
203
|
- proto_docs/google/monitoring/dashboard/v1/common.rb
|
199
204
|
- proto_docs/google/monitoring/dashboard/v1/dashboard.rb
|
205
|
+
- proto_docs/google/monitoring/dashboard/v1/dashboard_filter.rb
|
200
206
|
- proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb
|
201
207
|
- proto_docs/google/monitoring/dashboard/v1/layouts.rb
|
208
|
+
- proto_docs/google/monitoring/dashboard/v1/logs_panel.rb
|
202
209
|
- proto_docs/google/monitoring/dashboard/v1/metrics.rb
|
203
210
|
- proto_docs/google/monitoring/dashboard/v1/scorecard.rb
|
211
|
+
- proto_docs/google/monitoring/dashboard/v1/table.rb
|
212
|
+
- proto_docs/google/monitoring/dashboard/v1/table_display_options.rb
|
204
213
|
- proto_docs/google/monitoring/dashboard/v1/text.rb
|
205
214
|
- proto_docs/google/monitoring/dashboard/v1/widget.rb
|
206
215
|
- proto_docs/google/monitoring/dashboard/v1/xychart.rb
|
207
|
-
- proto_docs/google/protobuf/any.rb
|
208
216
|
- proto_docs/google/protobuf/duration.rb
|
209
217
|
- proto_docs/google/protobuf/empty.rb
|
210
|
-
- proto_docs/google/protobuf/field_mask.rb
|
211
|
-
- proto_docs/google/protobuf/timestamp.rb
|
212
218
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
213
219
|
licenses:
|
214
220
|
- Apache-2.0
|
@@ -228,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
234
|
- !ruby/object:Gem::Version
|
229
235
|
version: '0'
|
230
236
|
requirements: []
|
231
|
-
rubygems_version: 3.3.
|
237
|
+
rubygems_version: 3.3.5
|
232
238
|
signing_key:
|
233
239
|
specification_version: 4
|
234
240
|
summary: API Client library for the Cloud Monitoring Dashboards V1 API
|
@@ -1,225 +0,0 @@
|
|
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 Api
|
22
|
-
# `Distribution` contains summary statistics for a population of values. It
|
23
|
-
# optionally contains a histogram representing the distribution of those values
|
24
|
-
# across a set of buckets.
|
25
|
-
#
|
26
|
-
# The summary statistics are the count, mean, sum of the squared deviation from
|
27
|
-
# the mean, the minimum, and the maximum of the set of population of values.
|
28
|
-
# The histogram is based on a sequence of buckets and gives a count of values
|
29
|
-
# that fall into each bucket. The boundaries of the buckets are given either
|
30
|
-
# explicitly or by formulas for buckets of fixed or exponentially increasing
|
31
|
-
# widths.
|
32
|
-
#
|
33
|
-
# Although it is not forbidden, it is generally a bad idea to include
|
34
|
-
# non-finite values (infinities or NaNs) in the population of values, as this
|
35
|
-
# will render the `mean` and `sum_of_squared_deviation` fields meaningless.
|
36
|
-
# @!attribute [rw] count
|
37
|
-
# @return [::Integer]
|
38
|
-
# The number of values in the population. Must be non-negative. This value
|
39
|
-
# must equal the sum of the values in `bucket_counts` if a histogram is
|
40
|
-
# provided.
|
41
|
-
# @!attribute [rw] mean
|
42
|
-
# @return [::Float]
|
43
|
-
# The arithmetic mean of the values in the population. If `count` is zero
|
44
|
-
# then this field must be zero.
|
45
|
-
# @!attribute [rw] sum_of_squared_deviation
|
46
|
-
# @return [::Float]
|
47
|
-
# The sum of squared deviations from the mean of the values in the
|
48
|
-
# population. For values x_i this is:
|
49
|
-
#
|
50
|
-
# Sum[i=1..n]((x_i - mean)^2)
|
51
|
-
#
|
52
|
-
# Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
53
|
-
# describes Welford's method for accumulating this sum in one pass.
|
54
|
-
#
|
55
|
-
# If `count` is zero then this field must be zero.
|
56
|
-
# @!attribute [rw] range
|
57
|
-
# @return [::Google::Api::Distribution::Range]
|
58
|
-
# If specified, contains the range of the population values. The field
|
59
|
-
# must not be present if the `count` is zero.
|
60
|
-
# @!attribute [rw] bucket_options
|
61
|
-
# @return [::Google::Api::Distribution::BucketOptions]
|
62
|
-
# Defines the histogram bucket boundaries. If the distribution does not
|
63
|
-
# contain a histogram, then omit this field.
|
64
|
-
# @!attribute [rw] bucket_counts
|
65
|
-
# @return [::Array<::Integer>]
|
66
|
-
# The number of values in each bucket of the histogram, as described in
|
67
|
-
# `bucket_options`. If the distribution does not have a histogram, then omit
|
68
|
-
# this field. If there is a histogram, then the sum of the values in
|
69
|
-
# `bucket_counts` must equal the value in the `count` field of the
|
70
|
-
# distribution.
|
71
|
-
#
|
72
|
-
# If present, `bucket_counts` should contain N values, where N is the number
|
73
|
-
# of buckets specified in `bucket_options`. If you supply fewer than N
|
74
|
-
# values, the remaining values are assumed to be 0.
|
75
|
-
#
|
76
|
-
# The order of the values in `bucket_counts` follows the bucket numbering
|
77
|
-
# schemes described for the three bucket types. The first value must be the
|
78
|
-
# count for the underflow bucket (number 0). The next N-2 values are the
|
79
|
-
# counts for the finite buckets (number 1 through N-2). The N'th value in
|
80
|
-
# `bucket_counts` is the count for the overflow bucket (number N-1).
|
81
|
-
# @!attribute [rw] exemplars
|
82
|
-
# @return [::Array<::Google::Api::Distribution::Exemplar>]
|
83
|
-
# Must be in increasing order of `value` field.
|
84
|
-
class Distribution
|
85
|
-
include ::Google::Protobuf::MessageExts
|
86
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
87
|
-
|
88
|
-
# The range of the population values.
|
89
|
-
# @!attribute [rw] min
|
90
|
-
# @return [::Float]
|
91
|
-
# The minimum of the population values.
|
92
|
-
# @!attribute [rw] max
|
93
|
-
# @return [::Float]
|
94
|
-
# The maximum of the population values.
|
95
|
-
class Range
|
96
|
-
include ::Google::Protobuf::MessageExts
|
97
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
98
|
-
end
|
99
|
-
|
100
|
-
# `BucketOptions` describes the bucket boundaries used to create a histogram
|
101
|
-
# for the distribution. The buckets can be in a linear sequence, an
|
102
|
-
# exponential sequence, or each bucket can be specified explicitly.
|
103
|
-
# `BucketOptions` does not include the number of values in each bucket.
|
104
|
-
#
|
105
|
-
# A bucket has an inclusive lower bound and exclusive upper bound for the
|
106
|
-
# values that are counted for that bucket. The upper bound of a bucket must
|
107
|
-
# be strictly greater than the lower bound. The sequence of N buckets for a
|
108
|
-
# distribution consists of an underflow bucket (number 0), zero or more
|
109
|
-
# finite buckets (number 1 through N - 2) and an overflow bucket (number N -
|
110
|
-
# 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
|
111
|
-
# same as the upper bound of bucket i - 1. The buckets span the whole range
|
112
|
-
# of finite values: lower bound of the underflow bucket is -infinity and the
|
113
|
-
# upper bound of the overflow bucket is +infinity. The finite buckets are
|
114
|
-
# so-called because both bounds are finite.
|
115
|
-
# @!attribute [rw] linear_buckets
|
116
|
-
# @return [::Google::Api::Distribution::BucketOptions::Linear]
|
117
|
-
# The linear bucket.
|
118
|
-
# @!attribute [rw] exponential_buckets
|
119
|
-
# @return [::Google::Api::Distribution::BucketOptions::Exponential]
|
120
|
-
# The exponential buckets.
|
121
|
-
# @!attribute [rw] explicit_buckets
|
122
|
-
# @return [::Google::Api::Distribution::BucketOptions::Explicit]
|
123
|
-
# The explicit buckets.
|
124
|
-
class BucketOptions
|
125
|
-
include ::Google::Protobuf::MessageExts
|
126
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
-
|
128
|
-
# Specifies a linear sequence of buckets that all have the same width
|
129
|
-
# (except overflow and underflow). Each bucket represents a constant
|
130
|
-
# absolute uncertainty on the specific value in the bucket.
|
131
|
-
#
|
132
|
-
# There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
133
|
-
# following boundaries:
|
134
|
-
#
|
135
|
-
# Upper bound (0 <= i < N-1): offset + (width * i).
|
136
|
-
# Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
137
|
-
# @!attribute [rw] num_finite_buckets
|
138
|
-
# @return [::Integer]
|
139
|
-
# Must be greater than 0.
|
140
|
-
# @!attribute [rw] width
|
141
|
-
# @return [::Float]
|
142
|
-
# Must be greater than 0.
|
143
|
-
# @!attribute [rw] offset
|
144
|
-
# @return [::Float]
|
145
|
-
# Lower bound of the first bucket.
|
146
|
-
class Linear
|
147
|
-
include ::Google::Protobuf::MessageExts
|
148
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
-
end
|
150
|
-
|
151
|
-
# Specifies an exponential sequence of buckets that have a width that is
|
152
|
-
# proportional to the value of the lower bound. Each bucket represents a
|
153
|
-
# constant relative uncertainty on a specific value in the bucket.
|
154
|
-
#
|
155
|
-
# There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
156
|
-
# following boundaries:
|
157
|
-
#
|
158
|
-
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
|
159
|
-
# Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
160
|
-
# @!attribute [rw] num_finite_buckets
|
161
|
-
# @return [::Integer]
|
162
|
-
# Must be greater than 0.
|
163
|
-
# @!attribute [rw] growth_factor
|
164
|
-
# @return [::Float]
|
165
|
-
# Must be greater than 1.
|
166
|
-
# @!attribute [rw] scale
|
167
|
-
# @return [::Float]
|
168
|
-
# Must be greater than 0.
|
169
|
-
class Exponential
|
170
|
-
include ::Google::Protobuf::MessageExts
|
171
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
172
|
-
end
|
173
|
-
|
174
|
-
# Specifies a set of buckets with arbitrary widths.
|
175
|
-
#
|
176
|
-
# There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
|
177
|
-
# boundaries:
|
178
|
-
#
|
179
|
-
# Upper bound (0 <= i < N-1): bounds[i]
|
180
|
-
# Lower bound (1 <= i < N); bounds[i - 1]
|
181
|
-
#
|
182
|
-
# The `bounds` field must contain at least one element. If `bounds` has
|
183
|
-
# only one element, then there are no finite buckets, and that single
|
184
|
-
# element is the common boundary of the overflow and underflow buckets.
|
185
|
-
# @!attribute [rw] bounds
|
186
|
-
# @return [::Array<::Float>]
|
187
|
-
# The values must be monotonically increasing.
|
188
|
-
class Explicit
|
189
|
-
include ::Google::Protobuf::MessageExts
|
190
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
191
|
-
end
|
192
|
-
end
|
193
|
-
|
194
|
-
# Exemplars are example points that may be used to annotate aggregated
|
195
|
-
# distribution values. They are metadata that gives information about a
|
196
|
-
# particular value added to a Distribution bucket, such as a trace ID that
|
197
|
-
# was active when a value was added. They may contain further information,
|
198
|
-
# such as a example values and timestamps, origin, etc.
|
199
|
-
# @!attribute [rw] value
|
200
|
-
# @return [::Float]
|
201
|
-
# Value of the exemplar point. This value determines to which bucket the
|
202
|
-
# exemplar belongs.
|
203
|
-
# @!attribute [rw] timestamp
|
204
|
-
# @return [::Google::Protobuf::Timestamp]
|
205
|
-
# The observation (sampling) time of the above value.
|
206
|
-
# @!attribute [rw] attachments
|
207
|
-
# @return [::Array<::Google::Protobuf::Any>]
|
208
|
-
# Contextual information about the example value. Examples are:
|
209
|
-
#
|
210
|
-
# Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
211
|
-
#
|
212
|
-
# Literal string: type.googleapis.com/google.protobuf.StringValue
|
213
|
-
#
|
214
|
-
# Labels dropped during aggregation:
|
215
|
-
# type.googleapis.com/google.monitoring.v3.DroppedLabels
|
216
|
-
#
|
217
|
-
# There may be only a single attachment of any given message type in a
|
218
|
-
# single exemplar, and this is enforced by the system.
|
219
|
-
class Exemplar
|
220
|
-
include ::Google::Protobuf::MessageExts
|
221
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
222
|
-
end
|
223
|
-
end
|
224
|
-
end
|
225
|
-
end
|
@@ -1,141 +0,0 @@
|
|
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 Protobuf
|
22
|
-
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
23
|
-
# URL that describes the type of the serialized message.
|
24
|
-
#
|
25
|
-
# Protobuf library provides support to pack/unpack Any values in the form
|
26
|
-
# of utility functions or additional generated methods of the Any type.
|
27
|
-
#
|
28
|
-
# Example 1: Pack and unpack a message in C++.
|
29
|
-
#
|
30
|
-
# Foo foo = ...;
|
31
|
-
# Any any;
|
32
|
-
# any.PackFrom(foo);
|
33
|
-
# ...
|
34
|
-
# if (any.UnpackTo(&foo)) {
|
35
|
-
# ...
|
36
|
-
# }
|
37
|
-
#
|
38
|
-
# Example 2: Pack and unpack a message in Java.
|
39
|
-
#
|
40
|
-
# Foo foo = ...;
|
41
|
-
# Any any = Any.pack(foo);
|
42
|
-
# ...
|
43
|
-
# if (any.is(Foo.class)) {
|
44
|
-
# foo = any.unpack(Foo.class);
|
45
|
-
# }
|
46
|
-
#
|
47
|
-
# Example 3: Pack and unpack a message in Python.
|
48
|
-
#
|
49
|
-
# foo = Foo(...)
|
50
|
-
# any = Any()
|
51
|
-
# any.Pack(foo)
|
52
|
-
# ...
|
53
|
-
# if any.Is(Foo.DESCRIPTOR):
|
54
|
-
# any.Unpack(foo)
|
55
|
-
# ...
|
56
|
-
#
|
57
|
-
# Example 4: Pack and unpack a message in Go
|
58
|
-
#
|
59
|
-
# foo := &pb.Foo{...}
|
60
|
-
# any, err := anypb.New(foo)
|
61
|
-
# if err != nil {
|
62
|
-
# ...
|
63
|
-
# }
|
64
|
-
# ...
|
65
|
-
# foo := &pb.Foo{}
|
66
|
-
# if err := any.UnmarshalTo(foo); err != nil {
|
67
|
-
# ...
|
68
|
-
# }
|
69
|
-
#
|
70
|
-
# The pack methods provided by protobuf library will by default use
|
71
|
-
# 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
72
|
-
# methods only use the fully qualified type name after the last '/'
|
73
|
-
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
|
-
# name "y.z".
|
75
|
-
#
|
76
|
-
#
|
77
|
-
# JSON
|
78
|
-
# ====
|
79
|
-
# The JSON representation of an `Any` value uses the regular
|
80
|
-
# representation of the deserialized, embedded message, with an
|
81
|
-
# additional field `@type` which contains the type URL. Example:
|
82
|
-
#
|
83
|
-
# package google.profile;
|
84
|
-
# message Person {
|
85
|
-
# string first_name = 1;
|
86
|
-
# string last_name = 2;
|
87
|
-
# }
|
88
|
-
#
|
89
|
-
# {
|
90
|
-
# "@type": "type.googleapis.com/google.profile.Person",
|
91
|
-
# "firstName": <string>,
|
92
|
-
# "lastName": <string>
|
93
|
-
# }
|
94
|
-
#
|
95
|
-
# If the embedded message type is well-known and has a custom JSON
|
96
|
-
# representation, that representation will be embedded adding a field
|
97
|
-
# `value` which holds the custom JSON in addition to the `@type`
|
98
|
-
# field. Example (for message [google.protobuf.Duration][]):
|
99
|
-
#
|
100
|
-
# {
|
101
|
-
# "@type": "type.googleapis.com/google.protobuf.Duration",
|
102
|
-
# "value": "1.212s"
|
103
|
-
# }
|
104
|
-
# @!attribute [rw] type_url
|
105
|
-
# @return [::String]
|
106
|
-
# A URL/resource name that uniquely identifies the type of the serialized
|
107
|
-
# protocol buffer message. This string must contain at least
|
108
|
-
# one "/" character. The last segment of the URL's path must represent
|
109
|
-
# the fully qualified name of the type (as in
|
110
|
-
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
111
|
-
# (e.g., leading "." is not accepted).
|
112
|
-
#
|
113
|
-
# In practice, teams usually precompile into the binary all types that they
|
114
|
-
# expect it to use in the context of Any. However, for URLs which use the
|
115
|
-
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
116
|
-
# server that maps type URLs to message definitions as follows:
|
117
|
-
#
|
118
|
-
# * If no scheme is provided, `https` is assumed.
|
119
|
-
# * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
120
|
-
# value in binary format, or produce an error.
|
121
|
-
# * Applications are allowed to cache lookup results based on the
|
122
|
-
# URL, or have them precompiled into a binary to avoid any
|
123
|
-
# lookup. Therefore, binary compatibility needs to be preserved
|
124
|
-
# on changes to types. (Use versioned type names to manage
|
125
|
-
# breaking changes.)
|
126
|
-
#
|
127
|
-
# Note: this functionality is not currently available in the official
|
128
|
-
# protobuf release, and it is not used for type URLs beginning with
|
129
|
-
# type.googleapis.com.
|
130
|
-
#
|
131
|
-
# Schemes other than `http`, `https` (or the empty scheme) might be
|
132
|
-
# used with implementation specific semantics.
|
133
|
-
# @!attribute [rw] value
|
134
|
-
# @return [::String]
|
135
|
-
# Must be a valid serialized protocol buffer of the above specified type.
|
136
|
-
class Any
|
137
|
-
include ::Google::Protobuf::MessageExts
|
138
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|