Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaTextSegment
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaTextSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
The text segment inside of DataItem.
Instance Attribute Summary collapse
-
#content ⇒ String
The text content in the segment for output only.
-
#end_offset ⇒ Fixnum
Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text).
-
#start_offset ⇒ Fixnum
Zero-based character index of the first character of the text segment ( counting characters from the beginning of the text).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaTextSegment
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaTextSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaTextSegment
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaTextSegment.
27326 27327 27328 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27326 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The text content in the segment for output only.
Corresponds to the JSON property content
27311 27312 27313 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27311 def content @content end |
#end_offset ⇒ Fixnum
Zero-based character index of the first character past the end of the text
segment (counting character from the beginning of the text). The character at
the end_offset is NOT included in the text segment.
Corresponds to the JSON property endOffset
27318 27319 27320 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27318 def end_offset @end_offset end |
#start_offset ⇒ Fixnum
Zero-based character index of the first character of the text segment (
counting characters from the beginning of the text).
Corresponds to the JSON property startOffset
27324 27325 27326 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27324 def start_offset @start_offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27331 27332 27333 27334 27335 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27331 def update!(**args) @content = args[:content] if args.key?(:content) @end_offset = args[:end_offset] if args.key?(:end_offset) @start_offset = args[:start_offset] if args.key?(:start_offset) end |