Class: Google::Apis::SpannerV1::KeyRangeInfos

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 a list of specific information for multiple key ranges.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyRangeInfos

Returns a new instance of KeyRangeInfos.



2169
2170
2171
# File 'lib/google/apis/spanner_v1/classes.rb', line 2169

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

Instance Attribute Details

#infosArray<Google::Apis::SpannerV1::KeyRangeInfo>

The list individual KeyRangeInfos. Corresponds to the JSON property infos



2160
2161
2162
# File 'lib/google/apis/spanner_v1/classes.rb', line 2160

def infos
  @infos
end

#total_sizeFixnum

The total size of the list of all KeyRangeInfos. This may be larger than the number of repeated messages above. If that is the case, this number may be used to determine how many are not being shown. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


2167
2168
2169
# File 'lib/google/apis/spanner_v1/classes.rb', line 2167

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2174
2175
2176
2177
# File 'lib/google/apis/spanner_v1/classes.rb', line 2174

def update!(**args)
  @infos = args[:infos] if args.key?(:infos)
  @total_size = args[:total_size] if args.key?(:total_size)
end