Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapointNumericRestriction

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

Overview

This field allows restricts to be based on numeric comparisons rather than categorical tokens.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1IndexDatapointNumericRestriction

Returns a new instance of GoogleCloudAiplatformV1IndexDatapointNumericRestriction.



11470
11471
11472
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11470

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

Instance Attribute Details

#namespaceString

The namespace of this restriction. e.g.: cost. Corresponds to the JSON property namespace

Returns:

  • (String)


11448
11449
11450
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11448

def namespace
  @namespace
end

#opString

This MUST be specified for queries and must NOT be specified for datapoints. Corresponds to the JSON property op

Returns:

  • (String)


11453
11454
11455
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11453

def op
  @op
end

#value_doubleFloat

Represents 64 bit float. Corresponds to the JSON property valueDouble

Returns:

  • (Float)


11458
11459
11460
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11458

def value_double
  @value_double
end

#value_floatFloat

Represents 32 bit float. Corresponds to the JSON property valueFloat

Returns:

  • (Float)


11463
11464
11465
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11463

def value_float
  @value_float
end

#value_intFixnum

Represents 64 bit integer. Corresponds to the JSON property valueInt

Returns:

  • (Fixnum)


11468
11469
11470
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11468

def value_int
  @value_int
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11475
11476
11477
11478
11479
11480
11481
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11475

def update!(**args)
  @namespace = args[:namespace] if args.key?(:namespace)
  @op = args[:op] if args.key?(:op)
  @value_double = args[:value_double] if args.key?(:value_double)
  @value_float = args[:value_float] if args.key?(:value_float)
  @value_int = args[:value_int] if args.key?(:value_int)
end