class Google::Apis::SpannerV1::KeyRangeInfo

A message representing information for a key range (possibly one key).

Attributes

context_values[RW]

The list of context values for this key range. Corresponds to the JSON property `contextValues` @return [Array<Google::Apis::SpannerV1::ContextValue>]

end_key_index[RW]

The index of the end key in indexed_keys. Corresponds to the JSON property `endKeyIndex` @return [Fixnum]

info[RW]

A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `info` @return [Google::Apis::SpannerV1::LocalizedString]

keys_count[RW]

The number of keys this range covers. Corresponds to the JSON property `keysCount` @return [Fixnum]

metric[RW]

A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `metric` @return [Google::Apis::SpannerV1::LocalizedString]

start_key_index[RW]

The index of the start key in indexed_keys. Corresponds to the JSON property `startKeyIndex` @return [Fixnum]

time_offset[RW]

The time offset. This is the time since the start of the time interval. Corresponds to the JSON property `timeOffset` @return [String]

unit[RW]

A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `unit` @return [Google::Apis::SpannerV1::LocalizedString]

value[RW]

The value of the metric. Corresponds to the JSON property `value` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 1885
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 1890
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