Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo
- 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
Snippet information.
Instance Attribute Summary collapse
-
#snippet ⇒ String
Snippet content.
-
#snippet_status ⇒ String
Status of the snippet defined by the search team.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo
Returns a new instance of GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo.
2217 2218 2219 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2217 def initialize(**args) update!(**args) end |
Instance Attribute Details
#snippet ⇒ String
Snippet content.
Corresponds to the JSON property snippet
2210 2211 2212 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2210 def snippet @snippet end |
#snippet_status ⇒ String
Status of the snippet defined by the search team.
Corresponds to the JSON property snippetStatus
2215 2216 2217 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2215 def snippet_status @snippet_status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2222 2223 2224 2225 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2222 def update!(**args) @snippet = args[:snippet] if args.key?(:snippet) @snippet_status = args[:snippet_status] if args.key?(:snippet_status) end |