Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo

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

Chunk information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo.



3261
3262
3263
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3261

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

Instance Attribute Details

#chunkString

Chunk resource name. Corresponds to the JSON property chunk

Returns:

  • (String)


3254
3255
3256
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3254

def chunk
  @chunk
end

#contentString

Chunk textual content. Corresponds to the JSON property content

Returns:

  • (String)


3259
3260
3261
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3259

def content
  @content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3266
3267
3268
3269
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3266

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