Class: Google::Cloud::DataLabeling::V1beta1::DataItem

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#image_payload::Google::Cloud::DataLabeling::V1beta1::ImagePayload

Returns The image payload, a container of the image bytes/uri.

Note: The following fields are mutually exclusive: image_payload, text_payload, video_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::DataLabeling::V1beta1::ImagePayload)

    The image payload, a container of the image bytes/uri.

    Note: The following fields are mutually exclusive: image_payload, text_payload, video_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.



209
210
211
212
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 209

class DataItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}.

Returns:

  • (::String)

    Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}



209
210
211
212
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 209

class DataItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text_payload::Google::Cloud::DataLabeling::V1beta1::TextPayload

Returns The text payload, a container of text content.

Note: The following fields are mutually exclusive: text_payload, image_payload, video_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::DataLabeling::V1beta1::TextPayload)

    The text payload, a container of text content.

    Note: The following fields are mutually exclusive: text_payload, image_payload, video_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.



209
210
211
212
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 209

class DataItem
  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.

Note: The following fields are mutually exclusive: video_payload, image_payload, text_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::DataLabeling::V1beta1::VideoPayload)

    The video payload, a container of the video uri.

    Note: The following fields are mutually exclusive: video_payload, image_payload, text_payload. If a field in that set is populated, all other fields in the set will automatically be cleared.



209
210
211
212
# File 'proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb', line 209

class DataItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end