Class: Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Segment
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Segment
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb
Overview
Grounding information for a segment of the text.
Instance Attribute Summary collapse
-
#end_index ⇒ ::Integer
End of the segment, exclusive.
-
#grounding_score ⇒ ::Float
Score for the segment.
-
#reference_indices ⇒ ::Array<::Integer>
References for the segment.
-
#start_index ⇒ ::Integer
Zero-based index indicating the start of the segment, measured in bytes of a UTF-8 string (i.e. characters encoded on multiple bytes have a length of more than one).
-
#text ⇒ ::String
The text segment itself.
Instance Attribute Details
#end_index ⇒ ::Integer
Returns End of the segment, exclusive.
233 234 235 236 |
# File 'proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb', line 233 class Segment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#grounding_score ⇒ ::Float
Returns Score for the segment.
233 234 235 236 |
# File 'proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb', line 233 class Segment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#reference_indices ⇒ ::Array<::Integer>
Returns References for the segment.
233 234 235 236 |
# File 'proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb', line 233 class Segment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#start_index ⇒ ::Integer
Returns Zero-based index indicating the start of the segment, measured in bytes of a UTF-8 string (i.e. characters encoded on multiple bytes have a length of more than one).
233 234 235 236 |
# File 'proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb', line 233 class Segment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#text ⇒ ::String
Returns The text segment itself.
233 234 235 236 |
# File 'proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb', line 233 class Segment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |