Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SequentialSegment
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SequentialSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb
Overview
Start and end position in a sequence (e.g. text segment).
Instance Attribute Summary collapse
-
#end ⇒ Fixnum
End position (exclusive).
-
#start ⇒ Fixnum
Start position (inclusive).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1SequentialSegment
constructor
A new instance of GoogleCloudDatalabelingV1beta1SequentialSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1SequentialSegment
Returns a new instance of GoogleCloudDatalabelingV1beta1SequentialSegment.
4235 4236 4237 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Fixnum
End position (exclusive).
Corresponds to the JSON property end
4228 4229 4230 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4228 def end @end end |
#start ⇒ Fixnum
Start position (inclusive).
Corresponds to the JSON property start
4233 4234 4235 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4233 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4240 4241 4242 4243 |
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4240 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |