Class: Google::Cloud::DataLabeling::V1beta1::Example

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

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.

Returns:



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.

Returns:



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}.

Returns:

  • (::String)

    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.

Returns:



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.

Returns:



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