Class: Google::Cloud::DiscoveryEngine::V1::Answer::Citation

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/answer.rb

Overview

Citation info for a segment.

Instance Attribute Summary collapse

Instance Attribute Details

#end_index::Integer

Returns End of the attributed segment, exclusive. Measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.

Returns:

  • (::Integer)

    End of the attributed segment, exclusive. Measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.



88
89
90
91
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 88

class Citation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#sources::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::CitationSource>

Returns Citation sources for the attributed segment.

Returns:



88
89
90
91
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 88

class Citation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#start_index::Integer

Returns Index indicates the start of the segment, measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.

Returns:

  • (::Integer)

    Index indicates the start of the segment, measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.



88
89
90
91
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 88

class Citation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end