Class: Google::Cloud::DataLabeling::V1beta1::Example
- Inherits:
-
Object
- Object
- Google::Cloud::DataLabeling::V1beta1::Example
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb
Overview
An Example is a piece of data and its annotation. For example, an image with label "house".
Instance Attribute Summary collapse
-
#annotations ⇒ ::Array<::Google::Cloud::DataLabeling::V1beta1::Annotation>
Output only.
-
#image_payload ⇒ ::Google::Cloud::DataLabeling::V1beta1::ImagePayload
The image payload, a container of the image bytes/uri.
-
#name ⇒ ::String
Output only.
-
#text_payload ⇒ ::Google::Cloud::DataLabeling::V1beta1::TextPayload
The text payload, a container of the text content.
-
#video_payload ⇒ ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
The video payload, a container of the video uri.
Instance Attribute Details
#annotations ⇒ ::Array<::Google::Cloud::DataLabeling::V1beta1::Annotation>
Returns Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
332 333 334 335 |
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 332 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#image_payload ⇒ ::Google::Cloud::DataLabeling::V1beta1::ImagePayload
Returns The image payload, a container of the image bytes/uri.
332 333 334 335 |
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 332 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}.
332 333 334 335 |
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 332 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#text_payload ⇒ ::Google::Cloud::DataLabeling::V1beta1::TextPayload
Returns The text payload, a container of the text content.
332 333 334 335 |
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 332 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#video_payload ⇒ ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
Returns The video payload, a container of the video uri.
332 333 334 335 |
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 332 class Example include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |