Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb

Overview

DataItem is a piece of data, without annotation. For example, an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1DataItem

Returns a new instance of GoogleCloudDatalabelingV1beta1DataItem.



1606
1607
1608
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1606

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_payloadGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePayload

Container of information about an image. Corresponds to the JSON property imagePayload



1588
1589
1590
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1588

def image_payload
  @image_payload
end

#nameString

Output only. Name of the data item, in format of: projects/project_id/ datasets/dataset_id/dataItems/data_item_id Corresponds to the JSON property name

Returns:

  • (String)


1594
1595
1596
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1594

def name
  @name
end

#text_payloadGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextPayload

Container of information about a piece of text. Corresponds to the JSON property textPayload



1599
1600
1601
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1599

def text_payload
  @text_payload
end

#video_payloadGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoPayload

Container of information of a video. Corresponds to the JSON property videoPayload



1604
1605
1606
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1604

def video_payload
  @video_payload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1611
1612
1613
1614
1615
1616
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1611

def update!(**args)
  @image_payload = args[:image_payload] if args.key?(:image_payload)
  @name = args[:name] if args.key?(:name)
  @text_payload = args[:text_payload] if args.key?(:text_payload)
  @video_payload = args[:video_payload] if args.key?(:video_payload)
end