feedback_messages
Creates, updates, deletes, gets or lists a feedback_messages
resource.
Overview
Name | feedback_messages |
Type | Resource |
Id | google.datalabeling.feedback_messages |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Name 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}' |
body | string | String content of the feedback. Maximum of 10000 characters. |
createTime | string | Create time. |
image | string | The image storing this feedback if the feedback is an image representing operator's comments. |
operatorFeedbackMetadata | object | Metadata describing the feedback from the operator. |
requesterFeedbackMetadata | object | Metadata describing the feedback from the labeling task requester. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_get | SELECT | annotatedDatasetsId, datasetsId, feedbackMessagesId, feedbackThreadsId, projectsId | Get a FeedbackMessage object. |
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_list | SELECT | annotatedDatasetsId, datasetsId, feedbackThreadsId, projectsId | List FeedbackMessages with pagination. |
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_create | INSERT | annotatedDatasetsId, datasetsId, feedbackThreadsId, projectsId | Create a FeedbackMessage object. |
projects_datasets_annotated_datasets_feedback_threads_feedback_messages_delete | DELETE | annotatedDatasetsId, datasetsId, feedbackMessagesId, feedbackThreadsId, projectsId | Delete 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: requesterFeedbackMetadata
value: []
- name: operatorFeedbackMetadata
value: []
- name: name
value: string
- name: body
value: string
- name: image
value: string
- name: createTime
value: string
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 }}';