Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo.



2063
2064
2065
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2063

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

Instance Attribute Details

#snippetString

Snippet content. Corresponds to the JSON property snippet

Returns:

  • (String)


2056
2057
2058
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2056

def snippet
  @snippet
end

#snippet_statusString

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

Returns:

  • (String)


2061
2062
2063
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2061

def snippet_status
  @snippet_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2068
2069
2070
2071
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2068

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