google-cloud-automl-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google/cloud/automl/v1/annotation_payload_pb.rb +37 -0
  7. data/lib/google/cloud/automl/v1/annotation_spec_pb.rb +26 -0
  8. data/lib/google/cloud/automl/v1/automl/client.rb +1851 -0
  9. data/lib/google/cloud/automl/v1/automl/credentials.rb +51 -0
  10. data/lib/google/cloud/automl/v1/automl/operations.rb +564 -0
  11. data/lib/google/cloud/automl/v1/automl/paths.rb +130 -0
  12. data/lib/google/cloud/automl/v1/automl.rb +63 -0
  13. data/lib/google/cloud/automl/v1/classification_pb.rb +65 -0
  14. data/lib/google/cloud/automl/v1/data_items_pb.rb +87 -0
  15. data/lib/google/cloud/automl/v1/dataset_pb.rb +42 -0
  16. data/lib/google/cloud/automl/v1/detection_pb.rb +45 -0
  17. data/lib/google/cloud/automl/v1/geometry_pb.rb +28 -0
  18. data/lib/google/cloud/automl/v1/image_pb.rb +57 -0
  19. data/lib/google/cloud/automl/v1/io_pb.rb +65 -0
  20. data/lib/google/cloud/automl/v1/model_evaluation_pb.rb +41 -0
  21. data/lib/google/cloud/automl/v1/model_pb.rb +49 -0
  22. data/lib/google/cloud/automl/v1/operations_pb.rb +88 -0
  23. data/lib/google/cloud/automl/v1/prediction_service/client.rb +634 -0
  24. data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +51 -0
  25. data/lib/google/cloud/automl/v1/prediction_service/operations.rb +564 -0
  26. data/lib/google/cloud/automl/v1/prediction_service/paths.rb +52 -0
  27. data/lib/google/cloud/automl/v1/prediction_service.rb +53 -0
  28. data/lib/google/cloud/automl/v1/prediction_service_pb.rb +50 -0
  29. data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +103 -0
  30. data/lib/google/cloud/automl/v1/service_pb.rb +139 -0
  31. data/lib/google/cloud/automl/v1/service_services_pb.rb +137 -0
  32. data/lib/google/cloud/automl/v1/text_extraction_pb.rb +39 -0
  33. data/lib/google/cloud/automl/v1/text_pb.rb +41 -0
  34. data/lib/google/cloud/automl/v1/text_segment_pb.rb +25 -0
  35. data/lib/google/cloud/automl/v1/text_sentiment_pb.rb +35 -0
  36. data/lib/google/cloud/automl/v1/translation_pb.rb +41 -0
  37. data/lib/google/cloud/automl/v1/version.rb +28 -0
  38. data/lib/google/cloud/automl/v1.rb +36 -0
  39. data/lib/google/cloud/common_resources_pb.rb +15 -0
  40. data/lib/google-cloud-automl-v1.rb +21 -0
  41. data/proto_docs/README.md +4 -0
  42. data/proto_docs/google/api/field_behavior.rb +59 -0
  43. data/proto_docs/google/api/resource.rb +247 -0
  44. data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +60 -0
  45. data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +46 -0
  46. data/proto_docs/google/cloud/automl/v1/classification.rb +191 -0
  47. data/proto_docs/google/cloud/automl/v1/data_items.rb +197 -0
  48. data/proto_docs/google/cloud/automl/v1/dataset.rb +94 -0
  49. data/proto_docs/google/cloud/automl/v1/detection.rb +97 -0
  50. data/proto_docs/google/cloud/automl/v1/geometry.rb +53 -0
  51. data/proto_docs/google/cloud/automl/v1/image.rb +217 -0
  52. data/proto_docs/google/cloud/automl/v1/io.rb +1402 -0
  53. data/proto_docs/google/cloud/automl/v1/model.rb +109 -0
  54. data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +94 -0
  55. data/proto_docs/google/cloud/automl/v1/operations.rb +180 -0
  56. data/proto_docs/google/cloud/automl/v1/prediction_service.rb +271 -0
  57. data/proto_docs/google/cloud/automl/v1/service.rb +322 -0
  58. data/proto_docs/google/cloud/automl/v1/text.rb +76 -0
  59. data/proto_docs/google/cloud/automl/v1/text_extraction.rb +73 -0
  60. data/proto_docs/google/cloud/automl/v1/text_segment.rb +44 -0
  61. data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +82 -0
  62. data/proto_docs/google/cloud/automl/v1/translation.rb +79 -0
  63. data/proto_docs/google/longrunning/operations.rb +150 -0
  64. data/proto_docs/google/protobuf/any.rb +138 -0
  65. data/proto_docs/google/protobuf/duration.rb +98 -0
  66. data/proto_docs/google/protobuf/empty.rb +36 -0
  67. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  68. data/proto_docs/google/protobuf/struct.rb +96 -0
  69. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  70. data/proto_docs/google/rpc/status.rb +46 -0
  71. metadata +227 -0
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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
+
20
+ module Google
21
+ module Cloud
22
+ module AutoML
23
+ module V1
24
+ module PredictionService
25
+ # Path helper methods for the PredictionService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Model resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/models/{model}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param model [String]
37
+ #
38
+ # @return [String]
39
+ def model_path project:, location:, model:
40
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/models/#{model}"
44
+ end
45
+
46
+ extend self
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/automl/v1/version"
24
+
25
+ require "google/cloud/automl/v1/prediction_service/credentials"
26
+ require "google/cloud/automl/v1/prediction_service/paths"
27
+ require "google/cloud/automl/v1/prediction_service/operations"
28
+ require "google/cloud/automl/v1/prediction_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module AutoML
33
+ module V1
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 client:
41
+ #
42
+ # require "google/cloud/automl/v1/prediction_service"
43
+ # client = Google::Cloud::AutoML::V1::PredictionService::Client.new
44
+ #
45
+ module PredictionService
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "prediction_service", "helpers.rb"
53
+ require "google/cloud/automl/v1/prediction_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,50 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/automl/v1/prediction_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/automl/v1/annotation_payload_pb'
11
+ require 'google/cloud/automl/v1/data_items_pb'
12
+ require 'google/cloud/automl/v1/io_pb'
13
+ require 'google/cloud/automl/v1/operations_pb'
14
+ require 'google/longrunning/operations_pb'
15
+ Google::Protobuf::DescriptorPool.generated_pool.build do
16
+ add_file("google/cloud/automl/v1/prediction_service.proto", :syntax => :proto3) do
17
+ add_message "google.cloud.automl.v1.PredictRequest" do
18
+ optional :name, :string, 1
19
+ optional :payload, :message, 2, "google.cloud.automl.v1.ExamplePayload"
20
+ map :params, :string, :string, 3
21
+ end
22
+ add_message "google.cloud.automl.v1.PredictResponse" do
23
+ repeated :payload, :message, 1, "google.cloud.automl.v1.AnnotationPayload"
24
+ optional :preprocessed_input, :message, 3, "google.cloud.automl.v1.ExamplePayload"
25
+ map :metadata, :string, :string, 2
26
+ end
27
+ add_message "google.cloud.automl.v1.BatchPredictRequest" do
28
+ optional :name, :string, 1
29
+ optional :input_config, :message, 3, "google.cloud.automl.v1.BatchPredictInputConfig"
30
+ optional :output_config, :message, 4, "google.cloud.automl.v1.BatchPredictOutputConfig"
31
+ map :params, :string, :string, 5
32
+ end
33
+ add_message "google.cloud.automl.v1.BatchPredictResult" do
34
+ map :metadata, :string, :string, 1
35
+ end
36
+ end
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module AutoML
42
+ module V1
43
+ PredictRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.PredictRequest").msgclass
44
+ PredictResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.PredictResponse").msgclass
45
+ BatchPredictRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.BatchPredictRequest").msgclass
46
+ BatchPredictResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.BatchPredictResult").msgclass
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,103 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/automl/v1/prediction_service.proto for package 'Google.Cloud.AutoML.V1'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/automl/v1/prediction_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module AutoML
25
+ module V1
26
+ module PredictionService
27
+ # AutoML Prediction API.
28
+ #
29
+ # On any input that is documented to expect a string parameter in
30
+ # snake_case or kebab-case, either of those cases is accepted.
31
+ class Service
32
+
33
+ include GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.cloud.automl.v1.PredictionService'
38
+
39
+ # Perform an online prediction. The prediction result is directly
40
+ # returned in the response.
41
+ # Available for following ML scenarios, and their expected request payloads:
42
+ #
43
+ # <table>
44
+ # <tr>
45
+ # <td>AutoML Vision Classification</td>
46
+ # <td>An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB.</td>
47
+ # </tr>
48
+ # <tr>
49
+ # <td>AutoML Vision Object Detection</td>
50
+ # <td>An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB.</td>
51
+ # </tr>
52
+ # <tr>
53
+ # <td>AutoML Natural Language Classification</td>
54
+ # <td>A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in
55
+ # .PDF, .TIF or .TIFF format with size upto 2MB.</td>
56
+ # </tr>
57
+ # <tr>
58
+ # <td>AutoML Natural Language Entity Extraction</td>
59
+ # <td>A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document
60
+ # in .PDF, .TIF or .TIFF format with size upto 20MB.</td>
61
+ # </tr>
62
+ # <tr>
63
+ # <td>AutoML Natural Language Sentiment Analysis</td>
64
+ # <td>A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in
65
+ # .PDF, .TIF or .TIFF format with size upto 2MB.</td>
66
+ # </tr>
67
+ # <tr>
68
+ # <td>AutoML Translation</td>
69
+ # <td>A TextSnippet up to 25,000 characters, UTF-8 encoded.</td>
70
+ # </tr>
71
+ # <tr>
72
+ # <td>AutoML Tables</td>
73
+ # <td>A row with column values matching
74
+ # the columns of the model, up to 5MB. Not available for FORECASTING
75
+ # `prediction_type`.
76
+ # </td>
77
+ # </tr>
78
+ # </table>
79
+ rpc :Predict, Google::Cloud::AutoML::V1::PredictRequest, Google::Cloud::AutoML::V1::PredictResponse
80
+ # Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch
81
+ # prediction result won't be immediately available in the response. Instead,
82
+ # a long running operation object is returned. User can poll the operation
83
+ # result via [GetOperation][google.longrunning.Operations.GetOperation]
84
+ # method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned in
85
+ # the [response][google.longrunning.Operation.response] field.
86
+ # Available for following ML scenarios:
87
+ #
88
+ # * AutoML Vision Classification
89
+ # * AutoML Vision Object Detection
90
+ # * AutoML Video Intelligence Classification
91
+ # * AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification
92
+ # * AutoML Natural Language Entity Extraction
93
+ # * AutoML Natural Language Sentiment Analysis
94
+ # * AutoML Tables
95
+ rpc :BatchPredict, Google::Cloud::AutoML::V1::BatchPredictRequest, Google::Longrunning::Operation
96
+ end
97
+
98
+ Stub = Service.rpc_stub_class
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,139 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/automl/v1/service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/automl/v1/annotation_payload_pb'
11
+ require 'google/cloud/automl/v1/annotation_spec_pb'
12
+ require 'google/cloud/automl/v1/dataset_pb'
13
+ require 'google/cloud/automl/v1/image_pb'
14
+ require 'google/cloud/automl/v1/io_pb'
15
+ require 'google/cloud/automl/v1/model_pb'
16
+ require 'google/cloud/automl/v1/model_evaluation_pb'
17
+ require 'google/cloud/automl/v1/operations_pb'
18
+ require 'google/longrunning/operations_pb'
19
+ require 'google/protobuf/field_mask_pb'
20
+ Google::Protobuf::DescriptorPool.generated_pool.build do
21
+ add_file("google/cloud/automl/v1/service.proto", :syntax => :proto3) do
22
+ add_message "google.cloud.automl.v1.CreateDatasetRequest" do
23
+ optional :parent, :string, 1
24
+ optional :dataset, :message, 2, "google.cloud.automl.v1.Dataset"
25
+ end
26
+ add_message "google.cloud.automl.v1.GetDatasetRequest" do
27
+ optional :name, :string, 1
28
+ end
29
+ add_message "google.cloud.automl.v1.ListDatasetsRequest" do
30
+ optional :parent, :string, 1
31
+ optional :filter, :string, 3
32
+ optional :page_size, :int32, 4
33
+ optional :page_token, :string, 6
34
+ end
35
+ add_message "google.cloud.automl.v1.ListDatasetsResponse" do
36
+ repeated :datasets, :message, 1, "google.cloud.automl.v1.Dataset"
37
+ optional :next_page_token, :string, 2
38
+ end
39
+ add_message "google.cloud.automl.v1.UpdateDatasetRequest" do
40
+ optional :dataset, :message, 1, "google.cloud.automl.v1.Dataset"
41
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
42
+ end
43
+ add_message "google.cloud.automl.v1.DeleteDatasetRequest" do
44
+ optional :name, :string, 1
45
+ end
46
+ add_message "google.cloud.automl.v1.ImportDataRequest" do
47
+ optional :name, :string, 1
48
+ optional :input_config, :message, 3, "google.cloud.automl.v1.InputConfig"
49
+ end
50
+ add_message "google.cloud.automl.v1.ExportDataRequest" do
51
+ optional :name, :string, 1
52
+ optional :output_config, :message, 3, "google.cloud.automl.v1.OutputConfig"
53
+ end
54
+ add_message "google.cloud.automl.v1.GetAnnotationSpecRequest" do
55
+ optional :name, :string, 1
56
+ end
57
+ add_message "google.cloud.automl.v1.CreateModelRequest" do
58
+ optional :parent, :string, 1
59
+ optional :model, :message, 4, "google.cloud.automl.v1.Model"
60
+ end
61
+ add_message "google.cloud.automl.v1.GetModelRequest" do
62
+ optional :name, :string, 1
63
+ end
64
+ add_message "google.cloud.automl.v1.ListModelsRequest" do
65
+ optional :parent, :string, 1
66
+ optional :filter, :string, 3
67
+ optional :page_size, :int32, 4
68
+ optional :page_token, :string, 6
69
+ end
70
+ add_message "google.cloud.automl.v1.ListModelsResponse" do
71
+ repeated :model, :message, 1, "google.cloud.automl.v1.Model"
72
+ optional :next_page_token, :string, 2
73
+ end
74
+ add_message "google.cloud.automl.v1.DeleteModelRequest" do
75
+ optional :name, :string, 1
76
+ end
77
+ add_message "google.cloud.automl.v1.UpdateModelRequest" do
78
+ optional :model, :message, 1, "google.cloud.automl.v1.Model"
79
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
80
+ end
81
+ add_message "google.cloud.automl.v1.DeployModelRequest" do
82
+ optional :name, :string, 1
83
+ oneof :model_deployment_metadata do
84
+ optional :image_object_detection_model_deployment_metadata, :message, 2, "google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata"
85
+ optional :image_classification_model_deployment_metadata, :message, 4, "google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata"
86
+ end
87
+ end
88
+ add_message "google.cloud.automl.v1.UndeployModelRequest" do
89
+ optional :name, :string, 1
90
+ end
91
+ add_message "google.cloud.automl.v1.ExportModelRequest" do
92
+ optional :name, :string, 1
93
+ optional :output_config, :message, 3, "google.cloud.automl.v1.ModelExportOutputConfig"
94
+ end
95
+ add_message "google.cloud.automl.v1.GetModelEvaluationRequest" do
96
+ optional :name, :string, 1
97
+ end
98
+ add_message "google.cloud.automl.v1.ListModelEvaluationsRequest" do
99
+ optional :parent, :string, 1
100
+ optional :filter, :string, 3
101
+ optional :page_size, :int32, 4
102
+ optional :page_token, :string, 6
103
+ end
104
+ add_message "google.cloud.automl.v1.ListModelEvaluationsResponse" do
105
+ repeated :model_evaluation, :message, 1, "google.cloud.automl.v1.ModelEvaluation"
106
+ optional :next_page_token, :string, 2
107
+ end
108
+ end
109
+ end
110
+
111
+ module Google
112
+ module Cloud
113
+ module AutoML
114
+ module V1
115
+ CreateDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.CreateDatasetRequest").msgclass
116
+ GetDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.GetDatasetRequest").msgclass
117
+ ListDatasetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ListDatasetsRequest").msgclass
118
+ ListDatasetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ListDatasetsResponse").msgclass
119
+ UpdateDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.UpdateDatasetRequest").msgclass
120
+ DeleteDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.DeleteDatasetRequest").msgclass
121
+ ImportDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ImportDataRequest").msgclass
122
+ ExportDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ExportDataRequest").msgclass
123
+ GetAnnotationSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.GetAnnotationSpecRequest").msgclass
124
+ CreateModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.CreateModelRequest").msgclass
125
+ GetModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.GetModelRequest").msgclass
126
+ ListModelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ListModelsRequest").msgclass
127
+ ListModelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ListModelsResponse").msgclass
128
+ DeleteModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.DeleteModelRequest").msgclass
129
+ UpdateModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.UpdateModelRequest").msgclass
130
+ DeployModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.DeployModelRequest").msgclass
131
+ UndeployModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.UndeployModelRequest").msgclass
132
+ ExportModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ExportModelRequest").msgclass
133
+ GetModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.GetModelEvaluationRequest").msgclass
134
+ ListModelEvaluationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ListModelEvaluationsRequest").msgclass
135
+ ListModelEvaluationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ListModelEvaluationsResponse").msgclass
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,137 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/automl/v1/service.proto for package 'Google.Cloud.AutoML.V1'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/automl/v1/service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module AutoML
25
+ module V1
26
+ module AutoMl
27
+ # AutoML Server API.
28
+ #
29
+ # The resource names are assigned by the server.
30
+ # The server never reuses names that it has created after the resources with
31
+ # those names are deleted.
32
+ #
33
+ # An ID of a resource is the last element of the item's resource name. For
34
+ # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
35
+ # the id for the item is `{dataset_id}`.
36
+ #
37
+ # Currently the only supported `location_id` is "us-central1".
38
+ #
39
+ # On any input that is documented to expect a string parameter in
40
+ # snake_case or kebab-case, either of those cases is accepted.
41
+ class Service
42
+
43
+ include GRPC::GenericService
44
+
45
+ self.marshal_class_method = :encode
46
+ self.unmarshal_class_method = :decode
47
+ self.service_name = 'google.cloud.automl.v1.AutoMl'
48
+
49
+ # Creates a dataset.
50
+ rpc :CreateDataset, Google::Cloud::AutoML::V1::CreateDatasetRequest, Google::Longrunning::Operation
51
+ # Gets a dataset.
52
+ rpc :GetDataset, Google::Cloud::AutoML::V1::GetDatasetRequest, Google::Cloud::AutoML::V1::Dataset
53
+ # Lists datasets in a project.
54
+ rpc :ListDatasets, Google::Cloud::AutoML::V1::ListDatasetsRequest, Google::Cloud::AutoML::V1::ListDatasetsResponse
55
+ # Updates a dataset.
56
+ rpc :UpdateDataset, Google::Cloud::AutoML::V1::UpdateDatasetRequest, Google::Cloud::AutoML::V1::Dataset
57
+ # Deletes a dataset and all of its contents.
58
+ # Returns empty response in the
59
+ # [response][google.longrunning.Operation.response] field when it completes,
60
+ # and `delete_details` in the
61
+ # [metadata][google.longrunning.Operation.metadata] field.
62
+ rpc :DeleteDataset, Google::Cloud::AutoML::V1::DeleteDatasetRequest, Google::Longrunning::Operation
63
+ # Imports data into a dataset.
64
+ # For Tables this method can only be called on an empty Dataset.
65
+ #
66
+ # For Tables:
67
+ # * A
68
+ # [schema_inference_version][google.cloud.automl.v1.InputConfig.params]
69
+ # parameter must be explicitly set.
70
+ # Returns an empty response in the
71
+ # [response][google.longrunning.Operation.response] field when it completes.
72
+ rpc :ImportData, Google::Cloud::AutoML::V1::ImportDataRequest, Google::Longrunning::Operation
73
+ # Exports dataset's data to the provided output location.
74
+ # Returns an empty response in the
75
+ # [response][google.longrunning.Operation.response] field when it completes.
76
+ rpc :ExportData, Google::Cloud::AutoML::V1::ExportDataRequest, Google::Longrunning::Operation
77
+ # Gets an annotation spec.
78
+ rpc :GetAnnotationSpec, Google::Cloud::AutoML::V1::GetAnnotationSpecRequest, Google::Cloud::AutoML::V1::AnnotationSpec
79
+ # Creates a model.
80
+ # Returns a Model in the [response][google.longrunning.Operation.response]
81
+ # field when it completes.
82
+ # When you create a model, several model evaluations are created for it:
83
+ # a global evaluation, and one evaluation for each annotation spec.
84
+ rpc :CreateModel, Google::Cloud::AutoML::V1::CreateModelRequest, Google::Longrunning::Operation
85
+ # Gets a model.
86
+ rpc :GetModel, Google::Cloud::AutoML::V1::GetModelRequest, Google::Cloud::AutoML::V1::Model
87
+ # Lists models.
88
+ rpc :ListModels, Google::Cloud::AutoML::V1::ListModelsRequest, Google::Cloud::AutoML::V1::ListModelsResponse
89
+ # Deletes a model.
90
+ # Returns `google.protobuf.Empty` in the
91
+ # [response][google.longrunning.Operation.response] field when it completes,
92
+ # and `delete_details` in the
93
+ # [metadata][google.longrunning.Operation.metadata] field.
94
+ rpc :DeleteModel, Google::Cloud::AutoML::V1::DeleteModelRequest, Google::Longrunning::Operation
95
+ # Updates a model.
96
+ rpc :UpdateModel, Google::Cloud::AutoML::V1::UpdateModelRequest, Google::Cloud::AutoML::V1::Model
97
+ # Deploys a model. If a model is already deployed, deploying it with the
98
+ # same parameters has no effect. Deploying with different parametrs
99
+ # (as e.g. changing
100
+ #
101
+ # [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])
102
+ # will reset the deployment state without pausing the model's availability.
103
+ #
104
+ # Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
105
+ # deployment automatically.
106
+ #
107
+ # Returns an empty response in the
108
+ # [response][google.longrunning.Operation.response] field when it completes.
109
+ rpc :DeployModel, Google::Cloud::AutoML::V1::DeployModelRequest, Google::Longrunning::Operation
110
+ # Undeploys a model. If the model is not deployed this method has no effect.
111
+ #
112
+ # Only applicable for Text Classification, Image Object Detection and Tables;
113
+ # all other domains manage deployment automatically.
114
+ #
115
+ # Returns an empty response in the
116
+ # [response][google.longrunning.Operation.response] field when it completes.
117
+ rpc :UndeployModel, Google::Cloud::AutoML::V1::UndeployModelRequest, Google::Longrunning::Operation
118
+ # Exports a trained, "export-able", model to a user specified Google Cloud
119
+ # Storage location. A model is considered export-able if and only if it has
120
+ # an export format defined for it in
121
+ # [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
122
+ #
123
+ # Returns an empty response in the
124
+ # [response][google.longrunning.Operation.response] field when it completes.
125
+ rpc :ExportModel, Google::Cloud::AutoML::V1::ExportModelRequest, Google::Longrunning::Operation
126
+ # Gets a model evaluation.
127
+ rpc :GetModelEvaluation, Google::Cloud::AutoML::V1::GetModelEvaluationRequest, Google::Cloud::AutoML::V1::ModelEvaluation
128
+ # Lists model evaluations.
129
+ rpc :ListModelEvaluations, Google::Cloud::AutoML::V1::ListModelEvaluationsRequest, Google::Cloud::AutoML::V1::ListModelEvaluationsResponse
130
+ end
131
+
132
+ Stub = Service.rpc_stub_class
133
+ end
134
+ end
135
+ end
136
+ end
137
+ end