Class: Google::Cloud::GeminiDataAnalytics::V1beta::CitationAnchor
- Inherits:
-
Object
- Object
- Google::Cloud::GeminiDataAnalytics::V1beta::CitationAnchor
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb
Overview
The anchor of the citation.
Defined Under Namespace
Classes: TextMessageCitationAnchor
Instance Attribute Summary collapse
-
#text_message_anchor ⇒ ::Google::Cloud::GeminiDataAnalytics::V1beta::CitationAnchor::TextMessageCitationAnchor
readonly
Output only.
Instance Attribute Details
#text_message_anchor ⇒ ::Google::Cloud::GeminiDataAnalytics::V1beta::CitationAnchor::TextMessageCitationAnchor (readonly)
Returns Output only. Only set if the citation is for a TextMessage.
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 |
# File 'proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb', line 456 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 |