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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ NumericIndexingSpec

Returns a new instance of NumericIndexingSpec.



4091
4092
4093
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4091

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)


4082
4083
4084
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4082

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)


4089
4090
4091
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4089

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4096
4097
4098
4099
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4096

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