Variables
AnnotationSource_name, AnnotationSource_value
var (
AnnotationSource_name = map[int32]string{
0: "ANNOTATION_SOURCE_UNSPECIFIED",
3: "OPERATOR",
}
AnnotationSource_value = map[string]int32{
"ANNOTATION_SOURCE_UNSPECIFIED": 0,
"OPERATOR": 3,
}
)
Enum value maps for AnnotationSource.
AnnotationSentiment_name, AnnotationSentiment_value
var (
AnnotationSentiment_name = map[int32]string{
0: "ANNOTATION_SENTIMENT_UNSPECIFIED",
1: "NEGATIVE",
2: "POSITIVE",
}
AnnotationSentiment_value = map[string]int32{
"ANNOTATION_SENTIMENT_UNSPECIFIED": 0,
"NEGATIVE": 1,
"POSITIVE": 2,
}
)
Enum value maps for AnnotationSentiment.
AnnotationType_name, AnnotationType_value
var (
AnnotationType_name = map[int32]string{
0: "ANNOTATION_TYPE_UNSPECIFIED",
1: "IMAGE_CLASSIFICATION_ANNOTATION",
2: "IMAGE_BOUNDING_BOX_ANNOTATION",
13: "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION",
10: "IMAGE_BOUNDING_POLY_ANNOTATION",
11: "IMAGE_POLYLINE_ANNOTATION",
12: "IMAGE_SEGMENTATION_ANNOTATION",
3: "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION",
4: "VIDEO_OBJECT_TRACKING_ANNOTATION",
5: "VIDEO_OBJECT_DETECTION_ANNOTATION",
6: "VIDEO_EVENT_ANNOTATION",
8: "TEXT_CLASSIFICATION_ANNOTATION",
9: "TEXT_ENTITY_EXTRACTION_ANNOTATION",
14: "GENERAL_CLASSIFICATION_ANNOTATION",
}
AnnotationType_value = map[string]int32{
"ANNOTATION_TYPE_UNSPECIFIED": 0,
"IMAGE_CLASSIFICATION_ANNOTATION": 1,
"IMAGE_BOUNDING_BOX_ANNOTATION": 2,
"IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION": 13,
"IMAGE_BOUNDING_POLY_ANNOTATION": 10,
"IMAGE_POLYLINE_ANNOTATION": 11,
"IMAGE_SEGMENTATION_ANNOTATION": 12,
"VIDEO_SHOTS_CLASSIFICATION_ANNOTATION": 3,
"VIDEO_OBJECT_TRACKING_ANNOTATION": 4,
"VIDEO_OBJECT_DETECTION_ANNOTATION": 5,
"VIDEO_EVENT_ANNOTATION": 6,
"TEXT_CLASSIFICATION_ANNOTATION": 8,
"TEXT_ENTITY_EXTRACTION_ANNOTATION": 9,
"GENERAL_CLASSIFICATION_ANNOTATION": 14,
}
)
Enum value maps for AnnotationType.
LabelImageRequest_Feature_name, LabelImageRequest_Feature_value
var (
LabelImageRequest_Feature_name = map[int32]string{
0: "FEATURE_UNSPECIFIED",
1: "CLASSIFICATION",
2: "BOUNDING_BOX",
6: "ORIENTED_BOUNDING_BOX",
3: "BOUNDING_POLY",
4: "POLYLINE",
5: "SEGMENTATION",
}
LabelImageRequest_Feature_value = map[string]int32{
"FEATURE_UNSPECIFIED": 0,
"CLASSIFICATION": 1,
"BOUNDING_BOX": 2,
"ORIENTED_BOUNDING_BOX": 6,
"BOUNDING_POLY": 3,
"POLYLINE": 4,
"SEGMENTATION": 5,
}
)
Enum value maps for LabelImageRequest_Feature.
LabelVideoRequest_Feature_name, LabelVideoRequest_Feature_value
var (
LabelVideoRequest_Feature_name = map[int32]string{
0: "FEATURE_UNSPECIFIED",
1: "CLASSIFICATION",
2: "OBJECT_DETECTION",
3: "OBJECT_TRACKING",
4: "EVENT",
}
LabelVideoRequest_Feature_value = map[string]int32{
"FEATURE_UNSPECIFIED": 0,
"CLASSIFICATION": 1,
"OBJECT_DETECTION": 2,
"OBJECT_TRACKING": 3,
"EVENT": 4,
}
)
Enum value maps for LabelVideoRequest_Feature.
LabelTextRequest_Feature_name, LabelTextRequest_Feature_value
var (
LabelTextRequest_Feature_name = map[int32]string{
0: "FEATURE_UNSPECIFIED",
1: "TEXT_CLASSIFICATION",
2: "TEXT_ENTITY_EXTRACTION",
}
LabelTextRequest_Feature_value = map[string]int32{
"FEATURE_UNSPECIFIED": 0,
"TEXT_CLASSIFICATION": 1,
"TEXT_ENTITY_EXTRACTION": 2,
}
)
Enum value maps for LabelTextRequest_Feature.
DataType_name, DataType_value
var (
DataType_name = map[int32]string{
0: "DATA_TYPE_UNSPECIFIED",
1: "IMAGE",
2: "VIDEO",
4: "TEXT",
6: "GENERAL_DATA",
}
DataType_value = map[string]int32{
"DATA_TYPE_UNSPECIFIED": 0,
"IMAGE": 1,
"VIDEO": 2,
"TEXT": 4,
"GENERAL_DATA": 6,
}
)
Enum value maps for DataType.
EvaluationJob_State_name, EvaluationJob_State_value
var (
EvaluationJob_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "SCHEDULED",
2: "RUNNING",
3: "PAUSED",
4: "STOPPED",
}
EvaluationJob_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"SCHEDULED": 1,
"RUNNING": 2,
"PAUSED": 3,
"STOPPED": 4,
}
)
Enum value maps for EvaluationJob_State.
StringAggregationType_name, StringAggregationType_value
var (
StringAggregationType_name = map[int32]string{
0: "STRING_AGGREGATION_TYPE_UNSPECIFIED",
1: "MAJORITY_VOTE",
2: "UNANIMOUS_VOTE",
3: "NO_AGGREGATION",
}
StringAggregationType_value = map[string]int32{
"STRING_AGGREGATION_TYPE_UNSPECIFIED": 0,
"MAJORITY_VOTE": 1,
"UNANIMOUS_VOTE": 2,
"NO_AGGREGATION": 3,
}
)
Enum value maps for StringAggregationType.
File_google_cloud_datalabeling_v1beta1_annotation_proto
var File_google_cloud_datalabeling_v1beta1_annotation_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_annotation_spec_set_proto
var File_google_cloud_datalabeling_v1beta1_annotation_spec_set_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_data_labeling_service_proto
var File_google_cloud_datalabeling_v1beta1_data_labeling_service_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_data_payloads_proto
var File_google_cloud_datalabeling_v1beta1_data_payloads_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_dataset_proto
var File_google_cloud_datalabeling_v1beta1_dataset_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_evaluation_job_proto
var File_google_cloud_datalabeling_v1beta1_evaluation_job_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_evaluation_proto
var File_google_cloud_datalabeling_v1beta1_evaluation_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_human_annotation_config_proto
var File_google_cloud_datalabeling_v1beta1_human_annotation_config_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_instruction_proto
var File_google_cloud_datalabeling_v1beta1_instruction_proto protoreflect.FileDescriptor
File_google_cloud_datalabeling_v1beta1_operations_proto
var File_google_cloud_datalabeling_v1beta1_operations_proto protoreflect.FileDescriptor
Functions
func RegisterDataLabelingServiceServer
func RegisterDataLabelingServiceServer(s *grpc.Server, srv DataLabelingServiceServer)
AnnotatedDataset
type AnnotatedDataset struct {
// Output only. AnnotatedDataset resource name in format of:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The display name of the AnnotatedDataset. It is specified in
// HumanAnnotationConfig when user starts a labeling task. Maximum of 64
// characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. The description of the AnnotatedDataset. It is specified in
// HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
// characters.
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Source of the annotation.
AnnotationSource AnnotationSource `protobuf:"varint,3,opt,name=annotation_source,json=annotationSource,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationSource" json:"annotation_source,omitempty"`
// Output only. Type of the annotation. It is specified when starting labeling
// task.
AnnotationType AnnotationType `protobuf:"varint,8,opt,name=annotation_type,json=annotationType,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationType" json:"annotation_type,omitempty"`
// Output only. Number of examples in the annotated dataset.
ExampleCount int64 `protobuf:"varint,4,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
// Output only. Number of examples that have annotation in the annotated
// dataset.
CompletedExampleCount int64 `protobuf:"varint,5,opt,name=completed_example_count,json=completedExampleCount,proto3" json:"completed_example_count,omitempty"`
// Output only. Per label statistics.
LabelStats *LabelStats `protobuf:"bytes,6,opt,name=label_stats,json=labelStats,proto3" json:"label_stats,omitempty"`
// Output only. Time the AnnotatedDataset was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Additional information about AnnotatedDataset.
Metadata *AnnotatedDatasetMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Output only. The names of any related resources that are blocking changes
// to the annotated dataset.
BlockingResources []string `protobuf:"bytes,11,rep,name=blocking_resources,json=blockingResources,proto3" json:"blocking_resources,omitempty"`
// contains filtered or unexported fields
}
AnnotatedDataset is a set holding annotations for data in a Dataset. Each labeling task will generate an AnnotatedDataset under the Dataset that the task is requested for.
func (*AnnotatedDataset) Descriptor
func (*AnnotatedDataset) Descriptor() ([]byte, []int)
Deprecated: Use AnnotatedDataset.ProtoReflect.Descriptor instead.
func (*AnnotatedDataset) GetAnnotationSource
func (x *AnnotatedDataset) GetAnnotationSource() AnnotationSource
func (*AnnotatedDataset) GetAnnotationType
func (x *AnnotatedDataset) GetAnnotationType() AnnotationType
func (*AnnotatedDataset) GetBlockingResources
func (x *AnnotatedDataset) GetBlockingResources() []string
func (*AnnotatedDataset) GetCompletedExampleCount
func (x *AnnotatedDataset) GetCompletedExampleCount() int64
func (*AnnotatedDataset) GetCreateTime
func (x *AnnotatedDataset) GetCreateTime() *timestamppb.Timestamp
func (*AnnotatedDataset) GetDescription
func (x *AnnotatedDataset) GetDescription() string
func (*AnnotatedDataset) GetDisplayName
func (x *AnnotatedDataset) GetDisplayName() string
func (*AnnotatedDataset) GetExampleCount
func (x *AnnotatedDataset) GetExampleCount() int64
func (*AnnotatedDataset) GetLabelStats
func (x *AnnotatedDataset) GetLabelStats() *LabelStats
func (*AnnotatedDataset) GetMetadata
func (x *AnnotatedDataset) GetMetadata() *AnnotatedDatasetMetadata
func (*AnnotatedDataset) GetName
func (x *AnnotatedDataset) GetName() string
func (*AnnotatedDataset) ProtoMessage
func (*AnnotatedDataset) ProtoMessage()
func (*AnnotatedDataset) ProtoReflect
func (x *AnnotatedDataset) ProtoReflect() protoreflect.Message
func (*AnnotatedDataset) Reset
func (x *AnnotatedDataset) Reset()
func (*AnnotatedDataset) String
func (x *AnnotatedDataset) String() string
AnnotatedDatasetMetadata
type AnnotatedDatasetMetadata struct {
// Specific request configuration used when requesting the labeling task.
//
// Types that are assignable to AnnotationRequestConfig:
//
// *AnnotatedDatasetMetadata_ImageClassificationConfig
// *AnnotatedDatasetMetadata_BoundingPolyConfig
// *AnnotatedDatasetMetadata_PolylineConfig
// *AnnotatedDatasetMetadata_SegmentationConfig
// *AnnotatedDatasetMetadata_VideoClassificationConfig
// *AnnotatedDatasetMetadata_ObjectDetectionConfig
// *AnnotatedDatasetMetadata_ObjectTrackingConfig
// *AnnotatedDatasetMetadata_EventConfig
// *AnnotatedDatasetMetadata_TextClassificationConfig
// *AnnotatedDatasetMetadata_TextEntityExtractionConfig
AnnotationRequestConfig isAnnotatedDatasetMetadata_AnnotationRequestConfig `protobuf_oneof:"annotation_request_config"`
// HumanAnnotationConfig used when requesting the human labeling task for this
// AnnotatedDataset.
HumanAnnotationConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=human_annotation_config,json=humanAnnotationConfig,proto3" json:"human_annotation_config,omitempty"`
// contains filtered or unexported fields
}
Metadata on AnnotatedDataset.
func (*AnnotatedDatasetMetadata) Descriptor
func (*AnnotatedDatasetMetadata) Descriptor() ([]byte, []int)
Deprecated: Use AnnotatedDatasetMetadata.ProtoReflect.Descriptor instead.
func (*AnnotatedDatasetMetadata) GetAnnotationRequestConfig
func (m *AnnotatedDatasetMetadata) GetAnnotationRequestConfig() isAnnotatedDatasetMetadata_AnnotationRequestConfig
func (*AnnotatedDatasetMetadata) GetBoundingPolyConfig
func (x *AnnotatedDatasetMetadata) GetBoundingPolyConfig() *BoundingPolyConfig
func (*AnnotatedDatasetMetadata) GetEventConfig
func (x *AnnotatedDatasetMetadata) GetEventConfig() *EventConfig
func (*AnnotatedDatasetMetadata) GetHumanAnnotationConfig
func (x *AnnotatedDatasetMetadata) GetHumanAnnotationConfig() *HumanAnnotationConfig
func (*AnnotatedDatasetMetadata) GetImageClassificationConfig
func (x *AnnotatedDatasetMetadata) GetImageClassificationConfig() *ImageClassificationConfig
func (*AnnotatedDatasetMetadata) GetObjectDetectionConfig
func (x *AnnotatedDatasetMetadata) GetObjectDetectionConfig() *ObjectDetectionConfig
func (*AnnotatedDatasetMetadata) GetObjectTrackingConfig
func (x *AnnotatedDatasetMetadata) GetObjectTrackingConfig() *ObjectTrackingConfig
func (*AnnotatedDatasetMetadata) GetPolylineConfig
func (x *AnnotatedDatasetMetadata) GetPolylineConfig() *PolylineConfig
func (*AnnotatedDatasetMetadata) GetSegmentationConfig
func (x *AnnotatedDatasetMetadata) GetSegmentationConfig() *SegmentationConfig
func (*AnnotatedDatasetMetadata) GetTextClassificationConfig
func (x *AnnotatedDatasetMetadata) GetTextClassificationConfig() *TextClassificationConfig
func (*AnnotatedDatasetMetadata) GetTextEntityExtractionConfig
func (x *AnnotatedDatasetMetadata) GetTextEntityExtractionConfig() *TextEntityExtractionConfig
func (*AnnotatedDatasetMetadata) GetVideoClassificationConfig
func (x *AnnotatedDatasetMetadata) GetVideoClassificationConfig() *VideoClassificationConfig
func (*AnnotatedDatasetMetadata) ProtoMessage
func (*AnnotatedDatasetMetadata) ProtoMessage()
func (*AnnotatedDatasetMetadata) ProtoReflect
func (x *AnnotatedDatasetMetadata) ProtoReflect() protoreflect.Message
func (*AnnotatedDatasetMetadata) Reset
func (x *AnnotatedDatasetMetadata) Reset()
func (*AnnotatedDatasetMetadata) String
func (x *AnnotatedDatasetMetadata) String() string
AnnotatedDatasetMetadata_BoundingPolyConfig
type AnnotatedDatasetMetadata_BoundingPolyConfig struct {
// Configuration for image bounding box and bounding poly task.
BoundingPolyConfig *BoundingPolyConfig `protobuf:"bytes,3,opt,name=bounding_poly_config,json=boundingPolyConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_EventConfig
type AnnotatedDatasetMetadata_EventConfig struct {
// Configuration for video event labeling task.
EventConfig *EventConfig `protobuf:"bytes,9,opt,name=event_config,json=eventConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_ImageClassificationConfig
type AnnotatedDatasetMetadata_ImageClassificationConfig struct {
// Configuration for image classification task.
ImageClassificationConfig *ImageClassificationConfig `protobuf:"bytes,2,opt,name=image_classification_config,json=imageClassificationConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_ObjectDetectionConfig
type AnnotatedDatasetMetadata_ObjectDetectionConfig struct {
// Configuration for video object detection task.
ObjectDetectionConfig *ObjectDetectionConfig `protobuf:"bytes,7,opt,name=object_detection_config,json=objectDetectionConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_ObjectTrackingConfig
type AnnotatedDatasetMetadata_ObjectTrackingConfig struct {
// Configuration for video object tracking task.
ObjectTrackingConfig *ObjectTrackingConfig `protobuf:"bytes,8,opt,name=object_tracking_config,json=objectTrackingConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_PolylineConfig
type AnnotatedDatasetMetadata_PolylineConfig struct {
// Configuration for image polyline task.
PolylineConfig *PolylineConfig `protobuf:"bytes,4,opt,name=polyline_config,json=polylineConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_SegmentationConfig
type AnnotatedDatasetMetadata_SegmentationConfig struct {
// Configuration for image segmentation task.
SegmentationConfig *SegmentationConfig `protobuf:"bytes,5,opt,name=segmentation_config,json=segmentationConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_TextClassificationConfig
type AnnotatedDatasetMetadata_TextClassificationConfig struct {
// Configuration for text classification task.
TextClassificationConfig *TextClassificationConfig `protobuf:"bytes,10,opt,name=text_classification_config,json=textClassificationConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_TextEntityExtractionConfig
type AnnotatedDatasetMetadata_TextEntityExtractionConfig struct {
// Configuration for text entity extraction task.
TextEntityExtractionConfig *TextEntityExtractionConfig `protobuf:"bytes,11,opt,name=text_entity_extraction_config,json=textEntityExtractionConfig,proto3,oneof"`
}
AnnotatedDatasetMetadata_VideoClassificationConfig
type AnnotatedDatasetMetadata_VideoClassificationConfig struct {
// Configuration for video classification task.
VideoClassificationConfig *VideoClassificationConfig `protobuf:"bytes,6,opt,name=video_classification_config,json=videoClassificationConfig,proto3,oneof"`
}
Annotation
type Annotation struct {
// Output only. Unique name of this annotation, format is:
//
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The source of the annotation.
AnnotationSource AnnotationSource `protobuf:"varint,2,opt,name=annotation_source,json=annotationSource,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationSource" json:"annotation_source,omitempty"`
// Output only. This is the actual annotation value, e.g classification,
// bounding box values are stored here.
AnnotationValue *AnnotationValue `protobuf:"bytes,3,opt,name=annotation_value,json=annotationValue,proto3" json:"annotation_value,omitempty"`
// Output only. Annotation metadata, including information like votes
// for labels.
AnnotationMetadata *AnnotationMetadata `protobuf:"bytes,4,opt,name=annotation_metadata,json=annotationMetadata,proto3" json:"annotation_metadata,omitempty"`
// Output only. Sentiment for this annotation.
AnnotationSentiment AnnotationSentiment `protobuf:"varint,6,opt,name=annotation_sentiment,json=annotationSentiment,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationSentiment" json:"annotation_sentiment,omitempty"`
// contains filtered or unexported fields
}
Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation.
func (*Annotation) Descriptor
func (*Annotation) Descriptor() ([]byte, []int)
Deprecated: Use Annotation.ProtoReflect.Descriptor instead.
func (*Annotation) GetAnnotationMetadata
func (x *Annotation) GetAnnotationMetadata() *AnnotationMetadata
func (*Annotation) GetAnnotationSentiment
func (x *Annotation) GetAnnotationSentiment() AnnotationSentiment
func (*Annotation) GetAnnotationSource
func (x *Annotation) GetAnnotationSource() AnnotationSource
func (*Annotation) GetAnnotationValue
func (x *Annotation) GetAnnotationValue() *