google-cloud-automl-v1beta1 0.6.1 → 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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +30 -15
  4. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +24 -6
  5. data/lib/google/cloud/automl/v1beta1/automl/client.rb +6 -4
  6. data/lib/google/cloud/automl/v1beta1/automl/operations.rb +5 -3
  7. data/lib/google/cloud/automl/v1beta1/automl/rest/client.rb +2224 -0
  8. data/lib/google/cloud/automl/v1beta1/automl/rest/operations.rb +937 -0
  9. data/lib/google/cloud/automl/v1beta1/automl/rest/service_stub.rb +1475 -0
  10. data/lib/google/cloud/automl/v1beta1/automl/rest.rb +66 -0
  11. data/lib/google/cloud/automl/v1beta1/automl.rb +6 -0
  12. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +25 -47
  13. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +26 -13
  14. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +28 -61
  15. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +24 -54
  16. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +24 -22
  17. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +30 -20
  18. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +26 -33
  19. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +24 -8
  20. data/lib/google/cloud/automl/v1beta1/image_pb.rb +24 -29
  21. data/lib/google/cloud/automl/v1beta1/io_pb.rb +24 -57
  22. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +31 -17
  23. data/lib/google/cloud/automl/v1beta1/model_pb.rb +30 -25
  24. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +27 -59
  25. data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +6 -4
  26. data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +5 -3
  27. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/client.rb +565 -0
  28. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/operations.rb +937 -0
  29. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/service_stub.rb +168 -0
  30. data/lib/google/cloud/automl/v1beta1/prediction_service/rest.rb +56 -0
  31. data/lib/google/cloud/automl/v1beta1/prediction_service.rb +6 -0
  32. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +27 -20
  33. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -5
  34. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +24 -8
  35. data/lib/google/cloud/automl/v1beta1/rest.rb +38 -0
  36. data/lib/google/cloud/automl/v1beta1/service_pb.rb +32 -125
  37. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +25 -10
  38. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +29 -34
  39. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -5
  40. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +25 -17
  41. data/lib/google/cloud/automl/v1beta1/text_pb.rb +24 -17
  42. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +24 -6
  43. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +25 -15
  44. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +25 -17
  45. data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
  46. data/lib/google/cloud/automl/v1beta1/video_pb.rb +24 -9
  47. data/lib/google/cloud/automl/v1beta1.rb +5 -0
  48. data/proto_docs/google/api/client.rb +67 -4
  49. data/proto_docs/google/protobuf/any.rb +7 -4
  50. data/proto_docs/google/protobuf/struct.rb +1 -1
  51. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  52. metadata +15 -5
