Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::DataItem.
DataItem is a piece of data, without annotation. For example, an image.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#image_payload
def image_payload() -> ::Google::Cloud::DataLabeling::V1beta1::ImagePayload
Returns
- (::Google::Cloud::DataLabeling::V1beta1::ImagePayload) — The image payload, a container of the image bytes/uri.
#image_payload=
def image_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ImagePayload
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::ImagePayload) — The image payload, a container of the image bytes/uri.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::ImagePayload) — The image payload, a container of the image bytes/uri.
#name
def name() -> ::String
Returns
- (::String) — Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
#name=
def name=(value) -> ::String
Parameter
- value (::String) — 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}
#text_payload
def text_payload() -> ::Google::Cloud::DataLabeling::V1beta1::TextPayload
Returns
- (::Google::Cloud::DataLabeling::V1beta1::TextPayload) — The text payload, a container of text content.
#text_payload=
def text_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextPayload
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::TextPayload) — The text payload, a container of text content.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::TextPayload) — The text payload, a container of text content.
#video_payload
def video_payload() -> ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
Returns
- (::Google::Cloud::DataLabeling::V1beta1::VideoPayload) — The video payload, a container of the video uri.
#video_payload=
def video_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::VideoPayload) — The video payload, a container of the video uri.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::VideoPayload) — The video payload, a container of the video uri.