Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadata

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 details for text sources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadata.



20768
20769
20770
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20768

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

Instance Attribute Details

#referencesArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataReference>

References for the grounded text. Corresponds to the JSON property references



20756
20757
20758
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20756

def references
  @references
end

#segmentsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataSegment>

Grounding information for parts of the text. Corresponds to the JSON property segments



20761
20762
20763
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20761

def segments
  @segments
end

#visual_segmentsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataVisualSegment>

Grounding information for parts of the visual content. Corresponds to the JSON property visualSegments



20766
20767
20768
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20766

def visual_segments
  @visual_segments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20773
20774
20775
20776
20777
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20773

def update!(**args)
  @references = args[:references] if args.key?(:references)
  @segments = args[:segments] if args.key?(:segments)
  @visual_segments = args[:visual_segments] if args.key?(:visual_segments)
end