Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Chunk information.
Instance Attribute Summary collapse
-
#chunk ⇒ String
Chunk resource name.
-
#content ⇒ String
Chunk textual content.
-
#relevance_score ⇒ Float
Relevance score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo.
2151 2152 2153 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2151 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk ⇒ String
Chunk resource name.
Corresponds to the JSON property chunk
2139 2140 2141 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2139 def chunk @chunk end |
#content ⇒ String
Chunk textual content.
Corresponds to the JSON property content
2144 2145 2146 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2144 def content @content end |
#relevance_score ⇒ Float
Relevance score.
Corresponds to the JSON property relevanceScore
2149 2150 2151 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2149 def relevance_score @relevance_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2156 2157 2158 2159 2160 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2156 def update!(**args) @chunk = args[:chunk] if args.key?(:chunk) @content = args[:content] if args.key?(:content) @relevance_score = args[:relevance_score] if args.key?(:relevance_score) end |