AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::Example (v0.7.2)

Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::Example.

An Example is a piece of data and its annotation. For example, an image with label "house".

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#annotations

def annotations() -> ::Array<::Google::Cloud::DataLabeling::V1beta1::Annotation>
Returns

#annotations=

def annotations=(value) -> ::Array<::Google::Cloud::DataLabeling::V1beta1::Annotation>
Parameter
Returns

#image_payload

def image_payload() -> ::Google::Cloud::DataLabeling::V1beta1::ImagePayload
Returns

#image_payload=

def image_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ImagePayload
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — 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}

#text_payload

def text_payload() -> ::Google::Cloud::DataLabeling::V1beta1::TextPayload
Returns

#text_payload=

def text_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextPayload
Parameter
Returns

#video_payload

def video_payload() -> ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
Returns

#video_payload=

def video_payload=(value) -> ::Google::Cloud::DataLabeling::V1beta1::VideoPayload
Parameter
Returns