Class: Google::Apis::DiscoveryengineV1alpha::GoogleApiDistributionBucketOptionsExplicit

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

Overview

Specifies a set of buckets with arbitrary widths. There are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries: Upper bound (0 <= i < N-1): bounds[i] Lower bound (1 <= i < N); bounds[i - 1] The bounds field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleApiDistributionBucketOptionsExplicit

Returns a new instance of GoogleApiDistributionBucketOptionsExplicit.



191
192
193
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 191

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

Instance Attribute Details

#boundsArray<Float>

The values must be monotonically increasing. Corresponds to the JSON property bounds

Returns:

  • (Array<Float>)


189
190
191
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 189

def bounds
  @bounds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



196
197
198
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 196

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