Constants
DataLabelingService_CreateDataset_FullMethodName, DataLabelingService_GetDataset_FullMethodName, DataLabelingService_ListDatasets_FullMethodName, DataLabelingService_DeleteDataset_FullMethodName, DataLabelingService_ImportData_FullMethodName, DataLabelingService_ExportData_FullMethodName, DataLabelingService_GetDataItem_FullMethodName, DataLabelingService_ListDataItems_FullMethodName, DataLabelingService_GetAnnotatedDataset_FullMethodName, DataLabelingService_ListAnnotatedDatasets_FullMethodName, DataLabelingService_DeleteAnnotatedDataset_FullMethodName, DataLabelingService_LabelImage_FullMethodName, DataLabelingService_LabelVideo_FullMethodName, DataLabelingService_LabelText_FullMethodName, DataLabelingService_GetExample_FullMethodName, DataLabelingService_ListExamples_FullMethodName, DataLabelingService_CreateAnnotationSpecSet_FullMethodName, DataLabelingService_GetAnnotationSpecSet_FullMethodName, DataLabelingService_ListAnnotationSpecSets_FullMethodName, DataLabelingService_DeleteAnnotationSpecSet_FullMethodName, DataLabelingService_CreateInstruction_FullMethodName, DataLabelingService_GetInstruction_FullMethodName, DataLabelingService_ListInstructions_FullMethodName, DataLabelingService_DeleteInstruction_FullMethodName, DataLabelingService_GetEvaluation_FullMethodName, DataLabelingService_SearchEvaluations_FullMethodName, DataLabelingService_SearchExampleComparisons_FullMethodName, DataLabelingService_CreateEvaluationJob_FullMethodName, DataLabelingService_UpdateEvaluationJob_FullMethodName, DataLabelingService_GetEvaluationJob_FullMethodName, DataLabelingService_PauseEvaluationJob_FullMethodName, DataLabelingService_ResumeEvaluationJob_FullMethodName, DataLabelingService_DeleteEvaluationJob_FullMethodName, DataLabelingService_ListEvaluationJobs_FullMethodName
const (
DataLabelingService_CreateDataset_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateDataset"
DataLabelingService_GetDataset_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetDataset"
DataLabelingService_ListDatasets_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListDatasets"
DataLabelingService_DeleteDataset_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteDataset"
DataLabelingService_ImportData_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ImportData"
DataLabelingService_ExportData_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ExportData"
DataLabelingService_GetDataItem_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetDataItem"
DataLabelingService_ListDataItems_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListDataItems"
DataLabelingService_GetAnnotatedDataset_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetAnnotatedDataset"
DataLabelingService_ListAnnotatedDatasets_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListAnnotatedDatasets"
DataLabelingService_DeleteAnnotatedDataset_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotatedDataset"
DataLabelingService_LabelImage_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/LabelImage"
DataLabelingService_LabelVideo_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/LabelVideo"
DataLabelingService_LabelText_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/LabelText"
DataLabelingService_GetExample_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetExample"
DataLabelingService_ListExamples_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListExamples"
DataLabelingService_CreateAnnotationSpecSet_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateAnnotationSpecSet"
DataLabelingService_GetAnnotationSpecSet_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetAnnotationSpecSet"
DataLabelingService_ListAnnotationSpecSets_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListAnnotationSpecSets"
DataLabelingService_DeleteAnnotationSpecSet_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotationSpecSet"
DataLabelingService_CreateInstruction_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateInstruction"
DataLabelingService_GetInstruction_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetInstruction"
DataLabelingService_ListInstructions_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListInstructions"
DataLabelingService_DeleteInstruction_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteInstruction"
DataLabelingService_GetEvaluation_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetEvaluation"
DataLabelingService_SearchEvaluations_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/SearchEvaluations"
DataLabelingService_SearchExampleComparisons_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/SearchExampleComparisons"
DataLabelingService_CreateEvaluationJob_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateEvaluationJob"
DataLabelingService_UpdateEvaluationJob_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/UpdateEvaluationJob"
DataLabelingService_GetEvaluationJob_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetEvaluationJob"
DataLabelingService_PauseEvaluationJob_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/PauseEvaluationJob"
DataLabelingService_ResumeEvaluationJob_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ResumeEvaluationJob"
DataLabelingService_DeleteEvaluationJob_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteEvaluationJob"
DataLabelingService_ListEvaluationJobs_FullMethodName = "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListEvaluationJobs"
)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.
DataLabelingService_ServiceDesc
var DataLabelingService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.datalabeling.v1beta1.DataLabelingService",
HandlerType: (*DataLabelingServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateDataset",
Handler: _DataLabelingService_CreateDataset_Handler,
},
{
MethodName: "GetDataset",
Handler: _DataLabelingService_GetDataset_Handler,
},
{
MethodName: "ListDatasets",
Handler: _DataLabelingService_ListDatasets_Handler,
},
{
MethodName: "DeleteDataset",
Handler: _DataLabelingService_DeleteDataset_Handler,
},
{
MethodName: "ImportData",
Handler: _DataLabelingService_ImportData_Handler,
},
{
MethodName: "ExportData",
Handler: _DataLabelingService_ExportData_Handler,
},
{
MethodName: "GetDataItem",
Handler: _DataLabelingService_GetDataItem_Handler,
},
{
MethodName: "ListDataItems",
Handler: _DataLabelingService_ListDataItems_Handler,
},
{
MethodName: "GetAnnotatedDataset",
Handler: _DataLabelingService_GetAnnotatedDataset_Handler,
},
{
MethodName: "ListAnnotatedDatasets",
Handler: _DataLabelingService_ListAnnotatedDatasets_Handler,
},
{
MethodName: "DeleteAnnotatedDataset",
Handler: _DataLabelingService_DeleteAnnotatedDataset_Handler,
},
{
MethodName: "LabelImage",
Handler: _DataLabelingService_LabelImage_Handler,
},
{
MethodName: "LabelVideo",
Handler: _DataLabelingService_LabelVideo_Handler,
},
{
MethodName: "LabelText",
Handler: _DataLabelingService_LabelText_Handler,
},
{
MethodName: "GetExample",
Handler: _DataLabelingService_GetExample_Handler,
},
{
MethodName: "ListExamples",
Handler: _DataLabelingService_ListExamples_Handler,
},
{
MethodName: "CreateAnnotationSpecSet",
Handler: _DataLabelingService_CreateAnnotationSpecSet_Handler,
},
{
MethodName: "GetAnnotationSpecSet",
Handler: _DataLabelingService_GetAnnotationSpecSet_Handler,
},
{
MethodName: "ListAnnotationSpecSets",
Handler: _DataLabelingService_ListAnnotationSpecSets_Handler,
},
{
MethodName: "DeleteAnnotationSpecSet",
Handler: _DataLabelingService_DeleteAnnotationSpecSet_Handler,
},
{
MethodName: "CreateInstruction",
Handler: _DataLabelingService_CreateInstruction_Handler,
},
{
MethodName: "GetInstruction",
Handler: _DataLabelingService_GetInstruction_Handler,
},
{
MethodName: "ListInstructions",
Handler: _DataLabelingService_ListInstructions_Handler,
},
{
MethodName: "DeleteInstruction",
Handler: _DataLabelingService_DeleteInstruction_Handler,
},
{
MethodName: "GetEvaluation",
Handler: _DataLabelingService_GetEvaluation_Handler,
},
{
MethodName: "SearchEvaluations",
Handler: _DataLabelingService_SearchEvaluations_Handler,
},
{
MethodName: "SearchExampleComparisons",
Handler: _DataLabelingService_SearchExampleComparisons_Handler,
},
{
MethodName: "CreateEvaluationJob",
Handler: _DataLabelingService_CreateEvaluationJob_Handler,
},
{
MethodName: "UpdateEvaluationJob",
Handler: _DataLabelingService_UpdateEvaluationJob_Handler,
},
{
MethodName: "GetEvaluationJob",
Handler: _DataLabelingService_GetEvaluationJob_Handler,
},
{
MethodName: "PauseEvaluationJob",
Handler: _DataLabelingService_PauseEvaluationJob_Handler,
},
{
MethodName: "ResumeEvaluationJob",
Handler: _DataLabelingService_ResumeEvaluationJob_Handler,
},
{
MethodName: "DeleteEvaluationJob",
Handler: _DataLabelingService_DeleteEvaluationJob_Handler,
},
{
MethodName: "ListEvaluationJobs",
Handler: _DataLabelingService_ListEvaluationJobs_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/datalabeling/v1beta1/data_labeling_service.proto",
}DataLabelingService_ServiceDesc is the grpc.ServiceDesc for DataLabelingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_datalabeling_v1beta1_annotation_proto
var File_google_cloud_datalabeling_v1beta1_annotation_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_annotation_spec_set_proto
var File_google_cloud_datalabeling_v1beta1_annotation_spec_set_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_data_labeling_service_proto
var File_google_cloud_datalabeling_v1beta1_data_labeling_service_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_data_payloads_proto
var File_google_cloud_datalabeling_v1beta1_data_payloads_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_dataset_proto
var File_google_cloud_datalabeling_v1beta1_dataset_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_evaluation_job_proto
var File_google_cloud_datalabeling_v1beta1_evaluation_job_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_evaluation_proto
var File_google_cloud_datalabeling_v1beta1_evaluation_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_human_annotation_config_proto
var File_google_cloud_datalabeling_v1beta1_human_annotation_config_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_instruction_proto
var File_google_cloud_datalabeling_v1beta1_instruction_proto protoreflect.FileDescriptorFile_google_cloud_datalabeling_v1beta1_operations_proto
var File_google_cloud_datalabeling_v1beta1_operations_proto protoreflect.FileDescriptorFunctions
func RegisterDataLabelingServiceServer
func RegisterDataLabelingServiceServer(s grpc.ServiceRegistrar, 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() AnnotationSourcefunc (*AnnotatedDataset) GetAnnotationType
func (x *AnnotatedDataset) GetAnnotationType() AnnotationTypefunc (*AnnotatedDataset) GetBlockingResources
func (x *AnnotatedDataset) GetBlockingResources() []stringfunc (*AnnotatedDataset) GetCompletedExampleCount
func (x *AnnotatedDataset) GetCompletedExampleCount() int64func (*AnnotatedDataset) GetCreateTime
func (x *AnnotatedDataset) GetCreateTime() *timestamppb.Timestampfunc (*AnnotatedDataset) GetDescription
func (x *AnnotatedDataset) GetDescription() stringfunc (*AnnotatedDataset) GetDisplayName
func (x *AnnotatedDataset) GetDisplayName() stringfunc (*AnnotatedDataset) GetExampleCount
func (x *AnnotatedDataset) GetExampleCount() int64func (*AnnotatedDataset) GetLabelStats
func (x *AnnotatedDataset) GetLabelStats() *LabelStatsfunc (*AnnotatedDataset) GetMetadata
func (x *AnnotatedDataset) GetMetadata() *AnnotatedDatasetMetadatafunc (*AnnotatedDataset) GetName
func (x *AnnotatedDataset) GetName() stringfunc (*AnnotatedDataset) ProtoMessage
func (*AnnotatedDataset) ProtoMessage()func (*AnnotatedDataset) ProtoReflect
func (x *AnnotatedDataset) ProtoReflect() protoreflect.Messagefunc (*AnnotatedDataset) Reset
func (x *AnnotatedDataset) Reset()func (*AnnotatedDataset) String
func (x *AnnotatedDataset) String() stringAnnotatedDatasetMetadata
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_AnnotationRequestConfigfunc (*AnnotatedDatasetMetadata) GetBoundingPolyConfig
func (x *AnnotatedDatasetMetadata) GetBoundingPolyConfig() *BoundingPolyConfigfunc (*AnnotatedDatasetMetadata) GetEventConfig
func (x *AnnotatedDatasetMetadata) GetEventConfig() *EventConfigfunc (*AnnotatedDatasetMetadata) GetHumanAnnotationConfig
func (x *AnnotatedDatasetMetadata) GetHumanAnnotationConfig() *HumanAnnotationConfigfunc (*AnnotatedDatasetMetadata) GetImageClassificationConfig
func (x *AnnotatedDatasetMetadata) GetImageClassificationConfig() *ImageClassificationConfigfunc (*AnnotatedDatasetMetadata) GetObjectDetectionConfig
func (x *AnnotatedDatasetMetadata) GetObjectDetectionConfig() *ObjectDetectionConfigfunc (*AnnotatedDatasetMetadata) GetObjectTrackingConfig
func (x *AnnotatedDatasetMetadata) GetObjectTrackingConfig() *ObjectTrackingConfigfunc (*AnnotatedDatasetMetadata) GetPolylineConfig
func (x *AnnotatedDatasetMetadata) GetPolylineConfig() *PolylineConfigfunc (*AnnotatedDatasetMetadata) GetSegmentationConfig
func (x *AnnotatedDatasetMetadata) GetSegmentationConfig() *SegmentationConfigfunc (*AnnotatedDatasetMetadata) GetTextClassificationConfig
func (x *AnnotatedDatasetMetadata) GetTextClassificationConfig() *TextClassificationConfigfunc (*AnnotatedDatasetMetadata) GetTextEntityExtractionConfig
func (x *AnnotatedDatasetMetadata) GetTextEntityExtractionConfig() *TextEntityExtractionConfigfunc (*AnnotatedDatasetMetadata) GetVideoClassificationConfig
func (x *AnnotatedDatasetMetadata) GetVideoClassificationConfig() *VideoClassificationConfigfunc (*AnnotatedDatasetMetadata) ProtoMessage
func (*AnnotatedDatasetMetadata) ProtoMessage()func (*AnnotatedDatasetMetadata) ProtoReflect
func (x *AnnotatedDatasetMetadata) ProtoReflect() protoreflect.Messagefunc (*AnnotatedDatasetMetadata) Reset
func (x *AnnotatedDatasetMetadata) Reset()func (*AnnotatedDatasetMetadata) String
func (x *AnnotatedDatasetMetadata) String() stringAnnotatedDatasetMetadata_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() *AnnotationMetadatafunc (*Annotation) GetAnnotationSentiment
func (x *Annotation) GetAnnotationSentiment() AnnotationSentimentfunc (*Annotation) GetAnnotationSource
func (x *Annotation) GetAnnotationSource() AnnotationSourcefunc (*Annotation) GetAnnotationValue
func (x *Annotation) GetAnnotationValue() *AnnotationValuefunc (*Annotation) GetName
func (x *Annotation) GetName() stringfunc (*Annotation) ProtoMessage
func (*Annotation) ProtoMessage()func (*Annotation) ProtoReflect
func (x *Annotation) ProtoReflect() protoreflect.Messagefunc (*Annotation) Reset
func (x *Annotation) Reset()func (*Annotation) String
func (x *Annotation) String() stringAnnotationMetadata
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() *OperatorMetadatafunc (*AnnotationMetadata) ProtoMessage
func (*AnnotationMetadata) ProtoMessage()func (*AnnotationMetadata) ProtoReflect
func (x *AnnotationMetadata) ProtoReflect() protoreflect.Messagefunc (*AnnotationMetadata) Reset
func (x *AnnotationMetadata) Reset()func (*AnnotationMetadata) String
func (x *AnnotationMetadata) String() stringAnnotationSentiment
type AnnotationSentiment int32AnnotationSentiment_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.EnumDescriptorfunc (AnnotationSentiment) Enum
func (x AnnotationSentiment) Enum() *AnnotationSentimentfunc (AnnotationSentiment) EnumDescriptor
func (AnnotationSentiment) EnumDescriptor() ([]byte, []int)Deprecated: Use AnnotationSentiment.Descriptor instead.
func (AnnotationSentiment) Number
func (x AnnotationSentiment) Number() protoreflect.EnumNumberfunc (AnnotationSentiment) String
func (x AnnotationSentiment) String() stringfunc (AnnotationSentiment) Type
func (AnnotationSentiment) Type() protoreflect.EnumTypeAnnotationSource
type AnnotationSource int32Specifies 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.EnumDescriptorfunc (AnnotationSource) Enum
func (x AnnotationSource) Enum() *AnnotationSourcefunc (AnnotationSource) EnumDescriptor
func (AnnotationSource) EnumDescriptor() ([]byte, []int)Deprecated: Use AnnotationSource.Descriptor instead.
func (AnnotationSource) Number
func (x AnnotationSource) Number() protoreflect.EnumNumberfunc (AnnotationSource) String
func (x AnnotationSource) String() stringfunc (AnnotationSource) Type
func (AnnotationSource) Type() protoreflect.EnumTypeAnnotationSpec
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() stringfunc (*AnnotationSpec) GetDisplayName
func (x *AnnotationSpec) GetDisplayName() stringfunc (*AnnotationSpec) ProtoMessage
func (*AnnotationSpec) ProtoMessage()func (*AnnotationSpec) ProtoReflect
func (x *AnnotationSpec) ProtoReflect() protoreflect.Messagefunc (*AnnotationSpec) Reset
func (x *AnnotationSpec) Reset()func (*AnnotationSpec) String
func (x *AnnotationSpec) String() stringAnnotationSpecSet
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() []*AnnotationSpecfunc (*AnnotationSpecSet) GetBlockingResources
func (x *AnnotationSpecSet) GetBlockingResources() []stringfunc (*AnnotationSpecSet) GetDescription
func (x *AnnotationSpecSet) GetDescription() stringfunc (*AnnotationSpecSet) GetDisplayName
func (x *AnnotationSpecSet) GetDisplayName() stringfunc (*AnnotationSpecSet) GetName
func (x *AnnotationSpecSet) GetName() stringfunc (*AnnotationSpecSet) ProtoMessage
func (*AnnotationSpecSet) ProtoMessage()func (*AnnotationSpecSet) ProtoReflect
func (x *AnnotationSpecSet) ProtoReflect() protoreflect.Messagefunc (*AnnotationSpecSet) Reset
func (x *AnnotationSpecSet) Reset()func (*AnnotationSpecSet) String
func (x *AnnotationSpecSet) String() stringAnnotationType
type AnnotationType int32AnnotationType_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.EnumDescriptorfunc (AnnotationType) Enum
func (x AnnotationType) Enum() *AnnotationTypefunc (AnnotationType) EnumDescriptor
func (AnnotationType) EnumDescriptor() ([]byte, []int)Deprecated: Use AnnotationType.Descriptor instead.
func (AnnotationType) Number
func (x AnnotationType) Number() protoreflect.EnumNumberfunc (AnnotationType) String
func (x AnnotationType) String() stringfunc (AnnotationType) Type
func (AnnotationType) Type() protoreflect.EnumTypeAnnotationValue
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() *ImageBoundingPolyAnnotationfunc (*AnnotationValue) GetImageClassificationAnnotation
func (x *AnnotationValue) GetImageClassificationAnnotation() *ImageClassificationAnnotationfunc (*AnnotationValue) GetImagePolylineAnnotation
func (x *AnnotationValue) GetImagePolylineAnnotation() *ImagePolylineAnnotationfunc (*AnnotationValue) GetImageSegmentationAnnotation
func (x *AnnotationValue) GetImageSegmentationAnnotation() *ImageSegmentationAnnotationfunc (*AnnotationValue) GetTextClassificationAnnotation
func (x *AnnotationValue) GetTextClassificationAnnotation() *TextClassificationAnnotationfunc (*AnnotationValue) GetTextEntityExtractionAnnotation
func (x *AnnotationValue) GetTextEntityExtractionAnnotation() *TextEntityExtractionAnnotationfunc (*AnnotationValue) GetValueType
func (m *AnnotationValue) GetValueType() isAnnotationValue_ValueTypefunc (*AnnotationValue) GetVideoClassificationAnnotation
func (x *AnnotationValue) GetVideoClassificationAnnotation() *VideoClassificationAnnotationfunc (*AnnotationValue) GetVideoEventAnnotation
func (x *AnnotationValue) GetVideoEventAnnotation() *VideoEventAnnotationfunc (*AnnotationValue) GetVideoObjectTrackingAnnotation
func (x *AnnotationValue) GetVideoObjectTrackingAnnotation() *VideoObjectTrackingAnnotationfunc (*AnnotationValue) ProtoMessage
func (*AnnotationValue) ProtoMessage()func (*AnnotationValue) ProtoReflect
func (x *AnnotationValue) ProtoReflect() protoreflect.Messagefunc (*AnnotationValue) Reset
func (x *AnnotationValue) Reset()func (*AnnotationValue) String
func (x *AnnotationValue) String() stringAnnotationValue_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.Timestampfunc (*Attempt) GetPartialFailures
func (*Attempt) ProtoMessage
func (*Attempt) ProtoMessage()func (*Attempt) ProtoReflect
func (x *Attempt) ProtoReflect() protoreflect.Messagefunc (*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() stringfunc (*BigQuerySource) ProtoMessage
func (*BigQuerySource) ProtoMessage()func (*BigQuerySource) ProtoReflect
func (x *BigQuerySource) ProtoReflect() protoreflect.Messagefunc (*BigQuerySource) Reset
func (x *BigQuerySource) Reset()func (*BigQuerySource) String
func (x *BigQuerySource) String() stringBoundingBoxEvaluationOptions
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() float32func (*BoundingBoxEvaluationOptions) ProtoMessage
func (*BoundingBoxEvaluationOptions) ProtoMessage()func (*BoundingBoxEvaluationOptions) ProtoReflect
func (x *BoundingBoxEvaluationOptions) ProtoReflect() protoreflect.Messagefunc (*BoundingBoxEvaluationOptions) Reset
func (x *BoundingBoxEvaluationOptions) Reset()func (*BoundingBoxEvaluationOptions) String
func (x *BoundingBoxEvaluationOptions) String() stringBoundingPoly
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() []*Vertexfunc (*BoundingPoly) ProtoMessage
func (*BoundingPoly) ProtoMessage()func (*BoundingPoly) ProtoReflect
func (x *BoundingPoly) ProtoReflect() protoreflect.Messagefunc (*BoundingPoly) Reset
func (x *BoundingPoly) Reset()func (*BoundingPoly) String
func (x *BoundingPoly) String() stringBoundingPolyConfig
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() stringfunc (*BoundingPolyConfig) GetInstructionMessage
func (x *BoundingPolyConfig) GetInstructionMessage() stringfunc (*BoundingPolyConfig) ProtoMessage
func (*BoundingPolyConfig) ProtoMessage()func (*BoundingPolyConfig) ProtoReflect
func (x *BoundingPolyConfig) ProtoReflect() protoreflect.Messagefunc (*BoundingPolyConfig) Reset
func (x *BoundingPolyConfig) Reset()func (*BoundingPolyConfig) String
func (x *BoundingPolyConfig) String() stringClassificationMetadata
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() boolfunc (*ClassificationMetadata) ProtoMessage
func (*ClassificationMetadata) ProtoMessage()func (*ClassificationMetadata) ProtoReflect
func (x *ClassificationMetadata) ProtoReflect() protoreflect.Messagefunc (*ClassificationMetadata) Reset
func (x *ClassificationMetadata) Reset()func (*ClassificationMetadata) String
func (x *ClassificationMetadata) String() stringClassificationMetrics
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() *ConfusionMatrixfunc (*ClassificationMetrics) GetPrCurve
func (x *ClassificationMetrics) GetPrCurve() *PrCurvefunc (*ClassificationMetrics) ProtoMessage
func (*ClassificationMetrics) ProtoMessage()func (*ClassificationMetrics) ProtoReflect
func (x *ClassificationMetrics) ProtoReflect() protoreflect.Messagefunc (*ClassificationMetrics) Reset
func (x *ClassificationMetrics) Reset()func (*ClassificationMetrics) String
func (x *ClassificationMetrics) String() stringConfusionMatrix
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_Rowfunc (*ConfusionMatrix) ProtoMessage
func (*ConfusionMatrix) ProtoMessage()func (*ConfusionMatrix) ProtoReflect
func (x *ConfusionMatrix) ProtoReflect() protoreflect.Messagefunc (*ConfusionMatrix) Reset
func (x *ConfusionMatrix) Reset()func (*ConfusionMatrix) String
func (x *ConfusionMatrix) String() stringConfusionMatrix_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() *AnnotationSpecfunc (*ConfusionMatrix_ConfusionMatrixEntry) GetItemCount
func (x *ConfusionMatrix_ConfusionMatrixEntry) GetItemCount() int32func (*ConfusionMatrix_ConfusionMatrixEntry) ProtoMessage
func (*ConfusionMatrix_ConfusionMatrixEntry) ProtoMessage()func (*ConfusionMatrix_ConfusionMatrixEntry) ProtoReflect
func (x *ConfusionMatrix_ConfusionMatrixEntry) ProtoReflect() protoreflect.Messagefunc (*ConfusionMatrix_ConfusionMatrixEntry) Reset
func (x *ConfusionMatrix_ConfusionMatrixEntry) Reset()func (*ConfusionMatrix_ConfusionMatrixEntry) String
func (x *ConfusionMatrix_ConfusionMatrixEntry) String() stringConfusionMatrix_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() *AnnotationSpecfunc (*ConfusionMatrix_Row) GetEntries
func (x *ConfusionMatrix_Row) GetEntries() []*ConfusionMatrix_ConfusionMatrixEntryfunc (*ConfusionMatrix_Row) ProtoMessage
func (*ConfusionMatrix_Row) ProtoMessage()func (*ConfusionMatrix_Row) ProtoReflect
func (x *ConfusionMatrix_Row) ProtoReflect() protoreflect.Messagefunc (*ConfusionMatrix_Row) Reset
func (x *ConfusionMatrix_Row) Reset()func (*ConfusionMatrix_Row) String
func (x *ConfusionMatrix_Row) String() stringCreateAnnotationSpecSetRequest
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() *AnnotationSpecSetfunc (*CreateAnnotationSpecSetRequest) GetParent
func (x *CreateAnnotationSpecSetRequest) GetParent() stringfunc (*CreateAnnotationSpecSetRequest) ProtoMessage
func (*CreateAnnotationSpecSetRequest) ProtoMessage()func (*CreateAnnotationSpecSetRequest) ProtoReflect
func (x *CreateAnnotationSpecSetRequest) ProtoReflect() protoreflect.Messagefunc (*CreateAnnotationSpecSetRequest) Reset
func (x *CreateAnnotationSpecSetRequest) Reset()func (*CreateAnnotationSpecSetRequest) String
func (x *CreateAnnotationSpecSetRequest) String() stringCreateDatasetRequest
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() *Datasetfunc (*CreateDatasetRequest) GetParent
func (x *CreateDatasetRequest) GetParent() stringfunc (*CreateDatasetRequest) ProtoMessage
func (*CreateDatasetRequest) ProtoMessage()func (*CreateDatasetRequest) ProtoReflect
func (x *CreateDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDatasetRequest) Reset
func (x *CreateDatasetRequest) Reset()func (*CreateDatasetRequest) String
func (x *CreateDatasetRequest) String() stringCreateEvaluationJobRequest
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() *EvaluationJobfunc (*CreateEvaluationJobRequest) GetParent
func (x *CreateEvaluationJobRequest) GetParent() stringfunc (*CreateEvaluationJobRequest) ProtoMessage
func (*CreateEvaluationJobRequest) ProtoMessage()func (*CreateEvaluationJobRequest) ProtoReflect
func (x *CreateEvaluationJobRequest) ProtoReflect() protoreflect.Messagefunc (*CreateEvaluationJobRequest) Reset
func (x *CreateEvaluationJobRequest) Reset()func (*CreateEvaluationJobRequest) String
func (x *CreateEvaluationJobRequest) String() stringCreateInstructionMetadata
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.Timestampfunc (*CreateInstructionMetadata) GetInstruction
func (x *CreateInstructionMetadata) GetInstruction() stringfunc (*CreateInstructionMetadata) GetPartialFailures
func (x *CreateInstructionMetadata) GetPartialFailures() []*status.Statusfunc (*CreateInstructionMetadata) ProtoMessage
func (*CreateInstructionMetadata) ProtoMessage()func (*CreateInstructionMetadata) ProtoReflect
func (x *CreateInstructionMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateInstructionMetadata) Reset
func (x *CreateInstructionMetadata) Reset()func (*CreateInstructionMetadata) String
func (x *CreateInstructionMetadata) String() stringCreateInstructionRequest
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() *Instructionfunc (*CreateInstructionRequest) GetParent
func (x *CreateInstructionRequest) GetParent() stringfunc (*CreateInstructionRequest) ProtoMessage
func (*CreateInstructionRequest) ProtoMessage()func (*CreateInstructionRequest) ProtoReflect
func (x *CreateInstructionRequest) ProtoReflect() protoreflect.Messagefunc (*CreateInstructionRequest) Reset
func (x *CreateInstructionRequest) Reset()func (*CreateInstructionRequest) String
func (x *CreateInstructionRequest) String() stringCsvInstruction
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() stringfunc (*CsvInstruction) ProtoMessage
func (*CsvInstruction) ProtoMessage()func (*CsvInstruction) ProtoReflect
func (x *CsvInstruction) ProtoReflect() protoreflect.Messagefunc (*CsvInstruction) Reset
func (x *CsvInstruction) Reset()func (*CsvInstruction) String
func (x *CsvInstruction) String() stringDataItem
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() *ImagePayloadfunc (*DataItem) GetName
func (*DataItem) GetPayload
func (m *DataItem) GetPayload() isDataItem_Payloadfunc (*DataItem) GetTextPayload
func (x *DataItem) GetTextPayload() *TextPayloadfunc (*DataItem) GetVideoPayload
func (x *DataItem) GetVideoPayload() *VideoPayloadfunc (*DataItem) ProtoMessage
func (*DataItem) ProtoMessage()func (*DataItem) ProtoReflect
func (x *DataItem) ProtoReflect() protoreflect.Messagefunc (*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) (*longrunningpb.Operation, error)
// Starts a labeling task for video. The type of video labeling task is
// configured by feature in the request.
LabelVideo(ctx context.Context, in *LabelVideoRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Starts a labeling task for text. The type of text labeling task is
// configured by feature in the request.
LabelText(ctx context.Context, in *LabelTextRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets an example by resource name, including both data and annotation.
GetExample(ctx context.Context, in *GetExampleRequest, opts ...grpc.CallOption) (*Example, error)
// Lists examples in an annotated dataset. Pagination is supported.
ListExamples(ctx context.Context, in *ListExamplesRequest, opts ...grpc.CallOption) (*ListExamplesResponse, error)
// Creates an annotation spec set by providing a set of labels.
CreateAnnotationSpecSet(ctx context.Context, in *CreateAnnotationSpecSetRequest, opts ...grpc.CallOption) (*AnnotationSpecSet, error)
// Gets an annotation spec set by resource name.
GetAnnotationSpecSet(ctx context.Context, in *GetAnnotationSpecSetRequest, opts ...grpc.CallOption) (*AnnotationSpecSet, error)
// Lists annotation spec sets for a project. Pagination is supported.
ListAnnotationSpecSets(ctx context.Context, in *ListAnnotationSpecSetsRequest, opts ...grpc.CallOption) (*ListAnnotationSpecSetsResponse, error)
// Deletes an annotation spec set by resource name.
DeleteAnnotationSpecSet(ctx context.Context, in *DeleteAnnotationSpecSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates an instruction for how data should be labeled.
CreateInstruction(ctx context.Context, in *CreateInstructionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets an instruction by resource name.
GetInstruction(ctx context.Context, in *GetInstructionRequest, opts ...grpc.CallOption) (*Instruction, error)
// Lists instructions for a project. Pagination is supported.
ListInstructions(ctx context.Context, in *ListInstructionsRequest, opts ...grpc.CallOption) (*ListInstructionsResponse, error)
// Deletes an instruction object by resource name.
DeleteInstruction(ctx context.Context, in *DeleteInstructionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets an evaluation by resource name (to search, use
// [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
GetEvaluation(ctx context.Context, in *GetEvaluationRequest, opts ...grpc.CallOption) (*Evaluation, error)
// Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
SearchEvaluations(ctx context.Context, in *SearchEvaluationsRequest, opts ...grpc.CallOption) (*SearchEvaluationsResponse, error)
// Searches example comparisons from an evaluation. The return format is a
// list of example comparisons that show ground truth and prediction(s) for
// a single input. Search by providing an evaluation ID.
SearchExampleComparisons(ctx context.Context, in *SearchExampleComparisonsRequest, opts ...grpc.CallOption) (*SearchExampleComparisonsResponse, error)
// Creates an evaluation job.
CreateEvaluationJob(ctx context.Context, in *CreateEvaluationJobRequest, opts ...grpc.CallOption) (*EvaluationJob, error)
// Updates an evaluation job. You can only update certain fields of the job's
// [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
// `exampleCount`, and `exampleSamplePercentage`.
//
// If you want to change any other aspect of the evaluation job, you must
// delete the job and create a new one.
UpdateEvaluationJob(ctx context.Context, in *UpdateEvaluationJobRequest, opts ...grpc.CallOption) (*EvaluationJob, error)
// Gets an evaluation job by resource name.
GetEvaluationJob(ctx context.Context, in *GetEvaluationJobRequest, opts ...grpc.CallOption) (*EvaluationJob, error)
// Pauses an evaluation job. Pausing an evaluation job that is already in a
// `PAUSED` state is a no-op.
PauseEvaluationJob(ctx context.Context, in *PauseEvaluationJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
// Resuming a running or scheduled evaluation job is a no-op.
ResumeEvaluationJob(ctx context.Context, in *ResumeEvaluationJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Stops and deletes an evaluation job.
DeleteEvaluationJob(ctx context.Context, in *DeleteEvaluationJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Lists all evaluation jobs within a project with possible filters.
// Pagination is supported.
ListEvaluationJobs(ctx context.Context, in *ListEvaluationJobsRequest, opts ...grpc.CallOption) (*ListEvaluationJobsResponse, error)
}DataLabelingServiceClient is the client API for DataLabelingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDataLabelingServiceClient
func NewDataLabelingServiceClient(cc grpc.ClientConnInterface) DataLabelingServiceClientDataLabelingServiceServer
type DataLabelingServiceServer interface {
// Creates dataset. If success return a Dataset resource.
CreateDataset(context.Context, *CreateDatasetRequest) (*Dataset, error)
// Gets dataset by resource name.
GetDataset(context.Context, *GetDatasetRequest) (*Dataset, error)
// Lists datasets under a project. Pagination is supported.
ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error)
// Deletes a dataset by resource name.
DeleteDataset(context.Context, *DeleteDatasetRequest) (*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(context.Context, *ImportDataRequest) (*longrunningpb.Operation, error)
// Exports data and annotations from dataset.
ExportData(context.Context, *ExportDataRequest) (*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(context.Context, *GetDataItemRequest) (*DataItem, error)
// Lists data items in a dataset. This API can be called after data
// are imported into dataset. Pagination is supported.
ListDataItems(context.Context, *ListDataItemsRequest) (*ListDataItemsResponse, error)
// Gets an annotated dataset by resource name.
GetAnnotatedDataset(context.Context, *GetAnnotatedDatasetRequest) (*AnnotatedDataset, error)
// Lists annotated datasets for a dataset. Pagination is supported.
ListAnnotatedDatasets(context.Context, *ListAnnotatedDatasetsRequest) (*ListAnnotatedDatasetsResponse, error)
// Deletes an annotated dataset by resource name.
DeleteAnnotatedDataset(context.Context, *DeleteAnnotatedDatasetRequest) (*emptypb.Empty, error)
// Starts a labeling task for image. The type of image labeling task is
// configured by feature in the request.
LabelImage(context.Context, *LabelImageRequest) (*longrunningpb.Operation, error)
// Starts a labeling task for video. The type of video labeling task is
// configured by feature in the request.
LabelVideo(context.Context, *LabelVideoRequest) (*longrunningpb.Operation, error)
// Starts a labeling task for text. The type of text labeling task is
// configured by feature in the request.
LabelText(context.Context, *LabelTextRequest) (*longrunningpb.Operation, error)
// Gets an example by resource name, including both data and annotation.
GetExample(context.Context, *GetExampleRequest) (*Example, error)
// Lists examples in an annotated dataset. Pagination is supported.
ListExamples(context.Context, *ListExamplesRequest) (*ListExamplesResponse, error)
// Creates an annotation spec set by providing a set of labels.
CreateAnnotationSpecSet(context.Context, *CreateAnnotationSpecSetRequest) (*AnnotationSpecSet, error)
// Gets an annotation spec set by resource name.
GetAnnotationSpecSet(context.Context, *GetAnnotationSpecSetRequest) (*AnnotationSpecSet, error)
// Lists annotation spec sets for a project. Pagination is supported.
ListAnnotationSpecSets(context.Context, *ListAnnotationSpecSetsRequest) (*ListAnnotationSpecSetsResponse, error)
// Deletes an annotation spec set by resource name.
DeleteAnnotationSpecSet(context.Context, *DeleteAnnotationSpecSetRequest) (*emptypb.Empty, error)
// Creates an instruction for how data should be labeled.
CreateInstruction(context.Context, *CreateInstructionRequest) (*longrunningpb.Operation, error)
// Gets an instruction by resource name.
GetInstruction(context.Context, *GetInstructionRequest) (*Instruction, error)
// Lists instructions for a project. Pagination is supported.
ListInstructions(context.Context, *ListInstructionsRequest) (*ListInstructionsResponse, error)
// Deletes an instruction object by resource name.
DeleteInstruction(context.Context, *DeleteInstructionRequest) (*emptypb.Empty, error)
// Gets an evaluation by resource name (to search, use
// [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
GetEvaluation(context.Context, *GetEvaluationRequest) (*Evaluation, error)
// Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
SearchEvaluations(context.Context, *SearchEvaluationsRequest) (*SearchEvaluationsResponse, error)
// Searches example comparisons from an evaluation. The return format is a
// list of example comparisons that show ground truth and prediction(s) for
// a single input. Search by providing an evaluation ID.
SearchExampleComparisons(context.Context, *SearchExampleComparisonsRequest) (*SearchExampleComparisonsResponse, error)
// Creates an evaluation job.
CreateEvaluationJob(context.Context, *CreateEvaluationJobRequest) (*EvaluationJob, error)
// Updates an evaluation job. You can only update certain fields of the job's
// [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
// `exampleCount`, and `exampleSamplePercentage`.
//
// If you want to change any other aspect of the evaluation job, you must
// delete the job and create a new one.
UpdateEvaluationJob(context.Context, *UpdateEvaluationJobRequest) (*EvaluationJob, error)
// Gets an evaluation job by resource name.
GetEvaluationJob(context.Context, *GetEvaluationJobRequest) (*EvaluationJob, error)
// Pauses an evaluation job. Pausing an evaluation job that is already in a
// `PAUSED` state is a no-op.
PauseEvaluationJob(context.Context, *PauseEvaluationJobRequest) (*emptypb.Empty, error)
// Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
// Resuming a running or scheduled evaluation job is a no-op.
ResumeEvaluationJob(context.Context, *ResumeEvaluationJobRequest) (*emptypb.Empty, error)
// Stops and deletes an evaluation job.
DeleteEvaluationJob(context.Context, *DeleteEvaluationJobRequest) (*emptypb.Empty, error)
// Lists all evaluation jobs within a project with possible filters.
// Pagination is supported.
ListEvaluationJobs(context.Context, *ListEvaluationJobsRequest) (*ListEvaluationJobsResponse, error)
}DataLabelingServiceServer is the server API for DataLabelingService service. All implementations should embed UnimplementedDataLabelingServiceServer for forward compatibility
DataType
type DataType int32DataType_DATA_TYPE_UNSPECIFIED, DataType_IMAGE, DataType_VIDEO, DataType_TEXT, DataType_GENERAL_DATA
const (
DataType_DATA_TYPE_UNSPECIFIED DataType = 0
// Allowed for continuous evaluation.
DataType_IMAGE DataType = 1
DataType_VIDEO DataType = 2
// Allowed for continuous evaluation.
DataType_TEXT DataType = 4
// Allowed for continuous evaluation.
DataType_GENERAL_DATA DataType = 6
)func (DataType) Descriptor
func (DataType) Descriptor() protoreflect.EnumDescriptorfunc (DataType) Enum
func (DataType) EnumDescriptor
Deprecated: Use DataType.Descriptor instead.
func (DataType) Number
func (x DataType) Number() protoreflect.EnumNumberfunc (DataType) String
func (DataType) Type
func (DataType) Type() protoreflect.EnumTypeDataset
type Dataset struct {
// Output only. Dataset resource name, format is:
// projects/{project_id}/datasets/{dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the dataset. 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 10000 characters long.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Time the dataset is created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. This is populated with the original input configs
// where ImportData is called. It is available only after the clients
// import data to this dataset.
InputConfigs []*InputConfig `protobuf:"bytes,5,rep,name=input_configs,json=inputConfigs,proto3" json:"input_configs,omitempty"`
// Output only. The names of any related resources that are blocking changes
// to the dataset.
BlockingResources []string `protobuf:"bytes,6,rep,name=blocking_resources,json=blockingResources,proto3" json:"blocking_resources,omitempty"`
// Output only. The number of data items in the dataset.
DataItemCount int64 `protobuf:"varint,7,opt,name=data_item_count,json=dataItemCount,proto3" json:"data_item_count,omitempty"`
// contains filtered or unexported fields
}Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.
func (*Dataset) Descriptor
Deprecated: Use Dataset.ProtoReflect.Descriptor instead.
func (*Dataset) GetBlockingResources
func (*Dataset) GetCreateTime
func (x *Dataset) GetCreateTime() *timestamppb.Timestampfunc (*Dataset) GetDataItemCount
func (*Dataset) GetDescription
func (*Dataset) GetDisplayName
func (*Dataset) GetInputConfigs
func (x *Dataset) GetInputConfigs() []*InputConfigfunc (*Dataset) GetName
func (*Dataset) ProtoMessage
func (*Dataset) ProtoMessage()func (*Dataset) ProtoReflect
func (x *Dataset) ProtoReflect() protoreflect.Messagefunc (*Dataset) Reset
func (x *Dataset) Reset()func (*Dataset) String
DeleteAnnotatedDatasetRequest
type DeleteAnnotatedDatasetRequest struct {
// Required. Name of the annotated dataset to delete, format:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteAnnotatedDataset.
func (*DeleteAnnotatedDatasetRequest) Descriptor
func (*DeleteAnnotatedDatasetRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteAnnotatedDatasetRequest.ProtoReflect.Descriptor instead.
func (*DeleteAnnotatedDatasetRequest) GetName
func (x *DeleteAnnotatedDatasetRequest) GetName() stringfunc (*DeleteAnnotatedDatasetRequest) ProtoMessage
func (*DeleteAnnotatedDatasetRequest) ProtoMessage()func (*DeleteAnnotatedDatasetRequest) ProtoReflect
func (x *DeleteAnnotatedDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteAnnotatedDatasetRequest) Reset
func (x *DeleteAnnotatedDatasetRequest) Reset()func (*DeleteAnnotatedDatasetRequest) String
func (x *DeleteAnnotatedDatasetRequest) String() stringDeleteAnnotationSpecSetRequest
type DeleteAnnotationSpecSetRequest struct {
// Required. AnnotationSpec resource name, format:
// `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteAnnotationSpecSet.
func (*DeleteAnnotationSpecSetRequest) Descriptor
func (*DeleteAnnotationSpecSetRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteAnnotationSpecSetRequest.ProtoReflect.Descriptor instead.
func (*DeleteAnnotationSpecSetRequest) GetName
func (x *DeleteAnnotationSpecSetRequest) GetName() stringfunc (*DeleteAnnotationSpecSetRequest) ProtoMessage
func (*DeleteAnnotationSpecSetRequest) ProtoMessage()func (*DeleteAnnotationSpecSetRequest) ProtoReflect
func (x *DeleteAnnotationSpecSetRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteAnnotationSpecSetRequest) Reset
func (x *DeleteAnnotationSpecSetRequest) Reset()func (*DeleteAnnotationSpecSetRequest) String
func (x *DeleteAnnotationSpecSetRequest) String() stringDeleteDatasetRequest
type DeleteDatasetRequest struct {
// Required. Dataset resource name, format:
// projects/{project_id}/datasets/{dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteDataset.
func (*DeleteDatasetRequest) Descriptor
func (*DeleteDatasetRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDatasetRequest.ProtoReflect.Descriptor instead.
func (*DeleteDatasetRequest) GetName
func (x *DeleteDatasetRequest) GetName() stringfunc (*DeleteDatasetRequest) ProtoMessage
func (*DeleteDatasetRequest) ProtoMessage()func (*DeleteDatasetRequest) ProtoReflect
func (x *DeleteDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDatasetRequest) Reset
func (x *DeleteDatasetRequest) Reset()func (*DeleteDatasetRequest) String
func (x *DeleteDatasetRequest) String() stringDeleteEvaluationJobRequest
type DeleteEvaluationJobRequest struct {
// Required. Name of the evaluation job that is going to be deleted. Format:
//
// "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message DeleteEvaluationJob.
func (*DeleteEvaluationJobRequest) Descriptor
func (*DeleteEvaluationJobRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteEvaluationJobRequest.ProtoReflect.Descriptor instead.
func (*DeleteEvaluationJobRequest) GetName
func (x *DeleteEvaluationJobRequest) GetName() stringfunc (*DeleteEvaluationJobRequest) ProtoMessage
func (*DeleteEvaluationJobRequest) ProtoMessage()func (*DeleteEvaluationJobRequest) ProtoReflect
func (x *DeleteEvaluationJobRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteEvaluationJobRequest) Reset
func (x *DeleteEvaluationJobRequest) Reset()func (*DeleteEvaluationJobRequest) String
func (x *DeleteEvaluationJobRequest) String() stringDeleteInstructionRequest
type DeleteInstructionRequest struct {
// Required. Instruction resource name, format:
// projects/{project_id}/instructions/{instruction_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteInstruction.
func (*DeleteInstructionRequest) Descriptor
func (*DeleteInstructionRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteInstructionRequest.ProtoReflect.Descriptor instead.
func (*DeleteInstructionRequest) GetName
func (x *DeleteInstructionRequest) GetName() stringfunc (*DeleteInstructionRequest) ProtoMessage
func (*DeleteInstructionRequest) ProtoMessage()func (*DeleteInstructionRequest) ProtoReflect
func (x *DeleteInstructionRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteInstructionRequest) Reset
func (x *DeleteInstructionRequest) Reset()func (*DeleteInstructionRequest) String
func (x *DeleteInstructionRequest) String() stringEvaluation
type Evaluation struct {
// Output only. Resource name of an evaluation. The name has the following
// format:
//
// "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Options used in the evaluation job that created this
// evaluation.
Config *EvaluationConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// Output only. Timestamp for when the evaluation job that created this
// evaluation ran.
EvaluationJobRunTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=evaluation_job_run_time,json=evaluationJobRunTime,proto3" json:"evaluation_job_run_time,omitempty"`
// Output only. Timestamp for when this evaluation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Metrics comparing predictions to ground truth labels.
EvaluationMetrics *EvaluationMetrics `protobuf:"bytes,5,opt,name=evaluation_metrics,json=evaluationMetrics,proto3" json:"evaluation_metrics,omitempty"`
// Output only. Type of task that the model version being evaluated performs,
// as defined in the
//
// [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
// field of the evaluation job that created this evaluation.
AnnotationType AnnotationType `protobuf:"varint,6,opt,name=annotation_type,json=annotationType,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationType" json:"annotation_type,omitempty"`
// Output only. The number of items in the ground truth dataset that were used
// for this evaluation. Only populated when the evaulation is for certain
// AnnotationTypes.
EvaluatedItemCount int64 `protobuf:"varint,7,opt,name=evaluated_item_count,json=evaluatedItemCount,proto3" json:"evaluated_item_count,omitempty"`
// contains filtered or unexported fields
}Describes an evaluation between a machine learning model's predictions and ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.
func (*Evaluation) Descriptor
func (*Evaluation) Descriptor() ([]byte, []int)Deprecated: Use Evaluation.ProtoReflect.Descriptor instead.
func (*Evaluation) GetAnnotationType
func (x *Evaluation) GetAnnotationType() AnnotationTypefunc (*Evaluation) GetConfig
func (x *Evaluation) GetConfig() *EvaluationConfigfunc (*Evaluation) GetCreateTime
func (x *Evaluation) GetCreateTime() *timestamppb.Timestampfunc (*Evaluation) GetEvaluatedItemCount
func (x *Evaluation) GetEvaluatedItemCount() int64func (*Evaluation) GetEvaluationJobRunTime
func (x *Evaluation) GetEvaluationJobRunTime() *timestamppb.Timestampfunc (*Evaluation) GetEvaluationMetrics
func (x *Evaluation) GetEvaluationMetrics() *EvaluationMetricsfunc (*Evaluation) GetName
func (x *Evaluation) GetName() stringfunc (*Evaluation) ProtoMessage
func (*Evaluation) ProtoMessage()func (*Evaluation) ProtoReflect
func (x *Evaluation) ProtoReflect() protoreflect.Messagefunc (*Evaluation) Reset
func (x *Evaluation) Reset()func (*Evaluation) String
func (x *Evaluation) String() stringEvaluationConfig
type EvaluationConfig struct {
// Vertical specific options for general metrics.
//
// Types that are assignable to VerticalOption:
//
// *EvaluationConfig_BoundingBoxEvaluationOptions
VerticalOption isEvaluationConfig_VerticalOption `protobuf_oneof:"vertical_option"`
// contains filtered or unexported fields
}Configuration details used for calculating evaluation metrics and creating an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
func (*EvaluationConfig) Descriptor
func (*EvaluationConfig) Descriptor() ([]byte, []int)Deprecated: Use EvaluationConfig.ProtoReflect.Descriptor instead.
func (*EvaluationConfig) GetBoundingBoxEvaluationOptions
func (x *EvaluationConfig) GetBoundingBoxEvaluationOptions() *BoundingBoxEvaluationOptionsfunc (*EvaluationConfig) GetVerticalOption
func (m *EvaluationConfig) GetVerticalOption() isEvaluationConfig_VerticalOptionfunc (*EvaluationConfig) ProtoMessage
func (*EvaluationConfig) ProtoMessage()func (*EvaluationConfig) ProtoReflect
func (x *EvaluationConfig) ProtoReflect() protoreflect.Messagefunc (*EvaluationConfig) Reset
func (x *EvaluationConfig) Reset()func (*EvaluationConfig) String
func (x *EvaluationConfig) String() stringEvaluationConfig_BoundingBoxEvaluationOptions
type EvaluationConfig_BoundingBoxEvaluationOptions struct {
// Only specify this field if the related model performs image object
// detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
// bounding boxes.
BoundingBoxEvaluationOptions *BoundingBoxEvaluationOptions `protobuf:"bytes,1,opt,name=bounding_box_evaluation_options,json=boundingBoxEvaluationOptions,proto3,oneof"`
}EvaluationJob
type EvaluationJob struct {
// Output only. After you create a job, Data Labeling Service assigns a name
// to the job with the following format:
//
// "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Description of the job. The description can be up to 25,000
// characters long.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Describes the current state of the job.
State EvaluationJob_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.datalabeling.v1beta1.EvaluationJob_State" json:"state,omitempty"`
// Required. Describes the interval at which the job runs. This interval must
// be at least 1 day, and it is rounded to the nearest day. For example, if
// you specify a 50-hour interval, the job runs every 2 days.
//
// You can provide the schedule in
// [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
// [English-like
// format](/appengine/docs/standard/python/config/cronref#schedule_format).
//
// Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
// interval from this schedule is used, not the specific time of day.
Schedule string `protobuf:"bytes,4,opt,name=schedule,proto3" json:"schedule,omitempty"`
// Required. The [AI Platform Prediction model
// version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
// input and output is sampled from this model version. When creating an
// evaluation job, specify the model version in the following format:
//
// "projects/{project_id}/models/{model_name}/versions/{version_name}"
//
// There can only be one evaluation job per model version.
ModelVersion string `protobuf:"bytes,5,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"`
// Required. Configuration details for the evaluation job.
EvaluationJobConfig *EvaluationJobConfig `protobuf:"bytes,6,opt,name=evaluation_job_config,json=evaluationJobConfig,proto3" json:"evaluation_job_config,omitempty"`
// Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
// labels that your machine learning model outputs. You must create this
// resource before you create an evaluation job and provide its name in the
// following format:
//
// "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
AnnotationSpecSet string `protobuf:"bytes,7,opt,name=annotation_spec_set,json=annotationSpecSet,proto3" json:"annotation_spec_set,omitempty"`
// Required. Whether you want Data Labeling Service to provide ground truth
// labels for prediction input. If you want the service to assign human
// labelers to annotate your data, set this to `true`. If you want to provide
// your own ground truth labels in the evaluation job's BigQuery table, set
// this to `false`.
LabelMissingGroundTruth bool `protobuf:"varint,8,opt,name=label_missing_ground_truth,json=labelMissingGroundTruth,proto3" json:"label_missing_ground_truth,omitempty"`
// Output only. Every time the evaluation job runs and an error occurs, the
// failed attempt is appended to this array.
Attempts []*Attempt `protobuf:"bytes,9,rep,name=attempts,proto3" json:"attempts,omitempty"`
// Output only. Timestamp of when this evaluation job was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Defines an evaluation job that runs periodically to generate [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. Creating an evaluation job is the starting point for using continuous evaluation.
func (*EvaluationJob) Descriptor
func (*EvaluationJob) Descriptor() ([]byte, []int)Deprecated: Use EvaluationJob.ProtoReflect.Descriptor instead.
func (*EvaluationJob) GetAnnotationSpecSet
func (x *EvaluationJob) GetAnnotationSpecSet() stringfunc (*EvaluationJob) GetAttempts
func (x *EvaluationJob) GetAttempts() []*Attemptfunc (*EvaluationJob) GetCreateTime
func (x *EvaluationJob) GetCreateTime() *timestamppb.Timestampfunc (*EvaluationJob) GetDescription
func (x *EvaluationJob) GetDescription() stringfunc (*EvaluationJob) GetEvaluationJobConfig
func (x *EvaluationJob) GetEvaluationJobConfig() *EvaluationJobConfigfunc (*EvaluationJob) GetLabelMissingGroundTruth
func (x *EvaluationJob) GetLabelMissingGroundTruth() boolfunc (*EvaluationJob) GetModelVersion
func (x *EvaluationJob) GetModelVersion() stringfunc (*EvaluationJob) GetName
func (x *EvaluationJob) GetName() stringfunc (*EvaluationJob) GetSchedule
func (x *EvaluationJob) GetSchedule() stringfunc (*EvaluationJob) GetState
func (x *EvaluationJob) GetState() EvaluationJob_Statefunc (*EvaluationJob) ProtoMessage
func (*EvaluationJob) ProtoMessage()func (*EvaluationJob) ProtoReflect
func (x *EvaluationJob) ProtoReflect() protoreflect.Messagefunc (*EvaluationJob) Reset
func (x *EvaluationJob) Reset()func (*EvaluationJob) String
func (x *EvaluationJob) String() stringEvaluationJobAlertConfig
type EvaluationJobAlertConfig struct {
// Required. An email address to send alerts to.
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
// Required. A number between 0 and 1 that describes a minimum mean average
// precision threshold. When the evaluation job runs, if it calculates that
// your model version's predictions from the recent interval have
// [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this
// threshold, then it sends an alert to your specified email.
MinAcceptableMeanAveragePrecision float64 `protobuf:"fixed64,2,opt,name=min_acceptable_mean_average_precision,json=minAcceptableMeanAveragePrecision,proto3" json:"min_acceptable_mean_average_precision,omitempty"`
// contains filtered or unexported fields
}Provides details for how an evaluation job sends email alerts based on the results of a run.
func (*EvaluationJobAlertConfig) Descriptor
func (*EvaluationJobAlertConfig) Descriptor() ([]byte, []int)Deprecated: Use EvaluationJobAlertConfig.ProtoReflect.Descriptor instead.
func (*EvaluationJobAlertConfig) GetEmail
func (x *EvaluationJobAlertConfig) GetEmail() stringfunc (*EvaluationJobAlertConfig) GetMinAcceptableMeanAveragePrecision
func (x *EvaluationJobAlertConfig) GetMinAcceptableMeanAveragePrecision() float64func (*EvaluationJobAlertConfig) ProtoMessage
func (*EvaluationJobAlertConfig) ProtoMessage()func (*EvaluationJobAlertConfig) ProtoReflect
func (x *EvaluationJobAlertConfig) ProtoReflect() protoreflect.Messagefunc (*EvaluationJobAlertConfig) Reset
func (x *EvaluationJobAlertConfig) Reset()func (*EvaluationJobAlertConfig) String
func (x *EvaluationJobAlertConfig) String() stringEvaluationJobConfig
type EvaluationJobConfig struct {
// Required. Details for how you want human reviewers to provide ground truth
// labels.
//
// Types that are assignable to HumanAnnotationRequestConfig:
//
// *EvaluationJobConfig_ImageClassificationConfig
// *EvaluationJobConfig_BoundingPolyConfig
// *EvaluationJobConfig_TextClassificationConfig
HumanAnnotationRequestConfig isEvaluationJobConfig_HumanAnnotationRequestConfig `protobuf_oneof:"human_annotation_request_config"`
// Rquired. Details for the sampled prediction input. Within this
// configuration, there are requirements for several fields:
//
// - `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
// - `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
// `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
// or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
// - If your machine learning model performs classification, you must specify
// `classificationMetadata.isMultiLabel`.
// - You must specify `bigquerySource` (not `gcsSource`).
InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
// Required. Details for calculating evaluation metrics and creating
// [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
// detection, you must specify the `boundingBoxEvaluationOptions` field within
// this configuration. Otherwise, provide an empty object for this
// configuration.
EvaluationConfig *EvaluationConfig `protobuf:"bytes,2,opt,name=evaluation_config,json=evaluationConfig,proto3" json:"evaluation_config,omitempty"`
// Optional. Details for human annotation of your data. If you set
// [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
// `true` for this evaluation job, then you must specify this field. If you
// plan to provide your own ground truth labels, then omit this field.
//
// Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
// specify this field. Provide the name of the instruction resource in the
// `instruction` field within this configuration.
HumanAnnotationConfig *HumanAnnotationConfig `protobuf:"bytes,3,opt,name=human_annotation_config,json=humanAnnotationConfig,proto3" json:"human_annotation_config,omitempty"`
// Required. Prediction keys that tell Data Labeling Service where to find the
// data for evaluation in your BigQuery table. When the service samples
// prediction input and output from your model version and saves it to
// BigQuery, the data gets stored as JSON strings in the BigQuery table. These
// keys tell Data Labeling Service how to parse the JSON.
//
// You can provide the following entries in this field:
//
// - `data_json_key`: the data key for prediction input. You must provide
// either this key or `reference_json_key`.
// - `reference_json_key`: the data reference key for prediction input. You
// must provide either this key or `data_json_key`.
// - `label_json_key`: the label key for prediction output. Required.
// - `label_score_json_key`: the score key for prediction output. Required.
// - `bounding_box_json_key`: the bounding box key for prediction output.
// Required if your model version perform image object detection.
//
// Learn [how to configure prediction
// keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
BigqueryImportKeys map[string]string `protobuf:"bytes,9,rep,name=bigquery_import_keys,json=bigqueryImportKeys,proto3" json:"bigquery_import_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Required. The maximum number of predictions to sample and save to BigQuery
// during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
// overrides `example_sample_percentage`: even if the service has not sampled
// enough predictions to fulfill `example_sample_perecentage` during an
// interval, it stops sampling predictions when it meets this limit.
ExampleCount int32 `protobuf:"varint,10,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
// Required. Fraction of predictions to sample and save to BigQuery during
// each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
// 10% of predictions served by your model version get saved to BigQuery.
ExampleSamplePercentage float64 `protobuf:"fixed64,11,opt,name=example_sample_percentage,json=exampleSamplePercentage,proto3" json:"example_sample_percentage,omitempty"`
// Optional. Configuration details for evaluation job alerts. Specify this
// field if you want to receive email alerts if the evaluation job finds that
// your predictions have low mean average precision during a run.
EvaluationJobAlertConfig *EvaluationJobAlertConfig `protobuf:"bytes,13,opt,name=evaluation_job_alert_config,json=evaluationJobAlertConfig,proto3" json:"evaluation_job_alert_config,omitempty"`
// contains filtered or unexported fields
}Configures specific details of how a continuous evaluation job works. Provide this configuration when you create an EvaluationJob.
func (*EvaluationJobConfig) Descriptor
func (*EvaluationJobConfig) Descriptor() ([]byte, []int)Deprecated: Use EvaluationJobConfig.ProtoReflect.Descriptor instead.
func (*EvaluationJobConfig) GetBigqueryImportKeys
func (x *EvaluationJobConfig) GetBigqueryImportKeys() map[string]stringfunc (*EvaluationJobConfig) GetBoundingPolyConfig
func (x *EvaluationJobConfig) GetBoundingPolyConfig() *BoundingPolyConfigfunc (*EvaluationJobConfig) GetEvaluationConfig
func (x *EvaluationJobConfig) GetEvaluationConfig() *EvaluationConfigfunc (*EvaluationJobConfig) GetEvaluationJobAlertConfig
func (x *EvaluationJobConfig) GetEvaluationJobAlertConfig() *EvaluationJobAlertConfigfunc (*EvaluationJobConfig) GetExampleCount
func (x *EvaluationJobConfig) GetExampleCount() int32func (*EvaluationJobConfig) GetExampleSamplePercentage
func (x *EvaluationJobConfig) GetExampleSamplePercentage() float64func (*EvaluationJobConfig) GetHumanAnnotationConfig
func (x *EvaluationJobConfig) GetHumanAnnotationConfig() *HumanAnnotationConfigfunc (*EvaluationJobConfig) GetHumanAnnotationRequestConfig
func (m *EvaluationJobConfig) GetHumanAnnotationRequestConfig() isEvaluationJobConfig_HumanAnnotationRequestConfigfunc (*EvaluationJobConfig) GetImageClassificationConfig
func (x *EvaluationJobConfig) GetImageClassificationConfig() *ImageClassificationConfigfunc (*EvaluationJobConfig) GetInputConfig
func (x *EvaluationJobConfig) GetInputConfig() *InputConfigfunc (*EvaluationJobConfig) GetTextClassificationConfig
func (x *EvaluationJobConfig) GetTextClassificationConfig() *TextClassificationConfigfunc (*EvaluationJobConfig) ProtoMessage
func (*EvaluationJobConfig) ProtoMessage()func (*EvaluationJobConfig) ProtoReflect
func (x *EvaluationJobConfig) ProtoReflect() protoreflect.Messagefunc (*EvaluationJobConfig) Reset
func (x *EvaluationJobConfig) Reset()func (*EvaluationJobConfig) String
func (x *EvaluationJobConfig) String() stringEvaluationJobConfig_BoundingPolyConfig
type EvaluationJobConfig_BoundingPolyConfig struct {
// Specify this field if your model version performs image object detection
// (bounding box detection).
//
// `annotationSpecSet` in this configuration must match
// [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
BoundingPolyConfig *BoundingPolyConfig `protobuf:"bytes,5,opt,name=bounding_poly_config,json=boundingPolyConfig,proto3,oneof"`
}EvaluationJobConfig_ImageClassificationConfig
type EvaluationJobConfig_ImageClassificationConfig struct {
// Specify this field if your model version performs image classification or
// general classification.
//
// `annotationSpecSet` in this configuration must match
// [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
// `allowMultiLabel` in this configuration must match
// `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
ImageClassificationConfig *ImageClassificationConfig `protobuf:"bytes,4,opt,name=image_classification_config,json=imageClassificationConfig,proto3,oneof"`
}EvaluationJobConfig_TextClassificationConfig
type EvaluationJobConfig_TextClassificationConfig struct {
// Specify this field if your model version performs text classification.
//
// `annotationSpecSet` in this configuration must match
// [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
// `allowMultiLabel` in this configuration must match
// `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
TextClassificationConfig *TextClassificationConfig `protobuf:"bytes,8,opt,name=text_classification_config,json=textClassificationConfig,proto3,oneof"`
}EvaluationJob_State
type EvaluationJob_State int32State of the job.
EvaluationJob_STATE_UNSPECIFIED, EvaluationJob_SCHEDULED, EvaluationJob_RUNNING, EvaluationJob_PAUSED, EvaluationJob_STOPPED
const (
EvaluationJob_STATE_UNSPECIFIED EvaluationJob_State = 0
// The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
// can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
// [delete][google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob] the job.
//
// When the job is in this state, it samples prediction input and output
// from your model version into your BigQuery table as predictions occur.
EvaluationJob_SCHEDULED EvaluationJob_State = 1
// The job is currently running. When the job runs, Data Labeling Service
// does several things:
//
// 1. If you have configured your job to use Data Labeling Service for
// ground truth labeling, the service creates a
// [Dataset][google.cloud.datalabeling.v1beta1.Dataset] and a labeling task for all data sampled
// since the last time the job ran. Human labelers provide ground truth
// labels for your data. Human labeling may take hours, or even days,
// depending on how much data has been sampled. The job remains in the
// `RUNNING` state during this time, and it can even be running multiple
// times in parallel if it gets triggered again (for example 24 hours
// later) before the earlier run has completed. When human labelers have
// finished labeling the data, the next step occurs.
//
// If you have configured your job to provide your own ground truth
// labels, Data Labeling Service still creates a [Dataset][google.cloud.datalabeling.v1beta1.Dataset] for newly
// sampled data, but it expects that you have already added ground truth
// labels to the BigQuery table by this time. The next step occurs
// immediately.
//
// 2. Data Labeling Service creates an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] by comparing your
// model version's predictions with the ground truth labels.
//
// If the job remains in this state for a long time, it continues to sample
// prediction data into your BigQuery table and will run again at the next
// interval, even if it causes the job to run multiple times in parallel.
EvaluationJob_RUNNING EvaluationJob_State = 2
// The job is not sampling prediction input and output into your BigQuery
// table and it will not run according to its schedule. You can
// [resume][google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob] the job.
EvaluationJob_PAUSED EvaluationJob_State = 3
// The job has this state right before it is deleted.
EvaluationJob_STOPPED EvaluationJob_State = 4
)func (EvaluationJob_State) Descriptor
func (EvaluationJob_State) Descriptor() protoreflect.EnumDescriptorfunc (EvaluationJob_State) Enum
func (x EvaluationJob_State) Enum() *EvaluationJob_Statefunc (EvaluationJob_State) EnumDescriptor
func (EvaluationJob_State) EnumDescriptor() ([]byte, []int)Deprecated: Use EvaluationJob_State.Descriptor instead.
func (EvaluationJob_State) Number
func (x EvaluationJob_State) Number() protoreflect.EnumNumberfunc (EvaluationJob_State) String
func (x EvaluationJob_State) String() stringfunc (EvaluationJob_State) Type
func (EvaluationJob_State) Type() protoreflect.EnumTypeEvaluationMetrics
type EvaluationMetrics struct {
// Common metrics covering most general cases.
//
// Types that are assignable to Metrics:
//
// *EvaluationMetrics_ClassificationMetrics
// *EvaluationMetrics_ObjectDetectionMetrics
Metrics isEvaluationMetrics_Metrics `protobuf_oneof:"metrics"`
// contains filtered or unexported fields
}func (*EvaluationMetrics) Descriptor
func (*EvaluationMetrics) Descriptor() ([]byte, []int)Deprecated: Use EvaluationMetrics.ProtoReflect.Descriptor instead.
func (*EvaluationMetrics) GetClassificationMetrics
func (x *EvaluationMetrics) GetClassificationMetrics() *ClassificationMetricsfunc (*EvaluationMetrics) GetMetrics
func (m *EvaluationMetrics) GetMetrics() isEvaluationMetrics_Metricsfunc (*EvaluationMetrics) GetObjectDetectionMetrics
func (x *EvaluationMetrics) GetObjectDetectionMetrics() *ObjectDetectionMetricsfunc (*EvaluationMetrics) ProtoMessage
func (*EvaluationMetrics) ProtoMessage()func (*EvaluationMetrics) ProtoReflect
func (x *EvaluationMetrics) ProtoReflect() protoreflect.Messagefunc (*EvaluationMetrics) Reset
func (x *EvaluationMetrics) Reset()func (*EvaluationMetrics) String
func (x *EvaluationMetrics) String() stringEvaluationMetrics_ClassificationMetrics
type EvaluationMetrics_ClassificationMetrics struct {
ClassificationMetrics *ClassificationMetrics `protobuf:"bytes,1,opt,name=classification_metrics,json=classificationMetrics,proto3,oneof"`
}EvaluationMetrics_ObjectDetectionMetrics
type EvaluationMetrics_ObjectDetectionMetrics struct {
ObjectDetectionMetrics *ObjectDetectionMetrics `protobuf:"bytes,2,opt,name=object_detection_metrics,json=objectDetectionMetrics,proto3,oneof"`
}EventConfig
type EventConfig struct {
// Required. The list of annotation spec set resource name. Similar to video
// classification, we support selecting event from multiple AnnotationSpecSet
// at the same time.
AnnotationSpecSets []string `protobuf:"bytes,1,rep,name=annotation_spec_sets,json=annotationSpecSets,proto3" json:"annotation_spec_sets,omitempty"`
// contains filtered or unexported fields
}Config for video event human labeling task.
func (*EventConfig) Descriptor
func (*EventConfig) Descriptor() ([]byte, []int)Deprecated: Use EventConfig.ProtoReflect.Descriptor instead.
func (*EventConfig) GetAnnotationSpecSets
func (x *EventConfig) GetAnnotationSpecSets() []stringfunc (*EventConfig) ProtoMessage
func (*EventConfig) ProtoMessage()func (*EventConfig) ProtoReflect
func (x *EventConfig) ProtoReflect() protoreflect.Messagefunc (*EventConfig) Reset
func (x *EventConfig) Reset()func (*EventConfig) String
func (x *EventConfig) String() stringExample
type Example struct {
// Output only. The data part of Example.
//
// Types that are assignable to Payload:
//
// *Example_ImagePayload
// *Example_TextPayload
// *Example_VideoPayload
Payload isExample_Payload `protobuf_oneof:"payload"`
// Output only. Name of the example, in format of:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}/examples/{example_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Annotations for the piece of data in Example.
// One piece of data can have multiple annotations.
Annotations []*Annotation `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty"`
// contains filtered or unexported fields
}An Example is a piece of data and its annotation. For example, an image with label "house".
func (*Example) Descriptor
Deprecated: Use Example.ProtoReflect.Descriptor instead.
func (*Example) GetAnnotations
func (x *Example) GetAnnotations() []*Annotationfunc (*Example) GetImagePayload
func (x *Example) GetImagePayload() *ImagePayloadfunc (*Example) GetName
func (*Example) GetPayload
func (m *Example) GetPayload() isExample_Payloadfunc (*Example) GetTextPayload
func (x *Example) GetTextPayload() *TextPayloadfunc (*Example) GetVideoPayload
func (x *Example) GetVideoPayload() *VideoPayloadfunc (*Example) ProtoMessage
func (*Example) ProtoMessage()func (*Example) ProtoReflect
func (x *Example) ProtoReflect() protoreflect.Messagefunc (*Example) Reset
func (x *Example) Reset()func (*Example) String
Example_ImagePayload
type Example_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"`
}Example_TextPayload
type Example_TextPayload struct {
// The text payload, a container of the text content.
TextPayload *TextPayload `protobuf:"bytes,6,opt,name=text_payload,json=textPayload,proto3,oneof"`
}Example_VideoPayload
type Example_VideoPayload struct {
// The video payload, a container of the video uri.
VideoPayload *VideoPayload `protobuf:"bytes,7,opt,name=video_payload,json=videoPayload,proto3,oneof"`
}ExportDataOperationMetadata
type ExportDataOperationMetadata struct {
// Output only. The name of dataset to be exported.
// "projects/*/datasets/*"
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Output only. 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"`
// Output only. Timestamp when export dataset 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 an ExportData operation.
func (*ExportDataOperationMetadata) Descriptor
func (*ExportDataOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use ExportDataOperationMetadata.ProtoReflect.Descriptor instead.
func (*ExportDataOperationMetadata) GetCreateTime
func (x *ExportDataOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*ExportDataOperationMetadata) GetDataset
func (x *ExportDataOperationMetadata) GetDataset() stringfunc (*ExportDataOperationMetadata) GetPartialFailures
func (x *ExportDataOperationMetadata) GetPartialFailures() []*status.Statusfunc (*ExportDataOperationMetadata) ProtoMessage
func (*ExportDataOperationMetadata) ProtoMessage()func (*ExportDataOperationMetadata) ProtoReflect
func (x *ExportDataOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*ExportDataOperationMetadata) Reset
func (x *ExportDataOperationMetadata) Reset()func (*ExportDataOperationMetadata) String
func (x *ExportDataOperationMetadata) String() stringExportDataOperationResponse
type ExportDataOperationResponse struct {
// Ouptut only. The name of dataset.
// "projects/*/datasets/*"
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Output only. Total number of examples requested to export
TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// Output only. Number of examples exported successfully.
ExportCount int32 `protobuf:"varint,3,opt,name=export_count,json=exportCount,proto3" json:"export_count,omitempty"`
// Output only. Statistic infos of labels in the exported dataset.
LabelStats *LabelStats `protobuf:"bytes,4,opt,name=label_stats,json=labelStats,proto3" json:"label_stats,omitempty"`
// Output only. output_config in the ExportData request.
OutputConfig *OutputConfig `protobuf:"bytes,5,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}Response used for ExportDataset longrunning operation.
func (*ExportDataOperationResponse) Descriptor
func (*ExportDataOperationResponse) Descriptor() ([]byte, []int)Deprecated: Use ExportDataOperationResponse.ProtoReflect.Descriptor instead.
func (*ExportDataOperationResponse) GetDataset
func (x *ExportDataOperationResponse) GetDataset() stringfunc (*ExportDataOperationResponse) GetExportCount
func (x *ExportDataOperationResponse) GetExportCount() int32func (*ExportDataOperationResponse) GetLabelStats
func (x *ExportDataOperationResponse) GetLabelStats() *LabelStatsfunc (*ExportDataOperationResponse) GetOutputConfig
func (x *ExportDataOperationResponse) GetOutputConfig() *OutputConfigfunc (*ExportDataOperationResponse) GetTotalCount
func (x *ExportDataOperationResponse) GetTotalCount() int32func (*ExportDataOperationResponse) ProtoMessage
func (*ExportDataOperationResponse) ProtoMessage()func (*ExportDataOperationResponse) ProtoReflect
func (x *ExportDataOperationResponse) ProtoReflect() protoreflect.Messagefunc (*ExportDataOperationResponse) Reset
func (x *ExportDataOperationResponse) Reset()func (*ExportDataOperationResponse) String
func (x *ExportDataOperationResponse) String() stringExportDataRequest
type ExportDataRequest struct {
// Required. Dataset resource name, format:
// projects/{project_id}/datasets/{dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Annotated dataset resource name. DataItem in
// Dataset and their annotations in specified annotated dataset will be
// exported. It's in format of
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}
AnnotatedDataset string `protobuf:"bytes,2,opt,name=annotated_dataset,json=annotatedDataset,proto3" json:"annotated_dataset,omitempty"`
// Optional. Filter is not supported at this moment.
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// Required. Specify the output destination.
OutputConfig *OutputConfig `protobuf:"bytes,4,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// Email of the user who started the export task and should be notified by
// email. If empty no notification will be sent.
UserEmailAddress string `protobuf:"bytes,5,opt,name=user_email_address,json=userEmailAddress,proto3" json:"user_email_address,omitempty"`
// contains filtered or unexported fields
}Request message for ExportData API.
func (*ExportDataRequest) Descriptor
func (*ExportDataRequest) Descriptor() ([]byte, []int)Deprecated: Use ExportDataRequest.ProtoReflect.Descriptor instead.
func (*ExportDataRequest) GetAnnotatedDataset
func (x *ExportDataRequest) GetAnnotatedDataset() stringfunc (*ExportDataRequest) GetFilter
func (x *ExportDataRequest) GetFilter() stringfunc (*ExportDataRequest) GetName
func (x *ExportDataRequest) GetName() stringfunc (*ExportDataRequest) GetOutputConfig
func (x *ExportDataRequest) GetOutputConfig() *OutputConfigfunc (*ExportDataRequest) GetUserEmailAddress
func (x *ExportDataRequest) GetUserEmailAddress() stringfunc (*ExportDataRequest) ProtoMessage
func (*ExportDataRequest) ProtoMessage()func (*ExportDataRequest) ProtoReflect
func (x *ExportDataRequest) ProtoReflect() protoreflect.Messagefunc (*ExportDataRequest) Reset
func (x *ExportDataRequest) Reset()func (*ExportDataRequest) String
func (x *ExportDataRequest) String() stringGcsDestination
type GcsDestination struct {
// Required. The output uri of destination file.
OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"`
// Required. The format of the gcs destination. Only "text/csv" and
// "application/json"
// are supported.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// contains filtered or unexported fields
}Export destination of the data.Only gcs path is allowed in output_uri.
func (*GcsDestination) Descriptor
func (*GcsDestination) Descriptor() ([]byte, []int)Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.
func (*GcsDestination) GetMimeType
func (x *GcsDestination) GetMimeType() stringfunc (*GcsDestination) GetOutputUri
func (x *GcsDestination) GetOutputUri() stringfunc (*GcsDestination) ProtoMessage
func (*GcsDestination) ProtoMessage()func (*GcsDestination) ProtoReflect
func (x *GcsDestination) ProtoReflect() protoreflect.Messagefunc (*GcsDestination) Reset
func (x *GcsDestination) Reset()func (*GcsDestination) String
func (x *GcsDestination) String() stringGcsFolderDestination
type GcsFolderDestination struct {
// Required. Cloud Storage directory to export data to.
OutputFolderUri string `protobuf:"bytes,1,opt,name=output_folder_uri,json=outputFolderUri,proto3" json:"output_folder_uri,omitempty"`
// contains filtered or unexported fields
}Export folder destination of the data.
func (*GcsFolderDestination) Descriptor
func (*GcsFolderDestination) Descriptor() ([]byte, []int)Deprecated: Use GcsFolderDestination.ProtoReflect.Descriptor instead.
func (*GcsFolderDestination) GetOutputFolderUri
func (x *GcsFolderDestination) GetOutputFolderUri() stringfunc (*GcsFolderDestination) ProtoMessage
func (*GcsFolderDestination) ProtoMessage()func (*GcsFolderDestination) ProtoReflect
func (x *GcsFolderDestination) ProtoReflect() protoreflect.Messagefunc (*GcsFolderDestination) Reset
func (x *GcsFolderDestination) Reset()func (*GcsFolderDestination) String
func (x *GcsFolderDestination) String() stringGcsSource
type GcsSource struct {
// Required. The input URI of source file. This must be a Cloud Storage path
// (`gs://...`).
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// Required. The format of the source file. Only "text/csv" is supported.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// contains filtered or unexported fields
}Source of the Cloud Storage file to be imported.
func (*GcsSource) Descriptor
Deprecated: Use GcsSource.ProtoReflect.Descriptor instead.
func (*GcsSource) GetInputUri
func (*GcsSource) GetMimeType
func (*GcsSource) ProtoMessage
func (*GcsSource) ProtoMessage()func (*GcsSource) ProtoReflect
func (x *GcsSource) ProtoReflect() protoreflect.Messagefunc (*GcsSource) Reset
func (x *GcsSource) Reset()func (*GcsSource) String
GetAnnotatedDatasetRequest
type GetAnnotatedDatasetRequest struct {
// Required. Name of the annotated dataset to get, format:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetAnnotatedDataset.
func (*GetAnnotatedDatasetRequest) Descriptor
func (*GetAnnotatedDatasetRequest) Descriptor() ([]byte, []int)Deprecated: Use GetAnnotatedDatasetRequest.ProtoReflect.Descriptor instead.
func (*GetAnnotatedDatasetRequest) GetName
func (x *GetAnnotatedDatasetRequest) GetName() stringfunc (*GetAnnotatedDatasetRequest) ProtoMessage
func (*GetAnnotatedDatasetRequest) ProtoMessage()func (*GetAnnotatedDatasetRequest) ProtoReflect
func (x *GetAnnotatedDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*GetAnnotatedDatasetRequest) Reset
func (x *GetAnnotatedDatasetRequest) Reset()func (*GetAnnotatedDatasetRequest) String
func (x *GetAnnotatedDatasetRequest) String() stringGetAnnotationSpecSetRequest
type GetAnnotationSpecSetRequest struct {
// Required. AnnotationSpecSet resource name, format:
// projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetAnnotationSpecSet.
func (*GetAnnotationSpecSetRequest) Descriptor
func (*GetAnnotationSpecSetRequest) Descriptor() ([]byte, []int)Deprecated: Use GetAnnotationSpecSetRequest.ProtoReflect.Descriptor instead.
func (*GetAnnotationSpecSetRequest) GetName
func (x *GetAnnotationSpecSetRequest) GetName() stringfunc (*GetAnnotationSpecSetRequest) ProtoMessage
func (*GetAnnotationSpecSetRequest) ProtoMessage()func (*GetAnnotationSpecSetRequest) ProtoReflect
func (x *GetAnnotationSpecSetRequest) ProtoReflect() protoreflect.Messagefunc (*GetAnnotationSpecSetRequest) Reset
func (x *GetAnnotationSpecSetRequest) Reset()func (*GetAnnotationSpecSetRequest) String
func (x *GetAnnotationSpecSetRequest) String() stringGetDataItemRequest
type GetDataItemRequest struct {
// Required. The name of the data item to get, format:
// 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
}Request message for GetDataItem.
func (*GetDataItemRequest) Descriptor
func (*GetDataItemRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDataItemRequest.ProtoReflect.Descriptor instead.
func (*GetDataItemRequest) GetName
func (x *GetDataItemRequest) GetName() stringfunc (*GetDataItemRequest) ProtoMessage
func (*GetDataItemRequest) ProtoMessage()func (*GetDataItemRequest) ProtoReflect
func (x *GetDataItemRequest) ProtoReflect() protoreflect.Messagefunc (*GetDataItemRequest) Reset
func (x *GetDataItemRequest) Reset()func (*GetDataItemRequest) String
func (x *GetDataItemRequest) String() stringGetDatasetRequest
type GetDatasetRequest struct {
// Required. Dataset resource name, format:
// projects/{project_id}/datasets/{dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetDataSet.
func (*GetDatasetRequest) Descriptor
func (*GetDatasetRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDatasetRequest.ProtoReflect.Descriptor instead.
func (*GetDatasetRequest) GetName
func (x *GetDatasetRequest) GetName() stringfunc (*GetDatasetRequest) ProtoMessage
func (*GetDatasetRequest) ProtoMessage()func (*GetDatasetRequest) ProtoReflect
func (x *GetDatasetRequest) ProtoReflect() protoreflect.Messagefunc (*GetDatasetRequest) Reset
func (x *GetDatasetRequest) Reset()func (*GetDatasetRequest) String
func (x *GetDatasetRequest) String() stringGetEvaluationJobRequest
type GetEvaluationJobRequest struct {
// Required. Name of the evaluation job. Format:
//
// "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetEvaluationJob.
func (*GetEvaluationJobRequest) Descriptor
func (*GetEvaluationJobRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEvaluationJobRequest.ProtoReflect.Descriptor instead.
func (*GetEvaluationJobRequest) GetName
func (x *GetEvaluationJobRequest) GetName() stringfunc (*GetEvaluationJobRequest) ProtoMessage
func (*GetEvaluationJobRequest) ProtoMessage()func (*GetEvaluationJobRequest) ProtoReflect
func (x *GetEvaluationJobRequest) ProtoReflect() protoreflect.Messagefunc (*GetEvaluationJobRequest) Reset
func (x *GetEvaluationJobRequest) Reset()func (*GetEvaluationJobRequest) String
func (x *GetEvaluationJobRequest) String() stringGetEvaluationRequest
type GetEvaluationRequest struct {
// Required. Name of the evaluation. Format:
//
// "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetEvaluation.
func (*GetEvaluationRequest) Descriptor
func (*GetEvaluationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEvaluationRequest.ProtoReflect.Descriptor instead.
func (*GetEvaluationRequest) GetName
func (x *GetEvaluationRequest) GetName() stringfunc (*GetEvaluationRequest) ProtoMessage
func (*GetEvaluationRequest) ProtoMessage()func (*GetEvaluationRequest) ProtoReflect
func (x *GetEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*GetEvaluationRequest) Reset
func (x *GetEvaluationRequest) Reset()func (*GetEvaluationRequest) String
func (x *GetEvaluationRequest) String() stringGetExampleRequest
type GetExampleRequest struct {
// Required. Name of example, format:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}/examples/{example_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An expression for filtering Examples. Filter by
// annotation_spec.display_name is supported. Format
// "annotation_spec.display_name = {display_name}"
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request message for GetExample
func (*GetExampleRequest) Descriptor
func (*GetExampleRequest) Descriptor() ([]byte, []int)Deprecated: Use GetExampleRequest.ProtoReflect.Descriptor instead.
func (*GetExampleRequest) GetFilter
func (x *GetExampleRequest) GetFilter() stringfunc (*GetExampleRequest) GetName
func (x *GetExampleRequest) GetName() stringfunc (*GetExampleRequest) ProtoMessage
func (*GetExampleRequest) ProtoMessage()func (*GetExampleRequest) ProtoReflect
func (x *GetExampleRequest) ProtoReflect() protoreflect.Messagefunc (*GetExampleRequest) Reset
func (x *GetExampleRequest) Reset()func (*GetExampleRequest) String
func (x *GetExampleRequest) String() stringGetInstructionRequest
type GetInstructionRequest struct {
// Required. Instruction resource name, format:
// projects/{project_id}/instructions/{instruction_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetInstruction.
func (*GetInstructionRequest) Descriptor
func (*GetInstructionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetInstructionRequest.ProtoReflect.Descriptor instead.
func (*GetInstructionRequest) GetName
func (x *GetInstructionRequest) GetName() stringfunc (*GetInstructionRequest) ProtoMessage
func (*GetInstructionRequest) ProtoMessage()func (*GetInstructionRequest) ProtoReflect
func (x *GetInstructionRequest) ProtoReflect() protoreflect.Messagefunc (*GetInstructionRequest) Reset
func (x *GetInstructionRequest) Reset()func (*GetInstructionRequest) String
func (x *GetInstructionRequest) String() stringHumanAnnotationConfig
type HumanAnnotationConfig struct {
// Required. Instruction resource name.
Instruction string `protobuf:"bytes,1,opt,name=instruction,proto3" json:"instruction,omitempty"`
// Required. A human-readable name for AnnotatedDataset defined by
// users. Maximum of 64 characters
// .
AnnotatedDatasetDisplayName string `protobuf:"bytes,2,opt,name=annotated_dataset_display_name,json=annotatedDatasetDisplayName,proto3" json:"annotated_dataset_display_name,omitempty"`
// Optional. A human-readable description for AnnotatedDataset.
// The description can be up to 10000 characters long.
AnnotatedDatasetDescription string `protobuf:"bytes,3,opt,name=annotated_dataset_description,json=annotatedDatasetDescription,proto3" json:"annotated_dataset_description,omitempty"`
// Optional. A human-readable label used to logically group labeling tasks.
// This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
LabelGroup string `protobuf:"bytes,4,opt,name=label_group,json=labelGroup,proto3" json:"label_group,omitempty"`
// Optional. The Language of this question, as a
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
// Default value is en-US.
// Only need to set this when task is language related. For example, French
// text classification.
LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Optional. Replication of questions. Each question will be sent to up to
// this number of contributors to label. Aggregated answers will be returned.
// Default is set to 1.
// For image related labeling, valid values are 1, 3, 5.
ReplicaCount int32 `protobuf:"varint,6,opt,name=replica_count,json=replicaCount,proto3" json:"replica_count,omitempty"`
// Optional. Maximum duration for contributors to answer a question. Maximum
// is 3600 seconds. Default is 3600 seconds.
QuestionDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=question_duration,json=questionDuration,proto3" json:"question_duration,omitempty"`
// Optional. If you want your own labeling contributors to manage and work on
// this labeling request, you can set these contributors here. We will give
// them access to the question types in crowdcompute. Note that these
// emails must be registered in crowdcompute worker UI:
// https://crowd-compute.appspot.com/
ContributorEmails []string `protobuf:"bytes,9,rep,name=contributor_emails,json=contributorEmails,proto3" json:"contributor_emails,omitempty"`
// Email of the user who started the labeling task and should be notified by
// email. If empty no notification will be sent.
UserEmailAddress string `protobuf:"bytes,10,opt,name=user_email_address,json=userEmailAddress,proto3" json:"user_email_address,omitempty"`
// contains filtered or unexported fields
}Configuration for how human labeling task should be done.
func (*HumanAnnotationConfig) Descriptor
func (*HumanAnnotationConfig) Descriptor() ([]byte, []int)Deprecated: Use HumanAnnotationConfig.ProtoReflect.Descriptor instead.
func (*HumanAnnotationConfig) GetAnnotatedDatasetDescription
func (x *HumanAnnotationConfig) GetAnnotatedDatasetDescription() stringfunc (*HumanAnnotationConfig) GetAnnotatedDatasetDisplayName
func (x *HumanAnnotationConfig) GetAnnotatedDatasetDisplayName() stringfunc (*HumanAnnotationConfig) GetContributorEmails
func (x *HumanAnnotationConfig) GetContributorEmails() []stringfunc (*HumanAnnotationConfig) GetInstruction
func (x *HumanAnnotationConfig) GetInstruction() stringfunc (*HumanAnnotationConfig) GetLabelGroup
func (x *HumanAnnotationConfig) GetLabelGroup() stringfunc (*HumanAnnotationConfig) GetLanguageCode
func (x *HumanAnnotationConfig) GetLanguageCode() stringfunc (*HumanAnnotationConfig) GetQuestionDuration
func (x *HumanAnnotationConfig) GetQuestionDuration() *durationpb.Durationfunc (*HumanAnnotationConfig) GetReplicaCount
func (x *HumanAnnotationConfig) GetReplicaCount() int32func (*HumanAnnotationConfig) GetUserEmailAddress
func (x *HumanAnnotationConfig) GetUserEmailAddress() stringfunc (*HumanAnnotationConfig) ProtoMessage
func (*HumanAnnotationConfig) ProtoMessage()func (*HumanAnnotationConfig) ProtoReflect
func (x *HumanAnnotationConfig) ProtoReflect() protoreflect.Messagefunc (*HumanAnnotationConfig) Reset
func (x *HumanAnnotationConfig) Reset()func (*HumanAnnotationConfig) String
func (x *HumanAnnotationConfig) String() stringImageBoundingPolyAnnotation
type ImageBoundingPolyAnnotation struct {
// The region of the polygon. If it is a bounding box, it is guaranteed to be
// four points.
//
// Types that are assignable to BoundedArea:
//
// *ImageBoundingPolyAnnotation_BoundingPoly
// *ImageBoundingPolyAnnotation_NormalizedBoundingPoly
BoundedArea isImageBoundingPolyAnnotation_BoundedArea `protobuf_oneof:"bounded_area"`
// Label of object in this bounding polygon.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// contains filtered or unexported fields
}Image bounding poly annotation. It represents a polygon including bounding box in the image.
func (*ImageBoundingPolyAnnotation) Descriptor
func (*ImageBoundingPolyAnnotation) Descriptor() ([]byte, []int)Deprecated: Use ImageBoundingPolyAnnotation.ProtoReflect.Descriptor instead.
func (*ImageBoundingPolyAnnotation) GetAnnotationSpec
func (x *ImageBoundingPolyAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*ImageBoundingPolyAnnotation) GetBoundedArea
func (m *ImageBoundingPolyAnnotation) GetBoundedArea() isImageBoundingPolyAnnotation_BoundedAreafunc (*ImageBoundingPolyAnnotation) GetBoundingPoly
func (x *ImageBoundingPolyAnnotation) GetBoundingPoly() *BoundingPolyfunc (*ImageBoundingPolyAnnotation) GetNormalizedBoundingPoly
func (x *ImageBoundingPolyAnnotation) GetNormalizedBoundingPoly() *NormalizedBoundingPolyfunc (*ImageBoundingPolyAnnotation) ProtoMessage
func (*ImageBoundingPolyAnnotation) ProtoMessage()func (*ImageBoundingPolyAnnotation) ProtoReflect
func (x *ImageBoundingPolyAnnotation) ProtoReflect() protoreflect.Messagefunc (*ImageBoundingPolyAnnotation) Reset
func (x *ImageBoundingPolyAnnotation) Reset()func (*ImageBoundingPolyAnnotation) String
func (x *ImageBoundingPolyAnnotation) String() stringImageBoundingPolyAnnotation_BoundingPoly
type ImageBoundingPolyAnnotation_BoundingPoly struct {
BoundingPoly *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_poly,json=boundingPoly,proto3,oneof"`
}ImageBoundingPolyAnnotation_NormalizedBoundingPoly
type ImageBoundingPolyAnnotation_NormalizedBoundingPoly struct {
NormalizedBoundingPoly *NormalizedBoundingPoly `protobuf:"bytes,3,opt,name=normalized_bounding_poly,json=normalizedBoundingPoly,proto3,oneof"`
}ImageClassificationAnnotation
type ImageClassificationAnnotation struct {
// Label of image.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// contains filtered or unexported fields
}Image classification annotation definition.
func (*ImageClassificationAnnotation) Descriptor
func (*ImageClassificationAnnotation) Descriptor() ([]byte, []int)Deprecated: Use ImageClassificationAnnotation.ProtoReflect.Descriptor instead.
func (*ImageClassificationAnnotation) GetAnnotationSpec
func (x *ImageClassificationAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*ImageClassificationAnnotation) ProtoMessage
func (*ImageClassificationAnnotation) ProtoMessage()func (*ImageClassificationAnnotation) ProtoReflect
func (x *ImageClassificationAnnotation) ProtoReflect() protoreflect.Messagefunc (*ImageClassificationAnnotation) Reset
func (x *ImageClassificationAnnotation) Reset()func (*ImageClassificationAnnotation) String
func (x *ImageClassificationAnnotation) String() stringImageClassificationConfig
type ImageClassificationConfig 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. If allow_multi_label is true, contributors are able to choose
// multiple labels for one image.
AllowMultiLabel bool `protobuf:"varint,2,opt,name=allow_multi_label,json=allowMultiLabel,proto3" json:"allow_multi_label,omitempty"`
// Optional. The type of how to aggregate answers.
AnswerAggregationType StringAggregationType `protobuf:"varint,3,opt,name=answer_aggregation_type,json=answerAggregationType,proto3,enum=google.cloud.datalabeling.v1beta1.StringAggregationType" json:"answer_aggregation_type,omitempty"`
// contains filtered or unexported fields
}Config for image classification human labeling task.
func (*ImageClassificationConfig) Descriptor
func (*ImageClassificationConfig) Descriptor() ([]byte, []int)Deprecated: Use ImageClassificationConfig.ProtoReflect.Descriptor instead.
func (*ImageClassificationConfig) GetAllowMultiLabel
func (x *ImageClassificationConfig) GetAllowMultiLabel() boolfunc (*ImageClassificationConfig) GetAnnotationSpecSet
func (x *ImageClassificationConfig) GetAnnotationSpecSet() stringfunc (*ImageClassificationConfig) GetAnswerAggregationType
func (x *ImageClassificationConfig) GetAnswerAggregationType() StringAggregationTypefunc (*ImageClassificationConfig) ProtoMessage
func (*ImageClassificationConfig) ProtoMessage()func (*ImageClassificationConfig) ProtoReflect
func (x *ImageClassificationConfig) ProtoReflect() protoreflect.Messagefunc (*ImageClassificationConfig) Reset
func (x *ImageClassificationConfig) Reset()func (*ImageClassificationConfig) String
func (x *ImageClassificationConfig) String() stringImagePayload
type ImagePayload struct {
// Image format.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// A byte string of a thumbnail image.
ImageThumbnail []byte `protobuf:"bytes,2,opt,name=image_thumbnail,json=imageThumbnail,proto3" json:"image_thumbnail,omitempty"`
// Image uri from the user bucket.
ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
// Signed uri of the image file in the service bucket.
SignedUri string `protobuf:"bytes,4,opt,name=signed_uri,json=signedUri,proto3" json:"signed_uri,omitempty"`
// contains filtered or unexported fields
}Container of information about an image.
func (*ImagePayload) Descriptor
func (*ImagePayload) Descriptor() ([]byte, []int)Deprecated: Use ImagePayload.ProtoReflect.Descriptor instead.
func (*ImagePayload) GetImageThumbnail
func (x *ImagePayload) GetImageThumbnail() []bytefunc (*ImagePayload) GetImageUri
func (x *ImagePayload) GetImageUri() stringfunc (*ImagePayload) GetMimeType
func (x *ImagePayload) GetMimeType() stringfunc (*ImagePayload) GetSignedUri
func (x *ImagePayload) GetSignedUri() stringfunc (*ImagePayload) ProtoMessage
func (*ImagePayload) ProtoMessage()func (*ImagePayload) ProtoReflect
func (x *ImagePayload) ProtoReflect() protoreflect.Messagefunc (*ImagePayload) Reset
func (x *ImagePayload) Reset()func (*ImagePayload) String
func (x *ImagePayload) String() stringImagePolylineAnnotation
type ImagePolylineAnnotation struct {
// Types that are assignable to Poly:
//
// *ImagePolylineAnnotation_Polyline
// *ImagePolylineAnnotation_NormalizedPolyline
Poly isImagePolylineAnnotation_Poly `protobuf_oneof:"poly"`
// Label of this polyline.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// contains filtered or unexported fields
}A polyline for the image annotation.
func (*ImagePolylineAnnotation) Descriptor
func (*ImagePolylineAnnotation) Descriptor() ([]byte, []int)Deprecated: Use ImagePolylineAnnotation.ProtoReflect.Descriptor instead.
func (*ImagePolylineAnnotation) GetAnnotationSpec
func (x *ImagePolylineAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*ImagePolylineAnnotation) GetNormalizedPolyline
func (x *ImagePolylineAnnotation) GetNormalizedPolyline() *NormalizedPolylinefunc (*ImagePolylineAnnotation) GetPoly
func (m *ImagePolylineAnnotation) GetPoly() isImagePolylineAnnotation_Polyfunc (*ImagePolylineAnnotation) GetPolyline
func (x *ImagePolylineAnnotation) GetPolyline() *Polylinefunc (*ImagePolylineAnnotation) ProtoMessage
func (*ImagePolylineAnnotation) ProtoMessage()func (*ImagePolylineAnnotation) ProtoReflect
func (x *ImagePolylineAnnotation) ProtoReflect() protoreflect.Messagefunc (*ImagePolylineAnnotation) Reset
func (x *ImagePolylineAnnotation) Reset()func (*ImagePolylineAnnotation) String
func (x *ImagePolylineAnnotation) String() stringImagePolylineAnnotation_NormalizedPolyline
type ImagePolylineAnnotation_NormalizedPolyline struct {
NormalizedPolyline *NormalizedPolyline `protobuf:"bytes,3,opt,name=normalized_polyline,json=normalizedPolyline,proto3,oneof"`
}ImagePolylineAnnotation_Polyline
type ImagePolylineAnnotation_Polyline struct {
Polyline *Polyline `protobuf:"bytes,2,opt,name=polyline,proto3,oneof"`
}ImageSegmentationAnnotation
type ImageSegmentationAnnotation struct {
// The mapping between rgb color and annotation spec. The key is the rgb
// color represented in format of rgb(0, 0, 0). The value is the
// AnnotationSpec.
AnnotationColors map[string]*AnnotationSpec `protobuf:"bytes,1,rep,name=annotation_colors,json=annotationColors,proto3" json:"annotation_colors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Image format.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// A byte string of a full image's color map.
ImageBytes []byte `protobuf:"bytes,3,opt,name=image_bytes,json=imageBytes,proto3" json:"image_bytes,omitempty"`
// contains filtered or unexported fields
}Image segmentation annotation.
func (*ImageSegmentationAnnotation) Descriptor
func (*ImageSegmentationAnnotation) Descriptor() ([]byte, []int)Deprecated: Use ImageSegmentationAnnotation.ProtoReflect.Descriptor instead.
func (*ImageSegmentationAnnotation) GetAnnotationColors
func (x *ImageSegmentationAnnotation) GetAnnotationColors() map[string]*AnnotationSpecfunc (*ImageSegmentationAnnotation) GetImageBytes
func (x *ImageSegmentationAnnotation) GetImageBytes() []bytefunc (*ImageSegmentationAnnotation) GetMimeType
func (x *ImageSegmentationAnnotation) GetMimeType() stringfunc (*ImageSegmentationAnnotation) ProtoMessage
func (*ImageSegmentationAnnotation) ProtoMessage()func (*ImageSegmentationAnnotation) ProtoReflect
func (x *ImageSegmentationAnnotation) ProtoReflect() protoreflect.Messagefunc (*ImageSegmentationAnnotation) Reset
func (x *ImageSegmentationAnnotation) Reset()func (*ImageSegmentationAnnotation) String
func (x *ImageSegmentationAnnotation) String() stringImportDataOperationMetadata
type ImportDataOperationMetadata struct {
// Output only. The name of imported dataset.
// "projects/*/datasets/*"
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Output only. 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"`
// Output only. Timestamp when import dataset 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 an ImportData operation.
func (*ImportDataOperationMetadata) Descriptor
func (*ImportDataOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use ImportDataOperationMetadata.ProtoReflect.Descriptor instead.
func (*ImportDataOperationMetadata) GetCreateTime
func (x *ImportDataOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*ImportDataOperationMetadata) GetDataset
func (x *ImportDataOperationMetadata) GetDataset() stringfunc (*ImportDataOperationMetadata) GetPartialFailures
func (x *ImportDataOperationMetadata) GetPartialFailures() []*status.Statusfunc (*ImportDataOperationMetadata) ProtoMessage
func (*ImportDataOperationMetadata) ProtoMessage()func (*ImportDataOperationMetadata) ProtoReflect
func (x *ImportDataOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*ImportDataOperationMetadata) Reset
func (x *ImportDataOperationMetadata) Reset()func (*ImportDataOperationMetadata) String
func (x *ImportDataOperationMetadata) String() stringImportDataOperationResponse
type ImportDataOperationResponse struct {
// Ouptut only. The name of imported dataset.
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Output only. Total number of examples requested to import
TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// Output only. Number of examples imported successfully.
ImportCount int32 `protobuf:"varint,3,opt,name=import_count,json=importCount,proto3" json:"import_count,omitempty"`
// contains filtered or unexported fields
}Response used for ImportData longrunning operation.
func (*ImportDataOperationResponse) Descriptor
func (*ImportDataOperationResponse) Descriptor() ([]byte, []int)Deprecated: Use ImportDataOperationResponse.ProtoReflect.Descriptor instead.
func (*ImportDataOperationResponse) GetDataset
func (x *ImportDataOperationResponse) GetDataset() stringfunc (*ImportDataOperationResponse) GetImportCount
func (x *ImportDataOperationResponse) GetImportCount() int32func (*ImportDataOperationResponse) GetTotalCount
func (x *ImportDataOperationResponse) GetTotalCount() int32func (*ImportDataOperationResponse) ProtoMessage
func (*ImportDataOperationResponse) ProtoMessage()func (*ImportDataOperationResponse) ProtoReflect
func (x *ImportDataOperationResponse) ProtoReflect() protoreflect.Messagefunc (*ImportDataOperationResponse) Reset
func (x *ImportDataOperationResponse) Reset()func (*ImportDataOperationResponse) String
func (x *ImportDataOperationResponse) String() stringImportDataRequest
type ImportDataRequest struct {
// Required. Dataset resource name, format:
// projects/{project_id}/datasets/{dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Specify the input source of the data.
InputConfig *InputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
// Email of the user who started the import task and should be notified by
// email. If empty no notification will be sent.
UserEmailAddress string `protobuf:"bytes,3,opt,name=user_email_address,json=userEmailAddress,proto3" json:"user_email_address,omitempty"`
// contains filtered or unexported fields
}Request message for ImportData API.
func (*ImportDataRequest) Descriptor
func (*ImportDataRequest) Descriptor() ([]byte, []int)Deprecated: Use ImportDataRequest.ProtoReflect.Descriptor instead.
func (*ImportDataRequest) GetInputConfig
func (x *ImportDataRequest) GetInputConfig() *InputConfigfunc (*ImportDataRequest) GetName
func (x *ImportDataRequest) GetName() stringfunc (*ImportDataRequest) GetUserEmailAddress
func (x *ImportDataRequest) GetUserEmailAddress() stringfunc (*ImportDataRequest) ProtoMessage
func (*ImportDataRequest) ProtoMessage()func (*ImportDataRequest) ProtoReflect
func (x *ImportDataRequest) ProtoReflect() protoreflect.Messagefunc (*ImportDataRequest) Reset
func (x *ImportDataRequest) Reset()func (*ImportDataRequest) String
func (x *ImportDataRequest) String() stringInputConfig
type InputConfig struct {
// Optional. The metadata associated with each data type.
//
// Types that are assignable to DataTypeMetadata:
//
// *InputConfig_TextMetadata
DataTypeMetadata isInputConfig_DataTypeMetadata `protobuf_oneof:"data_type_metadata"`
// Required. Where the data is from.
//
// Types that are assignable to Source:
//
// *InputConfig_GcsSource
// *InputConfig_BigquerySource
Source isInputConfig_Source `protobuf_oneof:"source"`
// Required. Data type must be specifed when user tries to import data.
DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,proto3,enum=google.cloud.datalabeling.v1beta1.DataType" json:"data_type,omitempty"`
// Optional. The type of annotation to be performed on this data. You must
// specify this field if you are using this InputConfig in an
// [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
AnnotationType AnnotationType `protobuf:"varint,3,opt,name=annotation_type,json=annotationType,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationType" json:"annotation_type,omitempty"`
// Optional. Metadata about annotations for the input. You must specify this
// field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
// model version that performs classification.
ClassificationMetadata *ClassificationMetadata `protobuf:"bytes,4,opt,name=classification_metadata,json=classificationMetadata,proto3" json:"classification_metadata,omitempty"`
// contains filtered or unexported fields
}The configuration of input data, including data type, location, etc.
func (*InputConfig) Descriptor
func (*InputConfig) Descriptor() ([]byte, []int)Deprecated: Use InputConfig.ProtoReflect.Descriptor instead.
func (*InputConfig) GetAnnotationType
func (x *InputConfig) GetAnnotationType() AnnotationTypefunc (*InputConfig) GetBigquerySource
func (x *InputConfig) GetBigquerySource() *BigQuerySourcefunc (*InputConfig) GetClassificationMetadata
func (x *InputConfig) GetClassificationMetadata() *ClassificationMetadatafunc (*InputConfig) GetDataType
func (x *InputConfig) GetDataType() DataTypefunc (*InputConfig) GetDataTypeMetadata
func (m *InputConfig) GetDataTypeMetadata() isInputConfig_DataTypeMetadatafunc (*InputConfig) GetGcsSource
func (x *InputConfig) GetGcsSource() *GcsSourcefunc (*InputConfig) GetSource
func (m *InputConfig) GetSource() isInputConfig_Sourcefunc (*InputConfig) GetTextMetadata
func (x *InputConfig) GetTextMetadata() *TextMetadatafunc (*InputConfig) ProtoMessage
func (*InputConfig) ProtoMessage()func (*InputConfig) ProtoReflect
func (x *InputConfig) ProtoReflect() protoreflect.Messagefunc (*InputConfig) Reset
func (x *InputConfig) Reset()func (*InputConfig) String
func (x *InputConfig) String() stringInputConfig_BigquerySource
type InputConfig_BigquerySource struct {
// Source located in BigQuery. You must specify this field if you are using
// this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
BigquerySource *BigQuerySource `protobuf:"bytes,5,opt,name=bigquery_source,json=bigquerySource,proto3,oneof"`
}InputConfig_GcsSource
type InputConfig_GcsSource struct {
// Source located in Cloud Storage.
GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}InputConfig_TextMetadata
type InputConfig_TextMetadata struct {
// Required for text import, as language code must be specified.
TextMetadata *TextMetadata `protobuf:"bytes,6,opt,name=text_metadata,json=textMetadata,proto3,oneof"`
}Instruction
type Instruction struct {
// Output only. Instruction resource name, format:
// projects/{project_id}/instructions/{instruction_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the instruction. 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 instruction.
// The description can be up to 10000 characters long.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Creation time of instruction.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Last update time of instruction.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Required. The data type of this instruction.
DataType DataType `protobuf:"varint,6,opt,name=data_type,json=dataType,proto3,enum=google.cloud.datalabeling.v1beta1.DataType" json:"data_type,omitempty"`
// Deprecated: this instruction format is not supported any more.
// Instruction from a CSV file, such as for classification task.
// The CSV file should have exact two columns, in the following format:
//
// * The first column is labeled data, such as an image reference, text.
// * The second column is comma separated labels associated with data.
//
// Deprecated: Marked as deprecated in google/cloud/datalabeling/v1beta1/instruction.proto.
CsvInstruction *CsvInstruction `protobuf:"bytes,7,opt,name=csv_instruction,json=csvInstruction,proto3" json:"csv_instruction,omitempty"`
// Instruction from a PDF document. The PDF should be in a Cloud Storage
// bucket.
PdfInstruction *PdfInstruction `protobuf:"bytes,9,opt,name=pdf_instruction,json=pdfInstruction,proto3" json:"pdf_instruction,omitempty"`
// Output only. The names of any related resources that are blocking changes
// to the instruction.
BlockingResources []string `protobuf:"bytes,10,rep,name=blocking_resources,json=blockingResources,proto3" json:"blocking_resources,omitempty"`
// contains filtered or unexported fields
}Instruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported.
func (*Instruction) Descriptor
func (*Instruction) Descriptor() ([]byte, []int)Deprecated: Use Instruction.ProtoReflect.Descriptor instead.
func (*Instruction) GetBlockingResources
func (x *Instruction) GetBlockingResources() []stringfunc (*Instruction) GetCreateTime
func (x *Instruction) GetCreateTime() *timestamppb.Timestampfunc (*Instruction) GetCsvInstruction
func (x *Instruction) GetCsvInstruction() *CsvInstructionDeprecated: Marked as deprecated in google/cloud/datalabeling/v1beta1/instruction.proto.
func (*Instruction) GetDataType
func (x *Instruction) GetDataType() DataTypefunc (*Instruction) GetDescription
func (x *Instruction) GetDescription() stringfunc (*Instruction) GetDisplayName
func (x *Instruction) GetDisplayName() stringfunc (*Instruction) GetName
func (x *Instruction) GetName() stringfunc (*Instruction) GetPdfInstruction
func (x *Instruction) GetPdfInstruction() *PdfInstructionfunc (*Instruction) GetUpdateTime
func (x *Instruction) GetUpdateTime() *timestamppb.Timestampfunc (*Instruction) ProtoMessage
func (*Instruction) ProtoMessage()func (*Instruction) ProtoReflect
func (x *Instruction) ProtoReflect() protoreflect.Messagefunc (*Instruction) Reset
func (x *Instruction) Reset()func (*Instruction) String
func (x *Instruction) String() stringLabelImageBoundingBoxOperationMetadata
type LabelImageBoundingBoxOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelImageBoundingBox operation metadata.
func (*LabelImageBoundingBoxOperationMetadata) Descriptor
func (*LabelImageBoundingBoxOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelImageBoundingBoxOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelImageBoundingBoxOperationMetadata) GetBasicConfig
func (x *LabelImageBoundingBoxOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelImageBoundingBoxOperationMetadata) ProtoMessage
func (*LabelImageBoundingBoxOperationMetadata) ProtoMessage()func (*LabelImageBoundingBoxOperationMetadata) ProtoReflect
func (x *LabelImageBoundingBoxOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelImageBoundingBoxOperationMetadata) Reset
func (x *LabelImageBoundingBoxOperationMetadata) Reset()func (*LabelImageBoundingBoxOperationMetadata) String
func (x *LabelImageBoundingBoxOperationMetadata) String() stringLabelImageBoundingPolyOperationMetadata
type LabelImageBoundingPolyOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of LabelImageBoundingPoly operation metadata.
func (*LabelImageBoundingPolyOperationMetadata) Descriptor
func (*LabelImageBoundingPolyOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelImageBoundingPolyOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelImageBoundingPolyOperationMetadata) GetBasicConfig
func (x *LabelImageBoundingPolyOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelImageBoundingPolyOperationMetadata) ProtoMessage
func (*LabelImageBoundingPolyOperationMetadata) ProtoMessage()func (*LabelImageBoundingPolyOperationMetadata) ProtoReflect
func (x *LabelImageBoundingPolyOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelImageBoundingPolyOperationMetadata) Reset
func (x *LabelImageBoundingPolyOperationMetadata) Reset()func (*LabelImageBoundingPolyOperationMetadata) String
func (x *LabelImageBoundingPolyOperationMetadata) String() stringLabelImageClassificationOperationMetadata
type LabelImageClassificationOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Metadata of a LabelImageClassification operation.
func (*LabelImageClassificationOperationMetadata) Descriptor
func (*LabelImageClassificationOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelImageClassificationOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelImageClassificationOperationMetadata) GetBasicConfig
func (x *LabelImageClassificationOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelImageClassificationOperationMetadata) ProtoMessage
func (*LabelImageClassificationOperationMetadata) ProtoMessage()func (*LabelImageClassificationOperationMetadata) ProtoReflect
func (x *LabelImageClassificationOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelImageClassificationOperationMetadata) Reset
func (x *LabelImageClassificationOperationMetadata) Reset()func (*LabelImageClassificationOperationMetadata) String
func (x *LabelImageClassificationOperationMetadata) String() stringLabelImageOrientedBoundingBoxOperationMetadata
type LabelImageOrientedBoundingBoxOperationMetadata struct {
// Basic human annotation config.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelImageOrientedBoundingBox operation metadata.
func (*LabelImageOrientedBoundingBoxOperationMetadata) Descriptor
func (*LabelImageOrientedBoundingBoxOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelImageOrientedBoundingBoxOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelImageOrientedBoundingBoxOperationMetadata) GetBasicConfig
func (x *LabelImageOrientedBoundingBoxOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelImageOrientedBoundingBoxOperationMetadata) ProtoMessage
func (*LabelImageOrientedBoundingBoxOperationMetadata) ProtoMessage()func (*LabelImageOrientedBoundingBoxOperationMetadata) ProtoReflect
func (x *LabelImageOrientedBoundingBoxOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelImageOrientedBoundingBoxOperationMetadata) Reset
func (x *LabelImageOrientedBoundingBoxOperationMetadata) Reset()func (*LabelImageOrientedBoundingBoxOperationMetadata) String
func (x *LabelImageOrientedBoundingBoxOperationMetadata) String() stringLabelImagePolylineOperationMetadata
type LabelImagePolylineOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of LabelImagePolyline operation metadata.
func (*LabelImagePolylineOperationMetadata) Descriptor
func (*LabelImagePolylineOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelImagePolylineOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelImagePolylineOperationMetadata) GetBasicConfig
func (x *LabelImagePolylineOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelImagePolylineOperationMetadata) ProtoMessage
func (*LabelImagePolylineOperationMetadata) ProtoMessage()func (*LabelImagePolylineOperationMetadata) ProtoReflect
func (x *LabelImagePolylineOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelImagePolylineOperationMetadata) Reset
func (x *LabelImagePolylineOperationMetadata) Reset()func (*LabelImagePolylineOperationMetadata) String
func (x *LabelImagePolylineOperationMetadata) String() stringLabelImageRequest
type LabelImageRequest struct {
// Required. Config for labeling tasks. The type of request config must
// match the selected feature.
//
// Types that are assignable to RequestConfig:
//
// *LabelImageRequest_ImageClassificationConfig
// *LabelImageRequest_BoundingPolyConfig
// *LabelImageRequest_PolylineConfig
// *LabelImageRequest_SegmentationConfig
RequestConfig isLabelImageRequest_RequestConfig `protobuf_oneof:"request_config"`
// Required. Name of the dataset to request labeling task, format:
// projects/{project_id}/datasets/{dataset_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Basic human annotation config.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,2,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// Required. The type of image labeling task.
Feature LabelImageRequest_Feature `protobuf:"varint,3,opt,name=feature,proto3,enum=google.cloud.datalabeling.v1beta1.LabelImageRequest_Feature" json:"feature,omitempty"`
// contains filtered or unexported fields
}Request message for starting an image labeling task.
func (*LabelImageRequest) Descriptor
func (*LabelImageRequest) Descriptor() ([]byte, []int)Deprecated: Use LabelImageRequest.ProtoReflect.Descriptor instead.
func (*LabelImageRequest) GetBasicConfig
func (x *LabelImageRequest) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelImageRequest) GetBoundingPolyConfig
func (x *LabelImageRequest) GetBoundingPolyConfig() *BoundingPolyConfigfunc (*LabelImageRequest) GetFeature
func (x *LabelImageRequest) GetFeature() LabelImageRequest_Featurefunc (*LabelImageRequest) GetImageClassificationConfig
func (x *LabelImageRequest) GetImageClassificationConfig() *ImageClassificationConfigfunc (*LabelImageRequest) GetParent
func (x *LabelImageRequest) GetParent() stringfunc (*LabelImageRequest) GetPolylineConfig
func (x *LabelImageRequest) GetPolylineConfig() *PolylineConfigfunc (*LabelImageRequest) GetRequestConfig
func (m *LabelImageRequest) GetRequestConfig() isLabelImageRequest_RequestConfigfunc (*LabelImageRequest) GetSegmentationConfig
func (x *LabelImageRequest) GetSegmentationConfig() *SegmentationConfigfunc (*LabelImageRequest) ProtoMessage
func (*LabelImageRequest) ProtoMessage()func (*LabelImageRequest) ProtoReflect
func (x *LabelImageRequest) ProtoReflect() protoreflect.Messagefunc (*LabelImageRequest) Reset
func (x *LabelImageRequest) Reset()func (*LabelImageRequest) String
func (x *LabelImageRequest) String() stringLabelImageRequest_BoundingPolyConfig
type LabelImageRequest_BoundingPolyConfig struct {
// Configuration for bounding box and bounding poly task.
// One of image_classification_config, bounding_poly_config,
// polyline_config and segmentation_config are required.
BoundingPolyConfig *BoundingPolyConfig `protobuf:"bytes,5,opt,name=bounding_poly_config,json=boundingPolyConfig,proto3,oneof"`
}LabelImageRequest_Feature
type LabelImageRequest_Feature int32Image labeling task feature.
LabelImageRequest_FEATURE_UNSPECIFIED, LabelImageRequest_CLASSIFICATION, LabelImageRequest_BOUNDING_BOX, LabelImageRequest_ORIENTED_BOUNDING_BOX, LabelImageRequest_BOUNDING_POLY, LabelImageRequest_POLYLINE, LabelImageRequest_SEGMENTATION
const (
LabelImageRequest_FEATURE_UNSPECIFIED LabelImageRequest_Feature = 0
// Label whole image with one or more of labels.
LabelImageRequest_CLASSIFICATION LabelImageRequest_Feature = 1
// Label image with bounding boxes for labels.
LabelImageRequest_BOUNDING_BOX LabelImageRequest_Feature = 2
// Label oriented bounding box. The box does not have to be parallel to
// horizontal line.
LabelImageRequest_ORIENTED_BOUNDING_BOX LabelImageRequest_Feature = 6
// Label images with bounding poly. A bounding poly is a plane figure that
// is bounded by a finite chain of straight line segments closing in a loop.
LabelImageRequest_BOUNDING_POLY LabelImageRequest_Feature = 3
// Label images with polyline. Polyline is formed by connected line segments
// which are not in closed form.
LabelImageRequest_POLYLINE LabelImageRequest_Feature = 4
// Label images with segmentation. Segmentation is different from bounding
// poly since it is more fine-grained, pixel level annotation.
LabelImageRequest_SEGMENTATION LabelImageRequest_Feature = 5
)func (LabelImageRequest_Feature) Descriptor
func (LabelImageRequest_Feature) Descriptor() protoreflect.EnumDescriptorfunc (LabelImageRequest_Feature) Enum
func (x LabelImageRequest_Feature) Enum() *LabelImageRequest_Featurefunc (LabelImageRequest_Feature) EnumDescriptor
func (LabelImageRequest_Feature) EnumDescriptor() ([]byte, []int)Deprecated: Use LabelImageRequest_Feature.Descriptor instead.
func (LabelImageRequest_Feature) Number
func (x LabelImageRequest_Feature) Number() protoreflect.EnumNumberfunc (LabelImageRequest_Feature) String
func (x LabelImageRequest_Feature) String() stringfunc (LabelImageRequest_Feature) Type
func (LabelImageRequest_Feature) Type() protoreflect.EnumTypeLabelImageRequest_ImageClassificationConfig
type LabelImageRequest_ImageClassificationConfig struct {
// Configuration for image classification task.
// One of image_classification_config, bounding_poly_config,
// polyline_config and segmentation_config are required.
ImageClassificationConfig *ImageClassificationConfig `protobuf:"bytes,4,opt,name=image_classification_config,json=imageClassificationConfig,proto3,oneof"`
}LabelImageRequest_PolylineConfig
type LabelImageRequest_PolylineConfig struct {
// Configuration for polyline task.
// One of image_classification_config, bounding_poly_config,
// polyline_config and segmentation_config are required.
PolylineConfig *PolylineConfig `protobuf:"bytes,6,opt,name=polyline_config,json=polylineConfig,proto3,oneof"`
}LabelImageRequest_SegmentationConfig
type LabelImageRequest_SegmentationConfig struct {
// Configuration for segmentation task.
// One of image_classification_config, bounding_poly_config,
// polyline_config and segmentation_config are required.
SegmentationConfig *SegmentationConfig `protobuf:"bytes,7,opt,name=segmentation_config,json=segmentationConfig,proto3,oneof"`
}LabelImageSegmentationOperationMetadata
type LabelImageSegmentationOperationMetadata struct {
// Basic human annotation config.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelImageSegmentation operation metadata.
func (*LabelImageSegmentationOperationMetadata) Descriptor
func (*LabelImageSegmentationOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelImageSegmentationOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelImageSegmentationOperationMetadata) GetBasicConfig
func (x *LabelImageSegmentationOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelImageSegmentationOperationMetadata) ProtoMessage
func (*LabelImageSegmentationOperationMetadata) ProtoMessage()func (*LabelImageSegmentationOperationMetadata) ProtoReflect
func (x *LabelImageSegmentationOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelImageSegmentationOperationMetadata) Reset
func (x *LabelImageSegmentationOperationMetadata) Reset()func (*LabelImageSegmentationOperationMetadata) String
func (x *LabelImageSegmentationOperationMetadata) String() stringLabelOperationMetadata
type LabelOperationMetadata struct {
// Ouptut only. Details of specific label operation.
//
// Types that are assignable to Details:
//
// *LabelOperationMetadata_ImageClassificationDetails
// *LabelOperationMetadata_ImageBoundingBoxDetails
// *LabelOperationMetadata_ImageBoundingPolyDetails
// *LabelOperationMetadata_ImageOrientedBoundingBoxDetails
// *LabelOperationMetadata_ImagePolylineDetails
// *LabelOperationMetadata_ImageSegmentationDetails
// *LabelOperationMetadata_VideoClassificationDetails
// *LabelOperationMetadata_VideoObjectDetectionDetails
// *LabelOperationMetadata_VideoObjectTrackingDetails
// *LabelOperationMetadata_VideoEventDetails
// *LabelOperationMetadata_TextClassificationDetails
// *LabelOperationMetadata_TextEntityExtractionDetails
Details isLabelOperationMetadata_Details `protobuf_oneof:"details"`
// Output only. Progress of label operation. Range: [0, 100].
ProgressPercent int32 `protobuf:"varint,1,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
// Output only. 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"`
// Output only. Timestamp when labeling request was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Metadata of a labeling operation, such as LabelImage or LabelVideo. Next tag: 20
func (*LabelOperationMetadata) Descriptor
func (*LabelOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelOperationMetadata) GetCreateTime
func (x *LabelOperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*LabelOperationMetadata) GetDetails
func (m *LabelOperationMetadata) GetDetails() isLabelOperationMetadata_Detailsfunc (*LabelOperationMetadata) GetImageBoundingBoxDetails
func (x *LabelOperationMetadata) GetImageBoundingBoxDetails() *LabelImageBoundingBoxOperationMetadatafunc (*LabelOperationMetadata) GetImageBoundingPolyDetails
func (x *LabelOperationMetadata) GetImageBoundingPolyDetails() *LabelImageBoundingPolyOperationMetadatafunc (*LabelOperationMetadata) GetImageClassificationDetails
func (x *LabelOperationMetadata) GetImageClassificationDetails() *LabelImageClassificationOperationMetadatafunc (*LabelOperationMetadata) GetImageOrientedBoundingBoxDetails
func (x *LabelOperationMetadata) GetImageOrientedBoundingBoxDetails() *LabelImageOrientedBoundingBoxOperationMetadatafunc (*LabelOperationMetadata) GetImagePolylineDetails
func (x *LabelOperationMetadata) GetImagePolylineDetails() *LabelImagePolylineOperationMetadatafunc (*LabelOperationMetadata) GetImageSegmentationDetails
func (x *LabelOperationMetadata) GetImageSegmentationDetails() *LabelImageSegmentationOperationMetadatafunc (*LabelOperationMetadata) GetPartialFailures
func (x *LabelOperationMetadata) GetPartialFailures() []*status.Statusfunc (*LabelOperationMetadata) GetProgressPercent
func (x *LabelOperationMetadata) GetProgressPercent() int32func (*LabelOperationMetadata) GetTextClassificationDetails
func (x *LabelOperationMetadata) GetTextClassificationDetails() *LabelTextClassificationOperationMetadatafunc (*LabelOperationMetadata) GetTextEntityExtractionDetails
func (x *LabelOperationMetadata) GetTextEntityExtractionDetails() *LabelTextEntityExtractionOperationMetadatafunc (*LabelOperationMetadata) GetVideoClassificationDetails
func (x *LabelOperationMetadata) GetVideoClassificationDetails() *LabelVideoClassificationOperationMetadatafunc (*LabelOperationMetadata) GetVideoEventDetails
func (x *LabelOperationMetadata) GetVideoEventDetails() *LabelVideoEventOperationMetadatafunc (*LabelOperationMetadata) GetVideoObjectDetectionDetails
func (x *LabelOperationMetadata) GetVideoObjectDetectionDetails() *LabelVideoObjectDetectionOperationMetadatafunc (*LabelOperationMetadata) GetVideoObjectTrackingDetails
func (x *LabelOperationMetadata) GetVideoObjectTrackingDetails() *LabelVideoObjectTrackingOperationMetadatafunc (*LabelOperationMetadata) ProtoMessage
func (*LabelOperationMetadata) ProtoMessage()func (*LabelOperationMetadata) ProtoReflect
func (x *LabelOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelOperationMetadata) Reset
func (x *LabelOperationMetadata) Reset()func (*LabelOperationMetadata) String
func (x *LabelOperationMetadata) String() stringLabelOperationMetadata_ImageBoundingBoxDetails
type LabelOperationMetadata_ImageBoundingBoxDetails struct {
// Details of label image bounding box operation.
ImageBoundingBoxDetails *LabelImageBoundingBoxOperationMetadata `protobuf:"bytes,4,opt,name=image_bounding_box_details,json=imageBoundingBoxDetails,proto3,oneof"`
}LabelOperationMetadata_ImageBoundingPolyDetails
type LabelOperationMetadata_ImageBoundingPolyDetails struct {
// Details of label image bounding poly operation.
ImageBoundingPolyDetails *LabelImageBoundingPolyOperationMetadata `protobuf:"bytes,11,opt,name=image_bounding_poly_details,json=imageBoundingPolyDetails,proto3,oneof"`
}LabelOperationMetadata_ImageClassificationDetails
type LabelOperationMetadata_ImageClassificationDetails struct {
// Details of label image classification operation.
ImageClassificationDetails *LabelImageClassificationOperationMetadata `protobuf:"bytes,3,opt,name=image_classification_details,json=imageClassificationDetails,proto3,oneof"`
}LabelOperationMetadata_ImageOrientedBoundingBoxDetails
type LabelOperationMetadata_ImageOrientedBoundingBoxDetails struct {
// Details of label image oriented bounding box operation.
ImageOrientedBoundingBoxDetails *LabelImageOrientedBoundingBoxOperationMetadata `protobuf:"bytes,14,opt,name=image_oriented_bounding_box_details,json=imageOrientedBoundingBoxDetails,proto3,oneof"`
}LabelOperationMetadata_ImagePolylineDetails
type LabelOperationMetadata_ImagePolylineDetails struct {
// Details of label image polyline operation.
ImagePolylineDetails *LabelImagePolylineOperationMetadata `protobuf:"bytes,12,opt,name=image_polyline_details,json=imagePolylineDetails,proto3,oneof"`
}LabelOperationMetadata_ImageSegmentationDetails
type LabelOperationMetadata_ImageSegmentationDetails struct {
// Details of label image segmentation operation.
ImageSegmentationDetails *LabelImageSegmentationOperationMetadata `protobuf:"bytes,15,opt,name=image_segmentation_details,json=imageSegmentationDetails,proto3,oneof"`
}LabelOperationMetadata_TextClassificationDetails
type LabelOperationMetadata_TextClassificationDetails struct {
// Details of label text classification operation.
TextClassificationDetails *LabelTextClassificationOperationMetadata `protobuf:"bytes,9,opt,name=text_classification_details,json=textClassificationDetails,proto3,oneof"`
}LabelOperationMetadata_TextEntityExtractionDetails
type LabelOperationMetadata_TextEntityExtractionDetails struct {
// Details of label text entity extraction operation.
TextEntityExtractionDetails *LabelTextEntityExtractionOperationMetadata `protobuf:"bytes,13,opt,name=text_entity_extraction_details,json=textEntityExtractionDetails,proto3,oneof"`
}LabelOperationMetadata_VideoClassificationDetails
type LabelOperationMetadata_VideoClassificationDetails struct {
// Details of label video classification operation.
VideoClassificationDetails *LabelVideoClassificationOperationMetadata `protobuf:"bytes,5,opt,name=video_classification_details,json=videoClassificationDetails,proto3,oneof"`
}LabelOperationMetadata_VideoEventDetails
type LabelOperationMetadata_VideoEventDetails struct {
// Details of label video event operation.
VideoEventDetails *LabelVideoEventOperationMetadata `protobuf:"bytes,8,opt,name=video_event_details,json=videoEventDetails,proto3,oneof"`
}LabelOperationMetadata_VideoObjectDetectionDetails
type LabelOperationMetadata_VideoObjectDetectionDetails struct {
// Details of label video object detection operation.
VideoObjectDetectionDetails *LabelVideoObjectDetectionOperationMetadata `protobuf:"bytes,6,opt,name=video_object_detection_details,json=videoObjectDetectionDetails,proto3,oneof"`
}LabelOperationMetadata_VideoObjectTrackingDetails
type LabelOperationMetadata_VideoObjectTrackingDetails struct {
// Details of label video object tracking operation.
VideoObjectTrackingDetails *LabelVideoObjectTrackingOperationMetadata `protobuf:"bytes,7,opt,name=video_object_tracking_details,json=videoObjectTrackingDetails,proto3,oneof"`
}LabelStats
type LabelStats struct {
// Map of each annotation spec's example count. Key is the annotation spec
// name and value is the number of examples for that annotation spec.
// If the annotated dataset does not have annotation spec, the map will return
// a pair where the key is empty string and value is the total number of
// annotations.
ExampleCount map[string]int64 `protobuf:"bytes,1,rep,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}Statistics about annotation specs.
func (*LabelStats) Descriptor
func (*LabelStats) Descriptor() ([]byte, []int)Deprecated: Use LabelStats.ProtoReflect.Descriptor instead.
func (*LabelStats) GetExampleCount
func (x *LabelStats) GetExampleCount() map[string]int64func (*LabelStats) ProtoMessage
func (*LabelStats) ProtoMessage()func (*LabelStats) ProtoReflect
func (x *LabelStats) ProtoReflect() protoreflect.Messagefunc (*LabelStats) Reset
func (x *LabelStats) Reset()func (*LabelStats) String
func (x *LabelStats) String() stringLabelTextClassificationOperationMetadata
type LabelTextClassificationOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelTextClassification operation metadata.
func (*LabelTextClassificationOperationMetadata) Descriptor
func (*LabelTextClassificationOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelTextClassificationOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelTextClassificationOperationMetadata) GetBasicConfig
func (x *LabelTextClassificationOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelTextClassificationOperationMetadata) ProtoMessage
func (*LabelTextClassificationOperationMetadata) ProtoMessage()func (*LabelTextClassificationOperationMetadata) ProtoReflect
func (x *LabelTextClassificationOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelTextClassificationOperationMetadata) Reset
func (x *LabelTextClassificationOperationMetadata) Reset()func (*LabelTextClassificationOperationMetadata) String
func (x *LabelTextClassificationOperationMetadata) String() stringLabelTextEntityExtractionOperationMetadata
type LabelTextEntityExtractionOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelTextEntityExtraction operation metadata.
func (*LabelTextEntityExtractionOperationMetadata) Descriptor
func (*LabelTextEntityExtractionOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelTextEntityExtractionOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelTextEntityExtractionOperationMetadata) GetBasicConfig
func (x *LabelTextEntityExtractionOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelTextEntityExtractionOperationMetadata) ProtoMessage
func (*LabelTextEntityExtractionOperationMetadata) ProtoMessage()func (*LabelTextEntityExtractionOperationMetadata) ProtoReflect
func (x *LabelTextEntityExtractionOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelTextEntityExtractionOperationMetadata) Reset
func (x *LabelTextEntityExtractionOperationMetadata) Reset()func (*LabelTextEntityExtractionOperationMetadata) String
func (x *LabelTextEntityExtractionOperationMetadata) String() stringLabelTextRequest
type LabelTextRequest struct {
// Required. Config for labeling tasks. The type of request config must
// match the selected feature.
//
// Types that are assignable to RequestConfig:
//
// *LabelTextRequest_TextClassificationConfig
// *LabelTextRequest_TextEntityExtractionConfig
RequestConfig isLabelTextRequest_RequestConfig `protobuf_oneof:"request_config"`
// Required. Name of the data set to request labeling task, format:
// projects/{project_id}/datasets/{dataset_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Basic human annotation config.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,2,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// Required. The type of text labeling task.
Feature LabelTextRequest_Feature `protobuf:"varint,6,opt,name=feature,proto3,enum=google.cloud.datalabeling.v1beta1.LabelTextRequest_Feature" json:"feature,omitempty"`
// contains filtered or unexported fields
}Request message for LabelText.
func (*LabelTextRequest) Descriptor
func (*LabelTextRequest) Descriptor() ([]byte, []int)Deprecated: Use LabelTextRequest.ProtoReflect.Descriptor instead.
func (*LabelTextRequest) GetBasicConfig
func (x *LabelTextRequest) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelTextRequest) GetFeature
func (x *LabelTextRequest) GetFeature() LabelTextRequest_Featurefunc (*LabelTextRequest) GetParent
func (x *LabelTextRequest) GetParent() stringfunc (*LabelTextRequest) GetRequestConfig
func (m *LabelTextRequest) GetRequestConfig() isLabelTextRequest_RequestConfigfunc (*LabelTextRequest) GetTextClassificationConfig
func (x *LabelTextRequest) GetTextClassificationConfig() *TextClassificationConfigfunc (*LabelTextRequest) GetTextEntityExtractionConfig
func (x *LabelTextRequest) GetTextEntityExtractionConfig() *TextEntityExtractionConfigfunc (*LabelTextRequest) ProtoMessage
func (*LabelTextRequest) ProtoMessage()func (*LabelTextRequest) ProtoReflect
func (x *LabelTextRequest) ProtoReflect() protoreflect.Messagefunc (*LabelTextRequest) Reset
func (x *LabelTextRequest) Reset()func (*LabelTextRequest) String
func (x *LabelTextRequest) String() stringLabelTextRequest_Feature
type LabelTextRequest_Feature int32Text labeling task feature.
LabelTextRequest_FEATURE_UNSPECIFIED, LabelTextRequest_TEXT_CLASSIFICATION, LabelTextRequest_TEXT_ENTITY_EXTRACTION
const (
LabelTextRequest_FEATURE_UNSPECIFIED LabelTextRequest_Feature = 0
// Label text content to one of more labels.
LabelTextRequest_TEXT_CLASSIFICATION LabelTextRequest_Feature = 1
// Label entities and their span in text.
LabelTextRequest_TEXT_ENTITY_EXTRACTION LabelTextRequest_Feature = 2
)func (LabelTextRequest_Feature) Descriptor
func (LabelTextRequest_Feature) Descriptor() protoreflect.EnumDescriptorfunc (LabelTextRequest_Feature) Enum
func (x LabelTextRequest_Feature) Enum() *LabelTextRequest_Featurefunc (LabelTextRequest_Feature) EnumDescriptor
func (LabelTextRequest_Feature) EnumDescriptor() ([]byte, []int)Deprecated: Use LabelTextRequest_Feature.Descriptor instead.
func (LabelTextRequest_Feature) Number
func (x LabelTextRequest_Feature) Number() protoreflect.EnumNumberfunc (LabelTextRequest_Feature) String
func (x LabelTextRequest_Feature) String() stringfunc (LabelTextRequest_Feature) Type
func (LabelTextRequest_Feature) Type() protoreflect.EnumTypeLabelTextRequest_TextClassificationConfig
type LabelTextRequest_TextClassificationConfig struct {
// Configuration for text classification task.
// One of text_classification_config and text_entity_extraction_config
// is required.
TextClassificationConfig *TextClassificationConfig `protobuf:"bytes,4,opt,name=text_classification_config,json=textClassificationConfig,proto3,oneof"`
}LabelTextRequest_TextEntityExtractionConfig
type LabelTextRequest_TextEntityExtractionConfig struct {
// Configuration for entity extraction task.
// One of text_classification_config and text_entity_extraction_config
// is required.
TextEntityExtractionConfig *TextEntityExtractionConfig `protobuf:"bytes,5,opt,name=text_entity_extraction_config,json=textEntityExtractionConfig,proto3,oneof"`
}LabelVideoClassificationOperationMetadata
type LabelVideoClassificationOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelVideoClassification operation metadata.
func (*LabelVideoClassificationOperationMetadata) Descriptor
func (*LabelVideoClassificationOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelVideoClassificationOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelVideoClassificationOperationMetadata) GetBasicConfig
func (x *LabelVideoClassificationOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelVideoClassificationOperationMetadata) ProtoMessage
func (*LabelVideoClassificationOperationMetadata) ProtoMessage()func (*LabelVideoClassificationOperationMetadata) ProtoReflect
func (x *LabelVideoClassificationOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelVideoClassificationOperationMetadata) Reset
func (x *LabelVideoClassificationOperationMetadata) Reset()func (*LabelVideoClassificationOperationMetadata) String
func (x *LabelVideoClassificationOperationMetadata) String() stringLabelVideoEventOperationMetadata
type LabelVideoEventOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelVideoEvent operation metadata.
func (*LabelVideoEventOperationMetadata) Descriptor
func (*LabelVideoEventOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelVideoEventOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelVideoEventOperationMetadata) GetBasicConfig
func (x *LabelVideoEventOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelVideoEventOperationMetadata) ProtoMessage
func (*LabelVideoEventOperationMetadata) ProtoMessage()func (*LabelVideoEventOperationMetadata) ProtoReflect
func (x *LabelVideoEventOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelVideoEventOperationMetadata) Reset
func (x *LabelVideoEventOperationMetadata) Reset()func (*LabelVideoEventOperationMetadata) String
func (x *LabelVideoEventOperationMetadata) String() stringLabelVideoObjectDetectionOperationMetadata
type LabelVideoObjectDetectionOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelVideoObjectDetection operation metadata.
func (*LabelVideoObjectDetectionOperationMetadata) Descriptor
func (*LabelVideoObjectDetectionOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelVideoObjectDetectionOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelVideoObjectDetectionOperationMetadata) GetBasicConfig
func (x *LabelVideoObjectDetectionOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelVideoObjectDetectionOperationMetadata) ProtoMessage
func (*LabelVideoObjectDetectionOperationMetadata) ProtoMessage()func (*LabelVideoObjectDetectionOperationMetadata) ProtoReflect
func (x *LabelVideoObjectDetectionOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelVideoObjectDetectionOperationMetadata) Reset
func (x *LabelVideoObjectDetectionOperationMetadata) Reset()func (*LabelVideoObjectDetectionOperationMetadata) String
func (x *LabelVideoObjectDetectionOperationMetadata) String() stringLabelVideoObjectTrackingOperationMetadata
type LabelVideoObjectTrackingOperationMetadata struct {
// Basic human annotation config used in labeling request.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,1,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// contains filtered or unexported fields
}Details of a LabelVideoObjectTracking operation metadata.
func (*LabelVideoObjectTrackingOperationMetadata) Descriptor
func (*LabelVideoObjectTrackingOperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use LabelVideoObjectTrackingOperationMetadata.ProtoReflect.Descriptor instead.
func (*LabelVideoObjectTrackingOperationMetadata) GetBasicConfig
func (x *LabelVideoObjectTrackingOperationMetadata) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelVideoObjectTrackingOperationMetadata) ProtoMessage
func (*LabelVideoObjectTrackingOperationMetadata) ProtoMessage()func (*LabelVideoObjectTrackingOperationMetadata) ProtoReflect
func (x *LabelVideoObjectTrackingOperationMetadata) ProtoReflect() protoreflect.Messagefunc (*LabelVideoObjectTrackingOperationMetadata) Reset
func (x *LabelVideoObjectTrackingOperationMetadata) Reset()func (*LabelVideoObjectTrackingOperationMetadata) String
func (x *LabelVideoObjectTrackingOperationMetadata) String() stringLabelVideoRequest
type LabelVideoRequest struct {
// Required. Config for labeling tasks. The type of request config must
// match the selected feature.
//
// Types that are assignable to RequestConfig:
//
// *LabelVideoRequest_VideoClassificationConfig
// *LabelVideoRequest_ObjectDetectionConfig
// *LabelVideoRequest_ObjectTrackingConfig
// *LabelVideoRequest_EventConfig
RequestConfig isLabelVideoRequest_RequestConfig `protobuf_oneof:"request_config"`
// Required. Name of the dataset to request labeling task, format:
// projects/{project_id}/datasets/{dataset_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Basic human annotation config.
BasicConfig *HumanAnnotationConfig `protobuf:"bytes,2,opt,name=basic_config,json=basicConfig,proto3" json:"basic_config,omitempty"`
// Required. The type of video labeling task.
Feature LabelVideoRequest_Feature `protobuf:"varint,3,opt,name=feature,proto3,enum=google.cloud.datalabeling.v1beta1.LabelVideoRequest_Feature" json:"feature,omitempty"`
// contains filtered or unexported fields
}Request message for LabelVideo.
func (*LabelVideoRequest) Descriptor
func (*LabelVideoRequest) Descriptor() ([]byte, []int)Deprecated: Use LabelVideoRequest.ProtoReflect.Descriptor instead.
func (*LabelVideoRequest) GetBasicConfig
func (x *LabelVideoRequest) GetBasicConfig() *HumanAnnotationConfigfunc (*LabelVideoRequest) GetEventConfig
func (x *LabelVideoRequest) GetEventConfig() *EventConfigfunc (*LabelVideoRequest) GetFeature
func (x *LabelVideoRequest) GetFeature() LabelVideoRequest_Featurefunc (*LabelVideoRequest) GetObjectDetectionConfig
func (x *LabelVideoRequest) GetObjectDetectionConfig() *ObjectDetectionConfigfunc (*LabelVideoRequest) GetObjectTrackingConfig
func (x *LabelVideoRequest) GetObjectTrackingConfig() *ObjectTrackingConfigfunc (*LabelVideoRequest) GetParent
func (x *LabelVideoRequest) GetParent() stringfunc (*LabelVideoRequest) GetRequestConfig
func (m *LabelVideoRequest) GetRequestConfig() isLabelVideoRequest_RequestConfigfunc (*LabelVideoRequest) GetVideoClassificationConfig
func (x *LabelVideoRequest) GetVideoClassificationConfig() *VideoClassificationConfigfunc (*LabelVideoRequest) ProtoMessage
func (*LabelVideoRequest) ProtoMessage()func (*LabelVideoRequest) ProtoReflect
func (x *LabelVideoRequest) ProtoReflect() protoreflect.Messagefunc (*LabelVideoRequest) Reset
func (x *LabelVideoRequest) Reset()func (*LabelVideoRequest) String
func (x *LabelVideoRequest) String() stringLabelVideoRequest_EventConfig
type LabelVideoRequest_EventConfig struct {
// Configuration for video event task.
// One of video_classification_config, object_detection_config,
// object_tracking_config and event_config is required.
EventConfig *EventConfig `protobuf:"bytes,7,opt,name=event_config,json=eventConfig,proto3,oneof"`
}LabelVideoRequest_Feature
type LabelVideoRequest_Feature int32Video labeling task feature.
LabelVideoRequest_FEATURE_UNSPECIFIED, LabelVideoRequest_CLASSIFICATION, LabelVideoRequest_OBJECT_DETECTION, LabelVideoRequest_OBJECT_TRACKING, LabelVideoRequest_EVENT
const (
LabelVideoRequest_FEATURE_UNSPECIFIED LabelVideoRequest_Feature = 0
// Label whole video or video segment with one or more labels.
LabelVideoRequest_CLASSIFICATION LabelVideoRequest_Feature = 1
// Label objects with bounding box on image frames extracted from the video.
LabelVideoRequest_OBJECT_DETECTION LabelVideoRequest_Feature = 2
// Label and track objects in video.
LabelVideoRequest_OBJECT_TRACKING LabelVideoRequest_Feature = 3
// Label the range of video for the specified events.
LabelVideoRequest_EVENT LabelVideoRequest_Feature = 4
)func (LabelVideoRequest_Feature) Descriptor
func (LabelVideoRequest_Feature) Descriptor() protoreflect.EnumDescriptorfunc (LabelVideoRequest_Feature) Enum
func (x LabelVideoRequest_Feature) Enum() *LabelVideoRequest_Featurefunc (LabelVideoRequest_Feature) EnumDescriptor
func (LabelVideoRequest_Feature) EnumDescriptor() ([]byte, []int)Deprecated: Use LabelVideoRequest_Feature.Descriptor instead.
func (LabelVideoRequest_Feature) Number
func (x LabelVideoRequest_Feature) Number() protoreflect.EnumNumberfunc (LabelVideoRequest_Feature) String
func (x LabelVideoRequest_Feature) String() stringfunc (LabelVideoRequest_Feature) Type
func (LabelVideoRequest_Feature) Type() protoreflect.EnumTypeLabelVideoRequest_ObjectDetectionConfig
type LabelVideoRequest_ObjectDetectionConfig struct {
// Configuration for video object detection task.
// One of video_classification_config, object_detection_config,
// object_tracking_config and event_config is required.
ObjectDetectionConfig *ObjectDetectionConfig `protobuf:"bytes,5,opt,name=object_detection_config,json=objectDetectionConfig,proto3,oneof"`
}LabelVideoRequest_ObjectTrackingConfig
type LabelVideoRequest_ObjectTrackingConfig struct {
// Configuration for video object tracking task.
// One of video_classification_config, object_detection_config,
// object_tracking_config and event_config is required.
ObjectTrackingConfig *ObjectTrackingConfig `protobuf:"bytes,6,opt,name=object_tracking_config,json=objectTrackingConfig,proto3,oneof"`
}LabelVideoRequest_VideoClassificationConfig
type LabelVideoRequest_VideoClassificationConfig struct {
// Configuration for video classification task.
// One of video_classification_config, object_detection_config,
// object_tracking_config and event_config is required.
VideoClassificationConfig *VideoClassificationConfig `protobuf:"bytes,4,opt,name=video_classification_config,json=videoClassificationConfig,proto3,oneof"`
}ListAnnotatedDatasetsRequest
type ListAnnotatedDatasetsRequest struct {
// Required. Name of the dataset to list annotated datasets, format:
// projects/{project_id}/datasets/{dataset_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Filter is not supported at this moment.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by
// [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
// [DataLabelingService.ListAnnotatedDatasets] call.
// Return first page if empty.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for ListAnnotatedDatasets.
func (*ListAnnotatedDatasetsRequest) Descriptor
func (*ListAnnotatedDatasetsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAnnotatedDatasetsRequest.ProtoReflect.Descriptor instead.
func (*ListAnnotatedDatasetsRequest) GetFilter
func (x *ListAnnotatedDatasetsRequest) GetFilter() stringfunc (*ListAnnotatedDatasetsRequest) GetPageSize
func (x *ListAnnotatedDatasetsRequest) GetPageSize() int32func (*ListAnnotatedDatasetsRequest) GetPageToken
func (x *ListAnnotatedDatasetsRequest) GetPageToken() stringfunc (*ListAnnotatedDatasetsRequest) GetParent
func (x *ListAnnotatedDatasetsRequest) GetParent() stringfunc (*ListAnnotatedDatasetsRequest) ProtoMessage
func (*ListAnnotatedDatasetsRequest) ProtoMessage()func (*ListAnnotatedDatasetsRequest) ProtoReflect
func (x *ListAnnotatedDatasetsRequest) ProtoReflect() protoreflect.Messagefunc (*ListAnnotatedDatasetsRequest) Reset
func (x *ListAnnotatedDatasetsRequest) Reset()func (*ListAnnotatedDatasetsRequest) String
func (x *ListAnnotatedDatasetsRequest) String() stringListAnnotatedDatasetsResponse
type ListAnnotatedDatasetsResponse struct {
// The list of annotated datasets to return.
AnnotatedDatasets []*AnnotatedDataset `protobuf:"bytes,1,rep,name=annotated_datasets,json=annotatedDatasets,proto3" json:"annotated_datasets,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of listing annotated datasets for a dataset.
func (*ListAnnotatedDatasetsResponse) Descriptor
func (*ListAnnotatedDatasetsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAnnotatedDatasetsResponse.ProtoReflect.Descriptor instead.
func (*ListAnnotatedDatasetsResponse) GetAnnotatedDatasets
func (x *ListAnnotatedDatasetsResponse) GetAnnotatedDatasets() []*AnnotatedDatasetfunc (*ListAnnotatedDatasetsResponse) GetNextPageToken
func (x *ListAnnotatedDatasetsResponse) GetNextPageToken() stringfunc (*ListAnnotatedDatasetsResponse) ProtoMessage
func (*ListAnnotatedDatasetsResponse) ProtoMessage()func (*ListAnnotatedDatasetsResponse) ProtoReflect
func (x *ListAnnotatedDatasetsResponse) ProtoReflect() protoreflect.Messagefunc (*ListAnnotatedDatasetsResponse) Reset
func (x *ListAnnotatedDatasetsResponse) Reset()func (*ListAnnotatedDatasetsResponse) String
func (x *ListAnnotatedDatasetsResponse) String() stringListAnnotationSpecSetsRequest
type ListAnnotationSpecSetsRequest struct {
// Required. Parent of AnnotationSpecSet resource, format:
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Filter is not supported at this moment.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by
// [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
// [DataLabelingService.ListAnnotationSpecSets] call.
// Return first page if empty.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for ListAnnotationSpecSets.
func (*ListAnnotationSpecSetsRequest) Descriptor
func (*ListAnnotationSpecSetsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAnnotationSpecSetsRequest.ProtoReflect.Descriptor instead.
func (*ListAnnotationSpecSetsRequest) GetFilter
func (x *ListAnnotationSpecSetsRequest) GetFilter() stringfunc (*ListAnnotationSpecSetsRequest) GetPageSize
func (x *ListAnnotationSpecSetsRequest) GetPageSize() int32func (*ListAnnotationSpecSetsRequest) GetPageToken
func (x *ListAnnotationSpecSetsRequest) GetPageToken() stringfunc (*ListAnnotationSpecSetsRequest) GetParent
func (x *ListAnnotationSpecSetsRequest) GetParent() stringfunc (*ListAnnotationSpecSetsRequest) ProtoMessage
func (*ListAnnotationSpecSetsRequest) ProtoMessage()func (*ListAnnotationSpecSetsRequest) ProtoReflect
func (x *ListAnnotationSpecSetsRequest) ProtoReflect() protoreflect.Messagefunc (*ListAnnotationSpecSetsRequest) Reset
func (x *ListAnnotationSpecSetsRequest) Reset()func (*ListAnnotationSpecSetsRequest) String
func (x *ListAnnotationSpecSetsRequest) String() stringListAnnotationSpecSetsResponse
type ListAnnotationSpecSetsResponse struct {
// The list of annotation spec sets.
AnnotationSpecSets []*AnnotationSpecSet `protobuf:"bytes,1,rep,name=annotation_spec_sets,json=annotationSpecSets,proto3" json:"annotation_spec_sets,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of listing annotation spec set under a project.
func (*ListAnnotationSpecSetsResponse) Descriptor
func (*ListAnnotationSpecSetsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAnnotationSpecSetsResponse.ProtoReflect.Descriptor instead.
func (*ListAnnotationSpecSetsResponse) GetAnnotationSpecSets
func (x *ListAnnotationSpecSetsResponse) GetAnnotationSpecSets() []*AnnotationSpecSetfunc (*ListAnnotationSpecSetsResponse) GetNextPageToken
func (x *ListAnnotationSpecSetsResponse) GetNextPageToken() stringfunc (*ListAnnotationSpecSetsResponse) ProtoMessage
func (*ListAnnotationSpecSetsResponse) ProtoMessage()func (*ListAnnotationSpecSetsResponse) ProtoReflect
func (x *ListAnnotationSpecSetsResponse) ProtoReflect() protoreflect.Messagefunc (*ListAnnotationSpecSetsResponse) Reset
func (x *ListAnnotationSpecSetsResponse) Reset()func (*ListAnnotationSpecSetsResponse) String
func (x *ListAnnotationSpecSetsResponse) String() stringListDataItemsRequest
type ListDataItemsRequest struct {
// Required. Name of the dataset to list data items, format:
// projects/{project_id}/datasets/{dataset_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Filter is not supported at this moment.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by
// [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
// [DataLabelingService.ListDataItems] call.
// Return first page if empty.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for ListDataItems.
func (*ListDataItemsRequest) Descriptor
func (*ListDataItemsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDataItemsRequest.ProtoReflect.Descriptor instead.
func (*ListDataItemsRequest) GetFilter
func (x *ListDataItemsRequest) GetFilter() stringfunc (*ListDataItemsRequest) GetPageSize
func (x *ListDataItemsRequest) GetPageSize() int32func (*ListDataItemsRequest) GetPageToken
func (x *ListDataItemsRequest) GetPageToken() stringfunc (*ListDataItemsRequest) GetParent
func (x *ListDataItemsRequest) GetParent() stringfunc (*ListDataItemsRequest) ProtoMessage
func (*ListDataItemsRequest) ProtoMessage()func (*ListDataItemsRequest) ProtoReflect
func (x *ListDataItemsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDataItemsRequest) Reset
func (x *ListDataItemsRequest) Reset()func (*ListDataItemsRequest) String
func (x *ListDataItemsRequest) String() stringListDataItemsResponse
type ListDataItemsResponse struct {
// The list of data items to return.
DataItems []*DataItem `protobuf:"bytes,1,rep,name=data_items,json=dataItems,proto3" json:"data_items,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of listing data items in a dataset.
func (*ListDataItemsResponse) Descriptor
func (*ListDataItemsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDataItemsResponse.ProtoReflect.Descriptor instead.
func (*ListDataItemsResponse) GetDataItems
func (x *ListDataItemsResponse) GetDataItems() []*DataItemfunc (*ListDataItemsResponse) GetNextPageToken
func (x *ListDataItemsResponse) GetNextPageToken() stringfunc (*ListDataItemsResponse) ProtoMessage
func (*ListDataItemsResponse) ProtoMessage()func (*ListDataItemsResponse) ProtoReflect
func (x *ListDataItemsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDataItemsResponse) Reset
func (x *ListDataItemsResponse) Reset()func (*ListDataItemsResponse) String
func (x *ListDataItemsResponse) String() stringListDatasetsRequest
type ListDatasetsRequest struct {
// Required. Dataset resource parent, format:
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Filter on dataset is not supported at this moment.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by
// [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
// [DataLabelingService.ListDatasets] call.
// Returns the first page if empty.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for ListDataset.
func (*ListDatasetsRequest) Descriptor
func (*ListDatasetsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDatasetsRequest.ProtoReflect.Descriptor instead.
func (*ListDatasetsRequest) GetFilter
func (x *ListDatasetsRequest) GetFilter() stringfunc (*ListDatasetsRequest) GetPageSize
func (x *ListDatasetsRequest) GetPageSize() int32func (*ListDatasetsRequest) GetPageToken
func (x *ListDatasetsRequest) GetPageToken() stringfunc (*ListDatasetsRequest) GetParent
func (x *ListDatasetsRequest) GetParent() stringfunc (*ListDatasetsRequest) ProtoMessage
func (*ListDatasetsRequest) ProtoMessage()func (*ListDatasetsRequest) ProtoReflect
func (x *ListDatasetsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDatasetsRequest) Reset
func (x *ListDatasetsRequest) Reset()func (*ListDatasetsRequest) String
func (x *ListDatasetsRequest) String() stringListDatasetsResponse
type ListDatasetsResponse struct {
// The list of datasets to return.
Datasets []*Dataset `protobuf:"bytes,1,rep,name=datasets,proto3" json:"datasets,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of listing datasets within a project.
func (*ListDatasetsResponse) Descriptor
func (*ListDatasetsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDatasetsResponse.ProtoReflect.Descriptor instead.
func (*ListDatasetsResponse) GetDatasets
func (x *ListDatasetsResponse) GetDatasets() []*Datasetfunc (*ListDatasetsResponse) GetNextPageToken
func (x *ListDatasetsResponse) GetNextPageToken() stringfunc (*ListDatasetsResponse) ProtoMessage
func (*ListDatasetsResponse) ProtoMessage()func (*ListDatasetsResponse) ProtoReflect
func (x *ListDatasetsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDatasetsResponse) Reset
func (x *ListDatasetsResponse) Reset()func (*ListDatasetsResponse) String
func (x *ListDatasetsResponse) String() stringListEvaluationJobsRequest
type ListEvaluationJobsRequest struct {
// Required. Evaluation job resource parent. Format:
// "projects/{project_id}"
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. You can filter the jobs to list by model_id (also known as
// model_name, as described in
// [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
// evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
// by both criteria, use the `AND` operator or the `OR` operator. For example,
// you can use the following string for your filter:
// "evaluation_job.model_id = {model_name} AND
// evaluation_job.state = {evaluation_job_state}"
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by the
// [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
// to the previous request. The request returns the first page if this is
// empty.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for ListEvaluationJobs.
func (*ListEvaluationJobsRequest) Descriptor
func (*ListEvaluationJobsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListEvaluationJobsRequest.ProtoReflect.Descriptor instead.
func (*ListEvaluationJobsRequest) GetFilter
func (x *ListEvaluationJobsRequest) GetFilter() stringfunc (*ListEvaluationJobsRequest) GetPageSize
func (x *ListEvaluationJobsRequest) GetPageSize() int32func (*ListEvaluationJobsRequest) GetPageToken
func (x *ListEvaluationJobsRequest) GetPageToken() stringfunc (*ListEvaluationJobsRequest) GetParent
func (x *ListEvaluationJobsRequest) GetParent() stringfunc (*ListEvaluationJobsRequest) ProtoMessage
func (*ListEvaluationJobsRequest) ProtoMessage()func (*ListEvaluationJobsRequest) ProtoReflect
func (x *ListEvaluationJobsRequest) ProtoReflect() protoreflect.Messagefunc (*ListEvaluationJobsRequest) Reset
func (x *ListEvaluationJobsRequest) Reset()func (*ListEvaluationJobsRequest) String
func (x *ListEvaluationJobsRequest) String() stringListEvaluationJobsResponse
type ListEvaluationJobsResponse struct {
// The list of evaluation jobs to return.
EvaluationJobs []*EvaluationJob `protobuf:"bytes,1,rep,name=evaluation_jobs,json=evaluationJobs,proto3" json:"evaluation_jobs,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results for listing evaluation jobs.
func (*ListEvaluationJobsResponse) Descriptor
func (*ListEvaluationJobsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListEvaluationJobsResponse.ProtoReflect.Descriptor instead.
func (*ListEvaluationJobsResponse) GetEvaluationJobs
func (x *ListEvaluationJobsResponse) GetEvaluationJobs() []*EvaluationJobfunc (*ListEvaluationJobsResponse) GetNextPageToken
func (x *ListEvaluationJobsResponse) GetNextPageToken() stringfunc (*ListEvaluationJobsResponse) ProtoMessage
func (*ListEvaluationJobsResponse) ProtoMessage()func (*ListEvaluationJobsResponse) ProtoReflect
func (x *ListEvaluationJobsResponse) ProtoReflect() protoreflect.Messagefunc (*ListEvaluationJobsResponse) Reset
func (x *ListEvaluationJobsResponse) Reset()func (*ListEvaluationJobsResponse) String
func (x *ListEvaluationJobsResponse) String() stringListExamplesRequest
type ListExamplesRequest struct {
// Required. Example resource parent.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. An expression for filtering Examples. For annotated datasets that
// have annotation spec set, filter by
// annotation_spec.display_name is supported. Format
// "annotation_spec.display_name = {display_name}"
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by
// [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
// [DataLabelingService.ListExamples] call.
// Return first page if empty.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for ListExamples.
func (*ListExamplesRequest) Descriptor
func (*ListExamplesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListExamplesRequest.ProtoReflect.Descriptor instead.
func (*ListExamplesRequest) GetFilter
func (x *ListExamplesRequest) GetFilter() stringfunc (*ListExamplesRequest) GetPageSize
func (x *ListExamplesRequest) GetPageSize() int32func (*ListExamplesRequest) GetPageToken
func (x *ListExamplesRequest) GetPageToken() stringfunc (*ListExamplesRequest) GetParent
func (x *ListExamplesRequest) GetParent() stringfunc (*ListExamplesRequest) ProtoMessage
func (*ListExamplesRequest) ProtoMessage()func (*ListExamplesRequest) ProtoReflect
func (x *ListExamplesRequest) ProtoReflect() protoreflect.Messagefunc (*ListExamplesRequest) Reset
func (x *ListExamplesRequest) Reset()func (*ListExamplesRequest) String
func (x *ListExamplesRequest) String() stringListExamplesResponse
type ListExamplesResponse struct {
// The list of examples to return.
Examples []*Example `protobuf:"bytes,1,rep,name=examples,proto3" json:"examples,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of listing Examples in and annotated dataset.
func (*ListExamplesResponse) Descriptor
func (*ListExamplesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListExamplesResponse.ProtoReflect.Descriptor instead.
func (*ListExamplesResponse) GetExamples
func (x *ListExamplesResponse) GetExamples() []*Examplefunc (*ListExamplesResponse) GetNextPageToken
func (x *ListExamplesResponse) GetNextPageToken() stringfunc (*ListExamplesResponse) ProtoMessage
func (*ListExamplesResponse) ProtoMessage()func (*ListExamplesResponse) ProtoReflect
func (x *ListExamplesResponse) ProtoReflect() protoreflect.Messagefunc (*ListExamplesResponse) Reset
func (x *ListExamplesResponse) Reset()func (*ListExamplesResponse) String
func (x *ListExamplesResponse) String() stringListInstructionsRequest
type ListInstructionsRequest struct {
// Required. Instruction resource parent, format:
// projects/{project_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Filter is not supported at this moment.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by
// [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
// [DataLabelingService.ListInstructions] call.
// Return first page if empty.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for ListInstructions.
func (*ListInstructionsRequest) Descriptor
func (*ListInstructionsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListInstructionsRequest.ProtoReflect.Descriptor instead.
func (*ListInstructionsRequest) GetFilter
func (x *ListInstructionsRequest) GetFilter() stringfunc (*ListInstructionsRequest) GetPageSize
func (x *ListInstructionsRequest) GetPageSize() int32func (*ListInstructionsRequest) GetPageToken
func (x *ListInstructionsRequest) GetPageToken() stringfunc (*ListInstructionsRequest) GetParent
func (x *ListInstructionsRequest) GetParent() stringfunc (*ListInstructionsRequest) ProtoMessage
func (*ListInstructionsRequest) ProtoMessage()func (*ListInstructionsRequest) ProtoReflect
func (x *ListInstructionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListInstructionsRequest) Reset
func (x *ListInstructionsRequest) Reset()func (*ListInstructionsRequest) String
func (x *ListInstructionsRequest) String() stringListInstructionsResponse
type ListInstructionsResponse struct {
// The list of Instructions to return.
Instructions []*Instruction `protobuf:"bytes,1,rep,name=instructions,proto3" json:"instructions,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of listing instructions under a project.
func (*ListInstructionsResponse) Descriptor
func (*ListInstructionsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListInstructionsResponse.ProtoReflect.Descriptor instead.
func (*ListInstructionsResponse) GetInstructions
func (x *ListInstructionsResponse) GetInstructions() []*Instructionfunc (*ListInstructionsResponse) GetNextPageToken
func (x *ListInstructionsResponse) GetNextPageToken() stringfunc (*ListInstructionsResponse) ProtoMessage
func (*ListInstructionsResponse) ProtoMessage()func (*ListInstructionsResponse) ProtoReflect
func (x *ListInstructionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListInstructionsResponse) Reset
func (x *ListInstructionsResponse) Reset()func (*ListInstructionsResponse) String
func (x *ListInstructionsResponse) String() stringNormalizedBoundingPoly
type NormalizedBoundingPoly struct {
// The bounding polygon normalized vertices.
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,1,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
// contains filtered or unexported fields
}Normalized bounding polygon.
func (*NormalizedBoundingPoly) Descriptor
func (*NormalizedBoundingPoly) Descriptor() ([]byte, []int)Deprecated: Use NormalizedBoundingPoly.ProtoReflect.Descriptor instead.
func (*NormalizedBoundingPoly) GetNormalizedVertices
func (x *NormalizedBoundingPoly) GetNormalizedVertices() []*NormalizedVertexfunc (*NormalizedBoundingPoly) ProtoMessage
func (*NormalizedBoundingPoly) ProtoMessage()func (*NormalizedBoundingPoly) ProtoReflect
func (x *NormalizedBoundingPoly) ProtoReflect() protoreflect.Messagefunc (*NormalizedBoundingPoly) Reset
func (x *NormalizedBoundingPoly) Reset()func (*NormalizedBoundingPoly) String
func (x *NormalizedBoundingPoly) String() stringNormalizedPolyline
type NormalizedPolyline struct {
// The normalized polyline vertices.
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,1,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
// contains filtered or unexported fields
}Normalized polyline.
func (*NormalizedPolyline) Descriptor
func (*NormalizedPolyline) Descriptor() ([]byte, []int)Deprecated: Use NormalizedPolyline.ProtoReflect.Descriptor instead.
func (*NormalizedPolyline) GetNormalizedVertices
func (x *NormalizedPolyline) GetNormalizedVertices() []*NormalizedVertexfunc (*NormalizedPolyline) ProtoMessage
func (*NormalizedPolyline) ProtoMessage()func (*NormalizedPolyline) ProtoReflect
func (x *NormalizedPolyline) ProtoReflect() protoreflect.Messagefunc (*NormalizedPolyline) Reset
func (x *NormalizedPolyline) Reset()func (*NormalizedPolyline) String
func (x *NormalizedPolyline) String() stringNormalizedVertex
type NormalizedVertex struct {
// X coordinate.
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
// contains filtered or unexported fields
}A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
func (*NormalizedVertex) Descriptor
func (*NormalizedVertex) Descriptor() ([]byte, []int)Deprecated: Use NormalizedVertex.ProtoReflect.Descriptor instead.
func (*NormalizedVertex) GetX
func (x *NormalizedVertex) GetX() float32func (*NormalizedVertex) GetY
func (x *NormalizedVertex) GetY() float32func (*NormalizedVertex) ProtoMessage
func (*NormalizedVertex) ProtoMessage()func (*NormalizedVertex) ProtoReflect
func (x *NormalizedVertex) ProtoReflect() protoreflect.Messagefunc (*NormalizedVertex) Reset
func (x *NormalizedVertex) Reset()func (*NormalizedVertex) String
func (x *NormalizedVertex) String() stringObjectDetectionConfig
type ObjectDetectionConfig 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"`
// Required. Number of frames per second to be extracted from the video.
ExtractionFrameRate float64 `protobuf:"fixed64,3,opt,name=extraction_frame_rate,json=extractionFrameRate,proto3" json:"extraction_frame_rate,omitempty"`
// contains filtered or unexported fields
}Config for video object detection human labeling task. Object detection will be conducted on the images extracted from the video, and those objects will be labeled with bounding boxes. User need to specify the number of images to be extracted per second as the extraction frame rate.
func (*ObjectDetectionConfig) Descriptor
func (*ObjectDetectionConfig) Descriptor() ([]byte, []int)Deprecated: Use ObjectDetectionConfig.ProtoReflect.Descriptor instead.
func (*ObjectDetectionConfig) GetAnnotationSpecSet
func (x *ObjectDetectionConfig) GetAnnotationSpecSet() stringfunc (*ObjectDetectionConfig) GetExtractionFrameRate
func (x *ObjectDetectionConfig) GetExtractionFrameRate() float64func (*ObjectDetectionConfig) ProtoMessage
func (*ObjectDetectionConfig) ProtoMessage()func (*ObjectDetectionConfig) ProtoReflect
func (x *ObjectDetectionConfig) ProtoReflect() protoreflect.Messagefunc (*ObjectDetectionConfig) Reset
func (x *ObjectDetectionConfig) Reset()func (*ObjectDetectionConfig) String
func (x *ObjectDetectionConfig) String() stringObjectDetectionMetrics
type ObjectDetectionMetrics struct {
// Precision-recall curve.
PrCurve *PrCurve `protobuf:"bytes,1,opt,name=pr_curve,json=prCurve,proto3" json:"pr_curve,omitempty"`
// contains filtered or unexported fields
}Metrics calculated for an image object detection (bounding box) model.
func (*ObjectDetectionMetrics) Descriptor
func (*ObjectDetectionMetrics) Descriptor() ([]byte, []int)Deprecated: Use ObjectDetectionMetrics.ProtoReflect.Descriptor instead.
func (*ObjectDetectionMetrics) GetPrCurve
func (x *ObjectDetectionMetrics) GetPrCurve() *PrCurvefunc (*ObjectDetectionMetrics) ProtoMessage
func (*ObjectDetectionMetrics) ProtoMessage()func (*ObjectDetectionMetrics) ProtoReflect
func (x *ObjectDetectionMetrics) ProtoReflect() protoreflect.Messagefunc (*ObjectDetectionMetrics) Reset
func (x *ObjectDetectionMetrics) Reset()func (*ObjectDetectionMetrics) String
func (x *ObjectDetectionMetrics) String() stringObjectTrackingConfig
type ObjectTrackingConfig 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"`
// contains filtered or unexported fields
}Config for video object tracking human labeling task.
func (*ObjectTrackingConfig) Descriptor
func (*ObjectTrackingConfig) Descriptor() ([]byte, []int)Deprecated: Use ObjectTrackingConfig.ProtoReflect.Descriptor instead.
func (*ObjectTrackingConfig) GetAnnotationSpecSet
func (x *ObjectTrackingConfig) GetAnnotationSpecSet() stringfunc (*ObjectTrackingConfig) ProtoMessage
func (*ObjectTrackingConfig) ProtoMessage()func (*ObjectTrackingConfig) ProtoReflect
func (x *ObjectTrackingConfig) ProtoReflect() protoreflect.Messagefunc (*ObjectTrackingConfig) Reset
func (x *ObjectTrackingConfig) Reset()func (*ObjectTrackingConfig) String
func (x *ObjectTrackingConfig) String() stringObjectTrackingFrame
type ObjectTrackingFrame struct {
// The bounding box location of this object track for the frame.
//
// Types that are assignable to BoundedArea:
//
// *ObjectTrackingFrame_BoundingPoly
// *ObjectTrackingFrame_NormalizedBoundingPoly
BoundedArea isObjectTrackingFrame_BoundedArea `protobuf_oneof:"bounded_area"`
// The time offset of this frame relative to the beginning of the video.
TimeOffset *durationpb.Duration `protobuf:"bytes,3,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"`
// contains filtered or unexported fields
}Video frame level annotation for object detection and tracking.
func (*ObjectTrackingFrame) Descriptor
func (*ObjectTrackingFrame) Descriptor() ([]byte, []int)Deprecated: Use ObjectTrackingFrame.ProtoReflect.Descriptor instead.
func (*ObjectTrackingFrame) GetBoundedArea
func (m *ObjectTrackingFrame) GetBoundedArea() isObjectTrackingFrame_BoundedAreafunc (*ObjectTrackingFrame) GetBoundingPoly
func (x *ObjectTrackingFrame) GetBoundingPoly() *BoundingPolyfunc (*ObjectTrackingFrame) GetNormalizedBoundingPoly
func (x *ObjectTrackingFrame) GetNormalizedBoundingPoly() *NormalizedBoundingPolyfunc (*ObjectTrackingFrame) GetTimeOffset
func (x *ObjectTrackingFrame) GetTimeOffset() *durationpb.Durationfunc (*ObjectTrackingFrame) ProtoMessage
func (*ObjectTrackingFrame) ProtoMessage()func (*ObjectTrackingFrame) ProtoReflect
func (x *ObjectTrackingFrame) ProtoReflect() protoreflect.Messagefunc (*ObjectTrackingFrame) Reset
func (x *ObjectTrackingFrame) Reset()func (*ObjectTrackingFrame) String
func (x *ObjectTrackingFrame) String() stringObjectTrackingFrame_BoundingPoly
type ObjectTrackingFrame_BoundingPoly struct {
BoundingPoly *BoundingPoly `protobuf:"bytes,1,opt,name=bounding_poly,json=boundingPoly,proto3,oneof"`
}ObjectTrackingFrame_NormalizedBoundingPoly
type ObjectTrackingFrame_NormalizedBoundingPoly struct {
NormalizedBoundingPoly *NormalizedBoundingPoly `protobuf:"bytes,2,opt,name=normalized_bounding_poly,json=normalizedBoundingPoly,proto3,oneof"`
}OperatorMetadata
type OperatorMetadata struct {
// Confidence score corresponding to a label. For examle, if 3 contributors
// have answered the question and 2 of them agree on the final label, the
// confidence score will be 0.67 (2/3).
Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
// The total number of contributors that answer this question.
TotalVotes int32 `protobuf:"varint,2,opt,name=total_votes,json=totalVotes,proto3" json:"total_votes,omitempty"`
// The total number of contributors that choose this label.
LabelVotes int32 `protobuf:"varint,3,opt,name=label_votes,json=labelVotes,proto3" json:"label_votes,omitempty"`
// Comments from contributors.
Comments []string `protobuf:"bytes,4,rep,name=comments,proto3" json:"comments,omitempty"`
// contains filtered or unexported fields
}General information useful for labels coming from contributors.
func (*OperatorMetadata) Descriptor
func (*OperatorMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperatorMetadata.ProtoReflect.Descriptor instead.
func (*OperatorMetadata) GetComments
func (x *OperatorMetadata) GetComments() []stringfunc (*OperatorMetadata) GetLabelVotes
func (x *OperatorMetadata) GetLabelVotes() int32func (*OperatorMetadata) GetScore
func (x *OperatorMetadata) GetScore() float32func (*OperatorMetadata) GetTotalVotes
func (x *OperatorMetadata) GetTotalVotes() int32func (*OperatorMetadata) ProtoMessage
func (*OperatorMetadata) ProtoMessage()func (*OperatorMetadata) ProtoReflect
func (x *OperatorMetadata) ProtoReflect() protoreflect.Messagefunc (*OperatorMetadata) Reset
func (x *OperatorMetadata) Reset()func (*OperatorMetadata) String
func (x *OperatorMetadata) String() stringOutputConfig
type OutputConfig struct {
// Required. Location to output data to.
//
// Types that are assignable to Destination:
//
// *OutputConfig_GcsDestination
// *OutputConfig_GcsFolderDestination
Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
// contains filtered or unexported fields
}The configuration of output data.
func (*OutputConfig) Descriptor
func (*OutputConfig) Descriptor() ([]byte, []int)Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.
func (*OutputConfig) GetDestination
func (m *OutputConfig) GetDestination() isOutputConfig_Destinationfunc (*OutputConfig) GetGcsDestination
func (x *OutputConfig) GetGcsDestination() *GcsDestinationfunc (*OutputConfig) GetGcsFolderDestination
func (x *OutputConfig) GetGcsFolderDestination() *GcsFolderDestinationfunc (*OutputConfig) ProtoMessage
func (*OutputConfig) ProtoMessage()func (*OutputConfig) ProtoReflect
func (x *OutputConfig) ProtoReflect() protoreflect.Messagefunc (*OutputConfig) Reset
func (x *OutputConfig) Reset()func (*OutputConfig) String
func (x *OutputConfig) String() stringOutputConfig_GcsDestination
type OutputConfig_GcsDestination struct {
// Output to a file in Cloud Storage. Should be used for labeling output
// other than image segmentation.
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}OutputConfig_GcsFolderDestination
type OutputConfig_GcsFolderDestination struct {
// Output to a folder in Cloud Storage. Should be used for image
// segmentation labeling output.
GcsFolderDestination *GcsFolderDestination `protobuf:"bytes,2,opt,name=gcs_folder_destination,json=gcsFolderDestination,proto3,oneof"`
}PauseEvaluationJobRequest
type PauseEvaluationJobRequest struct {
// Required. Name of the evaluation job that is going to be paused. Format:
//
// "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for PauseEvaluationJob.
func (*PauseEvaluationJobRequest) Descriptor
func (*PauseEvaluationJobRequest) Descriptor() ([]byte, []int)Deprecated: Use PauseEvaluationJobRequest.ProtoReflect.Descriptor instead.
func (*PauseEvaluationJobRequest) GetName
func (x *PauseEvaluationJobRequest) GetName() stringfunc (*PauseEvaluationJobRequest) ProtoMessage
func (*PauseEvaluationJobRequest) ProtoMessage()func (*PauseEvaluationJobRequest) ProtoReflect
func (x *PauseEvaluationJobRequest) ProtoReflect() protoreflect.Messagefunc (*PauseEvaluationJobRequest) Reset
func (x *PauseEvaluationJobRequest) Reset()func (*PauseEvaluationJobRequest) String
func (x *PauseEvaluationJobRequest) String() stringPdfInstruction
type PdfInstruction struct {
// PDF 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
}Instruction from a PDF file.
func (*PdfInstruction) Descriptor
func (*PdfInstruction) Descriptor() ([]byte, []int)Deprecated: Use PdfInstruction.ProtoReflect.Descriptor instead.
func (*PdfInstruction) GetGcsFileUri
func (x *PdfInstruction) GetGcsFileUri() stringfunc (*PdfInstruction) ProtoMessage
func (*PdfInstruction) ProtoMessage()func (*PdfInstruction) ProtoReflect
func (x *PdfInstruction) ProtoReflect() protoreflect.Messagefunc (*PdfInstruction) Reset
func (x *PdfInstruction) Reset()func (*PdfInstruction) String
func (x *PdfInstruction) String() stringPolyline
type Polyline struct {
// The polyline vertices.
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
// contains filtered or unexported fields
}A line with multiple line segments.
func (*Polyline) Descriptor
Deprecated: Use Polyline.ProtoReflect.Descriptor instead.
func (*Polyline) GetVertices
func (*Polyline) ProtoMessage
func (*Polyline) ProtoMessage()func (*Polyline) ProtoReflect
func (x *Polyline) ProtoReflect() protoreflect.Messagefunc (*Polyline) Reset
func (x *Polyline) Reset()func (*Polyline) String
PolylineConfig
type PolylineConfig 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 polyline human labeling task.
func (*PolylineConfig) Descriptor
func (*PolylineConfig) Descriptor() ([]byte, []int)Deprecated: Use PolylineConfig.ProtoReflect.Descriptor instead.
func (*PolylineConfig) GetAnnotationSpecSet
func (x *PolylineConfig) GetAnnotationSpecSet() stringfunc (*PolylineConfig) GetInstructionMessage
func (x *PolylineConfig) GetInstructionMessage() stringfunc (*PolylineConfig) ProtoMessage
func (*PolylineConfig) ProtoMessage()func (*PolylineConfig) ProtoReflect
func (x *PolylineConfig) ProtoReflect() protoreflect.Messagefunc (*PolylineConfig) Reset
func (x *PolylineConfig) Reset()func (*PolylineConfig) String
func (x *PolylineConfig) String() stringPrCurve
type PrCurve struct {
// The annotation spec of the label for which the precision-recall curve
// calculated. If this field is empty, that means the precision-recall curve
// is an aggregate curve for all labels.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// Area under the precision-recall curve. Not to be confused with area under
// a receiver operating characteristic (ROC) curve.
AreaUnderCurve float32 `protobuf:"fixed32,2,opt,name=area_under_curve,json=areaUnderCurve,proto3" json:"area_under_curve,omitempty"`
// Entries that make up the precision-recall graph. Each entry is a "point" on
// the graph drawn for a different `confidence_threshold`.
ConfidenceMetricsEntries []*PrCurve_ConfidenceMetricsEntry `protobuf:"bytes,3,rep,name=confidence_metrics_entries,json=confidenceMetricsEntries,proto3" json:"confidence_metrics_entries,omitempty"`
// Mean average prcision of this curve.
MeanAveragePrecision float32 `protobuf:"fixed32,4,opt,name=mean_average_precision,json=meanAveragePrecision,proto3" json:"mean_average_precision,omitempty"`
// contains filtered or unexported fields
}func (*PrCurve) Descriptor
Deprecated: Use PrCurve.ProtoReflect.Descriptor instead.
func (*PrCurve) GetAnnotationSpec
func (x *PrCurve) GetAnnotationSpec() *AnnotationSpecfunc (*PrCurve) GetAreaUnderCurve
func (*PrCurve) GetConfidenceMetricsEntries
func (x *PrCurve) GetConfidenceMetricsEntries() []*PrCurve_ConfidenceMetricsEntryfunc (*PrCurve) GetMeanAveragePrecision
func (*PrCurve) ProtoMessage
func (*PrCurve) ProtoMessage()func (*PrCurve) ProtoReflect
func (x *PrCurve) ProtoReflect() protoreflect.Messagefunc (*PrCurve) Reset
func (x *PrCurve) Reset()func (*PrCurve) String
PrCurve_ConfidenceMetricsEntry
type PrCurve_ConfidenceMetricsEntry struct {
// Threshold used for this entry.
//
// For classification tasks, this is a classification threshold: a
// predicted label is categorized as positive or negative (in the context of
// this point on the PR curve) based on whether the label's score meets this
// threshold.
//
// For image object detection (bounding box) tasks, this is the
// [intersection-over-union
//
// (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
// threshold for the context of this point on the PR curve.
ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`
// Recall value.
Recall float32 `protobuf:"fixed32,2,opt,name=recall,proto3" json:"recall,omitempty"`
// Precision value.
Precision float32 `protobuf:"fixed32,3,opt,name=precision,proto3" json:"precision,omitempty"`
// Harmonic mean of recall and precision.
F1Score float32 `protobuf:"fixed32,4,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"`
// Recall value for entries with label that has highest score.
RecallAt1 float32 `protobuf:"fixed32,5,opt,name=recall_at1,json=recallAt1,proto3" json:"recall_at1,omitempty"`
// Precision value for entries with label that has highest score.
PrecisionAt1 float32 `protobuf:"fixed32,6,opt,name=precision_at1,json=precisionAt1,proto3" json:"precision_at1,omitempty"`
// The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
F1ScoreAt1 float32 `protobuf:"fixed32,7,opt,name=f1_score_at1,json=f1ScoreAt1,proto3" json:"f1_score_at1,omitempty"`
// Recall value for entries with label that has highest 5 scores.
RecallAt5 float32 `protobuf:"fixed32,8,opt,name=recall_at5,json=recallAt5,proto3" json:"recall_at5,omitempty"`
// Precision value for entries with label that has highest 5 scores.
PrecisionAt5 float32 `protobuf:"fixed32,9,opt,name=precision_at5,json=precisionAt5,proto3" json:"precision_at5,omitempty"`
// The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
F1ScoreAt5 float32 `protobuf:"fixed32,10,opt,name=f1_score_at5,json=f1ScoreAt5,proto3" json:"f1_score_at5,omitempty"`
// contains filtered or unexported fields
}func (*PrCurve_ConfidenceMetricsEntry) Descriptor
func (*PrCurve_ConfidenceMetricsEntry) Descriptor() ([]byte, []int)Deprecated: Use PrCurve_ConfidenceMetricsEntry.ProtoReflect.Descriptor instead.
func (*PrCurve_ConfidenceMetricsEntry) GetConfidenceThreshold
func (x *PrCurve_ConfidenceMetricsEntry) GetConfidenceThreshold() float32func (*PrCurve_ConfidenceMetricsEntry) GetF1Score
func (x *PrCurve_ConfidenceMetricsEntry) GetF1Score() float32func (*PrCurve_ConfidenceMetricsEntry) GetF1ScoreAt1
func (x *PrCurve_ConfidenceMetricsEntry) GetF1ScoreAt1() float32func (*PrCurve_ConfidenceMetricsEntry) GetF1ScoreAt5
func (x *PrCurve_ConfidenceMetricsEntry) GetF1ScoreAt5() float32func (*PrCurve_ConfidenceMetricsEntry) GetPrecision
func (x *PrCurve_ConfidenceMetricsEntry) GetPrecision() float32func (*PrCurve_ConfidenceMetricsEntry) GetPrecisionAt1
func (x *PrCurve_ConfidenceMetricsEntry) GetPrecisionAt1() float32func (*PrCurve_ConfidenceMetricsEntry) GetPrecisionAt5
func (x *PrCurve_ConfidenceMetricsEntry) GetPrecisionAt5() float32func (*PrCurve_ConfidenceMetricsEntry) GetRecall
func (x *PrCurve_ConfidenceMetricsEntry) GetRecall() float32func (*PrCurve_ConfidenceMetricsEntry) GetRecallAt1
func (x *PrCurve_ConfidenceMetricsEntry) GetRecallAt1() float32func (*PrCurve_ConfidenceMetricsEntry) GetRecallAt5
func (x *PrCurve_ConfidenceMetricsEntry) GetRecallAt5() float32func (*PrCurve_ConfidenceMetricsEntry) ProtoMessage
func (*PrCurve_ConfidenceMetricsEntry) ProtoMessage()func (*PrCurve_ConfidenceMetricsEntry) ProtoReflect
func (x *PrCurve_ConfidenceMetricsEntry) ProtoReflect() protoreflect.Messagefunc (*PrCurve_ConfidenceMetricsEntry) Reset
func (x *PrCurve_ConfidenceMetricsEntry) Reset()func (*PrCurve_ConfidenceMetricsEntry) String
func (x *PrCurve_ConfidenceMetricsEntry) String() stringResumeEvaluationJobRequest
type ResumeEvaluationJobRequest struct {
// Required. Name of the evaluation job that is going to be resumed. Format:
//
// "projects/{project_id}/evaluationJobs/{evaluation_job_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message ResumeEvaluationJob.
func (*ResumeEvaluationJobRequest) Descriptor
func (*ResumeEvaluationJobRequest) Descriptor() ([]byte, []int)Deprecated: Use ResumeEvaluationJobRequest.ProtoReflect.Descriptor instead.
func (*ResumeEvaluationJobRequest) GetName
func (x *ResumeEvaluationJobRequest) GetName() stringfunc (*ResumeEvaluationJobRequest) ProtoMessage
func (*ResumeEvaluationJobRequest) ProtoMessage()func (*ResumeEvaluationJobRequest) ProtoReflect
func (x *ResumeEvaluationJobRequest) ProtoReflect() protoreflect.Messagefunc (*ResumeEvaluationJobRequest) Reset
func (x *ResumeEvaluationJobRequest) Reset()func (*ResumeEvaluationJobRequest) String
func (x *ResumeEvaluationJobRequest) String() stringSearchEvaluationsRequest
type SearchEvaluationsRequest struct {
// Required. Evaluation search parent (project ID). Format:
// "projects/{project_id}"
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. To search evaluations, you can filter by the following:
//
// - evaluation_job.evaluation_job_id (the last part of
// [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name])
// - evaluation_job.model_id (the {model_name} portion
// of [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version])
// - evaluation_job.evaluation_job_run_time_start (Minimum
// threshold for the
// [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
// the evaluation)
// - evaluation_job.evaluation_job_run_time_end (Maximum
// threshold for the
// [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
// the evaluation)
// - evaluation_job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
// - annotation_spec.display_name (the Evaluation contains a
// metric for the annotation spec with this
// [displayName][google.cloud.datalabeling.v1beta1.AnnotationSpec.display_name])
//
// To filter by multiple critiera, use the `AND` operator or the `OR`
// operator. The following examples shows a string that filters by several
// critiera:
//
// "evaluation_job.evaluation_job_id =
// {evaluation_job_id} AND evaluation_job.model_id =
// {model_name} AND
// evaluation_job.evaluation_job_run_time_start =
// {timestamp_1} AND
// evaluation_job.evaluation_job_run_time_end =
// {timestamp_2} AND annotation_spec.display_name =
// {display_name}"
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by the
// [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
// to a previous search request.
//
// If you don't specify this field, the API call requests the first page of
// the search.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message for SearchEvaluation.
func (*SearchEvaluationsRequest) Descriptor
func (*SearchEvaluationsRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchEvaluationsRequest.ProtoReflect.Descriptor instead.
func (*SearchEvaluationsRequest) GetFilter
func (x *SearchEvaluationsRequest) GetFilter() stringfunc (*SearchEvaluationsRequest) GetPageSize
func (x *SearchEvaluationsRequest) GetPageSize() int32func (*SearchEvaluationsRequest) GetPageToken
func (x *SearchEvaluationsRequest) GetPageToken() stringfunc (*SearchEvaluationsRequest) GetParent
func (x *SearchEvaluationsRequest) GetParent() stringfunc (*SearchEvaluationsRequest) ProtoMessage
func (*SearchEvaluationsRequest) ProtoMessage()func (*SearchEvaluationsRequest) ProtoReflect
func (x *SearchEvaluationsRequest) ProtoReflect() protoreflect.Messagefunc (*SearchEvaluationsRequest) Reset
func (x *SearchEvaluationsRequest) Reset()func (*SearchEvaluationsRequest) String
func (x *SearchEvaluationsRequest) String() stringSearchEvaluationsResponse
type SearchEvaluationsResponse struct {
// The list of evaluations matching the search.
Evaluations []*Evaluation `protobuf:"bytes,1,rep,name=evaluations,proto3" json:"evaluations,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of searching evaluations.
func (*SearchEvaluationsResponse) Descriptor
func (*SearchEvaluationsResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchEvaluationsResponse.ProtoReflect.Descriptor instead.
func (*SearchEvaluationsResponse) GetEvaluations
func (x *SearchEvaluationsResponse) GetEvaluations() []*Evaluationfunc (*SearchEvaluationsResponse) GetNextPageToken
func (x *SearchEvaluationsResponse) GetNextPageToken() stringfunc (*SearchEvaluationsResponse) ProtoMessage
func (*SearchEvaluationsResponse) ProtoMessage()func (*SearchEvaluationsResponse) ProtoReflect
func (x *SearchEvaluationsResponse) ProtoReflect() protoreflect.Messagefunc (*SearchEvaluationsResponse) Reset
func (x *SearchEvaluationsResponse) Reset()func (*SearchEvaluationsResponse) String
func (x *SearchEvaluationsResponse) String() stringSearchExampleComparisonsRequest
type SearchExampleComparisonsRequest struct {
// Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
// comparisons from. Format:
//
// "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}"
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer results than
// requested. Default value is 100.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results for the server to return.
// Typically obtained by the
// [nextPageToken][SearchExampleComparisons.next_page_token] of the response
// to a previous search rquest.
//
// If you don't specify this field, the API call requests the first page of
// the search.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request message of SearchExampleComparisons.
func (*SearchExampleComparisonsRequest) Descriptor
func (*SearchExampleComparisonsRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchExampleComparisonsRequest.ProtoReflect.Descriptor instead.
func (*SearchExampleComparisonsRequest) GetPageSize
func (x *SearchExampleComparisonsRequest) GetPageSize() int32func (*SearchExampleComparisonsRequest) GetPageToken
func (x *SearchExampleComparisonsRequest) GetPageToken() stringfunc (*SearchExampleComparisonsRequest) GetParent
func (x *SearchExampleComparisonsRequest) GetParent() stringfunc (*SearchExampleComparisonsRequest) ProtoMessage
func (*SearchExampleComparisonsRequest) ProtoMessage()func (*SearchExampleComparisonsRequest) ProtoReflect
func (x *SearchExampleComparisonsRequest) ProtoReflect() protoreflect.Messagefunc (*SearchExampleComparisonsRequest) Reset
func (x *SearchExampleComparisonsRequest) Reset()func (*SearchExampleComparisonsRequest) String
func (x *SearchExampleComparisonsRequest) String() stringSearchExampleComparisonsResponse
type SearchExampleComparisonsResponse struct {
// A list of example comparisons matching the search criteria.
ExampleComparisons []*SearchExampleComparisonsResponse_ExampleComparison `protobuf:"bytes,1,rep,name=example_comparisons,json=exampleComparisons,proto3" json:"example_comparisons,omitempty"`
// A token to retrieve next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Results of searching example comparisons.
func (*SearchExampleComparisonsResponse) Descriptor
func (*SearchExampleComparisonsResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchExampleComparisonsResponse.ProtoReflect.Descriptor instead.
func (*SearchExampleComparisonsResponse) GetExampleComparisons
func (x *SearchExampleComparisonsResponse) GetExampleComparisons() []*SearchExampleComparisonsResponse_ExampleComparisonfunc (*SearchExampleComparisonsResponse) GetNextPageToken
func (x *SearchExampleComparisonsResponse) GetNextPageToken() stringfunc (*SearchExampleComparisonsResponse) ProtoMessage
func (*SearchExampleComparisonsResponse) ProtoMessage()func (*SearchExampleComparisonsResponse) ProtoReflect
func (x *SearchExampleComparisonsResponse) ProtoReflect() protoreflect.Messagefunc (*SearchExampleComparisonsResponse) Reset
func (x *SearchExampleComparisonsResponse) Reset()func (*SearchExampleComparisonsResponse) String
func (x *SearchExampleComparisonsResponse) String() stringSearchExampleComparisonsResponse_ExampleComparison
type SearchExampleComparisonsResponse_ExampleComparison struct {
// The ground truth output for the input.
GroundTruthExample *Example `protobuf:"bytes,1,opt,name=ground_truth_example,json=groundTruthExample,proto3" json:"ground_truth_example,omitempty"`
// Predictions by the model for the input.
ModelCreatedExamples []*Example `protobuf:"bytes,2,rep,name=model_created_examples,json=modelCreatedExamples,proto3" json:"model_created_examples,omitempty"`
// contains filtered or unexported fields
}Example comparisons comparing ground truth output and predictions for a specific input.
func (*SearchExampleComparisonsResponse_ExampleComparison) Descriptor
func (*SearchExampleComparisonsResponse_ExampleComparison) Descriptor() ([]byte, []int)Deprecated: Use SearchExampleComparisonsResponse_ExampleComparison.ProtoReflect.Descriptor instead.
func (*SearchExampleComparisonsResponse_ExampleComparison) GetGroundTruthExample
func (x *SearchExampleComparisonsResponse_ExampleComparison) GetGroundTruthExample() *Examplefunc (*SearchExampleComparisonsResponse_ExampleComparison) GetModelCreatedExamples
func (x *SearchExampleComparisonsResponse_ExampleComparison) GetModelCreatedExamples() []*Examplefunc (*SearchExampleComparisonsResponse_ExampleComparison) ProtoMessage
func (*SearchExampleComparisonsResponse_ExampleComparison) ProtoMessage()func (*SearchExampleComparisonsResponse_ExampleComparison) ProtoReflect
func (x *SearchExampleComparisonsResponse_ExampleComparison) ProtoReflect() protoreflect.Messagefunc (*SearchExampleComparisonsResponse_ExampleComparison) Reset
func (x *SearchExampleComparisonsResponse_ExampleComparison) Reset()func (*SearchExampleComparisonsResponse_ExampleComparison) String
func (x *SearchExampleComparisonsResponse_ExampleComparison) String() stringSegmentationConfig
type SegmentationConfig struct {
// Required. Annotation spec set resource name. format:
// projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
AnnotationSpecSet string `protobuf:"bytes,1,opt,name=annotation_spec_set,json=annotationSpecSet,proto3" json:"annotation_spec_set,omitempty"`
// Instruction message showed on labelers 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 segmentation
func (*SegmentationConfig) Descriptor
func (*SegmentationConfig) Descriptor() ([]byte, []int)Deprecated: Use SegmentationConfig.ProtoReflect.Descriptor instead.
func (*SegmentationConfig) GetAnnotationSpecSet
func (x *SegmentationConfig) GetAnnotationSpecSet() stringfunc (*SegmentationConfig) GetInstructionMessage
func (x *SegmentationConfig) GetInstructionMessage() stringfunc (*SegmentationConfig) ProtoMessage
func (*SegmentationConfig) ProtoMessage()func (*SegmentationConfig) ProtoReflect
func (x *SegmentationConfig) ProtoReflect() protoreflect.Messagefunc (*SegmentationConfig) Reset
func (x *SegmentationConfig) Reset()func (*SegmentationConfig) String
func (x *SegmentationConfig) String() stringSentimentConfig
type SentimentConfig struct {
// If set to true, contributors will have the option to select sentiment of
// the label they selected, to mark it as negative or positive label. Default
// is false.
EnableLabelSentimentSelection bool `protobuf:"varint,1,opt,name=enable_label_sentiment_selection,json=enableLabelSentimentSelection,proto3" json:"enable_label_sentiment_selection,omitempty"`
// contains filtered or unexported fields
}Config for setting up sentiments.
func (*SentimentConfig) Descriptor
func (*SentimentConfig) Descriptor() ([]byte, []int)Deprecated: Use SentimentConfig.ProtoReflect.Descriptor instead.
func (*SentimentConfig) GetEnableLabelSentimentSelection
func (x *SentimentConfig) GetEnableLabelSentimentSelection() boolfunc (*SentimentConfig) ProtoMessage
func (*SentimentConfig) ProtoMessage()func (*SentimentConfig) ProtoReflect
func (x *SentimentConfig) ProtoReflect() protoreflect.Messagefunc (*SentimentConfig) Reset
func (x *SentimentConfig) Reset()func (*SentimentConfig) String
func (x *SentimentConfig) String() stringSequentialSegment
type SequentialSegment struct {
// Start position (inclusive).
Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
// End position (exclusive).
End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}Start and end position in a sequence (e.g. text segment).
func (*SequentialSegment) Descriptor
func (*SequentialSegment) Descriptor() ([]byte, []int)Deprecated: Use SequentialSegment.ProtoReflect.Descriptor instead.
func (*SequentialSegment) GetEnd
func (x *SequentialSegment) GetEnd() int32func (*SequentialSegment) GetStart
func (x *SequentialSegment) GetStart() int32func (*SequentialSegment) ProtoMessage
func (*SequentialSegment) ProtoMessage()func (*SequentialSegment) ProtoReflect
func (x *SequentialSegment) ProtoReflect() protoreflect.Messagefunc (*SequentialSegment) Reset
func (x *SequentialSegment) Reset()func (*SequentialSegment) String
func (x *SequentialSegment) String() stringStringAggregationType
type StringAggregationType int32StringAggregationType_STRING_AGGREGATION_TYPE_UNSPECIFIED, StringAggregationType_MAJORITY_VOTE, StringAggregationType_UNANIMOUS_VOTE, StringAggregationType_NO_AGGREGATION
const (
StringAggregationType_STRING_AGGREGATION_TYPE_UNSPECIFIED StringAggregationType = 0
// Majority vote to aggregate answers.
StringAggregationType_MAJORITY_VOTE StringAggregationType = 1
// Unanimous answers will be adopted.
StringAggregationType_UNANIMOUS_VOTE StringAggregationType = 2
// Preserve all answers by crowd compute.
StringAggregationType_NO_AGGREGATION StringAggregationType = 3
)func (StringAggregationType) Descriptor
func (StringAggregationType) Descriptor() protoreflect.EnumDescriptorfunc (StringAggregationType) Enum
func (x StringAggregationType) Enum() *StringAggregationTypefunc (StringAggregationType) EnumDescriptor
func (StringAggregationType) EnumDescriptor() ([]byte, []int)Deprecated: Use StringAggregationType.Descriptor instead.
func (StringAggregationType) Number
func (x StringAggregationType) Number() protoreflect.EnumNumberfunc (StringAggregationType) String
func (x StringAggregationType) String() stringfunc (StringAggregationType) Type
func (StringAggregationType) Type() protoreflect.EnumTypeTextClassificationAnnotation
type TextClassificationAnnotation struct {
// Label of the text.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// contains filtered or unexported fields
}Text classification annotation.
func (*TextClassificationAnnotation) Descriptor
func (*TextClassificationAnnotation) Descriptor() ([]byte, []int)Deprecated: Use TextClassificationAnnotation.ProtoReflect.Descriptor instead.
func (*TextClassificationAnnotation) GetAnnotationSpec
func (x *TextClassificationAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*TextClassificationAnnotation) ProtoMessage
func (*TextClassificationAnnotation) ProtoMessage()func (*TextClassificationAnnotation) ProtoReflect
func (x *TextClassificationAnnotation) ProtoReflect() protoreflect.Messagefunc (*TextClassificationAnnotation) Reset
func (x *TextClassificationAnnotation) Reset()func (*TextClassificationAnnotation) String
func (x *TextClassificationAnnotation) String() stringTextClassificationConfig
type TextClassificationConfig struct {
// Optional. If allow_multi_label is true, contributors are able to choose
// multiple labels for one text segment.
AllowMultiLabel bool `protobuf:"varint,1,opt,name=allow_multi_label,json=allowMultiLabel,proto3" json:"allow_multi_label,omitempty"`
// Required. Annotation spec set resource name.
AnnotationSpecSet string `protobuf:"bytes,2,opt,name=annotation_spec_set,json=annotationSpecSet,proto3" json:"annotation_spec_set,omitempty"`
// Optional. Configs for sentiment selection.
SentimentConfig *SentimentConfig `protobuf:"bytes,3,opt,name=sentiment_config,json=sentimentConfig,proto3" json:"sentiment_config,omitempty"`
// contains filtered or unexported fields
}Config for text classification human labeling task.
func (*TextClassificationConfig) Descriptor
func (*TextClassificationConfig) Descriptor() ([]byte, []int)Deprecated: Use TextClassificationConfig.ProtoReflect.Descriptor instead.
func (*TextClassificationConfig) GetAllowMultiLabel
func (x *TextClassificationConfig) GetAllowMultiLabel() boolfunc (*TextClassificationConfig) GetAnnotationSpecSet
func (x *TextClassificationConfig) GetAnnotationSpecSet() stringfunc (*TextClassificationConfig) GetSentimentConfig
func (x *TextClassificationConfig) GetSentimentConfig() *SentimentConfigfunc (*TextClassificationConfig) ProtoMessage
func (*TextClassificationConfig) ProtoMessage()func (*TextClassificationConfig) ProtoReflect
func (x *TextClassificationConfig) ProtoReflect() protoreflect.Messagefunc (*TextClassificationConfig) Reset
func (x *TextClassificationConfig) Reset()func (*TextClassificationConfig) String
func (x *TextClassificationConfig) String() stringTextEntityExtractionAnnotation
type TextEntityExtractionAnnotation struct {
// Label of the text entities.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// Position of the entity.
SequentialSegment *SequentialSegment `protobuf:"bytes,2,opt,name=sequential_segment,json=sequentialSegment,proto3" json:"sequential_segment,omitempty"`
// contains filtered or unexported fields
}Text entity extraction annotation.
func (*TextEntityExtractionAnnotation) Descriptor
func (*TextEntityExtractionAnnotation) Descriptor() ([]byte, []int)Deprecated: Use TextEntityExtractionAnnotation.ProtoReflect.Descriptor instead.
func (*TextEntityExtractionAnnotation) GetAnnotationSpec
func (x *TextEntityExtractionAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*TextEntityExtractionAnnotation) GetSequentialSegment
func (x *TextEntityExtractionAnnotation) GetSequentialSegment() *SequentialSegmentfunc (*TextEntityExtractionAnnotation) ProtoMessage
func (*TextEntityExtractionAnnotation) ProtoMessage()func (*TextEntityExtractionAnnotation) ProtoReflect
func (x *TextEntityExtractionAnnotation) ProtoReflect() protoreflect.Messagefunc (*TextEntityExtractionAnnotation) Reset
func (x *TextEntityExtractionAnnotation) Reset()func (*TextEntityExtractionAnnotation) String
func (x *TextEntityExtractionAnnotation) String() stringTextEntityExtractionConfig
type TextEntityExtractionConfig 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"`
// contains filtered or unexported fields
}Config for text entity extraction human labeling task.
func (*TextEntityExtractionConfig) Descriptor
func (*TextEntityExtractionConfig) Descriptor() ([]byte, []int)Deprecated: Use TextEntityExtractionConfig.ProtoReflect.Descriptor instead.
func (*TextEntityExtractionConfig) GetAnnotationSpecSet
func (x *TextEntityExtractionConfig) GetAnnotationSpecSet() stringfunc (*TextEntityExtractionConfig) ProtoMessage
func (*TextEntityExtractionConfig) ProtoMessage()func (*TextEntityExtractionConfig) ProtoReflect
func (x *TextEntityExtractionConfig) ProtoReflect() protoreflect.Messagefunc (*TextEntityExtractionConfig) Reset
func (x *TextEntityExtractionConfig) Reset()func (*TextEntityExtractionConfig) String
func (x *TextEntityExtractionConfig) String() stringTextMetadata
type TextMetadata struct {
// The language of this text, as a
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
// Default value is en-US.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// contains filtered or unexported fields
}Metadata for the text.
func (*TextMetadata) Descriptor
func (*TextMetadata) Descriptor() ([]byte, []int)Deprecated: Use TextMetadata.ProtoReflect.Descriptor instead.
func (*TextMetadata) GetLanguageCode
func (x *TextMetadata) GetLanguageCode() stringfunc (*TextMetadata) ProtoMessage
func (*TextMetadata) ProtoMessage()func (*TextMetadata) ProtoReflect
func (x *TextMetadata) ProtoReflect() protoreflect.Messagefunc (*TextMetadata) Reset
func (x *TextMetadata) Reset()func (*TextMetadata) String
func (x *TextMetadata) String() stringTextPayload
type TextPayload struct {
// Text content.
TextContent string `protobuf:"bytes,1,opt,name=text_content,json=textContent,proto3" json:"text_content,omitempty"`
// contains filtered or unexported fields
}Container of information about a piece of text.
func (*TextPayload) Descriptor
func (*TextPayload) Descriptor() ([]byte, []int)Deprecated: Use TextPayload.ProtoReflect.Descriptor instead.
func (*TextPayload) GetTextContent
func (x *TextPayload) GetTextContent() stringfunc (*TextPayload) ProtoMessage
func (*TextPayload) ProtoMessage()func (*TextPayload) ProtoReflect
func (x *TextPayload) ProtoReflect() protoreflect.Messagefunc (*TextPayload) Reset
func (x *TextPayload) Reset()func (*TextPayload) String
func (x *TextPayload) String() stringTimeSegment
type TimeSegment struct {
// Start of the time segment (inclusive), represented as the duration since
// the example start.
StartTimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"`
// End of the time segment (exclusive), represented as the duration since the
// example start.
EndTimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"`
// contains filtered or unexported fields
}A time period inside of an example that has a time dimension (e.g. video).
func (*TimeSegment) Descriptor
func (*TimeSegment) Descriptor() ([]byte, []int)Deprecated: Use TimeSegment.ProtoReflect.Descriptor instead.
func (*TimeSegment) GetEndTimeOffset
func (x *TimeSegment) GetEndTimeOffset() *durationpb.Durationfunc (*TimeSegment) GetStartTimeOffset
func (x *TimeSegment) GetStartTimeOffset() *durationpb.Durationfunc (*TimeSegment) ProtoMessage
func (*TimeSegment) ProtoMessage()func (*TimeSegment) ProtoReflect
func (x *TimeSegment) ProtoReflect() protoreflect.Messagefunc (*TimeSegment) Reset
func (x *TimeSegment) Reset()func (*TimeSegment) String
func (x *TimeSegment) String() stringUnimplementedDataLabelingServiceServer
type UnimplementedDataLabelingServiceServer struct {
}UnimplementedDataLabelingServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDataLabelingServiceServer) CreateAnnotationSpecSet
func (UnimplementedDataLabelingServiceServer) CreateAnnotationSpecSet(context.Context, *CreateAnnotationSpecSetRequest) (*AnnotationSpecSet, error)func (UnimplementedDataLabelingServiceServer) CreateDataset
func (UnimplementedDataLabelingServiceServer) CreateDataset(context.Context, *CreateDatasetRequest) (*Dataset, error)func (UnimplementedDataLabelingServiceServer) CreateEvaluationJob
func (UnimplementedDataLabelingServiceServer) CreateEvaluationJob(context.Context, *CreateEvaluationJobRequest) (*EvaluationJob, error)func (UnimplementedDataLabelingServiceServer) CreateInstruction
func (UnimplementedDataLabelingServiceServer) CreateInstruction(context.Context, *CreateInstructionRequest) (*longrunningpb.Operation, error)func (UnimplementedDataLabelingServiceServer) DeleteAnnotatedDataset
func (UnimplementedDataLabelingServiceServer) DeleteAnnotatedDataset(context.Context, *DeleteAnnotatedDatasetRequest) (*emptypb.Empty, error)func (UnimplementedDataLabelingServiceServer) DeleteAnnotationSpecSet
func (UnimplementedDataLabelingServiceServer) DeleteAnnotationSpecSet(context.Context, *DeleteAnnotationSpecSetRequest) (*emptypb.Empty, error)func (UnimplementedDataLabelingServiceServer) DeleteDataset
func (UnimplementedDataLabelingServiceServer) DeleteDataset(context.Context, *DeleteDatasetRequest) (*emptypb.Empty, error)func (UnimplementedDataLabelingServiceServer) DeleteEvaluationJob
func (UnimplementedDataLabelingServiceServer) DeleteEvaluationJob(context.Context, *DeleteEvaluationJobRequest) (*emptypb.Empty, error)func (UnimplementedDataLabelingServiceServer) DeleteInstruction
func (UnimplementedDataLabelingServiceServer) DeleteInstruction(context.Context, *DeleteInstructionRequest) (*emptypb.Empty, error)func (UnimplementedDataLabelingServiceServer) ExportData
func (UnimplementedDataLabelingServiceServer) ExportData(context.Context, *ExportDataRequest) (*longrunningpb.Operation, error)func (UnimplementedDataLabelingServiceServer) GetAnnotatedDataset
func (UnimplementedDataLabelingServiceServer) GetAnnotatedDataset(context.Context, *GetAnnotatedDatasetRequest) (*AnnotatedDataset, error)func (UnimplementedDataLabelingServiceServer) GetAnnotationSpecSet
func (UnimplementedDataLabelingServiceServer) GetAnnotationSpecSet(context.Context, *GetAnnotationSpecSetRequest) (*AnnotationSpecSet, error)func (UnimplementedDataLabelingServiceServer) GetDataItem
func (UnimplementedDataLabelingServiceServer) GetDataItem(context.Context, *GetDataItemRequest) (*DataItem, error)func (UnimplementedDataLabelingServiceServer) GetDataset
func (UnimplementedDataLabelingServiceServer) GetDataset(context.Context, *GetDatasetRequest) (*Dataset, error)func (UnimplementedDataLabelingServiceServer) GetEvaluation
func (UnimplementedDataLabelingServiceServer) GetEvaluation(context.Context, *GetEvaluationRequest) (*Evaluation, error)func (UnimplementedDataLabelingServiceServer) GetEvaluationJob
func (UnimplementedDataLabelingServiceServer) GetEvaluationJob(context.Context, *GetEvaluationJobRequest) (*EvaluationJob, error)func (UnimplementedDataLabelingServiceServer) GetExample
func (UnimplementedDataLabelingServiceServer) GetExample(context.Context, *GetExampleRequest) (*Example, error)func (UnimplementedDataLabelingServiceServer) GetInstruction
func (UnimplementedDataLabelingServiceServer) GetInstruction(context.Context, *GetInstructionRequest) (*Instruction, error)func (UnimplementedDataLabelingServiceServer) ImportData
func (UnimplementedDataLabelingServiceServer) ImportData(context.Context, *ImportDataRequest) (*longrunningpb.Operation, error)func (UnimplementedDataLabelingServiceServer) LabelImage
func (UnimplementedDataLabelingServiceServer) LabelImage(context.Context, *LabelImageRequest) (*longrunningpb.Operation, error)func (UnimplementedDataLabelingServiceServer) LabelText
func (UnimplementedDataLabelingServiceServer) LabelText(context.Context, *LabelTextRequest) (*longrunningpb.Operation, error)func (UnimplementedDataLabelingServiceServer) LabelVideo
func (UnimplementedDataLabelingServiceServer) LabelVideo(context.Context, *LabelVideoRequest) (*longrunningpb.Operation, error)func (UnimplementedDataLabelingServiceServer) ListAnnotatedDatasets
func (UnimplementedDataLabelingServiceServer) ListAnnotatedDatasets(context.Context, *ListAnnotatedDatasetsRequest) (*ListAnnotatedDatasetsResponse, error)func (UnimplementedDataLabelingServiceServer) ListAnnotationSpecSets
func (UnimplementedDataLabelingServiceServer) ListAnnotationSpecSets(context.Context, *ListAnnotationSpecSetsRequest) (*ListAnnotationSpecSetsResponse, error)func (UnimplementedDataLabelingServiceServer) ListDataItems
func (UnimplementedDataLabelingServiceServer) ListDataItems(context.Context, *ListDataItemsRequest) (*ListDataItemsResponse, error)func (UnimplementedDataLabelingServiceServer) ListDatasets
func (UnimplementedDataLabelingServiceServer) ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error)func (UnimplementedDataLabelingServiceServer) ListEvaluationJobs
func (UnimplementedDataLabelingServiceServer) ListEvaluationJobs(context.Context, *ListEvaluationJobsRequest) (*ListEvaluationJobsResponse, error)func (UnimplementedDataLabelingServiceServer) ListExamples
func (UnimplementedDataLabelingServiceServer) ListExamples(context.Context, *ListExamplesRequest) (*ListExamplesResponse, error)func (UnimplementedDataLabelingServiceServer) ListInstructions
func (UnimplementedDataLabelingServiceServer) ListInstructions(context.Context, *ListInstructionsRequest) (*ListInstructionsResponse, error)func (UnimplementedDataLabelingServiceServer) PauseEvaluationJob
func (UnimplementedDataLabelingServiceServer) PauseEvaluationJob(context.Context, *PauseEvaluationJobRequest) (*emptypb.Empty, error)func (UnimplementedDataLabelingServiceServer) ResumeEvaluationJob
func (UnimplementedDataLabelingServiceServer) ResumeEvaluationJob(context.Context, *ResumeEvaluationJobRequest) (*emptypb.Empty, error)func (UnimplementedDataLabelingServiceServer) SearchEvaluations
func (UnimplementedDataLabelingServiceServer) SearchEvaluations(context.Context, *SearchEvaluationsRequest) (*SearchEvaluationsResponse, error)func (UnimplementedDataLabelingServiceServer) SearchExampleComparisons
func (UnimplementedDataLabelingServiceServer) SearchExampleComparisons(context.Context, *SearchExampleComparisonsRequest) (*SearchExampleComparisonsResponse, error)func (UnimplementedDataLabelingServiceServer) UpdateEvaluationJob
func (UnimplementedDataLabelingServiceServer) UpdateEvaluationJob(context.Context, *UpdateEvaluationJobRequest) (*EvaluationJob, error)UnsafeDataLabelingServiceServer
type UnsafeDataLabelingServiceServer interface {
// contains filtered or unexported methods
}UnsafeDataLabelingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataLabelingServiceServer will result in compilation errors.
UpdateEvaluationJobRequest
type UpdateEvaluationJobRequest struct {
// Required. Evaluation job that is going to be updated.
EvaluationJob *EvaluationJob `protobuf:"bytes,1,opt,name=evaluation_job,json=evaluationJob,proto3" json:"evaluation_job,omitempty"`
// Optional. Mask for which fields to update. You can only provide the
// following fields:
//
// * `evaluationJobConfig.humanAnnotationConfig.instruction`
// * `evaluationJobConfig.exampleCount`
// * `evaluationJobConfig.exampleSamplePercentage`
//
// You can provide more than one of these fields by separating them with
// commas.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateEvaluationJob.
func (*UpdateEvaluationJobRequest) Descriptor
func (*UpdateEvaluationJobRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateEvaluationJobRequest.ProtoReflect.Descriptor instead.
func (*UpdateEvaluationJobRequest) GetEvaluationJob
func (x *UpdateEvaluationJobRequest) GetEvaluationJob() *EvaluationJobfunc (*UpdateEvaluationJobRequest) GetUpdateMask
func (x *UpdateEvaluationJobRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateEvaluationJobRequest) ProtoMessage
func (*UpdateEvaluationJobRequest) ProtoMessage()func (*UpdateEvaluationJobRequest) ProtoReflect
func (x *UpdateEvaluationJobRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateEvaluationJobRequest) Reset
func (x *UpdateEvaluationJobRequest) Reset()func (*UpdateEvaluationJobRequest) String
func (x *UpdateEvaluationJobRequest) String() stringVertex
type Vertex struct {
// X coordinate.
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
// Y coordinate.
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
// contains filtered or unexported fields
}A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
func (*Vertex) Descriptor
Deprecated: Use Vertex.ProtoReflect.Descriptor instead.
func (*Vertex) GetX
func (*Vertex) GetY
func (*Vertex) ProtoMessage
func (*Vertex) ProtoMessage()func (*Vertex) ProtoReflect
func (x *Vertex) ProtoReflect() protoreflect.Messagefunc (*Vertex) Reset
func (x *Vertex) Reset()func (*Vertex) String
VideoClassificationAnnotation
type VideoClassificationAnnotation struct {
// The time segment of the video to which the annotation applies.
TimeSegment *TimeSegment `protobuf:"bytes,1,opt,name=time_segment,json=timeSegment,proto3" json:"time_segment,omitempty"`
// Label of the segment specified by time_segment.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,2,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// contains filtered or unexported fields
}Video classification annotation.
func (*VideoClassificationAnnotation) Descriptor
func (*VideoClassificationAnnotation) Descriptor() ([]byte, []int)Deprecated: Use VideoClassificationAnnotation.ProtoReflect.Descriptor instead.
func (*VideoClassificationAnnotation) GetAnnotationSpec
func (x *VideoClassificationAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*VideoClassificationAnnotation) GetTimeSegment
func (x *VideoClassificationAnnotation) GetTimeSegment() *TimeSegmentfunc (*VideoClassificationAnnotation) ProtoMessage
func (*VideoClassificationAnnotation) ProtoMessage()func (*VideoClassificationAnnotation) ProtoReflect
func (x *VideoClassificationAnnotation) ProtoReflect() protoreflect.Messagefunc (*VideoClassificationAnnotation) Reset
func (x *VideoClassificationAnnotation) Reset()func (*VideoClassificationAnnotation) String
func (x *VideoClassificationAnnotation) String() stringVideoClassificationConfig
type VideoClassificationConfig struct {
// Required. The list of annotation spec set configs.
// Since watching a video clip takes much longer time than an image, we
// support label with multiple AnnotationSpecSet at the same time. Labels
// in each AnnotationSpecSet will be shown in a group to contributors.
// Contributors can select one or more (depending on whether to allow multi
// label) from each group.
AnnotationSpecSetConfigs []*VideoClassificationConfig_AnnotationSpecSetConfig `protobuf:"bytes,1,rep,name=annotation_spec_set_configs,json=annotationSpecSetConfigs,proto3" json:"annotation_spec_set_configs,omitempty"`
// Optional. Option to apply shot detection on the video.
ApplyShotDetection bool `protobuf:"varint,2,opt,name=apply_shot_detection,json=applyShotDetection,proto3" json:"apply_shot_detection,omitempty"`
// contains filtered or unexported fields
}Config for video classification human labeling task. Currently two types of video classification are supported:
- Assign labels on the entire video.
- Split the video into multiple video clips based on camera shot, and assign labels on each video clip.
func (*VideoClassificationConfig) Descriptor
func (*VideoClassificationConfig) Descriptor() ([]byte, []int)Deprecated: Use VideoClassificationConfig.ProtoReflect.Descriptor instead.
func (*VideoClassificationConfig) GetAnnotationSpecSetConfigs
func (x *VideoClassificationConfig) GetAnnotationSpecSetConfigs() []*VideoClassificationConfig_AnnotationSpecSetConfigfunc (*VideoClassificationConfig) GetApplyShotDetection
func (x *VideoClassificationConfig) GetApplyShotDetection() boolfunc (*VideoClassificationConfig) ProtoMessage
func (*VideoClassificationConfig) ProtoMessage()func (*VideoClassificationConfig) ProtoReflect
func (x *VideoClassificationConfig) ProtoReflect() protoreflect.Messagefunc (*VideoClassificationConfig) Reset
func (x *VideoClassificationConfig) Reset()func (*VideoClassificationConfig) String
func (x *VideoClassificationConfig) String() stringVideoClassificationConfig_AnnotationSpecSetConfig
type VideoClassificationConfig_AnnotationSpecSetConfig 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. If allow_multi_label is true, contributors are able to
// choose multiple labels from one annotation spec set.
AllowMultiLabel bool `protobuf:"varint,2,opt,name=allow_multi_label,json=allowMultiLabel,proto3" json:"allow_multi_label,omitempty"`
// contains filtered or unexported fields
}Annotation spec set with the setting of allowing multi labels or not.
func (*VideoClassificationConfig_AnnotationSpecSetConfig) Descriptor
func (*VideoClassificationConfig_AnnotationSpecSetConfig) Descriptor() ([]byte, []int)Deprecated: Use VideoClassificationConfig_AnnotationSpecSetConfig.ProtoReflect.Descriptor instead.
func (*VideoClassificationConfig_AnnotationSpecSetConfig) GetAllowMultiLabel
func (x *VideoClassificationConfig_AnnotationSpecSetConfig) GetAllowMultiLabel() boolfunc (*VideoClassificationConfig_AnnotationSpecSetConfig) GetAnnotationSpecSet
func (x *VideoClassificationConfig_AnnotationSpecSetConfig) GetAnnotationSpecSet() stringfunc (*VideoClassificationConfig_AnnotationSpecSetConfig) ProtoMessage
func (*VideoClassificationConfig_AnnotationSpecSetConfig) ProtoMessage()func (*VideoClassificationConfig_AnnotationSpecSetConfig) ProtoReflect
func (x *VideoClassificationConfig_AnnotationSpecSetConfig) ProtoReflect() protoreflect.Messagefunc (*VideoClassificationConfig_AnnotationSpecSetConfig) Reset
func (x *VideoClassificationConfig_AnnotationSpecSetConfig) Reset()func (*VideoClassificationConfig_AnnotationSpecSetConfig) String
func (x *VideoClassificationConfig_AnnotationSpecSetConfig) String() stringVideoEventAnnotation
type VideoEventAnnotation struct {
// Label of the event in this annotation.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// The time segment of the video to which the annotation applies.
TimeSegment *TimeSegment `protobuf:"bytes,2,opt,name=time_segment,json=timeSegment,proto3" json:"time_segment,omitempty"`
// contains filtered or unexported fields
}Video event annotation.
func (*VideoEventAnnotation) Descriptor
func (*VideoEventAnnotation) Descriptor() ([]byte, []int)Deprecated: Use VideoEventAnnotation.ProtoReflect.Descriptor instead.
func (*VideoEventAnnotation) GetAnnotationSpec
func (x *VideoEventAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*VideoEventAnnotation) GetTimeSegment
func (x *VideoEventAnnotation) GetTimeSegment() *TimeSegmentfunc (*VideoEventAnnotation) ProtoMessage
func (*VideoEventAnnotation) ProtoMessage()func (*VideoEventAnnotation) ProtoReflect
func (x *VideoEventAnnotation) ProtoReflect() protoreflect.Messagefunc (*VideoEventAnnotation) Reset
func (x *VideoEventAnnotation) Reset()func (*VideoEventAnnotation) String
func (x *VideoEventAnnotation) String() stringVideoObjectTrackingAnnotation
type VideoObjectTrackingAnnotation struct {
// Label of the object tracked in this annotation.
AnnotationSpec *AnnotationSpec `protobuf:"bytes,1,opt,name=annotation_spec,json=annotationSpec,proto3" json:"annotation_spec,omitempty"`
// The time segment of the video to which object tracking applies.
TimeSegment *TimeSegment `protobuf:"bytes,2,opt,name=time_segment,json=timeSegment,proto3" json:"time_segment,omitempty"`
// The list of frames where this object track appears.
ObjectTrackingFrames []*ObjectTrackingFrame `protobuf:"bytes,3,rep,name=object_tracking_frames,json=objectTrackingFrames,proto3" json:"object_tracking_frames,omitempty"`
// contains filtered or unexported fields
}Video object tracking annotation.
func (*VideoObjectTrackingAnnotation) Descriptor
func (*VideoObjectTrackingAnnotation) Descriptor() ([]byte, []int)Deprecated: Use VideoObjectTrackingAnnotation.ProtoReflect.Descriptor instead.
func (*VideoObjectTrackingAnnotation) GetAnnotationSpec
func (x *VideoObjectTrackingAnnotation) GetAnnotationSpec() *AnnotationSpecfunc (*VideoObjectTrackingAnnotation) GetObjectTrackingFrames
func (x *VideoObjectTrackingAnnotation) GetObjectTrackingFrames() []*ObjectTrackingFramefunc (*VideoObjectTrackingAnnotation) GetTimeSegment
func (x *VideoObjectTrackingAnnotation) GetTimeSegment() *TimeSegmentfunc (*VideoObjectTrackingAnnotation) ProtoMessage
func (*VideoObjectTrackingAnnotation) ProtoMessage()func (*VideoObjectTrackingAnnotation) ProtoReflect
func (x *VideoObjectTrackingAnnotation) ProtoReflect() protoreflect.Messagefunc (*VideoObjectTrackingAnnotation) Reset
func (x *VideoObjectTrackingAnnotation) Reset()func (*VideoObjectTrackingAnnotation) String
func (x *VideoObjectTrackingAnnotation) String() stringVideoPayload
type VideoPayload struct {
// Video format.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Video uri from the user bucket.
VideoUri string `protobuf:"bytes,2,opt,name=video_uri,json=videoUri,proto3" json:"video_uri,omitempty"`
// The list of video thumbnails.
VideoThumbnails []*VideoThumbnail `protobuf:"bytes,3,rep,name=video_thumbnails,json=videoThumbnails,proto3" json:"video_thumbnails,omitempty"`
// FPS of the video.
FrameRate float32 `protobuf:"fixed32,4,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate,omitempty"`
// Signed uri of the video file in the service bucket.
SignedUri string `protobuf:"bytes,5,opt,name=signed_uri,json=signedUri,proto3" json:"signed_uri,omitempty"`
// contains filtered or unexported fields
}Container of information of a video.
func (*VideoPayload) Descriptor
func (*VideoPayload) Descriptor() ([]byte, []int)Deprecated: Use VideoPayload.ProtoReflect.Descriptor instead.
func (*VideoPayload) GetFrameRate
func (x *VideoPayload) GetFrameRate() float32func (*VideoPayload) GetMimeType
func (x *VideoPayload) GetMimeType() stringfunc (*VideoPayload) GetSignedUri
func (x *VideoPayload) GetSignedUri() stringfunc (*VideoPayload) GetVideoThumbnails
func (x *VideoPayload) GetVideoThumbnails() []*VideoThumbnailfunc (*VideoPayload) GetVideoUri
func (x *VideoPayload) GetVideoUri() stringfunc (*VideoPayload) ProtoMessage
func (*VideoPayload) ProtoMessage()func (*VideoPayload) ProtoReflect
func (x *VideoPayload) ProtoReflect() protoreflect.Messagefunc (*VideoPayload) Reset
func (x *VideoPayload) Reset()func (*VideoPayload) String
func (x *VideoPayload) String() stringVideoThumbnail
type VideoThumbnail struct {
// A byte string of the video frame.
Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
// Time offset relative to the beginning of the video, corresponding to the
// video frame where the thumbnail has been extracted from.
TimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"`
// contains filtered or unexported fields
}Container of information of a video thumbnail.
func (*VideoThumbnail) Descriptor
func (*VideoThumbnail) Descriptor() ([]byte, []int)Deprecated: Use VideoThumbnail.ProtoReflect.Descriptor instead.
func (*VideoThumbnail) GetThumbnail
func (x *VideoThumbnail) GetThumbnail() []bytefunc (*VideoThumbnail) GetTimeOffset
func (x *VideoThumbnail) GetTimeOffset() *durationpb.Durationfunc (*VideoThumbnail) ProtoMessage
func (*VideoThumbnail) ProtoMessage()func (*VideoThumbnail) ProtoReflect
func (x *VideoThumbnail) ProtoReflect() protoreflect.Messagefunc (*VideoThumbnail) Reset
func (x *VideoThumbnail) Reset()func (*VideoThumbnail) String
func (x *VideoThumbnail) String() string