google-cloud-data_labeling-v1beta1 0.8.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -21
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +69 -35
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +19 -15
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/annotation.rb +24 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb +20 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb +40 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation.rb +2 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation_job.rb +6 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/operations.rb +24 -0
- data/proto_docs/google/longrunning/operations.rb +23 -14
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc354ed3ae3b97f0714edbe0bb4963323324e01d86458f4584037f4d308c3941
|
4
|
+
data.tar.gz: 31a6cefdbfcf1e92864a72a272817175fca601f903a9e9478536ec152007fac1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a46e2f055829741fa7fcb9cee5aae228c812edab257b32b1161e164b8c71dbf06a7b43498b92889288db4a78560484862b7ed1c9d5c436aeb259692af7e1e98
|
7
|
+
data.tar.gz: 2ce4fd619f09d25d6e96a748646c3ba70fb8c7002c3f760e83b1730ef61f1b9b9f1396752be10e6e435c9e7dcbc3c6cabf3a5eee63090d9ef565857cfc5d51f2
|
data/README.md
CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/ai-platform/data-labeling/docs)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/data_labeling/v1beta1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
86
|
|
77
87
|
## Supported Ruby Versions
|
78
88
|
|
79
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
80
90
|
|
81
91
|
Google provides official support for Ruby versions that are actively supported
|
82
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -293,8 +293,19 @@ module Google
|
|
293
293
|
universe_domain: @config.universe_domain,
|
294
294
|
channel_args: @config.channel_args,
|
295
295
|
interceptors: @config.interceptors,
|
296
|
-
channel_pool_config: @config.channel_pool
|
296
|
+
channel_pool_config: @config.channel_pool,
|
297
|
+
logger: @config.logger
|
297
298
|
)
|
299
|
+
|
300
|
+
@data_labeling_service_stub.stub_logger&.info do |entry|
|
301
|
+
entry.set_system_name
|
302
|
+
entry.set_service
|
303
|
+
entry.message = "Created client for #{entry.service}"
|
304
|
+
entry.set_credentials_fields credentials
|
305
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
306
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
307
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
308
|
+
end
|
298
309
|
end
|
299
310
|
|
300
311
|
##
|
@@ -304,6 +315,15 @@ module Google
|
|
304
315
|
#
|
305
316
|
attr_reader :operations_client
|
306
317
|
|
318
|
+
##
|
319
|
+
# The logger used for request/response debug logging.
|
320
|
+
#
|
321
|
+
# @return [Logger]
|
322
|
+
#
|
323
|
+
def logger
|
324
|
+
@data_labeling_service_stub.logger
|
325
|
+
end
|
326
|
+
|
307
327
|
# Service calls
|
308
328
|
|
309
329
|
##
|
@@ -389,7 +409,6 @@ module Google
|
|
389
409
|
|
390
410
|
@data_labeling_service_stub.call_rpc :create_dataset, request, options: options do |response, operation|
|
391
411
|
yield response, operation if block_given?
|
392
|
-
return response
|
393
412
|
end
|
394
413
|
rescue ::GRPC::BadStatus => e
|
395
414
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -476,7 +495,6 @@ module Google
|
|
476
495
|
|
477
496
|
@data_labeling_service_stub.call_rpc :get_dataset, request, options: options do |response, operation|
|
478
497
|
yield response, operation if block_given?
|
479
|
-
return response
|
480
498
|
end
|
481
499
|
rescue ::GRPC::BadStatus => e
|
482
500
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -579,7 +597,7 @@ module Google
|
|
579
597
|
@data_labeling_service_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
580
598
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :list_datasets, request, response, operation, options
|
581
599
|
yield response, operation if block_given?
|
582
|
-
|
600
|
+
throw :response, response
|
583
601
|
end
|
584
602
|
rescue ::GRPC::BadStatus => e
|
585
603
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -666,7 +684,6 @@ module Google
|
|
666
684
|
|
667
685
|
@data_labeling_service_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
668
686
|
yield response, operation if block_given?
|
669
|
-
return response
|
670
687
|
end
|
671
688
|
rescue ::GRPC::BadStatus => e
|
672
689
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -770,7 +787,7 @@ module Google
|
|
770
787
|
@data_labeling_service_stub.call_rpc :import_data, request, options: options do |response, operation|
|
771
788
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
772
789
|
yield response, operation if block_given?
|
773
|
-
|
790
|
+
throw :response, response
|
774
791
|
end
|
775
792
|
rescue ::GRPC::BadStatus => e
|
776
793
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -878,7 +895,7 @@ module Google
|
|
878
895
|
@data_labeling_service_stub.call_rpc :export_data, request, options: options do |response, operation|
|
879
896
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
880
897
|
yield response, operation if block_given?
|
881
|
-
|
898
|
+
throw :response, response
|
882
899
|
end
|
883
900
|
rescue ::GRPC::BadStatus => e
|
884
901
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -966,7 +983,6 @@ module Google
|
|
966
983
|
|
967
984
|
@data_labeling_service_stub.call_rpc :get_data_item, request, options: options do |response, operation|
|
968
985
|
yield response, operation if block_given?
|
969
|
-
return response
|
970
986
|
end
|
971
987
|
rescue ::GRPC::BadStatus => e
|
972
988
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1070,7 +1086,7 @@ module Google
|
|
1070
1086
|
@data_labeling_service_stub.call_rpc :list_data_items, request, options: options do |response, operation|
|
1071
1087
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :list_data_items, request, response, operation, options
|
1072
1088
|
yield response, operation if block_given?
|
1073
|
-
|
1089
|
+
throw :response, response
|
1074
1090
|
end
|
1075
1091
|
rescue ::GRPC::BadStatus => e
|
1076
1092
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1158,7 +1174,6 @@ module Google
|
|
1158
1174
|
|
1159
1175
|
@data_labeling_service_stub.call_rpc :get_annotated_dataset, request, options: options do |response, operation|
|
1160
1176
|
yield response, operation if block_given?
|
1161
|
-
return response
|
1162
1177
|
end
|
1163
1178
|
rescue ::GRPC::BadStatus => e
|
1164
1179
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1261,7 +1276,7 @@ module Google
|
|
1261
1276
|
@data_labeling_service_stub.call_rpc :list_annotated_datasets, request, options: options do |response, operation|
|
1262
1277
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :list_annotated_datasets, request, response, operation, options
|
1263
1278
|
yield response, operation if block_given?
|
1264
|
-
|
1279
|
+
throw :response, response
|
1265
1280
|
end
|
1266
1281
|
rescue ::GRPC::BadStatus => e
|
1267
1282
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1349,7 +1364,6 @@ module Google
|
|
1349
1364
|
|
1350
1365
|
@data_labeling_service_stub.call_rpc :delete_annotated_dataset, request, options: options do |response, operation|
|
1351
1366
|
yield response, operation if block_given?
|
1352
|
-
return response
|
1353
1367
|
end
|
1354
1368
|
rescue ::GRPC::BadStatus => e
|
1355
1369
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1378,18 +1392,26 @@ module Google
|
|
1378
1392
|
# Configuration for image classification task.
|
1379
1393
|
# One of image_classification_config, bounding_poly_config,
|
1380
1394
|
# polyline_config and segmentation_config are required.
|
1395
|
+
#
|
1396
|
+
# Note: The following fields are mutually exclusive: `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1381
1397
|
# @param bounding_poly_config [::Google::Cloud::DataLabeling::V1beta1::BoundingPolyConfig, ::Hash]
|
1382
1398
|
# Configuration for bounding box and bounding poly task.
|
1383
1399
|
# One of image_classification_config, bounding_poly_config,
|
1384
1400
|
# polyline_config and segmentation_config are required.
|
1401
|
+
#
|
1402
|
+
# Note: The following fields are mutually exclusive: `bounding_poly_config`, `image_classification_config`, `polyline_config`, `segmentation_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1385
1403
|
# @param polyline_config [::Google::Cloud::DataLabeling::V1beta1::PolylineConfig, ::Hash]
|
1386
1404
|
# Configuration for polyline task.
|
1387
1405
|
# One of image_classification_config, bounding_poly_config,
|
1388
1406
|
# polyline_config and segmentation_config are required.
|
1407
|
+
#
|
1408
|
+
# Note: The following fields are mutually exclusive: `polyline_config`, `image_classification_config`, `bounding_poly_config`, `segmentation_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1389
1409
|
# @param segmentation_config [::Google::Cloud::DataLabeling::V1beta1::SegmentationConfig, ::Hash]
|
1390
1410
|
# Configuration for segmentation task.
|
1391
1411
|
# One of image_classification_config, bounding_poly_config,
|
1392
1412
|
# polyline_config and segmentation_config are required.
|
1413
|
+
#
|
1414
|
+
# Note: The following fields are mutually exclusive: `segmentation_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1393
1415
|
# @param parent [::String]
|
1394
1416
|
# Required. Name of the dataset to request labeling task, format:
|
1395
1417
|
# projects/\\{project_id}/datasets/\\{dataset_id}
|
@@ -1465,7 +1487,7 @@ module Google
|
|
1465
1487
|
@data_labeling_service_stub.call_rpc :label_image, request, options: options do |response, operation|
|
1466
1488
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1467
1489
|
yield response, operation if block_given?
|
1468
|
-
|
1490
|
+
throw :response, response
|
1469
1491
|
end
|
1470
1492
|
rescue ::GRPC::BadStatus => e
|
1471
1493
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1494,18 +1516,26 @@ module Google
|
|
1494
1516
|
# Configuration for video classification task.
|
1495
1517
|
# One of video_classification_config, object_detection_config,
|
1496
1518
|
# object_tracking_config and event_config is required.
|
1519
|
+
#
|
1520
|
+
# Note: The following fields are mutually exclusive: `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1497
1521
|
# @param object_detection_config [::Google::Cloud::DataLabeling::V1beta1::ObjectDetectionConfig, ::Hash]
|
1498
1522
|
# Configuration for video object detection task.
|
1499
1523
|
# One of video_classification_config, object_detection_config,
|
1500
1524
|
# object_tracking_config and event_config is required.
|
1525
|
+
#
|
1526
|
+
# Note: The following fields are mutually exclusive: `object_detection_config`, `video_classification_config`, `object_tracking_config`, `event_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1501
1527
|
# @param object_tracking_config [::Google::Cloud::DataLabeling::V1beta1::ObjectTrackingConfig, ::Hash]
|
1502
1528
|
# Configuration for video object tracking task.
|
1503
1529
|
# One of video_classification_config, object_detection_config,
|
1504
1530
|
# object_tracking_config and event_config is required.
|
1531
|
+
#
|
1532
|
+
# Note: The following fields are mutually exclusive: `object_tracking_config`, `video_classification_config`, `object_detection_config`, `event_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1505
1533
|
# @param event_config [::Google::Cloud::DataLabeling::V1beta1::EventConfig, ::Hash]
|
1506
1534
|
# Configuration for video event task.
|
1507
1535
|
# One of video_classification_config, object_detection_config,
|
1508
1536
|
# object_tracking_config and event_config is required.
|
1537
|
+
#
|
1538
|
+
# Note: The following fields are mutually exclusive: `event_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1509
1539
|
# @param parent [::String]
|
1510
1540
|
# Required. Name of the dataset to request labeling task, format:
|
1511
1541
|
# projects/\\{project_id}/datasets/\\{dataset_id}
|
@@ -1581,7 +1611,7 @@ module Google
|
|
1581
1611
|
@data_labeling_service_stub.call_rpc :label_video, request, options: options do |response, operation|
|
1582
1612
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1583
1613
|
yield response, operation if block_given?
|
1584
|
-
|
1614
|
+
throw :response, response
|
1585
1615
|
end
|
1586
1616
|
rescue ::GRPC::BadStatus => e
|
1587
1617
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1610,10 +1640,14 @@ module Google
|
|
1610
1640
|
# Configuration for text classification task.
|
1611
1641
|
# One of text_classification_config and text_entity_extraction_config
|
1612
1642
|
# is required.
|
1643
|
+
#
|
1644
|
+
# Note: The following fields are mutually exclusive: `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1613
1645
|
# @param text_entity_extraction_config [::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig, ::Hash]
|
1614
1646
|
# Configuration for entity extraction task.
|
1615
1647
|
# One of text_classification_config and text_entity_extraction_config
|
1616
1648
|
# is required.
|
1649
|
+
#
|
1650
|
+
# Note: The following fields are mutually exclusive: `text_entity_extraction_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1617
1651
|
# @param parent [::String]
|
1618
1652
|
# Required. Name of the data set to request labeling task, format:
|
1619
1653
|
# projects/\\{project_id}/datasets/\\{dataset_id}
|
@@ -1689,7 +1723,7 @@ module Google
|
|
1689
1723
|
@data_labeling_service_stub.call_rpc :label_text, request, options: options do |response, operation|
|
1690
1724
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1691
1725
|
yield response, operation if block_given?
|
1692
|
-
|
1726
|
+
throw :response, response
|
1693
1727
|
end
|
1694
1728
|
rescue ::GRPC::BadStatus => e
|
1695
1729
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1781,7 +1815,6 @@ module Google
|
|
1781
1815
|
|
1782
1816
|
@data_labeling_service_stub.call_rpc :get_example, request, options: options do |response, operation|
|
1783
1817
|
yield response, operation if block_given?
|
1784
|
-
return response
|
1785
1818
|
end
|
1786
1819
|
rescue ::GRPC::BadStatus => e
|
1787
1820
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1886,7 +1919,7 @@ module Google
|
|
1886
1919
|
@data_labeling_service_stub.call_rpc :list_examples, request, options: options do |response, operation|
|
1887
1920
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :list_examples, request, response, operation, options
|
1888
1921
|
yield response, operation if block_given?
|
1889
|
-
|
1922
|
+
throw :response, response
|
1890
1923
|
end
|
1891
1924
|
rescue ::GRPC::BadStatus => e
|
1892
1925
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1977,7 +2010,6 @@ module Google
|
|
1977
2010
|
|
1978
2011
|
@data_labeling_service_stub.call_rpc :create_annotation_spec_set, request, options: options do |response, operation|
|
1979
2012
|
yield response, operation if block_given?
|
1980
|
-
return response
|
1981
2013
|
end
|
1982
2014
|
rescue ::GRPC::BadStatus => e
|
1983
2015
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2064,7 +2096,6 @@ module Google
|
|
2064
2096
|
|
2065
2097
|
@data_labeling_service_stub.call_rpc :get_annotation_spec_set, request, options: options do |response, operation|
|
2066
2098
|
yield response, operation if block_given?
|
2067
|
-
return response
|
2068
2099
|
end
|
2069
2100
|
rescue ::GRPC::BadStatus => e
|
2070
2101
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2167,7 +2198,7 @@ module Google
|
|
2167
2198
|
@data_labeling_service_stub.call_rpc :list_annotation_spec_sets, request, options: options do |response, operation|
|
2168
2199
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :list_annotation_spec_sets, request, response, operation, options
|
2169
2200
|
yield response, operation if block_given?
|
2170
|
-
|
2201
|
+
throw :response, response
|
2171
2202
|
end
|
2172
2203
|
rescue ::GRPC::BadStatus => e
|
2173
2204
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2254,7 +2285,6 @@ module Google
|
|
2254
2285
|
|
2255
2286
|
@data_labeling_service_stub.call_rpc :delete_annotation_spec_set, request, options: options do |response, operation|
|
2256
2287
|
yield response, operation if block_given?
|
2257
|
-
return response
|
2258
2288
|
end
|
2259
2289
|
rescue ::GRPC::BadStatus => e
|
2260
2290
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2351,7 +2381,7 @@ module Google
|
|
2351
2381
|
@data_labeling_service_stub.call_rpc :create_instruction, request, options: options do |response, operation|
|
2352
2382
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2353
2383
|
yield response, operation if block_given?
|
2354
|
-
|
2384
|
+
throw :response, response
|
2355
2385
|
end
|
2356
2386
|
rescue ::GRPC::BadStatus => e
|
2357
2387
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2438,7 +2468,6 @@ module Google
|
|
2438
2468
|
|
2439
2469
|
@data_labeling_service_stub.call_rpc :get_instruction, request, options: options do |response, operation|
|
2440
2470
|
yield response, operation if block_given?
|
2441
|
-
return response
|
2442
2471
|
end
|
2443
2472
|
rescue ::GRPC::BadStatus => e
|
2444
2473
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2541,7 +2570,7 @@ module Google
|
|
2541
2570
|
@data_labeling_service_stub.call_rpc :list_instructions, request, options: options do |response, operation|
|
2542
2571
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :list_instructions, request, response, operation, options
|
2543
2572
|
yield response, operation if block_given?
|
2544
|
-
|
2573
|
+
throw :response, response
|
2545
2574
|
end
|
2546
2575
|
rescue ::GRPC::BadStatus => e
|
2547
2576
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2628,7 +2657,6 @@ module Google
|
|
2628
2657
|
|
2629
2658
|
@data_labeling_service_stub.call_rpc :delete_instruction, request, options: options do |response, operation|
|
2630
2659
|
yield response, operation if block_given?
|
2631
|
-
return response
|
2632
2660
|
end
|
2633
2661
|
rescue ::GRPC::BadStatus => e
|
2634
2662
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2717,7 +2745,6 @@ module Google
|
|
2717
2745
|
|
2718
2746
|
@data_labeling_service_stub.call_rpc :get_evaluation, request, options: options do |response, operation|
|
2719
2747
|
yield response, operation if block_given?
|
2720
|
-
return response
|
2721
2748
|
end
|
2722
2749
|
rescue ::GRPC::BadStatus => e
|
2723
2750
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2852,7 +2879,7 @@ module Google
|
|
2852
2879
|
@data_labeling_service_stub.call_rpc :search_evaluations, request, options: options do |response, operation|
|
2853
2880
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :search_evaluations, request, response, operation, options
|
2854
2881
|
yield response, operation if block_given?
|
2855
|
-
|
2882
|
+
throw :response, response
|
2856
2883
|
end
|
2857
2884
|
rescue ::GRPC::BadStatus => e
|
2858
2885
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2959,7 +2986,7 @@ module Google
|
|
2959
2986
|
@data_labeling_service_stub.call_rpc :search_example_comparisons, request, options: options do |response, operation|
|
2960
2987
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :search_example_comparisons, request, response, operation, options
|
2961
2988
|
yield response, operation if block_given?
|
2962
|
-
|
2989
|
+
throw :response, response
|
2963
2990
|
end
|
2964
2991
|
rescue ::GRPC::BadStatus => e
|
2965
2992
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3048,7 +3075,6 @@ module Google
|
|
3048
3075
|
|
3049
3076
|
@data_labeling_service_stub.call_rpc :create_evaluation_job, request, options: options do |response, operation|
|
3050
3077
|
yield response, operation if block_given?
|
3051
|
-
return response
|
3052
3078
|
end
|
3053
3079
|
rescue ::GRPC::BadStatus => e
|
3054
3080
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3149,7 +3175,6 @@ module Google
|
|
3149
3175
|
|
3150
3176
|
@data_labeling_service_stub.call_rpc :update_evaluation_job, request, options: options do |response, operation|
|
3151
3177
|
yield response, operation if block_given?
|
3152
|
-
return response
|
3153
3178
|
end
|
3154
3179
|
rescue ::GRPC::BadStatus => e
|
3155
3180
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3237,7 +3262,6 @@ module Google
|
|
3237
3262
|
|
3238
3263
|
@data_labeling_service_stub.call_rpc :get_evaluation_job, request, options: options do |response, operation|
|
3239
3264
|
yield response, operation if block_given?
|
3240
|
-
return response
|
3241
3265
|
end
|
3242
3266
|
rescue ::GRPC::BadStatus => e
|
3243
3267
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3326,7 +3350,6 @@ module Google
|
|
3326
3350
|
|
3327
3351
|
@data_labeling_service_stub.call_rpc :pause_evaluation_job, request, options: options do |response, operation|
|
3328
3352
|
yield response, operation if block_given?
|
3329
|
-
return response
|
3330
3353
|
end
|
3331
3354
|
rescue ::GRPC::BadStatus => e
|
3332
3355
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3415,7 +3438,6 @@ module Google
|
|
3415
3438
|
|
3416
3439
|
@data_labeling_service_stub.call_rpc :resume_evaluation_job, request, options: options do |response, operation|
|
3417
3440
|
yield response, operation if block_given?
|
3418
|
-
return response
|
3419
3441
|
end
|
3420
3442
|
rescue ::GRPC::BadStatus => e
|
3421
3443
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3503,7 +3525,6 @@ module Google
|
|
3503
3525
|
|
3504
3526
|
@data_labeling_service_stub.call_rpc :delete_evaluation_job, request, options: options do |response, operation|
|
3505
3527
|
yield response, operation if block_given?
|
3506
|
-
return response
|
3507
3528
|
end
|
3508
3529
|
rescue ::GRPC::BadStatus => e
|
3509
3530
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3614,7 +3635,7 @@ module Google
|
|
3614
3635
|
@data_labeling_service_stub.call_rpc :list_evaluation_jobs, request, options: options do |response, operation|
|
3615
3636
|
response = ::Gapic::PagedEnumerable.new @data_labeling_service_stub, :list_evaluation_jobs, request, response, operation, options
|
3616
3637
|
yield response, operation if block_given?
|
3617
|
-
|
3638
|
+
throw :response, response
|
3618
3639
|
end
|
3619
3640
|
rescue ::GRPC::BadStatus => e
|
3620
3641
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3664,6 +3685,13 @@ module Google
|
|
3664
3685
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
3665
3686
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
3666
3687
|
# * (`nil`) indicating no credentials
|
3688
|
+
#
|
3689
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
3690
|
+
# external source for authentication to Google Cloud, you must validate it before
|
3691
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
3692
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
3693
|
+
# For more information, refer to [Validate credential configurations from external
|
3694
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
3667
3695
|
# @return [::Object]
|
3668
3696
|
# @!attribute [rw] scope
|
3669
3697
|
# The OAuth scopes
|
@@ -3703,6 +3731,11 @@ module Google
|
|
3703
3731
|
# default endpoint URL. The default value of nil uses the environment
|
3704
3732
|
# universe (usually the default "googleapis.com" universe).
|
3705
3733
|
# @return [::String,nil]
|
3734
|
+
# @!attribute [rw] logger
|
3735
|
+
# A custom logger to use for request/response debug logging, or the value
|
3736
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
3737
|
+
# explicitly disable logging.
|
3738
|
+
# @return [::Logger,:default,nil]
|
3706
3739
|
#
|
3707
3740
|
class Configuration
|
3708
3741
|
extend ::Gapic::Config
|
@@ -3727,6 +3760,7 @@ module Google
|
|
3727
3760
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3728
3761
|
config_attr :quota_project, nil, ::String, nil
|
3729
3762
|
config_attr :universe_domain, nil, ::String, nil
|
3763
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
3730
3764
|
|
3731
3765
|
# @private
|
3732
3766
|
def initialize parent_config = nil
|
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -221,7 +213,7 @@ module Google
|
|
221
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
222
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
223
215
|
yield response, operation if block_given?
|
224
|
-
|
216
|
+
throw :response, response
|
225
217
|
end
|
226
218
|
rescue ::GRPC::BadStatus => e
|
227
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -317,7 +309,7 @@ module Google
|
|
317
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
318
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
319
311
|
yield response, operation if block_given?
|
320
|
-
|
312
|
+
throw :response, response
|
321
313
|
end
|
322
314
|
rescue ::GRPC::BadStatus => e
|
323
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -406,7 +398,6 @@ module Google
|
|
406
398
|
|
407
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
408
400
|
yield response, operation if block_given?
|
409
|
-
return response
|
410
401
|
end
|
411
402
|
rescue ::GRPC::BadStatus => e
|
412
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -421,8 +412,9 @@ module Google
|
|
421
412
|
# other methods to check whether the cancellation succeeded or whether the
|
422
413
|
# operation completed despite cancellation. On successful cancellation,
|
423
414
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
426
418
|
#
|
427
419
|
# @overload cancel_operation(request, options = nil)
|
428
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -501,7 +493,6 @@ module Google
|
|
501
493
|
|
502
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
503
495
|
yield response, operation if block_given?
|
504
|
-
return response
|
505
496
|
end
|
506
497
|
rescue ::GRPC::BadStatus => e
|
507
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +590,7 @@ module Google
|
|
599
590
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
600
591
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
592
|
yield response, operation if block_given?
|
602
|
-
|
593
|
+
throw :response, response
|
603
594
|
end
|
604
595
|
rescue ::GRPC::BadStatus => e
|
605
596
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -649,6 +640,13 @@ module Google
|
|
649
640
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
650
641
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
651
642
|
# * (`nil`) indicating no credentials
|
643
|
+
#
|
644
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
645
|
+
# external source for authentication to Google Cloud, you must validate it before
|
646
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
647
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
648
|
+
# For more information, refer to [Validate credential configurations from external
|
649
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
652
650
|
# @return [::Object]
|
653
651
|
# @!attribute [rw] scope
|
654
652
|
# The OAuth scopes
|
@@ -688,6 +686,11 @@ module Google
|
|
688
686
|
# default endpoint URL. The default value of nil uses the environment
|
689
687
|
# universe (usually the default "googleapis.com" universe).
|
690
688
|
# @return [::String,nil]
|
689
|
+
# @!attribute [rw] logger
|
690
|
+
# A custom logger to use for request/response debug logging, or the value
|
691
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
692
|
+
# explicitly disable logging.
|
693
|
+
# @return [::Logger,:default,nil]
|
691
694
|
#
|
692
695
|
class Configuration
|
693
696
|
extend ::Gapic::Config
|
@@ -712,6 +715,7 @@ module Google
|
|
712
715
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
713
716
|
config_attr :quota_project, nil, ::String, nil
|
714
717
|
config_attr :universe_domain, nil, ::String, nil
|
718
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
715
719
|
|
716
720
|
# @private
|
717
721
|
def initialize parent_config = nil
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +215,12 @@ module Google
|
|
212
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
213
216
|
# This feature will be enabled by default 1 month after launching the
|
214
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
215
224
|
class ExperimentalFeatures
|
216
225
|
include ::Google::Protobuf::MessageExts
|
217
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,9 +306,28 @@ module Google
|
|
297
306
|
# @!attribute [rw] common
|
298
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
299
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
300
319
|
class GoSettings
|
301
320
|
include ::Google::Protobuf::MessageExts
|
302
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
303
331
|
end
|
304
332
|
|
305
333
|
# Describes the generator configuration for a method.
|
@@ -375,6 +403,17 @@ module Google
|
|
375
403
|
end
|
376
404
|
end
|
377
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
378
417
|
# The organization for which the client libraries are being published.
|
379
418
|
# Affects the url where generated docs are published, etc.
|
380
419
|
module ClientLibraryOrganization
|
@@ -52,34 +52,52 @@ module Google
|
|
52
52
|
# @!attribute [rw] image_classification_annotation
|
53
53
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ImageClassificationAnnotation]
|
54
54
|
# Annotation value for image classification case.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
55
57
|
# @!attribute [rw] image_bounding_poly_annotation
|
56
58
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ImageBoundingPolyAnnotation]
|
57
59
|
# Annotation value for image bounding box, oriented bounding box
|
58
60
|
# and polygon cases.
|
61
|
+
#
|
62
|
+
# Note: The following fields are mutually exclusive: `image_bounding_poly_annotation`, `image_classification_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
59
63
|
# @!attribute [rw] image_polyline_annotation
|
60
64
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ImagePolylineAnnotation]
|
61
65
|
# Annotation value for image polyline cases.
|
62
66
|
# Polyline here is different from BoundingPoly. It is formed by
|
63
67
|
# line segments connected to each other but not closed form(Bounding Poly).
|
64
68
|
# The line segments can cross each other.
|
69
|
+
#
|
70
|
+
# Note: The following fields are mutually exclusive: `image_polyline_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
65
71
|
# @!attribute [rw] image_segmentation_annotation
|
66
72
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation]
|
67
73
|
# Annotation value for image segmentation.
|
74
|
+
#
|
75
|
+
# Note: The following fields are mutually exclusive: `image_segmentation_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
68
76
|
# @!attribute [rw] text_classification_annotation
|
69
77
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextClassificationAnnotation]
|
70
78
|
# Annotation value for text classification case.
|
79
|
+
#
|
80
|
+
# Note: The following fields are mutually exclusive: `text_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
71
81
|
# @!attribute [rw] text_entity_extraction_annotation
|
72
82
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionAnnotation]
|
73
83
|
# Annotation value for text entity extraction case.
|
84
|
+
#
|
85
|
+
# Note: The following fields are mutually exclusive: `text_entity_extraction_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
74
86
|
# @!attribute [rw] video_classification_annotation
|
75
87
|
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoClassificationAnnotation]
|
76
88
|
# Annotation value for video classification case.
|
89
|
+
#
|
90
|
+
# Note: The following fields are mutually exclusive: `video_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
77
91
|
# @!attribute [rw] video_object_tracking_annotation
|
78
92
|
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoObjectTrackingAnnotation]
|
79
93
|
# Annotation value for video object detection and tracking case.
|
94
|
+
#
|
95
|
+
# Note: The following fields are mutually exclusive: `video_object_tracking_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
80
96
|
# @!attribute [rw] video_event_annotation
|
81
97
|
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoEventAnnotation]
|
82
98
|
# Annotation value for video event case.
|
99
|
+
#
|
100
|
+
# Note: The following fields are mutually exclusive: `video_event_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
83
101
|
class AnnotationValue
|
84
102
|
include ::Google::Protobuf::MessageExts
|
85
103
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -143,8 +161,10 @@ module Google
|
|
143
161
|
# bounding box in the image.
|
144
162
|
# @!attribute [rw] bounding_poly
|
145
163
|
# @return [::Google::Cloud::DataLabeling::V1beta1::BoundingPoly]
|
164
|
+
# Note: The following fields are mutually exclusive: `bounding_poly`, `normalized_bounding_poly`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
146
165
|
# @!attribute [rw] normalized_bounding_poly
|
147
166
|
# @return [::Google::Cloud::DataLabeling::V1beta1::NormalizedBoundingPoly]
|
167
|
+
# Note: The following fields are mutually exclusive: `normalized_bounding_poly`, `bounding_poly`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
148
168
|
# @!attribute [rw] annotation_spec
|
149
169
|
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
150
170
|
# Label of object in this bounding polygon.
|
@@ -174,8 +194,10 @@ module Google
|
|
174
194
|
# A polyline for the image annotation.
|
175
195
|
# @!attribute [rw] polyline
|
176
196
|
# @return [::Google::Cloud::DataLabeling::V1beta1::Polyline]
|
197
|
+
# Note: The following fields are mutually exclusive: `polyline`, `normalized_polyline`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
177
198
|
# @!attribute [rw] normalized_polyline
|
178
199
|
# @return [::Google::Cloud::DataLabeling::V1beta1::NormalizedPolyline]
|
200
|
+
# Note: The following fields are mutually exclusive: `normalized_polyline`, `polyline`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
179
201
|
# @!attribute [rw] annotation_spec
|
180
202
|
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
181
203
|
# Label of this polyline.
|
@@ -272,8 +294,10 @@ module Google
|
|
272
294
|
# Video frame level annotation for object detection and tracking.
|
273
295
|
# @!attribute [rw] bounding_poly
|
274
296
|
# @return [::Google::Cloud::DataLabeling::V1beta1::BoundingPoly]
|
297
|
+
# Note: The following fields are mutually exclusive: `bounding_poly`, `normalized_bounding_poly`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
275
298
|
# @!attribute [rw] normalized_bounding_poly
|
276
299
|
# @return [::Google::Cloud::DataLabeling::V1beta1::NormalizedBoundingPoly]
|
300
|
+
# Note: The following fields are mutually exclusive: `normalized_bounding_poly`, `bounding_poly`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
277
301
|
# @!attribute [rw] time_offset
|
278
302
|
# @return [::Google::Protobuf::Duration]
|
279
303
|
# The time offset of this frame relative to the beginning of the video.
|
@@ -244,21 +244,29 @@ module Google
|
|
244
244
|
# Configuration for image classification task.
|
245
245
|
# One of image_classification_config, bounding_poly_config,
|
246
246
|
# polyline_config and segmentation_config are required.
|
247
|
+
#
|
248
|
+
# Note: The following fields are mutually exclusive: `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
247
249
|
# @!attribute [rw] bounding_poly_config
|
248
250
|
# @return [::Google::Cloud::DataLabeling::V1beta1::BoundingPolyConfig]
|
249
251
|
# Configuration for bounding box and bounding poly task.
|
250
252
|
# One of image_classification_config, bounding_poly_config,
|
251
253
|
# polyline_config and segmentation_config are required.
|
254
|
+
#
|
255
|
+
# Note: The following fields are mutually exclusive: `bounding_poly_config`, `image_classification_config`, `polyline_config`, `segmentation_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
252
256
|
# @!attribute [rw] polyline_config
|
253
257
|
# @return [::Google::Cloud::DataLabeling::V1beta1::PolylineConfig]
|
254
258
|
# Configuration for polyline task.
|
255
259
|
# One of image_classification_config, bounding_poly_config,
|
256
260
|
# polyline_config and segmentation_config are required.
|
261
|
+
#
|
262
|
+
# Note: The following fields are mutually exclusive: `polyline_config`, `image_classification_config`, `bounding_poly_config`, `segmentation_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
257
263
|
# @!attribute [rw] segmentation_config
|
258
264
|
# @return [::Google::Cloud::DataLabeling::V1beta1::SegmentationConfig]
|
259
265
|
# Configuration for segmentation task.
|
260
266
|
# One of image_classification_config, bounding_poly_config,
|
261
267
|
# polyline_config and segmentation_config are required.
|
268
|
+
#
|
269
|
+
# Note: The following fields are mutually exclusive: `segmentation_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
262
270
|
# @!attribute [rw] parent
|
263
271
|
# @return [::String]
|
264
272
|
# Required. Name of the dataset to request labeling task, format:
|
@@ -307,21 +315,29 @@ module Google
|
|
307
315
|
# Configuration for video classification task.
|
308
316
|
# One of video_classification_config, object_detection_config,
|
309
317
|
# object_tracking_config and event_config is required.
|
318
|
+
#
|
319
|
+
# Note: The following fields are mutually exclusive: `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
310
320
|
# @!attribute [rw] object_detection_config
|
311
321
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ObjectDetectionConfig]
|
312
322
|
# Configuration for video object detection task.
|
313
323
|
# One of video_classification_config, object_detection_config,
|
314
324
|
# object_tracking_config and event_config is required.
|
325
|
+
#
|
326
|
+
# Note: The following fields are mutually exclusive: `object_detection_config`, `video_classification_config`, `object_tracking_config`, `event_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
315
327
|
# @!attribute [rw] object_tracking_config
|
316
328
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ObjectTrackingConfig]
|
317
329
|
# Configuration for video object tracking task.
|
318
330
|
# One of video_classification_config, object_detection_config,
|
319
331
|
# object_tracking_config and event_config is required.
|
332
|
+
#
|
333
|
+
# Note: The following fields are mutually exclusive: `object_tracking_config`, `video_classification_config`, `object_detection_config`, `event_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
320
334
|
# @!attribute [rw] event_config
|
321
335
|
# @return [::Google::Cloud::DataLabeling::V1beta1::EventConfig]
|
322
336
|
# Configuration for video event task.
|
323
337
|
# One of video_classification_config, object_detection_config,
|
324
338
|
# object_tracking_config and event_config is required.
|
339
|
+
#
|
340
|
+
# Note: The following fields are mutually exclusive: `event_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
325
341
|
# @!attribute [rw] parent
|
326
342
|
# @return [::String]
|
327
343
|
# Required. Name of the dataset to request labeling task, format:
|
@@ -360,11 +376,15 @@ module Google
|
|
360
376
|
# Configuration for text classification task.
|
361
377
|
# One of text_classification_config and text_entity_extraction_config
|
362
378
|
# is required.
|
379
|
+
#
|
380
|
+
# Note: The following fields are mutually exclusive: `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
363
381
|
# @!attribute [rw] text_entity_extraction_config
|
364
382
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig]
|
365
383
|
# Configuration for entity extraction task.
|
366
384
|
# One of text_classification_config and text_entity_extraction_config
|
367
385
|
# is required.
|
386
|
+
#
|
387
|
+
# Note: The following fields are mutually exclusive: `text_entity_extraction_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
368
388
|
# @!attribute [rw] parent
|
369
389
|
# @return [::String]
|
370
390
|
# Required. Name of the data set to request labeling task, format:
|
@@ -61,10 +61,14 @@ module Google
|
|
61
61
|
# @!attribute [rw] gcs_source
|
62
62
|
# @return [::Google::Cloud::DataLabeling::V1beta1::GcsSource]
|
63
63
|
# Source located in Cloud Storage.
|
64
|
+
#
|
65
|
+
# Note: The following fields are mutually exclusive: `gcs_source`, `bigquery_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
64
66
|
# @!attribute [rw] bigquery_source
|
65
67
|
# @return [::Google::Cloud::DataLabeling::V1beta1::BigQuerySource]
|
66
68
|
# Source located in BigQuery. You must specify this field if you are using
|
67
69
|
# this InputConfig in an {::Google::Cloud::DataLabeling::V1beta1::EvaluationJob EvaluationJob}.
|
70
|
+
#
|
71
|
+
# Note: The following fields are mutually exclusive: `bigquery_source`, `gcs_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
68
72
|
# @!attribute [rw] data_type
|
69
73
|
# @return [::Google::Cloud::DataLabeling::V1beta1::DataType]
|
70
74
|
# Required. Data type must be specifed when user tries to import data.
|
@@ -145,10 +149,14 @@ module Google
|
|
145
149
|
# @return [::Google::Cloud::DataLabeling::V1beta1::GcsDestination]
|
146
150
|
# Output to a file in Cloud Storage. Should be used for labeling output
|
147
151
|
# other than image segmentation.
|
152
|
+
#
|
153
|
+
# Note: The following fields are mutually exclusive: `gcs_destination`, `gcs_folder_destination`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
148
154
|
# @!attribute [rw] gcs_folder_destination
|
149
155
|
# @return [::Google::Cloud::DataLabeling::V1beta1::GcsFolderDestination]
|
150
156
|
# Output to a folder in Cloud Storage. Should be used for image
|
151
157
|
# segmentation labeling output.
|
158
|
+
#
|
159
|
+
# Note: The following fields are mutually exclusive: `gcs_folder_destination`, `gcs_destination`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
152
160
|
class OutputConfig
|
153
161
|
include ::Google::Protobuf::MessageExts
|
154
162
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -182,12 +190,18 @@ module Google
|
|
182
190
|
# @!attribute [rw] image_payload
|
183
191
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ImagePayload]
|
184
192
|
# The image payload, a container of the image bytes/uri.
|
193
|
+
#
|
194
|
+
# Note: The following fields are mutually exclusive: `image_payload`, `text_payload`, `video_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
185
195
|
# @!attribute [rw] text_payload
|
186
196
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextPayload]
|
187
197
|
# The text payload, a container of text content.
|
198
|
+
#
|
199
|
+
# Note: The following fields are mutually exclusive: `text_payload`, `image_payload`, `video_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
188
200
|
# @!attribute [rw] video_payload
|
189
201
|
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoPayload]
|
190
202
|
# The video payload, a container of the video uri.
|
203
|
+
#
|
204
|
+
# Note: The following fields are mutually exclusive: `video_payload`, `image_payload`, `text_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
191
205
|
# @!attribute [rw] name
|
192
206
|
# @return [::String]
|
193
207
|
# Output only. Name of the data item, in format of:
|
@@ -273,33 +287,53 @@ module Google
|
|
273
287
|
# @!attribute [rw] image_classification_config
|
274
288
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ImageClassificationConfig]
|
275
289
|
# Configuration for image classification task.
|
290
|
+
#
|
291
|
+
# Note: The following fields are mutually exclusive: `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
276
292
|
# @!attribute [rw] bounding_poly_config
|
277
293
|
# @return [::Google::Cloud::DataLabeling::V1beta1::BoundingPolyConfig]
|
278
294
|
# Configuration for image bounding box and bounding poly task.
|
295
|
+
#
|
296
|
+
# Note: The following fields are mutually exclusive: `bounding_poly_config`, `image_classification_config`, `polyline_config`, `segmentation_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
279
297
|
# @!attribute [rw] polyline_config
|
280
298
|
# @return [::Google::Cloud::DataLabeling::V1beta1::PolylineConfig]
|
281
299
|
# Configuration for image polyline task.
|
300
|
+
#
|
301
|
+
# Note: The following fields are mutually exclusive: `polyline_config`, `image_classification_config`, `bounding_poly_config`, `segmentation_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
282
302
|
# @!attribute [rw] segmentation_config
|
283
303
|
# @return [::Google::Cloud::DataLabeling::V1beta1::SegmentationConfig]
|
284
304
|
# Configuration for image segmentation task.
|
305
|
+
#
|
306
|
+
# Note: The following fields are mutually exclusive: `segmentation_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
285
307
|
# @!attribute [rw] video_classification_config
|
286
308
|
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoClassificationConfig]
|
287
309
|
# Configuration for video classification task.
|
310
|
+
#
|
311
|
+
# Note: The following fields are mutually exclusive: `video_classification_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`, `object_detection_config`, `object_tracking_config`, `event_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
288
312
|
# @!attribute [rw] object_detection_config
|
289
313
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ObjectDetectionConfig]
|
290
314
|
# Configuration for video object detection task.
|
315
|
+
#
|
316
|
+
# Note: The following fields are mutually exclusive: `object_detection_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`, `video_classification_config`, `object_tracking_config`, `event_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
291
317
|
# @!attribute [rw] object_tracking_config
|
292
318
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ObjectTrackingConfig]
|
293
319
|
# Configuration for video object tracking task.
|
320
|
+
#
|
321
|
+
# Note: The following fields are mutually exclusive: `object_tracking_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`, `video_classification_config`, `object_detection_config`, `event_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
294
322
|
# @!attribute [rw] event_config
|
295
323
|
# @return [::Google::Cloud::DataLabeling::V1beta1::EventConfig]
|
296
324
|
# Configuration for video event labeling task.
|
325
|
+
#
|
326
|
+
# Note: The following fields are mutually exclusive: `event_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`, `text_classification_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
297
327
|
# @!attribute [rw] text_classification_config
|
298
328
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig]
|
299
329
|
# Configuration for text classification task.
|
330
|
+
#
|
331
|
+
# Note: The following fields are mutually exclusive: `text_classification_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`, `text_entity_extraction_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
300
332
|
# @!attribute [rw] text_entity_extraction_config
|
301
333
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig]
|
302
334
|
# Configuration for text entity extraction task.
|
335
|
+
#
|
336
|
+
# Note: The following fields are mutually exclusive: `text_entity_extraction_config`, `image_classification_config`, `bounding_poly_config`, `polyline_config`, `segmentation_config`, `video_classification_config`, `object_detection_config`, `object_tracking_config`, `event_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
303
337
|
# @!attribute [rw] human_annotation_config
|
304
338
|
# @return [::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig]
|
305
339
|
# HumanAnnotationConfig used when requesting the human labeling task for this
|
@@ -314,12 +348,18 @@ module Google
|
|
314
348
|
# @!attribute [rw] image_payload
|
315
349
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ImagePayload]
|
316
350
|
# The image payload, a container of the image bytes/uri.
|
351
|
+
#
|
352
|
+
# Note: The following fields are mutually exclusive: `image_payload`, `text_payload`, `video_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
317
353
|
# @!attribute [rw] text_payload
|
318
354
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextPayload]
|
319
355
|
# The text payload, a container of the text content.
|
356
|
+
#
|
357
|
+
# Note: The following fields are mutually exclusive: `text_payload`, `image_payload`, `video_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
320
358
|
# @!attribute [rw] video_payload
|
321
359
|
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoPayload]
|
322
360
|
# The video payload, a container of the video uri.
|
361
|
+
#
|
362
|
+
# Note: The following fields are mutually exclusive: `video_payload`, `image_payload`, `text_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
323
363
|
# @!attribute [rw] name
|
324
364
|
# @return [::String]
|
325
365
|
# Output only. Name of the example, in format of:
|
@@ -88,8 +88,10 @@ module Google
|
|
88
88
|
|
89
89
|
# @!attribute [rw] classification_metrics
|
90
90
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ClassificationMetrics]
|
91
|
+
# Note: The following fields are mutually exclusive: `classification_metrics`, `object_detection_metrics`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
91
92
|
# @!attribute [rw] object_detection_metrics
|
92
93
|
# @return [::Google::Cloud::DataLabeling::V1beta1::ObjectDetectionMetrics]
|
94
|
+
# Note: The following fields are mutually exclusive: `object_detection_metrics`, `classification_metrics`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
93
95
|
class EvaluationMetrics
|
94
96
|
include ::Google::Protobuf::MessageExts
|
95
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -151,6 +151,8 @@ module Google
|
|
151
151
|
# {::Google::Cloud::DataLabeling::V1beta1::EvaluationJob#annotation_spec_set EvaluationJob.annotationSpecSet}.
|
152
152
|
# `allowMultiLabel` in this configuration must match
|
153
153
|
# `classificationMetadata.isMultiLabel` in {::Google::Cloud::DataLabeling::V1beta1::EvaluationJobConfig#input_config input_config}.
|
154
|
+
#
|
155
|
+
# Note: The following fields are mutually exclusive: `image_classification_config`, `bounding_poly_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
154
156
|
# @!attribute [rw] bounding_poly_config
|
155
157
|
# @return [::Google::Cloud::DataLabeling::V1beta1::BoundingPolyConfig]
|
156
158
|
# Specify this field if your model version performs image object detection
|
@@ -158,6 +160,8 @@ module Google
|
|
158
160
|
#
|
159
161
|
# `annotationSpecSet` in this configuration must match
|
160
162
|
# {::Google::Cloud::DataLabeling::V1beta1::EvaluationJob#annotation_spec_set EvaluationJob.annotationSpecSet}.
|
163
|
+
#
|
164
|
+
# Note: The following fields are mutually exclusive: `bounding_poly_config`, `image_classification_config`, `text_classification_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
161
165
|
# @!attribute [rw] text_classification_config
|
162
166
|
# @return [::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig]
|
163
167
|
# Specify this field if your model version performs text classification.
|
@@ -166,6 +170,8 @@ module Google
|
|
166
170
|
# {::Google::Cloud::DataLabeling::V1beta1::EvaluationJob#annotation_spec_set EvaluationJob.annotationSpecSet}.
|
167
171
|
# `allowMultiLabel` in this configuration must match
|
168
172
|
# `classificationMetadata.isMultiLabel` in {::Google::Cloud::DataLabeling::V1beta1::EvaluationJobConfig#input_config input_config}.
|
173
|
+
#
|
174
|
+
# Note: The following fields are mutually exclusive: `text_classification_config`, `image_classification_config`, `bounding_poly_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
169
175
|
# @!attribute [rw] input_config
|
170
176
|
# @return [::Google::Cloud::DataLabeling::V1beta1::InputConfig]
|
171
177
|
# Rquired. Details for the sampled prediction input. Within this
|
@@ -99,39 +99,63 @@ module Google
|
|
99
99
|
# @!attribute [rw] image_classification_details
|
100
100
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageClassificationOperationMetadata]
|
101
101
|
# Details of label image classification operation.
|
102
|
+
#
|
103
|
+
# Note: The following fields are mutually exclusive: `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
102
104
|
# @!attribute [rw] image_bounding_box_details
|
103
105
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageBoundingBoxOperationMetadata]
|
104
106
|
# Details of label image bounding box operation.
|
107
|
+
#
|
108
|
+
# Note: The following fields are mutually exclusive: `image_bounding_box_details`, `image_classification_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
105
109
|
# @!attribute [rw] image_bounding_poly_details
|
106
110
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageBoundingPolyOperationMetadata]
|
107
111
|
# Details of label image bounding poly operation.
|
112
|
+
#
|
113
|
+
# Note: The following fields are mutually exclusive: `image_bounding_poly_details`, `image_classification_details`, `image_bounding_box_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
108
114
|
# @!attribute [rw] image_oriented_bounding_box_details
|
109
115
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageOrientedBoundingBoxOperationMetadata]
|
110
116
|
# Details of label image oriented bounding box operation.
|
117
|
+
#
|
118
|
+
# Note: The following fields are mutually exclusive: `image_oriented_bounding_box_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
111
119
|
# @!attribute [rw] image_polyline_details
|
112
120
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImagePolylineOperationMetadata]
|
113
121
|
# Details of label image polyline operation.
|
122
|
+
#
|
123
|
+
# Note: The following fields are mutually exclusive: `image_polyline_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
114
124
|
# @!attribute [rw] image_segmentation_details
|
115
125
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelImageSegmentationOperationMetadata]
|
116
126
|
# Details of label image segmentation operation.
|
127
|
+
#
|
128
|
+
# Note: The following fields are mutually exclusive: `image_segmentation_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
117
129
|
# @!attribute [rw] video_classification_details
|
118
130
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoClassificationOperationMetadata]
|
119
131
|
# Details of label video classification operation.
|
132
|
+
#
|
133
|
+
# Note: The following fields are mutually exclusive: `video_classification_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
120
134
|
# @!attribute [rw] video_object_detection_details
|
121
135
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoObjectDetectionOperationMetadata]
|
122
136
|
# Details of label video object detection operation.
|
137
|
+
#
|
138
|
+
# Note: The following fields are mutually exclusive: `video_object_detection_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
123
139
|
# @!attribute [rw] video_object_tracking_details
|
124
140
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoObjectTrackingOperationMetadata]
|
125
141
|
# Details of label video object tracking operation.
|
142
|
+
#
|
143
|
+
# Note: The following fields are mutually exclusive: `video_object_tracking_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_event_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
126
144
|
# @!attribute [rw] video_event_details
|
127
145
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelVideoEventOperationMetadata]
|
128
146
|
# Details of label video event operation.
|
147
|
+
#
|
148
|
+
# Note: The following fields are mutually exclusive: `video_event_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `text_classification_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
129
149
|
# @!attribute [rw] text_classification_details
|
130
150
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelTextClassificationOperationMetadata]
|
131
151
|
# Details of label text classification operation.
|
152
|
+
#
|
153
|
+
# Note: The following fields are mutually exclusive: `text_classification_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_entity_extraction_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
132
154
|
# @!attribute [rw] text_entity_extraction_details
|
133
155
|
# @return [::Google::Cloud::DataLabeling::V1beta1::LabelTextEntityExtractionOperationMetadata]
|
134
156
|
# Details of label text entity extraction operation.
|
157
|
+
#
|
158
|
+
# Note: The following fields are mutually exclusive: `text_entity_extraction_details`, `image_classification_details`, `image_bounding_box_details`, `image_bounding_poly_details`, `image_oriented_bounding_box_details`, `image_polyline_details`, `image_segmentation_details`, `video_classification_details`, `video_object_detection_details`, `video_object_tracking_details`, `video_event_details`, `text_classification_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
135
159
|
# @!attribute [rw] progress_percent
|
136
160
|
# @return [::Integer]
|
137
161
|
# Output only. Progress of label operation. Range: [0, 100].
|
@@ -40,9 +40,11 @@ module Google
|
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
45
|
# @!attribute [rw] response
|
44
46
|
# @return [::Google::Protobuf::Any]
|
45
|
-
# The normal response of the operation
|
47
|
+
# The normal, successful response of the operation. If the original
|
46
48
|
# method returns no data on success, such as `Delete`, the response is
|
47
49
|
# `google.protobuf.Empty`. If the original method is standard
|
48
50
|
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
@@ -50,12 +52,15 @@ module Google
|
|
50
52
|
# is the original method name. For example, if the original method name
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
52
54
|
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
57
|
class Operation
|
54
58
|
include ::Google::Protobuf::MessageExts
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
60
|
end
|
57
61
|
|
58
|
-
# The request message for
|
62
|
+
# The request message for
|
63
|
+
# Operations.GetOperation.
|
59
64
|
# @!attribute [rw] name
|
60
65
|
# @return [::String]
|
61
66
|
# The name of the operation resource.
|
@@ -64,7 +69,8 @@ module Google
|
|
64
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
70
|
end
|
66
71
|
|
67
|
-
# The request message for
|
72
|
+
# The request message for
|
73
|
+
# Operations.ListOperations.
|
68
74
|
# @!attribute [rw] name
|
69
75
|
# @return [::String]
|
70
76
|
# The name of the operation's parent resource.
|
@@ -82,7 +88,8 @@ module Google
|
|
82
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
89
|
end
|
84
90
|
|
85
|
-
# The response message for
|
91
|
+
# The response message for
|
92
|
+
# Operations.ListOperations.
|
86
93
|
# @!attribute [rw] operations
|
87
94
|
# @return [::Array<::Google::Longrunning::Operation>]
|
88
95
|
# A list of operations that matches the specified filter in the request.
|
@@ -94,7 +101,8 @@ module Google
|
|
94
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
102
|
end
|
96
103
|
|
97
|
-
# The request message for
|
104
|
+
# The request message for
|
105
|
+
# Operations.CancelOperation.
|
98
106
|
# @!attribute [rw] name
|
99
107
|
# @return [::String]
|
100
108
|
# The name of the operation resource to be cancelled.
|
@@ -103,7 +111,8 @@ module Google
|
|
103
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
112
|
end
|
105
113
|
|
106
|
-
# The request message for
|
114
|
+
# The request message for
|
115
|
+
# Operations.DeleteOperation.
|
107
116
|
# @!attribute [rw] name
|
108
117
|
# @return [::String]
|
109
118
|
# The name of the operation resource to be deleted.
|
@@ -112,7 +121,8 @@ module Google
|
|
112
121
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
122
|
end
|
114
123
|
|
115
|
-
# The request message for
|
124
|
+
# The request message for
|
125
|
+
# Operations.WaitOperation.
|
116
126
|
# @!attribute [rw] name
|
117
127
|
# @return [::String]
|
118
128
|
# The name of the operation resource to wait on.
|
@@ -130,13 +140,12 @@ module Google
|
|
130
140
|
#
|
131
141
|
# Example:
|
132
142
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# }
|
139
|
-
# }
|
143
|
+
# rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
144
|
+
# option (google.longrunning.operation_info) = {
|
145
|
+
# response_type: "ExportResponse"
|
146
|
+
# metadata_type: "ExportMetadata"
|
147
|
+
# };
|
148
|
+
# }
|
140
149
|
# @!attribute [rw] response_type
|
141
150
|
# @return [::String]
|
142
151
|
# Required. The message name of the primary return type for this
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-data_labeling-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -103,7 +102,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
103
102
|
licenses:
|
104
103
|
- Apache-2.0
|
105
104
|
metadata: {}
|
106
|
-
post_install_message:
|
107
105
|
rdoc_options: []
|
108
106
|
require_paths:
|
109
107
|
- lib
|
@@ -111,15 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
109
|
requirements:
|
112
110
|
- - ">="
|
113
111
|
- !ruby/object:Gem::Version
|
114
|
-
version: '
|
112
|
+
version: '3.0'
|
115
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
114
|
requirements:
|
117
115
|
- - ">="
|
118
116
|
- !ruby/object:Gem::Version
|
119
117
|
version: '0'
|
120
118
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
122
|
-
signing_key:
|
119
|
+
rubygems_version: 3.6.2
|
123
120
|
specification_version: 4
|
124
121
|
summary: Public API for Google Cloud AI Data Labeling Service.
|
125
122
|
test_files: []
|