Class: Google::Cloud::GeminiDataAnalytics::V1::CitationAnchor
- Inherits:
-
Object
- Object
- Google::Cloud::GeminiDataAnalytics::V1::CitationAnchor
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/geminidataanalytics/v1/context.rb
Overview
The anchor of the citation.
Defined Under Namespace
Classes: TextMessageCitationAnchor
Instance Attribute Summary collapse
-
#text_message_anchor ⇒ ::Google::Cloud::GeminiDataAnalytics::V1::CitationAnchor::TextMessageCitationAnchor
readonly
Output only.
Instance Attribute Details
#text_message_anchor ⇒ ::Google::Cloud::GeminiDataAnalytics::V1::CitationAnchor::TextMessageCitationAnchor (readonly)
Returns Output only. Only set if the citation is for a TextMessage.
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 |
# File 'proto_docs/google/cloud/geminidataanalytics/v1/context.rb', line 418 class CitationAnchor include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Citation anchor within a TextMessage. # @!attribute [r] part_index # @return [::Integer] # Output only. The 0-based index of the part within the TextMessage.parts # field. # @!attribute [r] start_offset_bytes # @return [::Integer] # Output only. The offset, measured in UTF-8 bytes, within the part string # where the citation begins (inclusive). Example: For the text "Hello, # world" where "world" is cited, the start offset bytes (inclusive) is 7 # and the end offset bytes (exclusive) is 12. # @!attribute [r] end_offset_bytes # @return [::Integer] # Output only. The offset, measured in UTF-8 bytes, within the part string # where the citation ends (exclusive). Example: For the text "Hello, world" # where "world" is cited, the start offset bytes (inclusive) is 7 and the # end offset bytes (exclusive) is 12. # @!attribute [r] source_ids # @return [::Array<::String>] # Output only. The ids of the sources that are cited. class TextMessageCitationAnchor include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |