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
-
(::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.
#image_payload=
def image_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ImagePayload
-
value (::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.
-
(::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.
#name
def name() -> ::String
- (::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
- value (::String) — Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
- (::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
-
(::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.
#text_payload=
def text_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextPayload
-
value (::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.
-
(::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.
#video_payload
def video_payload() -> ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
-
(::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.
#video_payload=
def video_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
-
value (::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.
-
(::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.