Class: Google::Apis::CloudsearchV1::IntegerPropertyOptions

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

The options for integer properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntegerPropertyOptions

Returns a new instance of IntegerPropertyOptions.



4018
4019
4020
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4018

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

Instance Attribute Details

#integer_faceting_optionsGoogle::Apis::CloudsearchV1::IntegerFacetingOptions

Used to specify integer faceting options. Corresponds to the JSON property integerFacetingOptions



3987
3988
3989
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3987

def integer_faceting_options
  @integer_faceting_options
end

#maximum_valueFixnum

The maximum value of the property. The minimum and maximum values for the property are used to rank results according to the ordered ranking. Indexing requests with values greater than the maximum are accepted and ranked with the same weight as items indexed with the maximum value. Corresponds to the JSON property maximumValue

Returns:

  • (Fixnum)


3995
3996
3997
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3995

def maximum_value
  @maximum_value
end

#minimum_valueFixnum

The minimum value of the property. The minimum and maximum values for the property are used to rank results according to the ordered ranking. Indexing requests with values less than the minimum are accepted and ranked with the same weight as items indexed with the minimum value. Corresponds to the JSON property minimumValue

Returns:

  • (Fixnum)


4003
4004
4005
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4003

def minimum_value
  @minimum_value
end

#operator_optionsGoogle::Apis::CloudsearchV1::IntegerOperatorOptions

Used to provide a search operator for integer properties. This is optional. Search operators let users restrict the query to specific fields relevant to the type of item being searched. Corresponds to the JSON property operatorOptions



4010
4011
4012
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4010

def operator_options
  @operator_options
end

#ordered_rankingString

Used to specify the ordered ranking for the integer. Can only be used if isRepeatable is false. Corresponds to the JSON property orderedRanking

Returns:

  • (String)


4016
4017
4018
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4016

def ordered_ranking
  @ordered_ranking
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4023
4024
4025
4026
4027
4028
4029
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4023

def update!(**args)
  @integer_faceting_options = args[:integer_faceting_options] if args.key?(:integer_faceting_options)
  @maximum_value = args[:maximum_value] if args.key?(:maximum_value)
  @minimum_value = args[:minimum_value] if args.key?(:minimum_value)
  @operator_options = args[:operator_options] if args.key?(:operator_options)
  @ordered_ranking = args[:ordered_ranking] if args.key?(:ordered_ranking)
end