Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo

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

Snippet information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo.



4409
4410
4411
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4409

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

Instance Attribute Details

#snippetString

Snippet content. Corresponds to the JSON property snippet

Returns:

  • (String)


4402
4403
4404
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4402

def snippet
  @snippet
end

#snippet_statusString

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

Returns:

  • (String)


4407
4408
4409
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4407

def snippet_status
  @snippet_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4414
4415
4416
4417
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4414

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