Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SequentialSegment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#endFixnum

End position (exclusive). Corresponds to the JSON property end

Returns:

  • (Fixnum)


4228
4229
4230
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4228

def end
  @end
end

#startFixnum

Start position (inclusive). Corresponds to the JSON property start

Returns:

  • (Fixnum)


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