google-cloud-automl-v1beta1 0.7.0 → 0.8.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +30 -15
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +24 -6
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +6 -4
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +5 -3
- data/lib/google/cloud/automl/v1beta1/automl/rest/client.rb +6 -4
- data/lib/google/cloud/automl/v1beta1/automl/rest/operations.rb +10 -8
- data/lib/google/cloud/automl/v1beta1/automl/rest/service_stub.rb +24 -24
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +25 -47
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +26 -13
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +28 -61
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +24 -54
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +24 -22
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +30 -20
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +26 -33
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +24 -8
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +24 -29
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +24 -57
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +31 -17
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +30 -25
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +27 -59
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +6 -4
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +5 -3
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/client.rb +6 -4
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/operations.rb +10 -8
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +27 -20
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -5
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +24 -8
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +32 -125
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +25 -10
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +29 -34
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -5
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +25 -17
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +24 -17
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +24 -6
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +25 -15
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +25 -17
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +24 -9
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '059cc2bbd3c15929bbf00121d620b2def2c9aa9094f495cf8c99484f7f4b1653'
|
|
4
|
+
data.tar.gz: cb7028f82d3af4178facbf5442512fb69ffc53548bd9d1ef8bdf1d974ab6cd50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a87bd80593ab8c074f81413114557ee51b184e2096f13d72bb839ca747356cc7b6b1bdc740dfde3d401954903d8bfea8136ea0d2634fbd12539d87d23496e10
|
|
7
|
+
data.tar.gz: 6a78fc0756e62b5f90c2afdd84ee253770f8cfd019b991c7d1fcd94d2e8ce2adb3317c3bb0aa2b4f2e0b60ae5437acd485c2b8f0815c091ca9629bf4d39a61b8
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
|
47
47
|
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
53
53
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/automl/v1beta1/annotation_payload.proto
|
|
3
4
|
|
|
@@ -10,23 +11,37 @@ require 'google/cloud/automl/v1beta1/text_extraction_pb'
|
|
|
10
11
|
require 'google/cloud/automl/v1beta1/text_sentiment_pb'
|
|
11
12
|
require 'google/cloud/automl/v1beta1/translation_pb'
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n4google/cloud/automl/v1beta1/annotation_payload.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x30google/cloud/automl/v1beta1/classification.proto\x1a+google/cloud/automl/v1beta1/detection.proto\x1a(google/cloud/automl/v1beta1/tables.proto\x1a\x31google/cloud/automl/v1beta1/text_extraction.proto\x1a\x30google/cloud/automl/v1beta1/text_sentiment.proto\x1a-google/cloud/automl/v1beta1/translation.proto\"\xe6\x05\n\x11\x41nnotationPayload\x12I\n\x0btranslation\x18\x02 \x01(\x0b\x32\x32.google.cloud.automl.v1beta1.TranslationAnnotationH\x00\x12O\n\x0e\x63lassification\x18\x03 \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.ClassificationAnnotationH\x00\x12]\n\x16image_object_detection\x18\x04 \x01(\x0b\x32;.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationH\x00\x12Z\n\x14video_classification\x18\t \x01(\x0b\x32:.google.cloud.automl.v1beta1.VideoClassificationAnnotationH\x00\x12[\n\x15video_object_tracking\x18\x08 \x01(\x0b\x32:.google.cloud.automl.v1beta1.VideoObjectTrackingAnnotationH\x00\x12P\n\x0ftext_extraction\x18\x06 \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.TextExtractionAnnotationH\x00\x12N\n\x0etext_sentiment\x18\x07 \x01(\x0b\x32\x34.google.cloud.automl.v1beta1.TextSentimentAnnotationH\x00\x12?\n\x06tables\x18\n \x01(\x0b\x32-.google.cloud.automl.v1beta1.TablesAnnotationH\x00\x12\x1a\n\x12\x61nnotation_spec_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x08\n\x06\x64\x65tailB\x9b\x01\n\x1f\x63om.google.cloud.automl.v1beta1P\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
|
|
19
|
+
begin
|
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
|
21
|
+
rescue TypeError => e
|
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
25
|
+
parsed.clear_dependency
|
|
26
|
+
serialized = parsed.class.encode(parsed)
|
|
27
|
+
file = pool.add_serialized_file(serialized)
|
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
29
|
+
imports = [
|
|
30
|
+
["google.cloud.automl.v1beta1.TranslationAnnotation", "google/cloud/automl/v1beta1/translation.proto"],
|
|
31
|
+
["google.cloud.automl.v1beta1.ClassificationAnnotation", "google/cloud/automl/v1beta1/classification.proto"],
|
|
32
|
+
["google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation", "google/cloud/automl/v1beta1/detection.proto"],
|
|
33
|
+
["google.cloud.automl.v1beta1.TextExtractionAnnotation", "google/cloud/automl/v1beta1/text_extraction.proto"],
|
|
34
|
+
["google.cloud.automl.v1beta1.TextSentimentAnnotation", "google/cloud/automl/v1beta1/text_sentiment.proto"],
|
|
35
|
+
["google.cloud.automl.v1beta1.TablesAnnotation", "google/cloud/automl/v1beta1/tables.proto"],
|
|
36
|
+
]
|
|
37
|
+
imports.each do |type_name, expected_filename|
|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
39
|
+
if import_file.name != expected_filename
|
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
28
41
|
end
|
|
29
42
|
end
|
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
44
|
+
warn "This will become an error in the next major version."
|
|
30
45
|
end
|
|
31
46
|
|
|
32
47
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/automl/v1beta1/annotation_spec.proto
|
|
3
4
|
|
|
@@ -5,14 +6,31 @@ require 'google/protobuf'
|
|
|
5
6
|
|
|
6
7
|
require 'google/api/resource_pb'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n1google/cloud/automl/v1beta1/annotation_spec.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x19google/api/resource.proto\"\xd6\x01\n\x0e\x41nnotationSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x15\n\rexample_count\x18\t \x01(\x05:\x88\x01\xea\x41\x84\x01\n$automl.googleapis.com/AnnotationSpec\x12\\projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}B\x9b\x01\n\x1f\x63om.google.cloud.automl.v1beta1P\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError => e
|
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
+
parsed.clear_dependency
|
|
21
|
+
serialized = parsed.class.encode(parsed)
|
|
22
|
+
file = pool.add_serialized_file(serialized)
|
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
+
imports = [
|
|
25
|
+
]
|
|
26
|
+
imports.each do |type_name, expected_filename|
|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
28
|
+
if import_file.name != expected_filename
|
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
14
30
|
end
|
|
15
31
|
end
|
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
33
|
+
warn "This will become an error in the next major version."
|
|
16
34
|
end
|
|
17
35
|
|
|
18
36
|
module Google
|
|
@@ -220,7 +220,7 @@ module Google
|
|
|
220
220
|
credentials = @config.credentials
|
|
221
221
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
222
222
|
# but only if the default endpoint does not have a region prefix.
|
|
223
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
223
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
224
224
|
!@config.endpoint.split(".").first.include?("-")
|
|
225
225
|
credentials ||= Credentials.default scope: @config.scope,
|
|
226
226
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -2596,9 +2596,9 @@ module Google
|
|
|
2596
2596
|
# * (`String`) The path to a service account key file in JSON format
|
|
2597
2597
|
# * (`Hash`) A service account key as a Hash
|
|
2598
2598
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
2599
|
-
# (see the [googleauth docs](https://
|
|
2599
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
2600
2600
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
2601
|
-
# (see the [signet docs](https://
|
|
2601
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
2602
2602
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
2603
2603
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
2604
2604
|
# * (`nil`) indicating no credentials
|
|
@@ -2640,7 +2640,9 @@ module Google
|
|
|
2640
2640
|
class Configuration
|
|
2641
2641
|
extend ::Gapic::Config
|
|
2642
2642
|
|
|
2643
|
-
|
|
2643
|
+
DEFAULT_ENDPOINT = "automl.googleapis.com"
|
|
2644
|
+
|
|
2645
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
2644
2646
|
config_attr :credentials, nil do |value|
|
|
2645
2647
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
2646
2648
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -628,9 +628,9 @@ module Google
|
|
|
628
628
|
# * (`String`) The path to a service account key file in JSON format
|
|
629
629
|
# * (`Hash`) A service account key as a Hash
|
|
630
630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
631
|
-
# (see the [googleauth docs](https://
|
|
631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
632
632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
633
|
-
# (see the [signet docs](https://
|
|
633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
634
634
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
635
635
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
636
636
|
# * (`nil`) indicating no credentials
|
|
@@ -672,7 +672,9 @@ module Google
|
|
|
672
672
|
class Configuration
|
|
673
673
|
extend ::Gapic::Config
|
|
674
674
|
|
|
675
|
-
|
|
675
|
+
DEFAULT_ENDPOINT = "automl.googleapis.com"
|
|
676
|
+
|
|
677
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
676
678
|
config_attr :credentials, nil do |value|
|
|
677
679
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
678
680
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -216,7 +216,7 @@ module Google
|
|
|
216
216
|
credentials = @config.credentials
|
|
217
217
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
218
218
|
# but only if the default endpoint does not have a region prefix.
|
|
219
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
219
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
220
220
|
!@config.endpoint.split(".").first.include?("-")
|
|
221
221
|
credentials ||= Credentials.default scope: @config.scope,
|
|
222
222
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1952,9 +1952,9 @@ module Google
|
|
|
1952
1952
|
# * (`String`) The path to a service account key file in JSON format
|
|
1953
1953
|
# * (`Hash`) A service account key as a Hash
|
|
1954
1954
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1955
|
-
# (see the [googleauth docs](https://
|
|
1955
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1956
1956
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1957
|
-
# (see the [signet docs](https://
|
|
1957
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1958
1958
|
# * (`nil`) indicating no credentials
|
|
1959
1959
|
# @return [::Object]
|
|
1960
1960
|
# @!attribute [rw] scope
|
|
@@ -1987,7 +1987,9 @@ module Google
|
|
|
1987
1987
|
class Configuration
|
|
1988
1988
|
extend ::Gapic::Config
|
|
1989
1989
|
|
|
1990
|
-
|
|
1990
|
+
DEFAULT_ENDPOINT = "automl.googleapis.com"
|
|
1991
|
+
|
|
1992
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1991
1993
|
config_attr :credentials, nil do |value|
|
|
1992
1994
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1993
1995
|
allowed.any? { |klass| klass === value }
|
|
@@ -486,9 +486,9 @@ module Google
|
|
|
486
486
|
# * (`String`) The path to a service account key file in JSON format
|
|
487
487
|
# * (`Hash`) A service account key as a Hash
|
|
488
488
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
489
|
-
# (see the [googleauth docs](https://
|
|
489
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
490
490
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
491
|
-
# (see the [signet docs](https://
|
|
491
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
492
492
|
# * (`nil`) indicating no credentials
|
|
493
493
|
# @return [::Object]
|
|
494
494
|
# @!attribute [rw] scope
|
|
@@ -521,7 +521,9 @@ module Google
|
|
|
521
521
|
class Configuration
|
|
522
522
|
extend ::Gapic::Config
|
|
523
523
|
|
|
524
|
-
|
|
524
|
+
DEFAULT_ENDPOINT = "automl.googleapis.com"
|
|
525
|
+
|
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
525
527
|
config_attr :credentials, nil do |value|
|
|
526
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
527
529
|
allowed.any? { |klass| klass === value }
|
|
@@ -649,7 +651,7 @@ module Google
|
|
|
649
651
|
|
|
650
652
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
651
653
|
query_string_params = if query_string_params.any?
|
|
652
|
-
query_string_params.to_h { |p| p.split
|
|
654
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
653
655
|
else
|
|
654
656
|
{}
|
|
655
657
|
end
|
|
@@ -687,7 +689,7 @@ module Google
|
|
|
687
689
|
|
|
688
690
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
689
691
|
query_string_params = if query_string_params.any?
|
|
690
|
-
query_string_params.to_h { |p| p.split
|
|
692
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
691
693
|
else
|
|
692
694
|
{}
|
|
693
695
|
end
|
|
@@ -725,7 +727,7 @@ module Google
|
|
|
725
727
|
|
|
726
728
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
727
729
|
query_string_params = if query_string_params.any?
|
|
728
|
-
query_string_params.to_h { |p| p.split
|
|
730
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
729
731
|
else
|
|
730
732
|
{}
|
|
731
733
|
end
|
|
@@ -763,7 +765,7 @@ module Google
|
|
|
763
765
|
|
|
764
766
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
765
767
|
query_string_params = if query_string_params.any?
|
|
766
|
-
query_string_params.to_h { |p| p.split
|
|
768
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
767
769
|
else
|
|
768
770
|
{}
|
|
769
771
|
end
|
|
@@ -801,7 +803,7 @@ module Google
|
|
|
801
803
|
|
|
802
804
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_wait_operation_request request_pb
|
|
803
805
|
query_string_params = if query_string_params.any?
|
|
804
|
-
query_string_params.to_h { |p| p.split
|
|
806
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
805
807
|
else
|
|
806
808
|
{}
|
|
807
809
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_dataset_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_dataset_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_datasets_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_dataset_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_dataset_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -249,7 +249,7 @@ module Google
|
|
|
249
249
|
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_import_data_request request_pb
|
|
251
251
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
253
|
else
|
|
254
254
|
{}
|
|
255
255
|
end
|
|
@@ -287,7 +287,7 @@ module Google
|
|
|
287
287
|
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_export_data_request request_pb
|
|
289
289
|
query_string_params = if query_string_params.any?
|
|
290
|
-
query_string_params.to_h { |p| p.split
|
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
291
291
|
else
|
|
292
292
|
{}
|
|
293
293
|
end
|
|
@@ -325,7 +325,7 @@ module Google
|
|
|
325
325
|
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_annotation_spec_request request_pb
|
|
327
327
|
query_string_params = if query_string_params.any?
|
|
328
|
-
query_string_params.to_h { |p| p.split
|
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
329
329
|
else
|
|
330
330
|
{}
|
|
331
331
|
end
|
|
@@ -363,7 +363,7 @@ module Google
|
|
|
363
363
|
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_table_spec_request request_pb
|
|
365
365
|
query_string_params = if query_string_params.any?
|
|
366
|
-
query_string_params.to_h { |p| p.split
|
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
367
367
|
else
|
|
368
368
|
{}
|
|
369
369
|
end
|
|
@@ -401,7 +401,7 @@ module Google
|
|
|
401
401
|
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_table_specs_request request_pb
|
|
403
403
|
query_string_params = if query_string_params.any?
|
|
404
|
-
query_string_params.to_h { |p| p.split
|
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
405
405
|
else
|
|
406
406
|
{}
|
|
407
407
|
end
|
|
@@ -439,7 +439,7 @@ module Google
|
|
|
439
439
|
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_table_spec_request request_pb
|
|
441
441
|
query_string_params = if query_string_params.any?
|
|
442
|
-
query_string_params.to_h { |p| p.split
|
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
443
443
|
else
|
|
444
444
|
{}
|
|
445
445
|
end
|
|
@@ -477,7 +477,7 @@ module Google
|
|
|
477
477
|
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_column_spec_request request_pb
|
|
479
479
|
query_string_params = if query_string_params.any?
|
|
480
|
-
query_string_params.to_h { |p| p.split
|
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
481
481
|
else
|
|
482
482
|
{}
|
|
483
483
|
end
|
|
@@ -515,7 +515,7 @@ module Google
|
|
|
515
515
|
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_column_specs_request request_pb
|
|
517
517
|
query_string_params = if query_string_params.any?
|
|
518
|
-
query_string_params.to_h { |p| p.split
|
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
519
519
|
else
|
|
520
520
|
{}
|
|
521
521
|
end
|
|
@@ -553,7 +553,7 @@ module Google
|
|
|
553
553
|
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_column_spec_request request_pb
|
|
555
555
|
query_string_params = if query_string_params.any?
|
|
556
|
-
query_string_params.to_h { |p| p.split
|
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
557
557
|
else
|
|
558
558
|
{}
|
|
559
559
|
end
|
|
@@ -591,7 +591,7 @@ module Google
|
|
|
591
591
|
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_model_request request_pb
|
|
593
593
|
query_string_params = if query_string_params.any?
|
|
594
|
-
query_string_params.to_h { |p| p.split
|
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
595
595
|
else
|
|
596
596
|
{}
|
|
597
597
|
end
|
|
@@ -629,7 +629,7 @@ module Google
|
|
|
629
629
|
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_model_request request_pb
|
|
631
631
|
query_string_params = if query_string_params.any?
|
|
632
|
-
query_string_params.to_h { |p| p.split
|
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
633
633
|
else
|
|
634
634
|
{}
|
|
635
635
|
end
|
|
@@ -667,7 +667,7 @@ module Google
|
|
|
667
667
|
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_models_request request_pb
|
|
669
669
|
query_string_params = if query_string_params.any?
|
|
670
|
-
query_string_params.to_h { |p| p.split
|
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
671
671
|
else
|
|
672
672
|
{}
|
|
673
673
|
end
|
|
@@ -705,7 +705,7 @@ module Google
|
|
|
705
705
|
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_model_request request_pb
|
|
707
707
|
query_string_params = if query_string_params.any?
|
|
708
|
-
query_string_params.to_h { |p| p.split
|
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
709
709
|
else
|
|
710
710
|
{}
|
|
711
711
|
end
|
|
@@ -743,7 +743,7 @@ module Google
|
|
|
743
743
|
|
|
744
744
|
verb, uri, query_string_params, body = ServiceStub.transcode_deploy_model_request request_pb
|
|
745
745
|
query_string_params = if query_string_params.any?
|
|
746
|
-
query_string_params.to_h { |p| p.split
|
|
746
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
747
747
|
else
|
|
748
748
|
{}
|
|
749
749
|
end
|
|
@@ -781,7 +781,7 @@ module Google
|
|
|
781
781
|
|
|
782
782
|
verb, uri, query_string_params, body = ServiceStub.transcode_undeploy_model_request request_pb
|
|
783
783
|
query_string_params = if query_string_params.any?
|
|
784
|
-
query_string_params.to_h { |p| p.split
|
|
784
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
785
785
|
else
|
|
786
786
|
{}
|
|
787
787
|
end
|
|
@@ -819,7 +819,7 @@ module Google
|
|
|
819
819
|
|
|
820
820
|
verb, uri, query_string_params, body = ServiceStub.transcode_export_model_request request_pb
|
|
821
821
|
query_string_params = if query_string_params.any?
|
|
822
|
-
query_string_params.to_h { |p| p.split
|
|
822
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
823
823
|
else
|
|
824
824
|
{}
|
|
825
825
|
end
|
|
@@ -857,7 +857,7 @@ module Google
|
|
|
857
857
|
|
|
858
858
|
verb, uri, query_string_params, body = ServiceStub.transcode_export_evaluated_examples_request request_pb
|
|
859
859
|
query_string_params = if query_string_params.any?
|
|
860
|
-
query_string_params.to_h { |p| p.split
|
|
860
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
861
861
|
else
|
|
862
862
|
{}
|
|
863
863
|
end
|
|
@@ -895,7 +895,7 @@ module Google
|
|
|
895
895
|
|
|
896
896
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_model_evaluation_request request_pb
|
|
897
897
|
query_string_params = if query_string_params.any?
|
|
898
|
-
query_string_params.to_h { |p| p.split
|
|
898
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
899
899
|
else
|
|
900
900
|
{}
|
|
901
901
|
end
|
|
@@ -933,7 +933,7 @@ module Google
|
|
|
933
933
|
|
|
934
934
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_model_evaluations_request request_pb
|
|
935
935
|
query_string_params = if query_string_params.any?
|
|
936
|
-
query_string_params.to_h { |p| p.split
|
|
936
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
937
937
|
else
|
|
938
938
|
{}
|
|
939
939
|
end
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/automl/v1beta1/classification.proto
|
|
3
4
|
|
|
@@ -5,55 +6,32 @@ require 'google/protobuf'
|
|
|
5
6
|
|
|
6
7
|
require 'google/cloud/automl/v1beta1/temporal_pb'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
optional :recall, :float, 2
|
|
31
|
-
optional :precision, :float, 3
|
|
32
|
-
optional :false_positive_rate, :float, 8
|
|
33
|
-
optional :f1_score, :float, 4
|
|
34
|
-
optional :recall_at1, :float, 5
|
|
35
|
-
optional :precision_at1, :float, 6
|
|
36
|
-
optional :false_positive_rate_at1, :float, 9
|
|
37
|
-
optional :f1_score_at1, :float, 7
|
|
38
|
-
optional :true_positive_count, :int64, 10
|
|
39
|
-
optional :false_positive_count, :int64, 11
|
|
40
|
-
optional :false_negative_count, :int64, 12
|
|
41
|
-
optional :true_negative_count, :int64, 13
|
|
42
|
-
end
|
|
43
|
-
add_message "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix" do
|
|
44
|
-
repeated :annotation_spec_id, :string, 1
|
|
45
|
-
repeated :display_name, :string, 3
|
|
46
|
-
repeated :row, :message, 2, "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row"
|
|
47
|
-
end
|
|
48
|
-
add_message "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row" do
|
|
49
|
-
repeated :example_count, :int32, 1
|
|
50
|
-
end
|
|
51
|
-
add_enum "google.cloud.automl.v1beta1.ClassificationType" do
|
|
52
|
-
value :CLASSIFICATION_TYPE_UNSPECIFIED, 0
|
|
53
|
-
value :MULTICLASS, 1
|
|
54
|
-
value :MULTILABEL, 2
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n0google/cloud/automl/v1beta1/classification.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a*google/cloud/automl/v1beta1/temporal.proto\")\n\x18\x43lassificationAnnotation\x12\r\n\x05score\x18\x01 \x01(\x02\"\xc7\x01\n\x1dVideoClassificationAnnotation\x12\x0c\n\x04type\x18\x01 \x01(\t\x12X\n\x19\x63lassification_annotation\x18\x02 \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.ClassificationAnnotation\x12>\n\x0ctime_segment\x18\x03 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TimeSegment\"\xa9\x07\n\x1f\x43lassificationEvaluationMetrics\x12\x0e\n\x06\x61u_prc\x18\x01 \x01(\x02\x12\x17\n\x0b\x62\x61se_au_prc\x18\x02 \x01(\x02\x42\x02\x18\x01\x12\x0e\n\x06\x61u_roc\x18\x06 \x01(\x02\x12\x10\n\x08log_loss\x18\x07 \x01(\x02\x12u\n\x18\x63onfidence_metrics_entry\x18\x03 \x03(\x0b\x32S.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry\x12\x66\n\x10\x63onfusion_matrix\x18\x04 \x01(\x0b\x32L.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix\x12\x1a\n\x12\x61nnotation_spec_id\x18\x05 \x03(\t\x1a\xfc\x02\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x1a\n\x12position_threshold\x18\x0e \x01(\x05\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x11\n\tprecision\x18\x03 \x01(\x02\x12\x1b\n\x13\x66\x61lse_positive_rate\x18\x08 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x04 \x01(\x02\x12\x12\n\nrecall_at1\x18\x05 \x01(\x02\x12\x15\n\rprecision_at1\x18\x06 \x01(\x02\x12\x1f\n\x17\x66\x61lse_positive_rate_at1\x18\t \x01(\x02\x12\x14\n\x0c\x66\x31_score_at1\x18\x07 \x01(\x02\x12\x1b\n\x13true_positive_count\x18\n \x01(\x03\x12\x1c\n\x14\x66\x61lse_positive_count\x18\x0b \x01(\x03\x12\x1c\n\x14\x66\x61lse_negative_count\x18\x0c \x01(\x03\x12\x1b\n\x13true_negative_count\x18\r \x01(\x03\x1a\xc0\x01\n\x0f\x43onfusionMatrix\x12\x1a\n\x12\x61nnotation_spec_id\x18\x01 \x03(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x03(\t\x12]\n\x03row\x18\x02 \x03(\x0b\x32P.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row\x1a\x1c\n\x03Row\x12\x15\n\rexample_count\x18\x01 \x03(\x05*Y\n\x12\x43lassificationType\x12#\n\x1f\x43LASSIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nMULTICLASS\x10\x01\x12\x0e\n\nMULTILABEL\x10\x02\x42\xae\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x13\x43lassificationProtoZ7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError => e
|
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
+
parsed.clear_dependency
|
|
21
|
+
serialized = parsed.class.encode(parsed)
|
|
22
|
+
file = pool.add_serialized_file(serialized)
|
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
+
imports = [
|
|
25
|
+
["google.cloud.automl.v1beta1.TimeSegment", "google/cloud/automl/v1beta1/temporal.proto"],
|
|
26
|
+
]
|
|
27
|
+
imports.each do |type_name, expected_filename|
|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
+
if import_file.name != expected_filename
|
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
55
31
|
end
|
|
56
32
|
end
|
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
+
warn "This will become an error in the next major version."
|
|
57
35
|
end
|
|
58
36
|
|
|
59
37
|
module Google
|