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() *AnnotationValue
func (*Annotation) GetName
func (x *Annotation) GetName() string
func (*Annotation) ProtoMessage
func (*Annotation) ProtoMessage()
func (*Annotation) ProtoReflect
func (x *Annotation) ProtoReflect() protoreflect.Message
func (*Annotation) Reset
func (x *Annotation) Reset()
func (*Annotation) String
func (x *Annotation) String() string
AnnotationMetadata
type AnnotationMetadata struct {
// Metadata related to human labeling.
OperatorMetadata *OperatorMetadata `protobuf:"bytes,2,opt,name=operator_metadata,json=operatorMetadata,proto3" json:"operator_metadata,omitempty"`
// contains filtered or unexported fields
}
Additional information associated with the annotation.
func (*AnnotationMetadata) Descriptor
func (*AnnotationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use AnnotationMetadata.ProtoReflect.Descriptor instead.
func (*AnnotationMetadata) GetOperatorMetadata
func (x *AnnotationMetadata) GetOperatorMetadata() *OperatorMetadata
func (*AnnotationMetadata) ProtoMessage
func (*AnnotationMetadata) ProtoMessage()
func (*AnnotationMetadata) ProtoReflect
func (x *AnnotationMetadata) ProtoReflect() protoreflect.Message
func (*AnnotationMetadata) Reset
func (x *AnnotationMetadata) Reset()
func (*AnnotationMetadata) String
func (x *AnnotationMetadata) String() string
AnnotationSentiment
type AnnotationSentiment int32
AnnotationSentiment_ANNOTATION_SENTIMENT_UNSPECIFIED, AnnotationSentiment_NEGATIVE, AnnotationSentiment_POSITIVE
const (
AnnotationSentiment_ANNOTATION_SENTIMENT_UNSPECIFIED AnnotationSentiment = 0
// This annotation describes negatively about the data.
AnnotationSentiment_NEGATIVE AnnotationSentiment = 1
// This label describes positively about the data.
AnnotationSentiment_POSITIVE AnnotationSentiment = 2
)
func (AnnotationSentiment) Descriptor
func (AnnotationSentiment) Descriptor() protoreflect.EnumDescriptor
func (AnnotationSentiment) Enum
func (x AnnotationSentiment) Enum() *AnnotationSentiment
func (AnnotationSentiment) EnumDescriptor
func (AnnotationSentiment) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnnotationSentiment.Descriptor instead.
func (AnnotationSentiment) Number
func (x AnnotationSentiment) Number() protoreflect.EnumNumber
func (AnnotationSentiment) String
func (x AnnotationSentiment) String() string
func (AnnotationSentiment) Type
func (AnnotationSentiment) Type() protoreflect.EnumType
AnnotationSource
type AnnotationSource int32
Specifies where the annotation comes from (whether it was provided by a human labeler or a different source).
AnnotationSource_ANNOTATION_SOURCE_UNSPECIFIED, AnnotationSource_OPERATOR
const (
AnnotationSource_ANNOTATION_SOURCE_UNSPECIFIED AnnotationSource = 0
// Answer is provided by a human contributor.
AnnotationSource_OPERATOR AnnotationSource = 3
)
func (AnnotationSource) Descriptor
func (AnnotationSource) Descriptor() protoreflect.EnumDescriptor
func (AnnotationSource) Enum
func (x AnnotationSource) Enum() *AnnotationSource
func (AnnotationSource) EnumDescriptor
func (AnnotationSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnnotationSource.Descriptor instead.
func (AnnotationSource) Number
func (x AnnotationSource) Number() protoreflect.EnumNumber
func (AnnotationSource) String
func (x AnnotationSource) String() string
func (AnnotationSource) Type
func (AnnotationSource) Type() protoreflect.EnumType
AnnotationSpec
type AnnotationSpec struct {
// Required. The display name of the AnnotationSpec. Maximum of 64 characters.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. User-provided description of the annotation specification.
// The description can be up to 10,000 characters long.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
Container of information related to one possible annotation that can be used
in a labeling task. For example, an image classification task where images
are labeled as dog
or cat
must reference an AnnotationSpec for dog
and
an AnnotationSpec for cat
.
func (*AnnotationSpec) Descriptor
func (*AnnotationSpec) Descriptor() ([]byte, []int)
Deprecated: Use AnnotationSpec.ProtoReflect.Descriptor instead.
func (*AnnotationSpec) GetDescription
func (x *AnnotationSpec) GetDescription() string
func (*AnnotationSpec) GetDisplayName
func (x *AnnotationSpec) GetDisplayName() string
func (*AnnotationSpec) ProtoMessage
func (*AnnotationSpec) ProtoMessage()
func (*AnnotationSpec) ProtoReflect
func (x *AnnotationSpec) ProtoReflect() protoreflect.Message
func (*AnnotationSpec) Reset
func (x *AnnotationSpec) Reset()
func (*AnnotationSpec) String
func (x *AnnotationSpec) String() string
AnnotationSpecSet
type AnnotationSpecSet struct {
// Output only. The AnnotationSpecSet resource name in the following format:
//
// "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name for AnnotationSpecSet that you define when you
// create it. Maximum of 64 characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. User-provided description of the annotation specification set.
// The description can be up to 10,000 characters long.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Required. The array of AnnotationSpecs that you define when you create the
// AnnotationSpecSet. These are the possible labels for the labeling task.
AnnotationSpecs []*AnnotationSpec `protobuf:"bytes,4,rep,name=annotation_specs,json=annotationSpecs,proto3" json:"annotation_specs,omitempty"`
// Output only. The names of any related resources that are blocking changes
// to the annotation spec set.
BlockingResources []string `protobuf:"bytes,5,rep,name=blocking_resources,json=blockingResources,proto3" json:"blocking_resources,omitempty"`
// contains filtered or unexported fields
}
An AnnotationSpecSet is a collection of label definitions. For example, in image classification tasks, you define a set of possible labels for images as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.
func (*AnnotationSpecSet) Descriptor
func (*AnnotationSpecSet) Descriptor() ([]byte, []int)
Deprecated: Use AnnotationSpecSet.ProtoReflect.Descriptor instead.
func (*AnnotationSpecSet) GetAnnotationSpecs
func (x *AnnotationSpecSet) GetAnnotationSpecs() []*AnnotationSpec
func (*AnnotationSpecSet) GetBlockingResources
func (x *AnnotationSpecSet) GetBlockingResources() []string
func (*AnnotationSpecSet) GetDescription
func (x *AnnotationSpecSet) GetDescription() string
func (*AnnotationSpecSet) GetDisplayName
func (x *AnnotationSpecSet) GetDisplayName() string
func (*AnnotationSpecSet) GetName
func (x *AnnotationSpecSet) GetName() string
func (*AnnotationSpecSet) ProtoMessage
func (*AnnotationSpecSet) ProtoMessage()
func (*AnnotationSpecSet) ProtoReflect
func (x *AnnotationSpecSet) ProtoReflect() protoreflect.Message
func (*AnnotationSpecSet) Reset
func (x *AnnotationSpecSet) Reset()
func (*AnnotationSpecSet) String
func (x *AnnotationSpecSet) String() string
AnnotationType
type AnnotationType int32
AnnotationType_ANNOTATION_TYPE_UNSPECIFIED, AnnotationType_IMAGE_CLASSIFICATION_ANNOTATION, AnnotationType_IMAGE_BOUNDING_BOX_ANNOTATION, AnnotationType_IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION, AnnotationType_IMAGE_BOUNDING_POLY_ANNOTATION, AnnotationType_IMAGE_POLYLINE_ANNOTATION, AnnotationType_IMAGE_SEGMENTATION_ANNOTATION, AnnotationType_VIDEO_SHOTS_CLASSIFICATION_ANNOTATION, AnnotationType_VIDEO_OBJECT_TRACKING_ANNOTATION, AnnotationType_VIDEO_OBJECT_DETECTION_ANNOTATION, AnnotationType_VIDEO_EVENT_ANNOTATION, AnnotationType_TEXT_CLASSIFICATION_ANNOTATION, AnnotationType_TEXT_ENTITY_EXTRACTION_ANNOTATION, AnnotationType_GENERAL_CLASSIFICATION_ANNOTATION
const (
AnnotationType_ANNOTATION_TYPE_UNSPECIFIED AnnotationType = 0
// Classification annotations in an image. Allowed for continuous evaluation.
AnnotationType_IMAGE_CLASSIFICATION_ANNOTATION AnnotationType = 1
// Bounding box annotations in an image. A form of image object detection.
// Allowed for continuous evaluation.
AnnotationType_IMAGE_BOUNDING_BOX_ANNOTATION AnnotationType = 2
// Oriented bounding box. The box does not have to be parallel to horizontal
// line.
AnnotationType_IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION AnnotationType = 13
// Bounding poly annotations in an image.
AnnotationType_IMAGE_BOUNDING_POLY_ANNOTATION AnnotationType = 10
// Polyline annotations in an image.
AnnotationType_IMAGE_POLYLINE_ANNOTATION AnnotationType = 11
// Segmentation annotations in an image.
AnnotationType_IMAGE_SEGMENTATION_ANNOTATION AnnotationType = 12
// Classification annotations in video shots.
AnnotationType_VIDEO_SHOTS_CLASSIFICATION_ANNOTATION AnnotationType = 3
// Video object tracking annotation.
AnnotationType_VIDEO_OBJECT_TRACKING_ANNOTATION AnnotationType = 4
// Video object detection annotation.
AnnotationType_VIDEO_OBJECT_DETECTION_ANNOTATION AnnotationType = 5
// Video event annotation.
AnnotationType_VIDEO_EVENT_ANNOTATION AnnotationType = 6
// Classification for text. Allowed for continuous evaluation.
AnnotationType_TEXT_CLASSIFICATION_ANNOTATION AnnotationType = 8
// Entity extraction for text.
AnnotationType_TEXT_ENTITY_EXTRACTION_ANNOTATION AnnotationType = 9
// General classification. Allowed for continuous evaluation.
AnnotationType_GENERAL_CLASSIFICATION_ANNOTATION AnnotationType = 14
)
func (AnnotationType) Descriptor
func (AnnotationType) Descriptor() protoreflect.EnumDescriptor
func (AnnotationType) Enum
func (x AnnotationType) Enum() *AnnotationType
func (AnnotationType) EnumDescriptor
func (AnnotationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnnotationType.Descriptor instead.
func (AnnotationType) Number
func (x AnnotationType) Number() protoreflect.EnumNumber
func (AnnotationType) String
func (x AnnotationType) String() string
func (AnnotationType) Type
func (AnnotationType) Type() protoreflect.EnumType
AnnotationValue
type AnnotationValue struct {
// Types that are assignable to ValueType:
//
// *AnnotationValue_ImageClassificationAnnotation
// *AnnotationValue_ImageBoundingPolyAnnotation
// *AnnotationValue_ImagePolylineAnnotation
// *AnnotationValue_ImageSegmentationAnnotation
// *AnnotationValue_TextClassificationAnnotation
// *AnnotationValue_TextEntityExtractionAnnotation
// *AnnotationValue_VideoClassificationAnnotation
// *AnnotationValue_VideoObjectTrackingAnnotation
// *AnnotationValue_VideoEventAnnotation
ValueType isAnnotationValue_ValueType `protobuf_oneof:"value_type"`
// contains filtered or unexported fields
}
Annotation value for an example.
func (*AnnotationValue) Descriptor
func (*AnnotationValue) Descriptor() ([]byte, []int)
Deprecated: Use AnnotationValue.ProtoReflect.Descriptor instead.
func (*AnnotationValue) GetImageBoundingPolyAnnotation
func (x *AnnotationValue) GetImageBoundingPolyAnnotation() *ImageBoundingPolyAnnotation
func (*AnnotationValue) GetImageClassificationAnnotation
func (x *AnnotationValue) GetImageClassificationAnnotation() *ImageClassificationAnnotation
func (*AnnotationValue) GetImagePolylineAnnotation
func (x *AnnotationValue) GetImagePolylineAnnotation() *ImagePolylineAnnotation
func (*AnnotationValue) GetImageSegmentationAnnotation
func (x *AnnotationValue) GetImageSegmentationAnnotation() *ImageSegmentationAnnotation
func (*AnnotationValue) GetTextClassificationAnnotation
func (x *AnnotationValue) GetTextClassificationAnnotation() *TextClassificationAnnotation
func (*AnnotationValue) GetTextEntityExtractionAnnotation
func (x *AnnotationValue) GetTextEntityExtractionAnnotation() *TextEntityExtractionAnnotation
func (*AnnotationValue) GetValueType
func (m *AnnotationValue) GetValueType() isAnnotationValue_ValueType
func (*AnnotationValue) GetVideoClassificationAnnotation
func (x *AnnotationValue) GetVideoClassificationAnnotation() *VideoClassificationAnnotation
func (*AnnotationValue) GetVideoEventAnnotation
func (x *AnnotationValue) GetVideoEventAnnotation() *VideoEventAnnotation
func (*AnnotationValue) GetVideoObjectTrackingAnnotation
func (x *AnnotationValue) GetVideoObjectTrackingAnnotation() *VideoObjectTrackingAnnotation
func (*AnnotationValue) ProtoMessage
func (*AnnotationValue) ProtoMessage()
func (*AnnotationValue) ProtoReflect
func (x *AnnotationValue) ProtoReflect() protoreflect.Message
func (*AnnotationValue) Reset
func (x *AnnotationValue) Reset()
func (*AnnotationValue) String
func (x *AnnotationValue) String() string
AnnotationValue_ImageBoundingPolyAnnotation
type AnnotationValue_ImageBoundingPolyAnnotation struct {
// Annotation value for image bounding box, oriented bounding box
// and polygon cases.
ImageBoundingPolyAnnotation *ImageBoundingPolyAnnotation `protobuf:"bytes,2,opt,name=image_bounding_poly_annotation,json=imageBoundingPolyAnnotation,proto3,oneof"`
}
AnnotationValue_ImageClassificationAnnotation
type AnnotationValue_ImageClassificationAnnotation struct {
// Annotation value for image classification case.
ImageClassificationAnnotation *ImageClassificationAnnotation `protobuf:"bytes,1,opt,name=image_classification_annotation,json=imageClassificationAnnotation,proto3,oneof"`
}
AnnotationValue_ImagePolylineAnnotation
type AnnotationValue_ImagePolylineAnnotation struct {
// Annotation value for image polyline cases.
// Polyline here is different from BoundingPoly. It is formed by
// line segments connected to each other but not closed form(Bounding Poly).
// The line segments can cross each other.
ImagePolylineAnnotation *ImagePolylineAnnotation `protobuf:"bytes,8,opt,name=image_polyline_annotation,json=imagePolylineAnnotation,proto3,oneof"`
}
AnnotationValue_ImageSegmentationAnnotation
type AnnotationValue_ImageSegmentationAnnotation struct {
// Annotation value for image segmentation.
ImageSegmentationAnnotation *ImageSegmentationAnnotation `protobuf:"bytes,9,opt,name=image_segmentation_annotation,json=imageSegmentationAnnotation,proto3,oneof"`
}
AnnotationValue_TextClassificationAnnotation
type AnnotationValue_TextClassificationAnnotation struct {
// Annotation value for text classification case.
TextClassificationAnnotation *TextClassificationAnnotation `protobuf:"bytes,3,opt,name=text_classification_annotation,json=textClassificationAnnotation,proto3,oneof"`
}
AnnotationValue_TextEntityExtractionAnnotation
type AnnotationValue_TextEntityExtractionAnnotation struct {
// Annotation value for text entity extraction case.
TextEntityExtractionAnnotation *TextEntityExtractionAnnotation `protobuf:"bytes,10,opt,name=text_entity_extraction_annotation,json=textEntityExtractionAnnotation,proto3,oneof"`
}
AnnotationValue_VideoClassificationAnnotation
type AnnotationValue_VideoClassificationAnnotation struct {
// Annotation value for video classification case.
VideoClassificationAnnotation *VideoClassificationAnnotation `protobuf:"bytes,4,opt,name=video_classification_annotation,json=videoClassificationAnnotation,proto3,oneof"`
}
AnnotationValue_VideoEventAnnotation
type AnnotationValue_VideoEventAnnotation struct {
// Annotation value for video event case.
VideoEventAnnotation *VideoEventAnnotation `protobuf:"bytes,6,opt,name=video_event_annotation,json=videoEventAnnotation,proto3,oneof"`
}
AnnotationValue_VideoObjectTrackingAnnotation
type AnnotationValue_VideoObjectTrackingAnnotation struct {
// Annotation value for video object detection and tracking case.
VideoObjectTrackingAnnotation *VideoObjectTrackingAnnotation `protobuf:"bytes,5,opt,name=video_object_tracking_annotation,json=videoObjectTrackingAnnotation,proto3,oneof"`
}
Attempt
type Attempt struct {
AttemptTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=attempt_time,json=attemptTime,proto3" json:"attempt_time,omitempty"`
// Details of errors that occurred.
PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"`
// contains filtered or unexported fields
}
Records a failed evaluation job run.
func (*Attempt) Descriptor
Deprecated: Use Attempt.ProtoReflect.Descriptor instead.
func (*Attempt) GetAttemptTime
func (x *Attempt) GetAttemptTime() *timestamppb.Timestamp
func (*Attempt) GetPartialFailures
func (*Attempt) ProtoMessage
func (*Attempt) ProtoMessage()
func (*Attempt) ProtoReflect
func (x *Attempt) ProtoReflect() protoreflect.Message
func (*Attempt) Reset
func (x *Attempt) Reset()
func (*Attempt) String
BigQuerySource
type BigQuerySource struct {
// Required. BigQuery URI to a table, up to 2,000 characters long. If you
// specify the URI of a table that does not exist, Data Labeling Service
// creates a table at the URI with the correct schema when you create your
// [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
// it must have the
// [correct
// schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
//
// Provide the table URI in the following format:
//
// "bq://{your_project_id}/{your_dataset_name}/{your_table_name}"
//
// [Learn
// more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// contains filtered or unexported fields
}
The BigQuery location for input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this is where the service saves the prediction input and output sampled from the model version.
func (*BigQuerySource) Descriptor
func (*BigQuerySource) Descriptor() ([]byte, []int)
Deprecated: Use BigQuerySource.ProtoReflect.Descriptor instead.
func (*BigQuerySource) GetInputUri
func (x *BigQuerySource) GetInputUri() string
func (*BigQuerySource) ProtoMessage
func (*BigQuerySource) ProtoMessage()
func (*BigQuerySource) ProtoReflect
func (x *BigQuerySource) ProtoReflect() protoreflect.Message
func (*BigQuerySource) Reset
func (x *BigQuerySource) Reset()
func (*BigQuerySource) String
func (x *BigQuerySource) String() string
BoundingBoxEvaluationOptions
type BoundingBoxEvaluationOptions struct {
// Minimum
// [intersection-over-union
//
// (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
// required for 2 bounding boxes to be considered a match. This must be a
// number between 0 and 1.
IouThreshold float32 `protobuf:"fixed32,1,opt,name=iou_threshold,json=iouThreshold,proto3" json:"iou_threshold,omitempty"`
// contains filtered or unexported fields
}
Options regarding evaluation between bounding boxes.
func (*BoundingBoxEvaluationOptions) Descriptor
func (*BoundingBoxEvaluationOptions) Descriptor() ([]byte, []int)
Deprecated: Use BoundingBoxEvaluationOptions.ProtoReflect.Descriptor instead.
func (*BoundingBoxEvaluationOptions) GetIouThreshold
func (x *BoundingBoxEvaluationOptions) GetIouThreshold() float32
func (*BoundingBoxEvaluationOptions) ProtoMessage
func (*BoundingBoxEvaluationOptions) ProtoMessage()
func (*BoundingBoxEvaluationOptions) ProtoReflect
func (x *BoundingBoxEvaluationOptions) ProtoReflect() protoreflect.Message
func (*BoundingBoxEvaluationOptions) Reset
func (x *BoundingBoxEvaluationOptions) Reset()
func (*BoundingBoxEvaluationOptions) String
func (x *BoundingBoxEvaluationOptions) String() string
BoundingPoly
type BoundingPoly struct {
// The bounding polygon vertices.
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
// contains filtered or unexported fields
}
A bounding polygon in the image.
func (*BoundingPoly) Descriptor
func (*BoundingPoly) Descriptor() ([]byte, []int)
Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
func (*BoundingPoly) GetVertices
func (x *BoundingPoly) GetVertices() []*Vertex
func (*BoundingPoly) ProtoMessage
func (*BoundingPoly) ProtoMessage()
func (*BoundingPoly) ProtoReflect
func (x *BoundingPoly) ProtoReflect() protoreflect.Message
func (*BoundingPoly) Reset
func (x *BoundingPoly) Reset()
func (*BoundingPoly) String
func (x *BoundingPoly) String() string
BoundingPolyConfig
type BoundingPolyConfig struct {
// Required. Annotation spec set resource name.
AnnotationSpecSet string `protobuf:"bytes,1,opt,name=annotation_spec_set,json=annotationSpecSet,proto3" json:"annotation_spec_set,omitempty"`
// Optional. Instruction message showed on contributors UI.
InstructionMessage string `protobuf:"bytes,2,opt,name=instruction_message,json=instructionMessage,proto3" json:"instruction_message,omitempty"`
// contains filtered or unexported fields
}
Config for image bounding poly (and bounding box) human labeling task.
func (*BoundingPolyConfig) Descriptor
func (*BoundingPolyConfig) Descriptor() ([]byte, []int)
Deprecated: Use BoundingPolyConfig.ProtoReflect.Descriptor instead.
func (*BoundingPolyConfig) GetAnnotationSpecSet
func (x *BoundingPolyConfig) GetAnnotationSpecSet() string
func (*BoundingPolyConfig) GetInstructionMessage
func (x *BoundingPolyConfig) GetInstructionMessage() string
func (*BoundingPolyConfig) ProtoMessage
func (*BoundingPolyConfig) ProtoMessage()
func (*BoundingPolyConfig) ProtoReflect
func (x *BoundingPolyConfig) ProtoReflect() protoreflect.Message
func (*BoundingPolyConfig) Reset
func (x *BoundingPolyConfig) Reset()
func (*BoundingPolyConfig) String
func (x *BoundingPolyConfig) String() string
ClassificationMetadata
type ClassificationMetadata struct {
// Whether the classification task is multi-label or not.
IsMultiLabel bool `protobuf:"varint,1,opt,name=is_multi_label,json=isMultiLabel,proto3" json:"is_multi_label,omitempty"`
// contains filtered or unexported fields
}
Metadata for classification annotations.
func (*ClassificationMetadata) Descriptor
func (*ClassificationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ClassificationMetadata.ProtoReflect.Descriptor instead.
func (*ClassificationMetadata) GetIsMultiLabel
func (x *ClassificationMetadata) GetIsMultiLabel() bool
func (*ClassificationMetadata) ProtoMessage
func (*ClassificationMetadata) ProtoMessage()
func (*ClassificationMetadata) ProtoReflect
func (x *ClassificationMetadata) ProtoReflect() protoreflect.Message
func (*ClassificationMetadata) Reset
func (x *ClassificationMetadata) Reset()
func (*ClassificationMetadata) String
func (x *ClassificationMetadata) String() string
ClassificationMetrics
type ClassificationMetrics struct {
// Precision-recall curve based on ground truth labels, predicted labels, and
// scores for the predicted labels.
PrCurve *PrCurve `protobuf:"bytes,1,opt,name=pr_curve,json=prCurve,proto3" json:"pr_curve,omitempty"`
// Confusion matrix of predicted labels vs. ground truth labels.
ConfusionMatrix *ConfusionMatrix `protobuf:"bytes,2,opt,name=confusion_matrix,json=confusionMatrix,proto3" json:"confusion_matrix,omitempty"`
// contains filtered or unexported fields
}
Metrics calculated for a classification model.
func (*ClassificationMetrics) Descriptor
func (*ClassificationMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ClassificationMetrics.ProtoReflect.Descriptor instead.
func (*ClassificationMetrics) GetConfusionMatrix
func (x *ClassificationMetrics) GetConfusionMatrix() *ConfusionMatrix
func (*ClassificationMetrics) GetPrCurve
func (x *ClassificationMetrics) GetPrCurve() *PrCurve
func (*ClassificationMetrics) ProtoMessage
func (*ClassificationMetrics) ProtoMessage()
func (*ClassificationMetrics) ProtoReflect
func (x *ClassificationMetrics) ProtoReflect() protoreflect.Message
func (*ClassificationMetrics) Reset
func (x *ClassificationMetrics) Reset()
func (*ClassificationMetrics) String
func (x *ClassificationMetrics) String() string
ConfusionMatrix
type ConfusionMatrix struct {
Row []*ConfusionMatrix_Row `protobuf:"bytes,1,rep,name=row,proto3" json:"row,omitempty"`
// contains filtered or unexported fields
}
Confusion matrix of the model running the classification. Only applicable when the metrics entry aggregates multiple labels. Not applicable when the entry is for a single label.
func (*ConfusionMatrix) Descriptor
func (*ConfusionMatrix) Descriptor() ([]byte, []int)
Deprecated: Use ConfusionMatrix.ProtoReflect.Descriptor instead.
func (*ConfusionMatrix) GetRow
func (x *ConfusionMatrix) GetRow() []*ConfusionMatrix_Row
func (*ConfusionMatrix) ProtoMessage
func (*ConfusionMatrix) ProtoMessage()
func (*ConfusionMatrix) ProtoReflect
func (x *ConfusionMatrix) ProtoReflect() protoreflect.Message
func (*ConfusionMatrix) Reset
func (x *ConfusionMatrix) Reset()
func (*ConfusionMatrix) String
func (x *ConfusionMatrix) String() string
ConfusionMatrix_ConfusionMatrixEntry
type ConfusionMatrix_ConfusionMatrixEntry struct {
// The annotation spec of a predicted label.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// Number of items predicted to have this label. (The ground truth label for
// these items is the `Row.annotationSpec` of this entry's parent.)
ItemCount int32 `protobuf:"varint,2,opt,name=item_count,json=itemCount,proto3" json:"item_count,omitempty"`
// contains filtered or unexported fields
}
func (*ConfusionMatrix_ConfusionMatrixEntry) Descriptor
func (*ConfusionMatrix_ConfusionMatrixEntry) Descriptor() ([]byte, []int)
Deprecated: Use ConfusionMatrix_ConfusionMatrixEntry.ProtoReflect.Descriptor instead.
func (*ConfusionMatrix_ConfusionMatrixEntry) GetAnnotationSpec
func (x *ConfusionMatrix_ConfusionMatrixEntry) GetAnnotationSpec() *AnnotationSpec
func (*ConfusionMatrix_ConfusionMatrixEntry) GetItemCount
func (x *ConfusionMatrix_ConfusionMatrixEntry) GetItemCount() int32
func (*ConfusionMatrix_ConfusionMatrixEntry) ProtoMessage
func (*ConfusionMatrix_ConfusionMatrixEntry) ProtoMessage()
func (*ConfusionMatrix_ConfusionMatrixEntry) ProtoReflect
func (x *ConfusionMatrix_ConfusionMatrixEntry) ProtoReflect() protoreflect.Message
func (*ConfusionMatrix_ConfusionMatrixEntry) Reset
func (x *ConfusionMatrix_ConfusionMatrixEntry) Reset()
func (*ConfusionMatrix_ConfusionMatrixEntry) String
func (x *ConfusionMatrix_ConfusionMatrixEntry) String() string
ConfusionMatrix_Row
type ConfusionMatrix_Row struct {
// The annotation spec of the ground truth label for this row.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// A list of the confusion matrix entries. One entry for each possible
// predicted label.
Entries []*ConfusionMatrix_ConfusionMatrixEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
// contains filtered or unexported fields
}
A row in the confusion matrix. Each entry in this row has the same ground truth label.
func (*ConfusionMatrix_Row) Descriptor
func (*ConfusionMatrix_Row) Descriptor() ([]byte, []int)
Deprecated: Use ConfusionMatrix_Row.ProtoReflect.Descriptor instead.
func (*ConfusionMatrix_Row) GetAnnotationSpec
func (x *ConfusionMatrix_Row) GetAnnotationSpec() *AnnotationSpec
func (*ConfusionMatrix_Row) GetEntries
func (x *ConfusionMatrix_Row) GetEntries() []*ConfusionMatrix_ConfusionMatrixEntry
func (*ConfusionMatrix_Row) ProtoMessage
func (*ConfusionMatrix_Row) ProtoMessage()
func (*ConfusionMatrix_Row) ProtoReflect
func (x *ConfusionMatrix_Row) ProtoReflect() protoreflect.Message
func (*ConfusionMatrix_Row) Reset
func (x *ConfusionMatrix_Row) Reset()
func (*ConfusionMatrix_Row) String
func (x *ConfusionMatrix_Row) String() string
CreateAnnotationSpecSetRequest
type CreateAnnotationSpecSetRequest struct {
// Required. AnnotationSpecSet resource parent, format:
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Annotation spec set to create. Annotation specs must be included.
// Only one annotation spec will be accepted for annotation specs with same
// display_name.
AnnotationSpecSet *AnnotationSpecSet `protobuf:"bytes,2,opt,name=annotation_spec_set,json=annotationSpecSet,proto3" json:"annotation_spec_set,omitempty"`
// contains filtered or unexported fields
}
Request message for CreateAnnotationSpecSet.
func (*CreateAnnotationSpecSetRequest) Descriptor
func (*CreateAnnotationSpecSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAnnotationSpecSetRequest.ProtoReflect.Descriptor instead.
func (*CreateAnnotationSpecSetRequest) GetAnnotationSpecSet
func (x *CreateAnnotationSpecSetRequest) GetAnnotationSpecSet() *AnnotationSpecSet
func (*CreateAnnotationSpecSetRequest) GetParent
func (x *CreateAnnotationSpecSetRequest) GetParent() string
func (*CreateAnnotationSpecSetRequest) ProtoMessage
func (*CreateAnnotationSpecSetRequest) ProtoMessage()
func (*CreateAnnotationSpecSetRequest) ProtoReflect
func (x *CreateAnnotationSpecSetRequest) ProtoReflect() protoreflect.Message
func (*CreateAnnotationSpecSetRequest) Reset
func (x *CreateAnnotationSpecSetRequest) Reset()
func (*CreateAnnotationSpecSetRequest) String
func (x *CreateAnnotationSpecSetRequest) String() string
CreateDatasetRequest
type CreateDatasetRequest struct {
// Required. Dataset resource parent, format:
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The dataset to be created.
Dataset *Dataset `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"`
// contains filtered or unexported fields
}
Request message for CreateDataset.
func (*CreateDatasetRequest) Descriptor
func (*CreateDatasetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDatasetRequest.ProtoReflect.Descriptor instead.
func (*CreateDatasetRequest) GetDataset
func (x *CreateDatasetRequest) GetDataset() *Dataset
func (*CreateDatasetRequest) GetParent
func (x *CreateDatasetRequest) GetParent() string
func (*CreateDatasetRequest) ProtoMessage
func (*CreateDatasetRequest) ProtoMessage()
func (*CreateDatasetRequest) ProtoReflect
func (x *CreateDatasetRequest) ProtoReflect() protoreflect.Message
func (*CreateDatasetRequest) Reset
func (x *CreateDatasetRequest) Reset()
func (*CreateDatasetRequest) String
func (x *CreateDatasetRequest) String() string
CreateEvaluationJobRequest
type CreateEvaluationJobRequest struct {
// Required. Evaluation job resource parent. Format:
// "projects/{project_id}"
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The evaluation job to create.
Job *EvaluationJob `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
// contains filtered or unexported fields
}
Request message for CreateEvaluationJob.
func (*CreateEvaluationJobRequest) Descriptor
func (*CreateEvaluationJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEvaluationJobRequest.ProtoReflect.Descriptor instead.
func (*CreateEvaluationJobRequest) GetJob
func (x *CreateEvaluationJobRequest) GetJob() *EvaluationJob
func (*CreateEvaluationJobRequest) GetParent
func (x *CreateEvaluationJobRequest) GetParent() string
func (*CreateEvaluationJobRequest) ProtoMessage
func (*CreateEvaluationJobRequest) ProtoMessage()
func (*CreateEvaluationJobRequest) ProtoReflect
func (x *CreateEvaluationJobRequest) ProtoReflect() protoreflect.Message
func (*CreateEvaluationJobRequest) Reset
func (x *CreateEvaluationJobRequest) Reset()
func (*CreateEvaluationJobRequest) String
func (x *CreateEvaluationJobRequest) String() string
CreateInstructionMetadata
type CreateInstructionMetadata struct {
// The name of the created Instruction.
// projects/{project_id}/instructions/{instruction_id}
Instruction string `protobuf:"bytes,1,opt,name=instruction,proto3" json:"instruction,omitempty"`
// Partial failures encountered.
// E.g. single files that couldn't be read.
// Status details field will contain standard GCP error details.
PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"`
// Timestamp when create instruction request was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}
Metadata of a CreateInstruction operation.
func (*CreateInstructionMetadata) Descriptor
func (*CreateInstructionMetadata) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstructionMetadata.ProtoReflect.Descriptor instead.
func (*CreateInstructionMetadata) GetCreateTime
func (x *CreateInstructionMetadata) GetCreateTime() *timestamppb.Timestamp
func (*CreateInstructionMetadata) GetInstruction
func (x *CreateInstructionMetadata) GetInstruction() string
func (*CreateInstructionMetadata) GetPartialFailures
func (x *CreateInstructionMetadata) GetPartialFailures() []*status.Status
func (*CreateInstructionMetadata) ProtoMessage
func (*CreateInstructionMetadata) ProtoMessage()
func (*CreateInstructionMetadata) ProtoReflect
func (x *CreateInstructionMetadata) ProtoReflect() protoreflect.Message
func (*CreateInstructionMetadata) Reset
func (x *CreateInstructionMetadata) Reset()
func (*CreateInstructionMetadata) String
func (x *CreateInstructionMetadata) String() string
CreateInstructionRequest
type CreateInstructionRequest struct {
// Required. Instruction resource parent, format:
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Instruction of how to perform the labeling task.
Instruction *Instruction `protobuf:"bytes,2,opt,name=instruction,proto3" json:"instruction,omitempty"`
// contains filtered or unexported fields
}
Request message for CreateInstruction.
func (*CreateInstructionRequest) Descriptor
func (*CreateInstructionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInstructionRequest.ProtoReflect.Descriptor instead.
func (*CreateInstructionRequest) GetInstruction
func (x *CreateInstructionRequest) GetInstruction() *Instruction
func (*CreateInstructionRequest) GetParent
func (x *CreateInstructionRequest) GetParent() string
func (*CreateInstructionRequest) ProtoMessage
func (*CreateInstructionRequest) ProtoMessage()
func (*CreateInstructionRequest) ProtoReflect
func (x *CreateInstructionRequest) ProtoReflect() protoreflect.Message
func (*CreateInstructionRequest) Reset
func (x *CreateInstructionRequest) Reset()
func (*CreateInstructionRequest) String
func (x *CreateInstructionRequest) String() string
CsvInstruction
type CsvInstruction struct {
// CSV file for the instruction. Only gcs path is allowed.
GcsFileUri string `protobuf:"bytes,1,opt,name=gcs_file_uri,json=gcsFileUri,proto3" json:"gcs_file_uri,omitempty"`
// contains filtered or unexported fields
}
Deprecated: this instruction format is not supported any more. Instruction from a CSV file.
func (*CsvInstruction) Descriptor
func (*CsvInstruction) Descriptor() ([]byte, []int)
Deprecated: Use CsvInstruction.ProtoReflect.Descriptor instead.
func (*CsvInstruction) GetGcsFileUri
func (x *CsvInstruction) GetGcsFileUri() string
func (*CsvInstruction) ProtoMessage
func (*CsvInstruction) ProtoMessage()
func (*CsvInstruction) ProtoReflect
func (x *CsvInstruction) ProtoReflect() protoreflect.Message
func (*CsvInstruction) Reset
func (x *CsvInstruction) Reset()
func (*CsvInstruction) String
func (x *CsvInstruction) String() string
DataItem
type DataItem struct {
// Output only.
//
// Types that are assignable to Payload:
//
// *DataItem_ImagePayload
// *DataItem_TextPayload
// *DataItem_VideoPayload
Payload isDataItem_Payload `protobuf_oneof:"payload"`
// Output only. Name of the data item, in format of:
// projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
DataItem is a piece of data, without annotation. For example, an image.
func (*DataItem) Descriptor
Deprecated: Use DataItem.ProtoReflect.Descriptor instead.
func (*DataItem) GetImagePayload
func (x *DataItem) GetImagePayload() *ImagePayload
func (*DataItem) GetName
func (*DataItem) GetPayload
func (m *DataItem) GetPayload() isDataItem_Payload
func (*DataItem) GetTextPayload
func (x *DataItem) GetTextPayload() *TextPayload
func (*DataItem) GetVideoPayload
func (x *DataItem) GetVideoPayload() *VideoPayload
func (*DataItem) ProtoMessage
func (*DataItem) ProtoMessage()
func (*DataItem) ProtoReflect
func (x *DataItem) ProtoReflect() protoreflect.Message
func (*DataItem) Reset
func (x *DataItem) Reset()
func (*DataItem) String
DataItem_ImagePayload
type DataItem_ImagePayload struct {
// The image payload, a container of the image bytes/uri.
ImagePayload *ImagePayload `protobuf:"bytes,2,opt,name=image_payload,json=imagePayload,proto3,oneof"`
}
DataItem_TextPayload
type DataItem_TextPayload struct {
// The text payload, a container of text content.
TextPayload *TextPayload `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"`
}
DataItem_VideoPayload
type DataItem_VideoPayload struct {
// The video payload, a container of the video uri.
VideoPayload *VideoPayload `protobuf:"bytes,4,opt,name=video_payload,json=videoPayload,proto3,oneof"`
}
DataLabelingServiceClient
type DataLabelingServiceClient interface {
// Creates dataset. If success return a Dataset resource.
CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*Dataset, error)
// Gets dataset by resource name.
GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*Dataset, error)
// Lists datasets under a project. Pagination is supported.
ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error)
// Deletes a dataset by resource name.
DeleteDataset(ctx context.Context, in *DeleteDatasetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Imports data into dataset based on source locations defined in request.
// It can be called multiple times for the same dataset. Each dataset can
// only have one long running operation running on it. For example, no
// labeling task (also long running operation) can be started while
// importing is still ongoing. Vice versa.
ImportData(ctx context.Context, in *ImportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Exports data and annotations from dataset.
ExportData(ctx context.Context, in *ExportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets a data item in a dataset by resource name. This API can be
// called after data are imported into dataset.
GetDataItem(ctx context.Context, in *GetDataItemRequest, opts ...grpc.CallOption) (*DataItem, error)
// Lists data items in a dataset. This API can be called after data
// are imported into dataset. Pagination is supported.
ListDataItems(ctx context.Context, in *ListDataItemsRequest, opts ...grpc.CallOption) (*ListDataItemsResponse, error)
// Gets an annotated dataset by resource name.
GetAnnotatedDataset(ctx context.Context, in *GetAnnotatedDatasetRequest, opts ...grpc.CallOption) (*AnnotatedDataset, error)
// Lists annotated datasets for a dataset. Pagination is supported.
ListAnnotatedDatasets(ctx context.Context, in *ListAnnotatedDatasetsRequest, opts ...grpc.CallOption) (*ListAnnotatedDatasetsResponse, error)
// Deletes an annotated dataset by resource name.
DeleteAnnotatedDataset(ctx context.Context, in *DeleteAnnotatedDatasetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Starts a labeling task for image. The type of image labeling task is
// configured by feature in the request.
LabelImage(ctx context.Context, in *LabelImageRequest, opts ...grpc.CallOption) (*