Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::Segment (v0.46.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::Segment.

Segment of the content.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#end_index

def end_index() -> ::Integer
Returns
  • (::Integer) — Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.

#part_index

def part_index() -> ::Integer
Returns
  • (::Integer) — Output only. The index of a Part object within its parent Content object.

#start_index

def start_index() -> ::Integer
Returns
  • (::Integer) — Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.

#text

def text() -> ::String
Returns
  • (::String) — Output only. The text corresponding to the segment from the response.