Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo

Inherits:
Object
  • Object
show all
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

Snippet information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo.



5648
5649
5650
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5648

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

Instance Attribute Details

#snippetString

Snippet content. Corresponds to the JSON property snippet

Returns:

  • (String)


5641
5642
5643
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5641

def snippet
  @snippet
end

#snippet_statusString

Status of the snippet defined by the search team. Corresponds to the JSON property snippetStatus

Returns:

  • (String)


5646
5647
5648
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5646

def snippet_status
  @snippet_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5653
5654
5655
5656
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5653

def update!(**args)
  @snippet = args[:snippet] if args.key?(:snippet)
  @snippet_status = args[:snippet_status] if args.key?(:snippet_status)
end