Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata

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) ⇒ GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata.



8376
8377
8378
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8376

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

Instance Attribute Details

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

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



8364
8365
8366
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8364

def references
  @references
end

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

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



8369
8370
8371
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8369

def segments
  @segments
end

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

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



8374
8375
8376
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8374

def visual_segments
  @visual_segments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8381
8382
8383
8384
8385
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8381

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