google-cloud-data_labeling-v1beta1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-data_labeling-v1beta1.rb +21 -0
- data/lib/google/cloud/data_labeling/v1beta1.rb +35 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service.rb +50 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +3294 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/credentials.rb +51 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +570 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb +193 -0
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +28 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +178 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +33 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +301 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_services_pb.rb +132 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +45 -0
- data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +142 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +71 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +93 -0
- data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +98 -0
- data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +42 -0
- data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +124 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/annotation.rb +407 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/annotation_spec_set.rb +71 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb +839 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/data_payloads.rb +87 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb +354 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation.rb +225 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation_job.rb +280 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/human_annotation_config.rb +248 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/instruction.rb +88 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/operations.rb +279 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +227 -0
@@ -0,0 +1,132 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto for package 'Google.Cloud.DataLabeling.V1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2019 Google LLC.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
#
|
19
|
+
|
20
|
+
require 'grpc'
|
21
|
+
require 'google/cloud/datalabeling/v1beta1/data_labeling_service_pb'
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module DataLabeling
|
26
|
+
module V1beta1
|
27
|
+
module DataLabelingService
|
28
|
+
# Service for the AI Platform Data Labeling API.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.datalabeling.v1beta1.DataLabelingService'
|
36
|
+
|
37
|
+
# Creates dataset. If success return a Dataset resource.
|
38
|
+
rpc :CreateDataset, ::Google::Cloud::DataLabeling::V1beta1::CreateDatasetRequest, ::Google::Cloud::DataLabeling::V1beta1::Dataset
|
39
|
+
# Gets dataset by resource name.
|
40
|
+
rpc :GetDataset, ::Google::Cloud::DataLabeling::V1beta1::GetDatasetRequest, ::Google::Cloud::DataLabeling::V1beta1::Dataset
|
41
|
+
# Lists datasets under a project. Pagination is supported.
|
42
|
+
rpc :ListDatasets, ::Google::Cloud::DataLabeling::V1beta1::ListDatasetsRequest, ::Google::Cloud::DataLabeling::V1beta1::ListDatasetsResponse
|
43
|
+
# Deletes a dataset by resource name.
|
44
|
+
rpc :DeleteDataset, ::Google::Cloud::DataLabeling::V1beta1::DeleteDatasetRequest, ::Google::Protobuf::Empty
|
45
|
+
# Imports data into dataset based on source locations defined in request.
|
46
|
+
# It can be called multiple times for the same dataset. Each dataset can
|
47
|
+
# only have one long running operation running on it. For example, no
|
48
|
+
# labeling task (also long running operation) can be started while
|
49
|
+
# importing is still ongoing. Vice versa.
|
50
|
+
rpc :ImportData, ::Google::Cloud::DataLabeling::V1beta1::ImportDataRequest, ::Google::Longrunning::Operation
|
51
|
+
# Exports data and annotations from dataset.
|
52
|
+
rpc :ExportData, ::Google::Cloud::DataLabeling::V1beta1::ExportDataRequest, ::Google::Longrunning::Operation
|
53
|
+
# Gets a data item in a dataset by resource name. This API can be
|
54
|
+
# called after data are imported into dataset.
|
55
|
+
rpc :GetDataItem, ::Google::Cloud::DataLabeling::V1beta1::GetDataItemRequest, ::Google::Cloud::DataLabeling::V1beta1::DataItem
|
56
|
+
# Lists data items in a dataset. This API can be called after data
|
57
|
+
# are imported into dataset. Pagination is supported.
|
58
|
+
rpc :ListDataItems, ::Google::Cloud::DataLabeling::V1beta1::ListDataItemsRequest, ::Google::Cloud::DataLabeling::V1beta1::ListDataItemsResponse
|
59
|
+
# Gets an annotated dataset by resource name.
|
60
|
+
rpc :GetAnnotatedDataset, ::Google::Cloud::DataLabeling::V1beta1::GetAnnotatedDatasetRequest, ::Google::Cloud::DataLabeling::V1beta1::AnnotatedDataset
|
61
|
+
# Lists annotated datasets for a dataset. Pagination is supported.
|
62
|
+
rpc :ListAnnotatedDatasets, ::Google::Cloud::DataLabeling::V1beta1::ListAnnotatedDatasetsRequest, ::Google::Cloud::DataLabeling::V1beta1::ListAnnotatedDatasetsResponse
|
63
|
+
# Deletes an annotated dataset by resource name.
|
64
|
+
rpc :DeleteAnnotatedDataset, ::Google::Cloud::DataLabeling::V1beta1::DeleteAnnotatedDatasetRequest, ::Google::Protobuf::Empty
|
65
|
+
# Starts a labeling task for image. The type of image labeling task is
|
66
|
+
# configured by feature in the request.
|
67
|
+
rpc :LabelImage, ::Google::Cloud::DataLabeling::V1beta1::LabelImageRequest, ::Google::Longrunning::Operation
|
68
|
+
# Starts a labeling task for video. The type of video labeling task is
|
69
|
+
# configured by feature in the request.
|
70
|
+
rpc :LabelVideo, ::Google::Cloud::DataLabeling::V1beta1::LabelVideoRequest, ::Google::Longrunning::Operation
|
71
|
+
# Starts a labeling task for text. The type of text labeling task is
|
72
|
+
# configured by feature in the request.
|
73
|
+
rpc :LabelText, ::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest, ::Google::Longrunning::Operation
|
74
|
+
# Gets an example by resource name, including both data and annotation.
|
75
|
+
rpc :GetExample, ::Google::Cloud::DataLabeling::V1beta1::GetExampleRequest, ::Google::Cloud::DataLabeling::V1beta1::Example
|
76
|
+
# Lists examples in an annotated dataset. Pagination is supported.
|
77
|
+
rpc :ListExamples, ::Google::Cloud::DataLabeling::V1beta1::ListExamplesRequest, ::Google::Cloud::DataLabeling::V1beta1::ListExamplesResponse
|
78
|
+
# Creates an annotation spec set by providing a set of labels.
|
79
|
+
rpc :CreateAnnotationSpecSet, ::Google::Cloud::DataLabeling::V1beta1::CreateAnnotationSpecSetRequest, ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpecSet
|
80
|
+
# Gets an annotation spec set by resource name.
|
81
|
+
rpc :GetAnnotationSpecSet, ::Google::Cloud::DataLabeling::V1beta1::GetAnnotationSpecSetRequest, ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpecSet
|
82
|
+
# Lists annotation spec sets for a project. Pagination is supported.
|
83
|
+
rpc :ListAnnotationSpecSets, ::Google::Cloud::DataLabeling::V1beta1::ListAnnotationSpecSetsRequest, ::Google::Cloud::DataLabeling::V1beta1::ListAnnotationSpecSetsResponse
|
84
|
+
# Deletes an annotation spec set by resource name.
|
85
|
+
rpc :DeleteAnnotationSpecSet, ::Google::Cloud::DataLabeling::V1beta1::DeleteAnnotationSpecSetRequest, ::Google::Protobuf::Empty
|
86
|
+
# Creates an instruction for how data should be labeled.
|
87
|
+
rpc :CreateInstruction, ::Google::Cloud::DataLabeling::V1beta1::CreateInstructionRequest, ::Google::Longrunning::Operation
|
88
|
+
# Gets an instruction by resource name.
|
89
|
+
rpc :GetInstruction, ::Google::Cloud::DataLabeling::V1beta1::GetInstructionRequest, ::Google::Cloud::DataLabeling::V1beta1::Instruction
|
90
|
+
# Lists instructions for a project. Pagination is supported.
|
91
|
+
rpc :ListInstructions, ::Google::Cloud::DataLabeling::V1beta1::ListInstructionsRequest, ::Google::Cloud::DataLabeling::V1beta1::ListInstructionsResponse
|
92
|
+
# Deletes an instruction object by resource name.
|
93
|
+
rpc :DeleteInstruction, ::Google::Cloud::DataLabeling::V1beta1::DeleteInstructionRequest, ::Google::Protobuf::Empty
|
94
|
+
# Gets an evaluation by resource name (to search, use
|
95
|
+
# [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
|
96
|
+
rpc :GetEvaluation, ::Google::Cloud::DataLabeling::V1beta1::GetEvaluationRequest, ::Google::Cloud::DataLabeling::V1beta1::Evaluation
|
97
|
+
# Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
|
98
|
+
rpc :SearchEvaluations, ::Google::Cloud::DataLabeling::V1beta1::SearchEvaluationsRequest, ::Google::Cloud::DataLabeling::V1beta1::SearchEvaluationsResponse
|
99
|
+
# Searches example comparisons from an evaluation. The return format is a
|
100
|
+
# list of example comparisons that show ground truth and prediction(s) for
|
101
|
+
# a single input. Search by providing an evaluation ID.
|
102
|
+
rpc :SearchExampleComparisons, ::Google::Cloud::DataLabeling::V1beta1::SearchExampleComparisonsRequest, ::Google::Cloud::DataLabeling::V1beta1::SearchExampleComparisonsResponse
|
103
|
+
# Creates an evaluation job.
|
104
|
+
rpc :CreateEvaluationJob, ::Google::Cloud::DataLabeling::V1beta1::CreateEvaluationJobRequest, ::Google::Cloud::DataLabeling::V1beta1::EvaluationJob
|
105
|
+
# Updates an evaluation job. You can only update certain fields of the job's
|
106
|
+
# [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
|
107
|
+
# `exampleCount`, and `exampleSamplePercentage`.
|
108
|
+
#
|
109
|
+
# If you want to change any other aspect of the evaluation job, you must
|
110
|
+
# delete the job and create a new one.
|
111
|
+
rpc :UpdateEvaluationJob, ::Google::Cloud::DataLabeling::V1beta1::UpdateEvaluationJobRequest, ::Google::Cloud::DataLabeling::V1beta1::EvaluationJob
|
112
|
+
# Gets an evaluation job by resource name.
|
113
|
+
rpc :GetEvaluationJob, ::Google::Cloud::DataLabeling::V1beta1::GetEvaluationJobRequest, ::Google::Cloud::DataLabeling::V1beta1::EvaluationJob
|
114
|
+
# Pauses an evaluation job. Pausing an evaluation job that is already in a
|
115
|
+
# `PAUSED` state is a no-op.
|
116
|
+
rpc :PauseEvaluationJob, ::Google::Cloud::DataLabeling::V1beta1::PauseEvaluationJobRequest, ::Google::Protobuf::Empty
|
117
|
+
# Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
|
118
|
+
# Resuming a running or scheduled evaluation job is a no-op.
|
119
|
+
rpc :ResumeEvaluationJob, ::Google::Cloud::DataLabeling::V1beta1::ResumeEvaluationJobRequest, ::Google::Protobuf::Empty
|
120
|
+
# Stops and deletes an evaluation job.
|
121
|
+
rpc :DeleteEvaluationJob, ::Google::Cloud::DataLabeling::V1beta1::DeleteEvaluationJobRequest, ::Google::Protobuf::Empty
|
122
|
+
# Lists all evaluation jobs within a project with possible filters.
|
123
|
+
# Pagination is supported.
|
124
|
+
rpc :ListEvaluationJobs, ::Google::Cloud::DataLabeling::V1beta1::ListEvaluationJobsRequest, ::Google::Cloud::DataLabeling::V1beta1::ListEvaluationJobsResponse
|
125
|
+
end
|
126
|
+
|
127
|
+
Stub = Service.rpc_stub_class
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datalabeling/v1beta1/data_payloads.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/datalabeling/v1beta1/data_payloads.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.datalabeling.v1beta1.ImagePayload" do
|
12
|
+
optional :mime_type, :string, 1
|
13
|
+
optional :image_thumbnail, :bytes, 2
|
14
|
+
optional :image_uri, :string, 3
|
15
|
+
optional :signed_uri, :string, 4
|
16
|
+
end
|
17
|
+
add_message "google.cloud.datalabeling.v1beta1.TextPayload" do
|
18
|
+
optional :text_content, :string, 1
|
19
|
+
end
|
20
|
+
add_message "google.cloud.datalabeling.v1beta1.VideoThumbnail" do
|
21
|
+
optional :thumbnail, :bytes, 1
|
22
|
+
optional :time_offset, :message, 2, "google.protobuf.Duration"
|
23
|
+
end
|
24
|
+
add_message "google.cloud.datalabeling.v1beta1.VideoPayload" do
|
25
|
+
optional :mime_type, :string, 1
|
26
|
+
optional :video_uri, :string, 2
|
27
|
+
repeated :video_thumbnails, :message, 3, "google.cloud.datalabeling.v1beta1.VideoThumbnail"
|
28
|
+
optional :frame_rate, :float, 4
|
29
|
+
optional :signed_uri, :string, 5
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
module Google
|
35
|
+
module Cloud
|
36
|
+
module DataLabeling
|
37
|
+
module V1beta1
|
38
|
+
ImagePayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.ImagePayload").msgclass
|
39
|
+
TextPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.TextPayload").msgclass
|
40
|
+
VideoThumbnail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.VideoThumbnail").msgclass
|
41
|
+
VideoPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.VideoPayload").msgclass
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datalabeling/v1beta1/dataset.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/datalabeling/v1beta1/annotation_pb'
|
9
|
+
require 'google/cloud/datalabeling/v1beta1/annotation_spec_set_pb'
|
10
|
+
require 'google/cloud/datalabeling/v1beta1/data_payloads_pb'
|
11
|
+
require 'google/cloud/datalabeling/v1beta1/human_annotation_config_pb'
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/datalabeling/v1beta1/dataset.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.datalabeling.v1beta1.Dataset" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :display_name, :string, 2
|
18
|
+
optional :description, :string, 3
|
19
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
20
|
+
repeated :input_configs, :message, 5, "google.cloud.datalabeling.v1beta1.InputConfig"
|
21
|
+
repeated :blocking_resources, :string, 6
|
22
|
+
optional :data_item_count, :int64, 7
|
23
|
+
end
|
24
|
+
add_message "google.cloud.datalabeling.v1beta1.InputConfig" do
|
25
|
+
optional :data_type, :enum, 1, "google.cloud.datalabeling.v1beta1.DataType"
|
26
|
+
optional :annotation_type, :enum, 3, "google.cloud.datalabeling.v1beta1.AnnotationType"
|
27
|
+
optional :classification_metadata, :message, 4, "google.cloud.datalabeling.v1beta1.ClassificationMetadata"
|
28
|
+
oneof :data_type_metadata do
|
29
|
+
optional :text_metadata, :message, 6, "google.cloud.datalabeling.v1beta1.TextMetadata"
|
30
|
+
end
|
31
|
+
oneof :source do
|
32
|
+
optional :gcs_source, :message, 2, "google.cloud.datalabeling.v1beta1.GcsSource"
|
33
|
+
optional :bigquery_source, :message, 5, "google.cloud.datalabeling.v1beta1.BigQuerySource"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
add_message "google.cloud.datalabeling.v1beta1.TextMetadata" do
|
37
|
+
optional :language_code, :string, 1
|
38
|
+
end
|
39
|
+
add_message "google.cloud.datalabeling.v1beta1.ClassificationMetadata" do
|
40
|
+
optional :is_multi_label, :bool, 1
|
41
|
+
end
|
42
|
+
add_message "google.cloud.datalabeling.v1beta1.GcsSource" do
|
43
|
+
optional :input_uri, :string, 1
|
44
|
+
optional :mime_type, :string, 2
|
45
|
+
end
|
46
|
+
add_message "google.cloud.datalabeling.v1beta1.BigQuerySource" do
|
47
|
+
optional :input_uri, :string, 1
|
48
|
+
end
|
49
|
+
add_message "google.cloud.datalabeling.v1beta1.OutputConfig" do
|
50
|
+
oneof :destination do
|
51
|
+
optional :gcs_destination, :message, 1, "google.cloud.datalabeling.v1beta1.GcsDestination"
|
52
|
+
optional :gcs_folder_destination, :message, 2, "google.cloud.datalabeling.v1beta1.GcsFolderDestination"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
add_message "google.cloud.datalabeling.v1beta1.GcsDestination" do
|
56
|
+
optional :output_uri, :string, 1
|
57
|
+
optional :mime_type, :string, 2
|
58
|
+
end
|
59
|
+
add_message "google.cloud.datalabeling.v1beta1.GcsFolderDestination" do
|
60
|
+
optional :output_folder_uri, :string, 1
|
61
|
+
end
|
62
|
+
add_message "google.cloud.datalabeling.v1beta1.DataItem" do
|
63
|
+
optional :name, :string, 1
|
64
|
+
oneof :payload do
|
65
|
+
optional :image_payload, :message, 2, "google.cloud.datalabeling.v1beta1.ImagePayload"
|
66
|
+
optional :text_payload, :message, 3, "google.cloud.datalabeling.v1beta1.TextPayload"
|
67
|
+
optional :video_payload, :message, 4, "google.cloud.datalabeling.v1beta1.VideoPayload"
|
68
|
+
end
|
69
|
+
end
|
70
|
+
add_message "google.cloud.datalabeling.v1beta1.AnnotatedDataset" do
|
71
|
+
optional :name, :string, 1
|
72
|
+
optional :display_name, :string, 2
|
73
|
+
optional :description, :string, 9
|
74
|
+
optional :annotation_source, :enum, 3, "google.cloud.datalabeling.v1beta1.AnnotationSource"
|
75
|
+
optional :annotation_type, :enum, 8, "google.cloud.datalabeling.v1beta1.AnnotationType"
|
76
|
+
optional :example_count, :int64, 4
|
77
|
+
optional :completed_example_count, :int64, 5
|
78
|
+
optional :label_stats, :message, 6, "google.cloud.datalabeling.v1beta1.LabelStats"
|
79
|
+
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
80
|
+
optional :metadata, :message, 10, "google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata"
|
81
|
+
repeated :blocking_resources, :string, 11
|
82
|
+
end
|
83
|
+
add_message "google.cloud.datalabeling.v1beta1.LabelStats" do
|
84
|
+
map :example_count, :string, :int64, 1
|
85
|
+
end
|
86
|
+
add_message "google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata" do
|
87
|
+
optional :human_annotation_config, :message, 1, "google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"
|
88
|
+
oneof :annotation_request_config do
|
89
|
+
optional :image_classification_config, :message, 2, "google.cloud.datalabeling.v1beta1.ImageClassificationConfig"
|
90
|
+
optional :bounding_poly_config, :message, 3, "google.cloud.datalabeling.v1beta1.BoundingPolyConfig"
|
91
|
+
optional :polyline_config, :message, 4, "google.cloud.datalabeling.v1beta1.PolylineConfig"
|
92
|
+
optional :segmentation_config, :message, 5, "google.cloud.datalabeling.v1beta1.SegmentationConfig"
|
93
|
+
optional :video_classification_config, :message, 6, "google.cloud.datalabeling.v1beta1.VideoClassificationConfig"
|
94
|
+
optional :object_detection_config, :message, 7, "google.cloud.datalabeling.v1beta1.ObjectDetectionConfig"
|
95
|
+
optional :object_tracking_config, :message, 8, "google.cloud.datalabeling.v1beta1.ObjectTrackingConfig"
|
96
|
+
optional :event_config, :message, 9, "google.cloud.datalabeling.v1beta1.EventConfig"
|
97
|
+
optional :text_classification_config, :message, 10, "google.cloud.datalabeling.v1beta1.TextClassificationConfig"
|
98
|
+
optional :text_entity_extraction_config, :message, 11, "google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
add_message "google.cloud.datalabeling.v1beta1.Example" do
|
102
|
+
optional :name, :string, 1
|
103
|
+
repeated :annotations, :message, 5, "google.cloud.datalabeling.v1beta1.Annotation"
|
104
|
+
oneof :payload do
|
105
|
+
optional :image_payload, :message, 2, "google.cloud.datalabeling.v1beta1.ImagePayload"
|
106
|
+
optional :text_payload, :message, 6, "google.cloud.datalabeling.v1beta1.TextPayload"
|
107
|
+
optional :video_payload, :message, 7, "google.cloud.datalabeling.v1beta1.VideoPayload"
|
108
|
+
end
|
109
|
+
end
|
110
|
+
add_enum "google.cloud.datalabeling.v1beta1.DataType" do
|
111
|
+
value :DATA_TYPE_UNSPECIFIED, 0
|
112
|
+
value :IMAGE, 1
|
113
|
+
value :VIDEO, 2
|
114
|
+
value :TEXT, 4
|
115
|
+
value :GENERAL_DATA, 6
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
module Google
|
121
|
+
module Cloud
|
122
|
+
module DataLabeling
|
123
|
+
module V1beta1
|
124
|
+
Dataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.Dataset").msgclass
|
125
|
+
InputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.InputConfig").msgclass
|
126
|
+
TextMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.TextMetadata").msgclass
|
127
|
+
ClassificationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.ClassificationMetadata").msgclass
|
128
|
+
GcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.GcsSource").msgclass
|
129
|
+
BigQuerySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.BigQuerySource").msgclass
|
130
|
+
OutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.OutputConfig").msgclass
|
131
|
+
GcsDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.GcsDestination").msgclass
|
132
|
+
GcsFolderDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.GcsFolderDestination").msgclass
|
133
|
+
DataItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.DataItem").msgclass
|
134
|
+
AnnotatedDataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.AnnotatedDataset").msgclass
|
135
|
+
LabelStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.LabelStats").msgclass
|
136
|
+
AnnotatedDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata").msgclass
|
137
|
+
Example = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.Example").msgclass
|
138
|
+
DataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.DataType").enummodule
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datalabeling/v1beta1/evaluation_job.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/datalabeling/v1beta1/dataset_pb'
|
9
|
+
require 'google/cloud/datalabeling/v1beta1/evaluation_pb'
|
10
|
+
require 'google/cloud/datalabeling/v1beta1/human_annotation_config_pb'
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
12
|
+
require 'google/rpc/status_pb'
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/datalabeling/v1beta1/evaluation_job.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.datalabeling.v1beta1.EvaluationJob" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :description, :string, 2
|
18
|
+
optional :state, :enum, 3, "google.cloud.datalabeling.v1beta1.EvaluationJob.State"
|
19
|
+
optional :schedule, :string, 4
|
20
|
+
optional :model_version, :string, 5
|
21
|
+
optional :evaluation_job_config, :message, 6, "google.cloud.datalabeling.v1beta1.EvaluationJobConfig"
|
22
|
+
optional :annotation_spec_set, :string, 7
|
23
|
+
optional :label_missing_ground_truth, :bool, 8
|
24
|
+
repeated :attempts, :message, 9, "google.cloud.datalabeling.v1beta1.Attempt"
|
25
|
+
optional :create_time, :message, 10, "google.protobuf.Timestamp"
|
26
|
+
end
|
27
|
+
add_enum "google.cloud.datalabeling.v1beta1.EvaluationJob.State" do
|
28
|
+
value :STATE_UNSPECIFIED, 0
|
29
|
+
value :SCHEDULED, 1
|
30
|
+
value :RUNNING, 2
|
31
|
+
value :PAUSED, 3
|
32
|
+
value :STOPPED, 4
|
33
|
+
end
|
34
|
+
add_message "google.cloud.datalabeling.v1beta1.EvaluationJobConfig" do
|
35
|
+
optional :input_config, :message, 1, "google.cloud.datalabeling.v1beta1.InputConfig"
|
36
|
+
optional :evaluation_config, :message, 2, "google.cloud.datalabeling.v1beta1.EvaluationConfig"
|
37
|
+
optional :human_annotation_config, :message, 3, "google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"
|
38
|
+
map :bigquery_import_keys, :string, :string, 9
|
39
|
+
optional :example_count, :int32, 10
|
40
|
+
optional :example_sample_percentage, :double, 11
|
41
|
+
optional :evaluation_job_alert_config, :message, 13, "google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig"
|
42
|
+
oneof :human_annotation_request_config do
|
43
|
+
optional :image_classification_config, :message, 4, "google.cloud.datalabeling.v1beta1.ImageClassificationConfig"
|
44
|
+
optional :bounding_poly_config, :message, 5, "google.cloud.datalabeling.v1beta1.BoundingPolyConfig"
|
45
|
+
optional :text_classification_config, :message, 8, "google.cloud.datalabeling.v1beta1.TextClassificationConfig"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
add_message "google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig" do
|
49
|
+
optional :email, :string, 1
|
50
|
+
optional :min_acceptable_mean_average_precision, :double, 2
|
51
|
+
end
|
52
|
+
add_message "google.cloud.datalabeling.v1beta1.Attempt" do
|
53
|
+
optional :attempt_time, :message, 1, "google.protobuf.Timestamp"
|
54
|
+
repeated :partial_failures, :message, 2, "google.rpc.Status"
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
module Google
|
60
|
+
module Cloud
|
61
|
+
module DataLabeling
|
62
|
+
module V1beta1
|
63
|
+
EvaluationJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.EvaluationJob").msgclass
|
64
|
+
EvaluationJob::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.EvaluationJob.State").enummodule
|
65
|
+
EvaluationJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.EvaluationJobConfig").msgclass
|
66
|
+
EvaluationJobAlertConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig").msgclass
|
67
|
+
Attempt = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.Attempt").msgclass
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datalabeling/v1beta1/evaluation.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/datalabeling/v1beta1/annotation_pb'
|
9
|
+
require 'google/cloud/datalabeling/v1beta1/annotation_spec_set_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/datalabeling/v1beta1/evaluation.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.datalabeling.v1beta1.Evaluation" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :config, :message, 2, "google.cloud.datalabeling.v1beta1.EvaluationConfig"
|
16
|
+
optional :evaluation_job_run_time, :message, 3, "google.protobuf.Timestamp"
|
17
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
optional :evaluation_metrics, :message, 5, "google.cloud.datalabeling.v1beta1.EvaluationMetrics"
|
19
|
+
optional :annotation_type, :enum, 6, "google.cloud.datalabeling.v1beta1.AnnotationType"
|
20
|
+
optional :evaluated_item_count, :int64, 7
|
21
|
+
end
|
22
|
+
add_message "google.cloud.datalabeling.v1beta1.EvaluationConfig" do
|
23
|
+
oneof :vertical_option do
|
24
|
+
optional :bounding_box_evaluation_options, :message, 1, "google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
add_message "google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions" do
|
28
|
+
optional :iou_threshold, :float, 1
|
29
|
+
end
|
30
|
+
add_message "google.cloud.datalabeling.v1beta1.EvaluationMetrics" do
|
31
|
+
oneof :metrics do
|
32
|
+
optional :classification_metrics, :message, 1, "google.cloud.datalabeling.v1beta1.ClassificationMetrics"
|
33
|
+
optional :object_detection_metrics, :message, 2, "google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
add_message "google.cloud.datalabeling.v1beta1.ClassificationMetrics" do
|
37
|
+
optional :pr_curve, :message, 1, "google.cloud.datalabeling.v1beta1.PrCurve"
|
38
|
+
optional :confusion_matrix, :message, 2, "google.cloud.datalabeling.v1beta1.ConfusionMatrix"
|
39
|
+
end
|
40
|
+
add_message "google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics" do
|
41
|
+
optional :pr_curve, :message, 1, "google.cloud.datalabeling.v1beta1.PrCurve"
|
42
|
+
end
|
43
|
+
add_message "google.cloud.datalabeling.v1beta1.PrCurve" do
|
44
|
+
optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
|
45
|
+
optional :area_under_curve, :float, 2
|
46
|
+
repeated :confidence_metrics_entries, :message, 3, "google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry"
|
47
|
+
optional :mean_average_precision, :float, 4
|
48
|
+
end
|
49
|
+
add_message "google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry" do
|
50
|
+
optional :confidence_threshold, :float, 1
|
51
|
+
optional :recall, :float, 2
|
52
|
+
optional :precision, :float, 3
|
53
|
+
optional :f1_score, :float, 4
|
54
|
+
optional :recall_at1, :float, 5
|
55
|
+
optional :precision_at1, :float, 6
|
56
|
+
optional :f1_score_at1, :float, 7
|
57
|
+
optional :recall_at5, :float, 8
|
58
|
+
optional :precision_at5, :float, 9
|
59
|
+
optional :f1_score_at5, :float, 10
|
60
|
+
end
|
61
|
+
add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix" do
|
62
|
+
repeated :row, :message, 1, "google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row"
|
63
|
+
end
|
64
|
+
add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry" do
|
65
|
+
optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
|
66
|
+
optional :item_count, :int32, 2
|
67
|
+
end
|
68
|
+
add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row" do
|
69
|
+
optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
|
70
|
+
repeated :entries, :message, 2, "google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry"
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
module Google
|
76
|
+
module Cloud
|
77
|
+
module DataLabeling
|
78
|
+
module V1beta1
|
79
|
+
Evaluation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.Evaluation").msgclass
|
80
|
+
EvaluationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.EvaluationConfig").msgclass
|
81
|
+
BoundingBoxEvaluationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions").msgclass
|
82
|
+
EvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.EvaluationMetrics").msgclass
|
83
|
+
ClassificationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.ClassificationMetrics").msgclass
|
84
|
+
ObjectDetectionMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics").msgclass
|
85
|
+
PrCurve = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.PrCurve").msgclass
|
86
|
+
PrCurve::ConfidenceMetricsEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry").msgclass
|
87
|
+
ConfusionMatrix = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.ConfusionMatrix").msgclass
|
88
|
+
ConfusionMatrix::ConfusionMatrixEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry").msgclass
|
89
|
+
ConfusionMatrix::Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row").msgclass
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|