Class: Google::Apis::SpannerV1::KeyRangeInfo
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::KeyRangeInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
A message representing information for a key range (possibly one key).
Instance Attribute Summary collapse
-
#context_values ⇒ Array<Google::Apis::SpannerV1::ContextValue>
The list of context values for this key range.
-
#end_key_index ⇒ Fixnum
The index of the end key in indexed_keys.
-
#info ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be translated before being displayed.
-
#keys_count ⇒ Fixnum
The number of keys this range covers.
-
#metric ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be translated before being displayed.
-
#start_key_index ⇒ Fixnum
The index of the start key in indexed_keys.
-
#time_offset ⇒ String
The time offset.
-
#unit ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be translated before being displayed.
-
#value ⇒ Float
The value of the metric.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyRangeInfo
constructor
A new instance of KeyRangeInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyRangeInfo
Returns a new instance of KeyRangeInfo.
2196 2197 2198 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context_values ⇒ Array<Google::Apis::SpannerV1::ContextValue>
The list of context values for this key range.
Corresponds to the JSON property contextValues
2151 2152 2153 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2151 def context_values @context_values end |
#end_key_index ⇒ Fixnum
The index of the end key in indexed_keys.
Corresponds to the JSON property endKeyIndex
2156 2157 2158 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2156 def end_key_index @end_key_index end |
#info ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be
translated before being displayed.
Corresponds to the JSON property info
2162 2163 2164 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2162 def info @info end |
#keys_count ⇒ Fixnum
The number of keys this range covers.
Corresponds to the JSON property keysCount
2167 2168 2169 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2167 def keys_count @keys_count end |
#metric ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be
translated before being displayed.
Corresponds to the JSON property metric
2173 2174 2175 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2173 def metric @metric end |
#start_key_index ⇒ Fixnum
The index of the start key in indexed_keys.
Corresponds to the JSON property startKeyIndex
2178 2179 2180 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2178 def start_key_index @start_key_index end |
#time_offset ⇒ String
The time offset. This is the time since the start of the time interval.
Corresponds to the JSON property timeOffset
2183 2184 2185 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2183 def time_offset @time_offset end |
#unit ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be
translated before being displayed.
Corresponds to the JSON property unit
2189 2190 2191 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2189 def unit @unit end |
#value ⇒ Float
The value of the metric.
Corresponds to the JSON property value
2194 2195 2196 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2194 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2201 def update!(**args) @context_values = args[:context_values] if args.key?(:context_values) @end_key_index = args[:end_key_index] if args.key?(:end_key_index) @info = args[:info] if args.key?(:info) @keys_count = args[:keys_count] if args.key?(:keys_count) @metric = args[:metric] if args.key?(:metric) @start_key_index = args[:start_key_index] if args.key?(:start_key_index) @time_offset = args[:time_offset] if args.key?(:time_offset) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end |