Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataVisualSegment

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

Grounding information for a visual segment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataVisualSegment

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataVisualSegment.



8539
8540
8541
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8539

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

Instance Attribute Details

#content_idString

The content id of the visual segment. In order to display the citation of the visual element, this content_id needs to match with the grounded_content. content_metadata.content_id field. Corresponds to the JSON property contentId

Returns:

  • (String)


8532
8533
8534
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8532

def content_id
  @content_id
end

#reference_indicesArray<Fixnum>

References for the visual segment. Corresponds to the JSON property referenceIndices

Returns:

  • (Array<Fixnum>)


8537
8538
8539
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8537

def reference_indices
  @reference_indices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8544
8545
8546
8547
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8544

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