Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Interval

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

Overview

A floating point interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1Interval

Returns a new instance of GoogleCloudDiscoveryengineV1Interval.



5782
5783
5784
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5782

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

Instance Attribute Details

#exclusive_maximumFloat

Exclusive upper bound. Corresponds to the JSON property exclusiveMaximum

Returns:

  • (Float)


5765
5766
5767
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5765

def exclusive_maximum
  @exclusive_maximum
end

#exclusive_minimumFloat

Exclusive lower bound. Corresponds to the JSON property exclusiveMinimum

Returns:

  • (Float)


5770
5771
5772
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5770

def exclusive_minimum
  @exclusive_minimum
end

#maximumFloat

Inclusive upper bound. Corresponds to the JSON property maximum

Returns:

  • (Float)


5775
5776
5777
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5775

def maximum
  @maximum
end

#minimumFloat

Inclusive lower bound. Corresponds to the JSON property minimum

Returns:

  • (Float)


5780
5781
5782
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5780

def minimum
  @minimum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5787
5788
5789
5790
5791
5792
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5787

def update!(**args)
  @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum)
  @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum)
  @maximum = args[:maximum] if args.key?(:maximum)
  @minimum = args[:minimum] if args.key?(:minimum)
end