class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example
An Example is a piece of data and its annotation. For example, an image with label “house”.
Attributes
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>]
Container of information about an image. Corresponds to the JSON property `imagePayload` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePayload]
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]
Container of information about a piece of text. Corresponds to the JSON property `textPayload` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextPayload]
Container of information of a video. Corresponds to the JSON property `videoPayload` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoPayload]
Public Class Methods
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 2087 def initialize(**args) update!(**args) end
Public Instance Methods
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