Class: Google::Apis::SpannerV1::KeyRangeInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyRangeInfo

Returns a new instance of KeyRangeInfo.



2135
2136
2137
# File 'lib/google/apis/spanner_v1/classes.rb', line 2135

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#context_valuesArray<Google::Apis::SpannerV1::ContextValue>

The list of context values for this key range. Corresponds to the JSON property contextValues



2090
2091
2092
# File 'lib/google/apis/spanner_v1/classes.rb', line 2090

def context_values
  @context_values
end

#end_key_indexFixnum

The index of the end key in indexed_keys. Corresponds to the JSON property endKeyIndex

Returns:

  • (Fixnum)


2095
2096
2097
# File 'lib/google/apis/spanner_v1/classes.rb', line 2095

def end_key_index
  @end_key_index
end

#infoGoogle::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



2101
2102
2103
# File 'lib/google/apis/spanner_v1/classes.rb', line 2101

def info
  @info
end

#keys_countFixnum

The number of keys this range covers. Corresponds to the JSON property keysCount

Returns:

  • (Fixnum)


2106
2107
2108
# File 'lib/google/apis/spanner_v1/classes.rb', line 2106

def keys_count
  @keys_count
end

#metricGoogle::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



2112
2113
2114
# File 'lib/google/apis/spanner_v1/classes.rb', line 2112

def metric
  @metric
end

#start_key_indexFixnum

The index of the start key in indexed_keys. Corresponds to the JSON property startKeyIndex

Returns:

  • (Fixnum)


2117
2118
2119
# File 'lib/google/apis/spanner_v1/classes.rb', line 2117

def start_key_index
  @start_key_index
end

#time_offsetString

The time offset. This is the time since the start of the time interval. Corresponds to the JSON property timeOffset

Returns:

  • (String)


2122
2123
2124
# File 'lib/google/apis/spanner_v1/classes.rb', line 2122

def time_offset
  @time_offset
end

#unitGoogle::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



2128
2129
2130
# File 'lib/google/apis/spanner_v1/classes.rb', line 2128

def unit
  @unit
end

#valueFloat

The value of the metric. Corresponds to the JSON property value

Returns:

  • (Float)


2133
2134
2135
# File 'lib/google/apis/spanner_v1/classes.rb', line 2133

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
# File 'lib/google/apis/spanner_v1/classes.rb', line 2140

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