Class: Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Segment

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#end_index::Integer

Returns End of the segment, exclusive.

Returns:

  • (::Integer)

    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.

Returns:

  • (::Float)

    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.

Returns:

  • (::Array<::Integer>)

    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).

Returns:

  • (::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).



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.

Returns:

  • (::String)

    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