Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
- 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
Embedding vector.
Instance Attribute Summary collapse
-
#field_path ⇒ String
Embedding field path in schema.
-
#vector ⇒ Array<Float>
Query embedding vector.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector.
11384 11385 11386 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11384 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_path ⇒ String
Embedding field path in schema.
Corresponds to the JSON property fieldPath
11377 11378 11379 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11377 def field_path @field_path end |
#vector ⇒ Array<Float>
Query embedding vector.
Corresponds to the JSON property vector
11382 11383 11384 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11382 def vector @vector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11389 11390 11391 11392 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11389 def update!(**args) @field_path = args[:field_path] if args.key?(:field_path) @vector = args[:vector] if args.key?(:vector) end |