@@ -0,0 +1,168 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/automl/v1beta1/prediction_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module AutoML
24
+ module V1beta1
25
+ module PredictionService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the PredictionService service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
39
+ numeric_enums: true,
40
+ raise_faraday_errors: false
41
+ end
42
+
43
+ ##
44
+ # Baseline implementation for the predict REST call
45
+ #
46
+ # @param request_pb [::Google::Cloud::AutoML::V1beta1::PredictRequest]
47
+ # A request object representing the call parameters. Required.
48
+ # @param options [::Gapic::CallOptions]
49
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
50
+ #
51
+ # @yield [result, operation] Access the result along with the TransportOperation object
52
+ # @yieldparam result [::Google::Cloud::AutoML::V1beta1::PredictResponse]
53
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
54
+ #
55
+ # @return [::Google::Cloud::AutoML::V1beta1::PredictResponse]
56
+ # A result object deserialized from the server's reply
57
+ def predict request_pb, options = nil
58
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
59
+
60
+ verb, uri, query_string_params, body = ServiceStub.transcode_predict_request request_pb
61
+ query_string_params = if query_string_params.any?
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
+ else
64
+ {}
65
+ end
66
+
67
+ response = @client_stub.make_http_request(
68
+ verb,
69
+ uri: uri,
70
+ body: body || "",
71
+ params: query_string_params,
72
+ options: options
73
+ )
74
+ operation = ::Gapic::Rest::TransportOperation.new response
75
+ result = ::Google::Cloud::AutoML::V1beta1::PredictResponse.decode_json response.body, ignore_unknown_fields: true
76
+
77
+ yield result, operation if block_given?
78
+ result
79
+ end
80
+
81
+ ##
82
+ # Baseline implementation for the batch_predict REST call
83
+ #
84
+ # @param request_pb [::Google::Cloud::AutoML::V1beta1::BatchPredictRequest]
85
+ # A request object representing the call parameters. Required.
86
+ # @param options [::Gapic::CallOptions]
87
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
88
+ #
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
90
+ # @yieldparam result [::Google::Longrunning::Operation]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
92
+ #
93
+ # @return [::Google::Longrunning::Operation]
94
+ # A result object deserialized from the server's reply
95
+ def batch_predict request_pb, options = nil
96
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
97
+
98
+ verb, uri, query_string_params, body = ServiceStub.transcode_batch_predict_request request_pb
99
+ query_string_params = if query_string_params.any?
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
+ else
102
+ {}
103
+ end
104
+
105
+ response = @client_stub.make_http_request(
106
+ verb,
107
+ uri: uri,
108
+ body: body || "",
109
+ params: query_string_params,
110
+ options: options
111
+ )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
113
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
114
+
115
+ yield result, operation if block_given?
116
+ result
117
+ end
118
+
119
+ ##
120
+ # @private
121
+ #
122
+ # GRPC transcoding helper method for the predict REST call
123
+ #
124
+ # @param request_pb [::Google::Cloud::AutoML::V1beta1::PredictRequest]
125
+ # A request object representing the call parameters. Required.
126
+ # @return [Array(String, [String, nil], Hash{String => String})]
127
+ # Uri, Body, Query string parameters
128
+ def self.transcode_predict_request request_pb
129
+ transcoder = Gapic::Rest::GrpcTranscoder.new
130
+ .with_bindings(
131
+ uri_method: :post,
132
+ uri_template: "/v1beta1/{name}:predict",
133
+ body: "*",
134
+ matches: [
135
+ ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/?$}, false]
136
+ ]
137
+ )
138
+ transcoder.transcode request_pb
139
+ end
140
+
141
+ ##
142
+ # @private
143
+ #
144
+ # GRPC transcoding helper method for the batch_predict REST call
145
+ #
146
+ # @param request_pb [::Google::Cloud::AutoML::V1beta1::BatchPredictRequest]
147
+ # A request object representing the call parameters. Required.
148
+ # @return [Array(String, [String, nil], Hash{String => String})]
149
+ # Uri, Body, Query string parameters
150
+ def self.transcode_batch_predict_request request_pb
151
+ transcoder = Gapic::Rest::GrpcTranscoder.new
152
+ .with_bindings(
153
+ uri_method: :post,
154
+ uri_template: "/v1beta1/{name}:batchPredict",
155
+ body: "*",
156
+ matches: [
157
+ ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/?$}, false]
158
+ ]
159
+ )
160
+ transcoder.transcode request_pb
161
+ end
162
+ end
163
+ end
164
+ end
165
+ end
166
+ end
167
+ end
168
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/automl/v1beta1/version"
24
+
25
+ require "google/cloud/automl/v1beta1/prediction_service/credentials"
26
+ require "google/cloud/automl/v1beta1/prediction_service/paths"
27
+ require "google/cloud/automl/v1beta1/prediction_service/rest/operations"
28
+ require "google/cloud/automl/v1beta1/prediction_service/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module AutoML
33
+ module V1beta1
34
+ ##
35
+ # AutoML Prediction API.
36
+ #
37
+ # On any input that is documented to expect a string parameter in
38
+ # snake_case or kebab-case, either of those cases is accepted.
39
+ #
40
+ # To load this service and instantiate a REST client:
41
+ #
42
+ # require "google/cloud/automl/v1beta1/prediction_service/rest"
43
+ # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Rest::Client.new
44
+ #
45
+ module PredictionService
46
+ # Client for the REST transport
47
+ module Rest
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
56
+ require "google/cloud/automl/v1beta1/prediction_service/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/automl/v1beta1/prediction_service/credentials"
26
26
  require "google/cloud/automl/v1beta1/prediction_service/paths"
27
27
  require "google/cloud/automl/v1beta1/prediction_service/operations"
28
28
  require "google/cloud/automl/v1beta1/prediction_service/client"
29
+ require "google/cloud/automl/v1beta1/prediction_service/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -42,6 +43,11 @@ module Google
42
43
  # require "google/cloud/automl/v1beta1/prediction_service"
43
44
  # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
44
45
  #
46
+ # @example Load this service and instantiate a REST client
47
+ #
48
+ # require "google/cloud/automl/v1beta1/prediction_service/rest"
49
+ # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Rest::Client.new
50
+ #
45
51
  module PredictionService
46
52
  end
47
53
  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/prediction_service.proto
3
4
 
