Class: Google::Apis::AdminDirectoryV1::SchemaFieldSpec::NumericIndexingSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb

Overview

Indexing spec for a numeric field. By default, only exact match queries will be supported for numeric fields. Setting the numericIndexingSpec allows range queries to be supported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NumericIndexingSpec

Returns a new instance of NumericIndexingSpec.


2810
2811
2812
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2810

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

Instance Attribute Details

#max_valueFloat

Maximum value of this field. This is meant to be indicative rather than enforced. Values outside this range will still be indexed, but search may not be as performant. Corresponds to the JSON property maxValue

Returns:

  • (Float)

2801
2802
2803
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2801

def max_value
  @max_value
end

#min_valueFloat

Minimum value of this field. This is meant to be indicative rather than enforced. Values outside this range will still be indexed, but search may not be as performant. Corresponds to the JSON property minValue

Returns:

  • (Float)

2808
2809
2810
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2808

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2815
2816
2817
2818
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2815

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