Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
- 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) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo.
8401 8402 8403 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8401 def initialize(**args) update!(**args) end |
Instance Attribute Details
#snippet ⇒ String
Snippet content.
Corresponds to the JSON property snippet
8394 8395 8396 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8394 def snippet @snippet end |
#snippet_status ⇒ String
Status of the snippet defined by the search team.
Corresponds to the JSON property snippetStatus
8399 8400 8401 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8399 def snippet_status @snippet_status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8406 8407 8408 8409 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8406 def update!(**args) @snippet = args[:snippet] if args.key?(:snippet) @snippet_status = args[:snippet_status] if args.key?(:snippet_status) end |