@@ -13,28 +14,34 @@ require 'google/cloud/automl/v1beta1/io_pb'
13
14
  require 'google/cloud/automl/v1beta1/operations_pb'
14
15
  require 'google/longrunning/operations_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/cloud/automl/v1beta1/prediction_service.proto", :syntax => :proto3) do
18
- add_message "google.cloud.automl.v1beta1.PredictRequest" do
19
- optional :name, :string, 1
20
- optional :payload, :message, 2, "google.cloud.automl.v1beta1.ExamplePayload"
21
- map :params, :string, :string, 3
22
- end
23
- add_message "google.cloud.automl.v1beta1.PredictResponse" do
24
- repeated :payload, :message, 1, "google.cloud.automl.v1beta1.AnnotationPayload"
25
- optional :preprocessed_input, :message, 3, "google.cloud.automl.v1beta1.ExamplePayload"
26
- map :metadata, :string, :string, 2
27
- end
28
- add_message "google.cloud.automl.v1beta1.BatchPredictRequest" do
29
- optional :name, :string, 1
30
- optional :input_config, :message, 3, "google.cloud.automl.v1beta1.BatchPredictInputConfig"
31
- optional :output_config, :message, 4, "google.cloud.automl.v1beta1.BatchPredictOutputConfig"
32
- map :params, :string, :string, 5
33
- end
34
- add_message "google.cloud.automl.v1beta1.BatchPredictResult" do
35
- map :metadata, :string, :string, 1
17
+
18
+ descriptor_data = "\n4google/cloud/automl/v1beta1/prediction_service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/automl/v1beta1/annotation_payload.proto\x1a,google/cloud/automl/v1beta1/data_items.proto\x1a$google/cloud/automl/v1beta1/io.proto\x1a,google/cloud/automl/v1beta1/operations.proto\x1a#google/longrunning/operations.proto\"\xfe\x01\n\x0ePredictRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\x41\n\x07payload\x18\x02 \x01(\x0b\x32+.google.cloud.automl.v1beta1.ExamplePayloadB\x03\xe0\x41\x02\x12G\n\x06params\x18\x03 \x03(\x0b\x32\x37.google.cloud.automl.v1beta1.PredictRequest.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9a\x02\n\x0fPredictResponse\x12?\n\x07payload\x18\x01 \x03(\x0b\x32..google.cloud.automl.v1beta1.AnnotationPayload\x12G\n\x12preprocessed_input\x18\x03 \x01(\x0b\x32+.google.cloud.automl.v1beta1.ExamplePayload\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.google.cloud.automl.v1beta1.PredictResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xee\x02\n\x13\x42\x61tchPredictRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12O\n\x0cinput_config\x18\x03 \x01(\x0b\x32\x34.google.cloud.automl.v1beta1.BatchPredictInputConfigB\x03\xe0\x41\x02\x12Q\n\routput_config\x18\x04 \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.BatchPredictOutputConfigB\x03\xe0\x41\x02\x12Q\n\x06params\x18\x05 \x03(\x0b\x32<.google.cloud.automl.v1beta1.BatchPredictRequest.ParamsEntryB\x03\xe0\x41\x02\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x96\x01\n\x12\x42\x61tchPredictResult\x12O\n\x08metadata\x18\x01 \x03(\x0b\x32=.google.cloud.automl.v1beta1.BatchPredictResult.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\x9e\x04\n\x11PredictionService\x12\xbe\x01\n\x07Predict\x12+.google.cloud.automl.v1beta1.PredictRequest\x1a,.google.cloud.automl.v1beta1.PredictResponse\"X\x82\xd3\xe4\x93\x02<\"7/v1beta1/{name=projects/*/locations/*/models/*}:predict:\x01*\xda\x41\x13name,payload,params\x12\xfc\x01\n\x0c\x42\x61tchPredict\x12\x30.google.cloud.automl.v1beta1.BatchPredictRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\x82\xd3\xe4\x93\x02\x41\"</v1beta1/{name=projects/*/locations/*/models/*}:batchPredict:\x01*\xda\x41&name,input_config,output_config,params\xca\x41\'\n\x12\x42\x61tchPredictResult\x12\x11OperationMetadata\x1aI\xca\x41\x15\x61utoml.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb3\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x16PredictionServiceProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.cloud.automl.v1beta1.ExamplePayload", "google/cloud/automl/v1beta1/data_items.proto"],
34
+ ["google.cloud.automl.v1beta1.AnnotationPayload", "google/cloud/automl/v1beta1/annotation_payload.proto"],
35
+ ["google.cloud.automl.v1beta1.BatchPredictInputConfig", "google/cloud/automl/v1beta1/io.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}"
36
41
  end
37
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."
38
45
  end
39
46
 
40
47
  module Google
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/ranges.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/automl/v1beta1/ranges.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.DoubleRange" do
9
- optional :start, :double, 1
10
- optional :end, :double, 2
7
+
8
+ descriptor_data = "\n(google/cloud/automl/v1beta1/ranges.proto\x12\x1bgoogle.cloud.automl.v1beta1\")\n\x0b\x44oubleRange\x12\r\n\x05start\x18\x01 \x01(\x01\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x01\x42\xa8\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x0bRangesProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
11
28
  end
12
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
13
32
  end
14
33
 
15
34
  module Google
@@ -1,18 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/regression.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/automl/v1beta1/regression.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.RegressionEvaluationMetrics" do
9
- optional :root_mean_squared_error, :float, 1
10
- optional :mean_absolute_error, :float, 2
11
- optional :mean_absolute_percentage_error, :float, 3
12
- optional :r_squared, :float, 4
13
- optional :root_mean_squared_log_error, :float, 5
7
+
8
+ descriptor_data = "\n,google/cloud/automl/v1beta1/regression.proto\x12\x1bgoogle.cloud.automl.v1beta1\"\xbb\x01\n\x1bRegressionEvaluationMetrics\x12\x1f\n\x17root_mean_squared_error\x18\x01 \x01(\x02\x12\x1b\n\x13mean_absolute_error\x18\x02 \x01(\x02\x12&\n\x1emean_absolute_percentage_error\x18\x03 \x01(\x02\x12\x11\n\tr_squared\x18\x04 \x01(\x02\x12#\n\x1broot_mean_squared_log_error\x18\x05 \x01(\x02\x42\xaa\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x0fRegressionProtoZ7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
14
28
  end
15
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
16
32
  end
17
33
 
18
34
  module Google
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/automl/v1beta1/prediction_service/rest"
20
+ require "google/cloud/automl/v1beta1/automl/rest"
21
+ require "google/cloud/automl/v1beta1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module AutoML
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/automl/v1beta1/rest"
32
+ # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Rest::Client.new
33
+ #
34
+ module V1beta1
35
+ end
36
+ end
37
+ end
38
+ 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/service.proto
3
4
 
@@ -20,133 +21,39 @@ require 'google/cloud/automl/v1beta1/table_spec_pb'
20
21
  require 'google/longrunning/operations_pb'
21
22
  require 'google/protobuf/field_mask_pb'
22
23
 
23
- Google::Protobuf::DescriptorPool.generated_pool.build do
24
- add_file("google/cloud/automl/v1beta1/service.proto", :syntax => :proto3) do
25
- add_message "google.cloud.automl.v1beta1.CreateDatasetRequest" do
26
- optional :parent, :string, 1
27
- optional :dataset, :message, 2, "google.cloud.automl.v1beta1.Dataset"
28
- end
29
- add_message "google.cloud.automl.v1beta1.GetDatasetRequest" do
30
- optional :name, :string, 1
31
- end
32
- add_message "google.cloud.automl.v1beta1.ListDatasetsRequest" do
33
- optional :parent, :string, 1
34
- optional :filter, :string, 3
35
- optional :page_size, :int32, 4
36
- optional :page_token, :string, 6
37
- end
38
- add_message "google.cloud.automl.v1beta1.ListDatasetsResponse" do
39
- repeated :datasets, :message, 1, "google.cloud.automl.v1beta1.Dataset"
40
- optional :next_page_token, :string, 2
41
- end
42
- add_message "google.cloud.automl.v1beta1.UpdateDatasetRequest" do
43
- optional :dataset, :message, 1, "google.cloud.automl.v1beta1.Dataset"
44
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
45
- end
46
- add_message "google.cloud.automl.v1beta1.DeleteDatasetRequest" do
47
- optional :name, :string, 1
48
- end
49
- add_message "google.cloud.automl.v1beta1.ImportDataRequest" do
50
- optional :name, :string, 1
51
- optional :input_config, :message, 3, "google.cloud.automl.v1beta1.InputConfig"
52
- end
53
- add_message "google.cloud.automl.v1beta1.ExportDataRequest" do
54
- optional :name, :string, 1
55
- optional :output_config, :message, 3, "google.cloud.automl.v1beta1.OutputConfig"
56
- end
57
- add_message "google.cloud.automl.v1beta1.GetAnnotationSpecRequest" do
58
- optional :name, :string, 1
59
- end
60
- add_message "google.cloud.automl.v1beta1.GetTableSpecRequest" do
61
- optional :name, :string, 1
62
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
63
- end
64
- add_message "google.cloud.automl.v1beta1.ListTableSpecsRequest" do
65
- optional :parent, :string, 1
66
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
67
- optional :filter, :string, 3
68
- optional :page_size, :int32, 4
69
- optional :page_token, :string, 6
70
- end
71
- add_message "google.cloud.automl.v1beta1.ListTableSpecsResponse" do
72
- repeated :table_specs, :message, 1, "google.cloud.automl.v1beta1.TableSpec"
73
- optional :next_page_token, :string, 2
74
- end
75
- add_message "google.cloud.automl.v1beta1.UpdateTableSpecRequest" do
76
- optional :table_spec, :message, 1, "google.cloud.automl.v1beta1.TableSpec"
77
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
78
- end
79
- add_message "google.cloud.automl.v1beta1.GetColumnSpecRequest" do
80
- optional :name, :string, 1
81
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
82
- end
83
- add_message "google.cloud.automl.v1beta1.ListColumnSpecsRequest" do
84
- optional :parent, :string, 1
85
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
86
- optional :filter, :string, 3
87
- optional :page_size, :int32, 4
88
- optional :page_token, :string, 6
89
- end
90
- add_message "google.cloud.automl.v1beta1.ListColumnSpecsResponse" do
91
- repeated :column_specs, :message, 1, "google.cloud.automl.v1beta1.ColumnSpec"
92
- optional :next_page_token, :string, 2
93
- end
94
- add_message "google.cloud.automl.v1beta1.UpdateColumnSpecRequest" do
95
- optional :column_spec, :message, 1, "google.cloud.automl.v1beta1.ColumnSpec"
96
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
97
- end
98
- add_message "google.cloud.automl.v1beta1.CreateModelRequest" do
99
- optional :parent, :string, 1
100
- optional :model, :message, 4, "google.cloud.automl.v1beta1.Model"
101
- end
102
- add_message "google.cloud.automl.v1beta1.GetModelRequest" do
103
- optional :name, :string, 1
104
- end
105
- add_message "google.cloud.automl.v1beta1.ListModelsRequest" do
106
- optional :parent, :string, 1
107
- optional :filter, :string, 3
108
- optional :page_size, :int32, 4
109
- optional :page_token, :string, 6
110
- end
111
- add_message "google.cloud.automl.v1beta1.ListModelsResponse" do
112
- repeated :model, :message, 1, "google.cloud.automl.v1beta1.Model"
113
- optional :next_page_token, :string, 2
114
- end
115
- add_message "google.cloud.automl.v1beta1.DeleteModelRequest" do
116
- optional :name, :string, 1
117
- end
118
- add_message "google.cloud.automl.v1beta1.DeployModelRequest" do
119
- optional :name, :string, 1
120
- oneof :model_deployment_metadata do
121
- optional :image_object_detection_model_deployment_metadata, :message, 2, "google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata"
122
- optional :image_classification_model_deployment_metadata, :message, 4, "google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata"
123
- end
124
- end
125
- add_message "google.cloud.automl.v1beta1.UndeployModelRequest" do
126
- optional :name, :string, 1
127
- end
128
- add_message "google.cloud.automl.v1beta1.ExportModelRequest" do
129
- optional :name, :string, 1
130
- optional :output_config, :message, 3, "google.cloud.automl.v1beta1.ModelExportOutputConfig"
131
- end
132
- add_message "google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest" do
133
- optional :name, :string, 1
134
- optional :output_config, :message, 3, "google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig"
135
- end
136
- add_message "google.cloud.automl.v1beta1.GetModelEvaluationRequest" do
137
- optional :name, :string, 1
138
- end
139
- add_message "google.cloud.automl.v1beta1.ListModelEvaluationsRequest" do
140
- optional :parent, :string, 1
141
- optional :filter, :string, 3
142
- optional :page_size, :int32, 4
143
- optional :page_token, :string, 6
144
- end
145
- add_message "google.cloud.automl.v1beta1.ListModelEvaluationsResponse" do
146
- repeated :model_evaluation, :message, 1, "google.cloud.automl.v1beta1.ModelEvaluation"
147
- optional :next_page_token, :string, 2
24
+
25
+ descriptor_data = "\n)google/cloud/automl/v1beta1/service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/automl/v1beta1/annotation_payload.proto\x1a\x31google/cloud/automl/v1beta1/annotation_spec.proto\x1a-google/cloud/automl/v1beta1/column_spec.proto\x1a)google/cloud/automl/v1beta1/dataset.proto\x1a\'google/cloud/automl/v1beta1/image.proto\x1a$google/cloud/automl/v1beta1/io.proto\x1a\'google/cloud/automl/v1beta1/model.proto\x1a\x32google/cloud/automl/v1beta1/model_evaluation.proto\x1a,google/cloud/automl/v1beta1/operations.proto\x1a,google/cloud/automl/v1beta1/table_spec.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\"\x8d\x01\n\x14\x43reateDatasetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32$.google.cloud.automl.v1beta1.DatasetB\x03\xe0\x41\x02\"H\n\x11GetDatasetRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\"\x87\x01\n\x13ListDatasetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"g\n\x14ListDatasetsResponse\x12\x36\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32$.google.cloud.automl.v1beta1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x14UpdateDatasetRequest\x12:\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32$.google.cloud.automl.v1beta1.DatasetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x14\x44\x65leteDatasetRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\"\x8d\x01\n\x11ImportDataRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\x12\x43\n\x0cinput_config\x18\x03 \x01(\x0b\x32(.google.cloud.automl.v1beta1.InputConfigB\x03\xe0\x41\x02\"\x8f\x01\n\x11\x45xportDataRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\x12\x45\n\routput_config\x18\x03 \x01(\x0b\x32).google.cloud.automl.v1beta1.OutputConfigB\x03\xe0\x41\x02\"V\n\x18GetAnnotationSpecRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$automl.googleapis.com/AnnotationSpec\"|\n\x13GetTableSpecRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61utoml.googleapis.com/TableSpec\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb5\x01\n\x15ListTableSpecsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"n\n\x16ListTableSpecsResponse\x12;\n\x0btable_specs\x18\x01 \x03(\x0b\x32&.google.cloud.automl.v1beta1.TableSpec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x16UpdateTableSpecRequest\x12?\n\ntable_spec\x18\x01 \x01(\x0b\x32&.google.cloud.automl.v1beta1.TableSpecB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"~\n\x14GetColumnSpecRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n automl.googleapis.com/ColumnSpec\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb8\x01\n\x16ListColumnSpecsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61utoml.googleapis.com/TableSpec\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"q\n\x17ListColumnSpecsResponse\x12=\n\x0c\x63olumn_specs\x18\x01 \x03(\x0b\x32\'.google.cloud.automl.v1beta1.ColumnSpec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8d\x01\n\x17UpdateColumnSpecRequest\x12\x41\n\x0b\x63olumn_spec\x18\x01 \x01(\x0b\x32\'.google.cloud.automl.v1beta1.ColumnSpecB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x87\x01\n\x12\x43reateModelRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x36\n\x05model\x18\x04 \x01(\x0b\x32\".google.cloud.automl.v1beta1.ModelB\x03\xe0\x41\x02\"D\n\x0fGetModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\"\x85\x01\n\x11ListModelsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"`\n\x12ListModelsResponse\x12\x31\n\x05model\x18\x01 \x03(\x0b\x32\".google.cloud.automl.v1beta1.Model\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"G\n\x12\x44\x65leteModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\"\xef\x02\n\x12\x44\x65ployModelRequest\x12\x84\x01\n0image_object_detection_model_deployment_metadata\x18\x02 \x01(\x0b\x32H.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataH\x00\x12\x81\x01\n.image_classification_model_deployment_metadata\x18\x04 \x01(\x0b\x32G.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataH\x00\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/ModelB\x1b\n\x19model_deployment_metadata\"I\n\x14UndeployModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\"\x99\x01\n\x12\x45xportModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12P\n\routput_config\x18\x03 \x01(\x0b\x32\x34.google.cloud.automl.v1beta1.ModelExportOutputConfigB\x03\xe0\x41\x02\"\xb1\x01\n\x1e\x45xportEvaluatedExamplesRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\\\n\routput_config\x18\x03 \x01(\x0b\x32@.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigB\x03\xe0\x41\x02\"X\n\x19GetModelEvaluationRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%automl.googleapis.com/ModelEvaluation\"\x89\x01\n\x1bListModelEvaluationsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"\x7f\n\x1cListModelEvaluationsResponse\x12\x46\n\x10model_evaluation\x18\x01 \x03(\x0b\x32,.google.cloud.automl.v1beta1.ModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xed\'\n\x06\x41utoMl\x12\xbd\x01\n\rCreateDataset\x12\x31.google.cloud.automl.v1beta1.CreateDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"S\x82\xd3\xe4\x93\x02<\"1/v1beta1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\xda\x41\x0eparent,dataset\x12\xa4\x01\n\nGetDataset\x12..google.cloud.automl.v1beta1.GetDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\x12\xb7\x01\n\x0cListDatasets\x12\x30.google.cloud.automl.v1beta1.ListDatasetsRequest\x1a\x31.google.cloud.automl.v1beta1.ListDatasetsResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/locations/*}/datasets\xda\x41\x06parent\x12\xbe\x01\n\rUpdateDataset\x12\x31.google.cloud.automl.v1beta1.UpdateDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"T\x82\xd3\xe4\x93\x02\x44\x32\x39/v1beta1/{dataset.name=projects/*/locations/*/datasets/*}:\x07\x64\x61taset\xda\x41\x07\x64\x61taset\x12\xd0\x01\n\rDeleteDataset\x12\x31.google.cloud.automl.v1beta1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation\"m\x82\xd3\xe4\x93\x02\x33*1/v1beta1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe6\x01\n\nImportData\x12..google.cloud.automl.v1beta1.ImportDataRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\x82\xd3\xe4\x93\x02\x41\"</v1beta1/{name=projects/*/locations/*/datasets/*}:importData:\x01*\xda\x41\x11name,input_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe7\x01\n\nExportData\x12..google.cloud.automl.v1beta1.ExportDataRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02\x41\"</v1beta1/{name=projects/*/locations/*/datasets/*}:exportData:\x01*\xda\x41\x12name,output_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xcb\x01\n\x11GetAnnotationSpec\x12\x35.google.cloud.automl.v1beta1.GetAnnotationSpecRequest\x1a+.google.cloud.automl.v1beta1.AnnotationSpec\"R\x82\xd3\xe4\x93\x02\x45\x12\x43/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}\xda\x41\x04name\x12\xb7\x01\n\x0cGetTableSpec\x12\x30.google.cloud.automl.v1beta1.GetTableSpecRequest\x1a&.google.cloud.automl.v1beta1.TableSpec\"M\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*}\xda\x41\x04name\x12\xca\x01\n\x0eListTableSpecs\x12\x32.google.cloud.automl.v1beta1.ListTableSpecsRequest\x1a\x33.google.cloud.automl.v1beta1.ListTableSpecsResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{parent=projects/*/locations/*/datasets/*}/tableSpecs\xda\x41\x06parent\x12\xda\x01\n\x0fUpdateTableSpec\x12\x33.google.cloud.automl.v1beta1.UpdateTableSpecRequest\x1a&.google.cloud.automl.v1beta1.TableSpec\"j\x82\xd3\xe4\x93\x02W2I/v1beta1/{table_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*}:\ntable_spec\xda\x41\ntable_spec\x12\xc8\x01\n\rGetColumnSpec\x12\x31.google.cloud.automl.v1beta1.GetColumnSpecRequest\x1a\'.google.cloud.automl.v1beta1.ColumnSpec\"[\x82\xd3\xe4\x93\x02N\x12L/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}\xda\x41\x04name\x12\xdb\x01\n\x0fListColumnSpecs\x12\x33.google.cloud.automl.v1beta1.ListColumnSpecsRequest\x1a\x34.google.cloud.automl.v1beta1.ListColumnSpecsResponse\"]\x82\xd3\xe4\x93\x02N\x12L/v1beta1/{parent=projects/*/locations/*/datasets/*/tableSpecs/*}/columnSpecs\xda\x41\x06parent\x12\xee\x01\n\x10UpdateColumnSpec\x12\x34.google.cloud.automl.v1beta1.UpdateColumnSpecRequest\x1a\'.google.cloud.automl.v1beta1.ColumnSpec\"{\x82\xd3\xe4\x93\x02g2X/v1beta1/{column_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}:\x0b\x63olumn_spec\xda\x41\x0b\x63olumn_spec\x12\xc9\x01\n\x0b\x43reateModel\x12/.google.cloud.automl.v1beta1.CreateModelRequest\x1a\x1d.google.longrunning.Operation\"j\x82\xd3\xe4\x93\x02\x38\"//v1beta1/{parent=projects/*/locations/*}/models:\x05model\xda\x41\x0cparent,model\xca\x41\x1a\n\x05Model\x12\x11OperationMetadata\x12\x9c\x01\n\x08GetModel\x12,.google.cloud.automl.v1beta1.GetModelRequest\x1a\".google.cloud.automl.v1beta1.Model\">\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{name=projects/*/locations/*/models/*}\xda\x41\x04name\x12\xaf\x01\n\nListModels\x12..google.cloud.automl.v1beta1.ListModelsRequest\x1a/.google.cloud.automl.v1beta1.ListModelsResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*/locations/*}/models\xda\x41\x06parent\x12\xca\x01\n\x0b\x44\x65leteModel\x12/.google.cloud.automl.v1beta1.DeleteModelRequest\x1a\x1d.google.longrunning.Operation\"k\x82\xd3\xe4\x93\x02\x31*//v1beta1/{name=projects/*/locations/*/models/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xd4\x01\n\x0b\x44\x65ployModel\x12/.google.cloud.automl.v1beta1.DeployModelRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02;\"6/v1beta1/{name=projects/*/locations/*/models/*}:deploy:\x01*\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xda\x01\n\rUndeployModel\x12\x31.google.cloud.automl.v1beta1.UndeployModelRequest\x1a\x1d.google.longrunning.Operation\"w\x82\xd3\xe4\x93\x02=\"8/v1beta1/{name=projects/*/locations/*/models/*}:undeploy:\x01*\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe3\x01\n\x0b\x45xportModel\x12/.google.cloud.automl.v1beta1.ExportModelRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\x82\xd3\xe4\x93\x02;\"6/v1beta1/{name=projects/*/locations/*/models/*}:export:\x01*\xda\x41\x12name,output_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\x8c\x02\n\x17\x45xportEvaluatedExamples\x12;.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest\x1a\x1d.google.longrunning.Operation\"\x94\x01\x82\xd3\xe4\x93\x02L\"G/v1beta1/{name=projects/*/locations/*/models/*}:exportEvaluatedExamples:\x01*\xda\x41\x12name,output_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xcd\x01\n\x12GetModelEvaluation\x12\x36.google.cloud.automl.v1beta1.GetModelEvaluationRequest\x1a,.google.cloud.automl.v1beta1.ModelEvaluation\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{name=projects/*/locations/*/models/*/modelEvaluations/*}\xda\x41\x04name\x12\xe0\x01\n\x14ListModelEvaluations\x12\x38.google.cloud.automl.v1beta1.ListModelEvaluationsRequest\x1a\x39.google.cloud.automl.v1beta1.ListModelEvaluationsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{parent=projects/*/locations/*/models/*}/modelEvaluations\xda\x41\x06parent\x1aI\xca\x41\x15\x61utoml.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa8\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x0b\x41utoMlProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
26
+
27
+ pool = Google::Protobuf::DescriptorPool.generated_pool
28
+
29
+ begin
30
+ pool.add_serialized_file(descriptor_data)
31
+ rescue TypeError => e
32
+ # Compatibility code: will be removed in the next major version.
33
+ require 'google/protobuf/descriptor_pb'
34
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
35
+ parsed.clear_dependency
36
+ serialized = parsed.class.encode(parsed)
37
+ file = pool.add_serialized_file(serialized)
38
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
39
+ imports = [
40
+ ["google.cloud.automl.v1beta1.Dataset", "google/cloud/automl/v1beta1/dataset.proto"],
41
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
42
+ ["google.cloud.automl.v1beta1.InputConfig", "google/cloud/automl/v1beta1/io.proto"],
43
+ ["google.cloud.automl.v1beta1.TableSpec", "google/cloud/automl/v1beta1/table_spec.proto"],
44
+ ["google.cloud.automl.v1beta1.ColumnSpec", "google/cloud/automl/v1beta1/column_spec.proto"],
45
+ ["google.cloud.automl.v1beta1.Model", "google/cloud/automl/v1beta1/model.proto"],
46
+ ["google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata", "google/cloud/automl/v1beta1/image.proto"],
47
+ ["google.cloud.automl.v1beta1.ModelEvaluation", "google/cloud/automl/v1beta1/model_evaluation.proto"],
48
+ ]
49
+ imports.each do |type_name, expected_filename|
50
+ import_file = pool.lookup(type_name).file_descriptor
51
+ if import_file.name != expected_filename
52
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
148
53
  end
149
54
  end
55
+ warn "Each proto file must use a consistent fully-qualified name."
56
+ warn "This will become an error in the next major version."
150
57
  end
151
58
 
152
59
  module Google