class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example

An Example is a piece of data and its annotation. For example, an image with label “house”.

Attributes

annotations[RW]

Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations. Corresponds to the JSON property `annotations` @return [Array<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Annotation>]

image_payload[RW]

Container of information about an image. Corresponds to the JSON property `imagePayload` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePayload]

name[RW]

Output only. Name of the example, in format of: projects/`project_id`/datasets/ `dataset_id`/annotatedDatasets/ `annotated_dataset_id`/examples/`example_id` Corresponds to the JSON property `name` @return [String]

text_payload[RW]

Container of information about a piece of text. Corresponds to the JSON property `textPayload` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextPayload]

video_payload[RW]

Container of information of a video. Corresponds to the JSON property `videoPayload` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoPayload]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 2087
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 2092
def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @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