Skip to main content

feedback_messages

Creates, updates, deletes, gets or lists a feedback_messages resource.

Overview

Namefeedback_messages
TypeResource
Idgoogle.datalabeling.feedback_messages

Fields

NameDatatypeDescription
namestringName of the feedback message in a feedback thread. Format: 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessage/{feedback_message_id}'
bodystringString content of the feedback. Maximum of 10000 characters.
createTimestringCreate time.
imagestringThe image storing this feedback if the feedback is an image representing operator's comments.
operatorFeedbackMetadataobjectMetadata describing the feedback from the operator.
requesterFeedbackMetadataobjectMetadata describing the feedback from the labeling task requester.

Methods

NameAccessible byRequired ParamsDescription
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_getSELECTannotatedDatasetsId, datasetsId, feedbackMessagesId, feedbackThreadsId, projectsIdGet a FeedbackMessage object.
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_listSELECTannotatedDatasetsId, datasetsId, feedbackThreadsId, projectsIdList FeedbackMessages with pagination.
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_createINSERTannotatedDatasetsId, datasetsId, feedbackThreadsId, projectsIdCreate a FeedbackMessage object.
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_deleteDELETEannotatedDatasetsId, datasetsId, feedbackMessagesId, feedbackThreadsId, projectsIdDelete a FeedbackMessage.

SELECT examples

List FeedbackMessages with pagination.

SELECT
name,
body,
createTime,
image,
operatorFeedbackMetadata,
requesterFeedbackMetadata
FROM google.datalabeling.feedback_messages
WHERE annotatedDatasetsId = '{{ annotatedDatasetsId }}'
AND datasetsId = '{{ datasetsId }}'
AND feedbackThreadsId = '{{ feedbackThreadsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new feedback_messages resource.

/*+ create */
INSERT INTO google.datalabeling.feedback_messages (
annotatedDatasetsId,
datasetsId,
feedbackThreadsId,
projectsId,
requesterFeedbackMetadata,
operatorFeedbackMetadata,
name,
body,
image
)
SELECT
'{{ annotatedDatasetsId }}',
'{{ datasetsId }}',
'{{ feedbackThreadsId }}',
'{{ projectsId }}',
'{{ requesterFeedbackMetadata }}',
'{{ operatorFeedbackMetadata }}',
'{{ name }}',
'{{ body }}',
'{{ image }}'
;

DELETE example

Deletes the specified feedback_messages resource.

/*+ delete */
DELETE FROM google.datalabeling.feedback_messages
WHERE annotatedDatasetsId = '{{ annotatedDatasetsId }}'
AND datasetsId = '{{ datasetsId }}'
AND feedbackMessagesId = '{{ feedbackMessagesId }}'
AND feedbackThreadsId = '{{ feedbackThreadsId }}'
AND projectsId = '{{ projectsId }}';