google-cloud-automl-v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google-cloud-automl-v1beta1.rb +21 -0
- data/lib/google/cloud/automl/v1beta1.rb +36 -0
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +41 -0
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +26 -0
- data/lib/google/cloud/automl/v1beta1/automl.rb +63 -0
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +2368 -0
- data/lib/google/cloud/automl/v1beta1/automl/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +564 -0
- data/lib/google/cloud/automl/v1beta1/automl/paths.rb +174 -0
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +73 -0
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +36 -0
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +95 -0
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +84 -0
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +43 -0
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +46 -0
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +59 -0
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +28 -0
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +57 -0
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +87 -0
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +45 -0
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +52 -0
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +97 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service.rb +53 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +586 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +564 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/paths.rb +52 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +50 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +79 -0
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -0
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +27 -0
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +187 -0
- data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +163 -0
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +31 -0
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +65 -0
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -0
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +39 -0
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +41 -0
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +25 -0
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +36 -0
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +41 -0
- data/lib/google/cloud/automl/v1beta1/version.rb +28 -0
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +32 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/automl/v1beta1/annotation_payload.rb +70 -0
- data/proto_docs/google/cloud/automl/v1beta1/annotation_spec.rb +46 -0
- data/proto_docs/google/cloud/automl/v1beta1/classification.rb +234 -0
- data/proto_docs/google/cloud/automl/v1beta1/column_spec.rb +77 -0
- data/proto_docs/google/cloud/automl/v1beta1/data_items.rb +227 -0
- data/proto_docs/google/cloud/automl/v1beta1/data_stats.rb +227 -0
- data/proto_docs/google/cloud/automl/v1beta1/data_types.rb +118 -0
- data/proto_docs/google/cloud/automl/v1beta1/dataset.rb +84 -0
- data/proto_docs/google/cloud/automl/v1beta1/detection.rb +152 -0
- data/proto_docs/google/cloud/automl/v1beta1/geometry.rb +53 -0
- data/proto_docs/google/cloud/automl/v1beta1/image.rb +205 -0
- data/proto_docs/google/cloud/automl/v1beta1/io.rb +1168 -0
- data/proto_docs/google/cloud/automl/v1beta1/model.rb +95 -0
- data/proto_docs/google/cloud/automl/v1beta1/model_evaluation.rb +103 -0
- data/proto_docs/google/cloud/automl/v1beta1/operations.rb +206 -0
- data/proto_docs/google/cloud/automl/v1beta1/prediction_service.rb +238 -0
- data/proto_docs/google/cloud/automl/v1beta1/ranges.rb +38 -0
- data/proto_docs/google/cloud/automl/v1beta1/regression.rb +48 -0
- data/proto_docs/google/cloud/automl/v1beta1/service.rb +447 -0
- data/proto_docs/google/cloud/automl/v1beta1/table_spec.rb +75 -0
- data/proto_docs/google/cloud/automl/v1beta1/tables.rb +300 -0
- data/proto_docs/google/cloud/automl/v1beta1/temporal.rb +40 -0
- data/proto_docs/google/cloud/automl/v1beta1/text.rb +76 -0
- data/proto_docs/google/cloud/automl/v1beta1/text_extraction.rb +73 -0
- data/proto_docs/google/cloud/automl/v1beta1/text_segment.rb +44 -0
- data/proto_docs/google/cloud/automl/v1beta1/text_sentiment.rb +86 -0
- data/proto_docs/google/cloud/automl/v1beta1/translation.rb +79 -0
- data/proto_docs/google/cloud/automl/v1beta1/video.rb +51 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +245 -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 V1beta1
|
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,50 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/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/v1beta1/annotation_payload_pb'
|
11
|
+
require 'google/cloud/automl/v1beta1/data_items_pb'
|
12
|
+
require 'google/cloud/automl/v1beta1/io_pb'
|
13
|
+
require 'google/cloud/automl/v1beta1/operations_pb'
|
14
|
+
require 'google/longrunning/operations_pb'
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_file("google/cloud/automl/v1beta1/prediction_service.proto", :syntax => :proto3) do
|
17
|
+
add_message "google.cloud.automl.v1beta1.PredictRequest" do
|
18
|
+
optional :name, :string, 1
|
19
|
+
optional :payload, :message, 2, "google.cloud.automl.v1beta1.ExamplePayload"
|
20
|
+
map :params, :string, :string, 3
|
21
|
+
end
|
22
|
+
add_message "google.cloud.automl.v1beta1.PredictResponse" do
|
23
|
+
repeated :payload, :message, 1, "google.cloud.automl.v1beta1.AnnotationPayload"
|
24
|
+
optional :preprocessed_input, :message, 3, "google.cloud.automl.v1beta1.ExamplePayload"
|
25
|
+
map :metadata, :string, :string, 2
|
26
|
+
end
|
27
|
+
add_message "google.cloud.automl.v1beta1.BatchPredictRequest" do
|
28
|
+
optional :name, :string, 1
|
29
|
+
optional :input_config, :message, 3, "google.cloud.automl.v1beta1.BatchPredictInputConfig"
|
30
|
+
optional :output_config, :message, 4, "google.cloud.automl.v1beta1.BatchPredictOutputConfig"
|
31
|
+
map :params, :string, :string, 5
|
32
|
+
end
|
33
|
+
add_message "google.cloud.automl.v1beta1.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 V1beta1
|
43
|
+
PredictRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.PredictRequest").msgclass
|
44
|
+
PredictResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.PredictResponse").msgclass
|
45
|
+
BatchPredictRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.BatchPredictRequest").msgclass
|
46
|
+
BatchPredictResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.BatchPredictResult").msgclass
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/automl/v1beta1/prediction_service.proto for package 'Google.Cloud.AutoML.V1beta1'
|
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/v1beta1/prediction_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module AutoML
|
25
|
+
module V1beta1
|
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.v1beta1.PredictionService'
|
38
|
+
|
39
|
+
# Perform an online prediction. The prediction result will be directly
|
40
|
+
# returned in the response.
|
41
|
+
# Available for following ML problems, and their expected request payloads:
|
42
|
+
# * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
|
43
|
+
# up to 30MB.
|
44
|
+
# * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
|
45
|
+
# up to 30MB.
|
46
|
+
# * Text Classification - TextSnippet, content up to 60,000 characters,
|
47
|
+
# UTF-8 encoded.
|
48
|
+
# * Text Extraction - TextSnippet, content up to 30,000 characters,
|
49
|
+
# UTF-8 NFC encoded.
|
50
|
+
# * Translation - TextSnippet, content up to 25,000 characters, UTF-8
|
51
|
+
# encoded.
|
52
|
+
# * Tables - Row, with column values matching the columns of the model,
|
53
|
+
# up to 5MB. Not available for FORECASTING
|
54
|
+
#
|
55
|
+
# [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type].
|
56
|
+
# * Text Sentiment - TextSnippet, content up 500 characters, UTF-8
|
57
|
+
# encoded.
|
58
|
+
rpc :Predict, Google::Cloud::AutoML::V1beta1::PredictRequest, Google::Cloud::AutoML::V1beta1::PredictResponse
|
59
|
+
# Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
|
60
|
+
# prediction result won't be immediately available in the response. Instead,
|
61
|
+
# a long running operation object is returned. User can poll the operation
|
62
|
+
# result via [GetOperation][google.longrunning.Operations.GetOperation]
|
63
|
+
# method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in
|
64
|
+
# the [response][google.longrunning.Operation.response] field.
|
65
|
+
# Available for following ML problems:
|
66
|
+
# * Image Classification
|
67
|
+
# * Image Object Detection
|
68
|
+
# * Video Classification
|
69
|
+
# * Video Object Tracking * Text Extraction
|
70
|
+
# * Tables
|
71
|
+
rpc :BatchPredict, Google::Cloud::AutoML::V1beta1::BatchPredictRequest, Google::Longrunning::Operation
|
72
|
+
end
|
73
|
+
|
74
|
+
Stub = Service.rpc_stub_class
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/ranges.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/automl/v1beta1/ranges.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.automl.v1beta1.DoubleRange" do
|
10
|
+
optional :start, :double, 1
|
11
|
+
optional :end, :double, 2
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module AutoML
|
19
|
+
module V1beta1
|
20
|
+
DoubleRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DoubleRange").msgclass
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/regression.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/automl/v1beta1/regression.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.automl.v1beta1.RegressionEvaluationMetrics" do
|
10
|
+
optional :root_mean_squared_error, :float, 1
|
11
|
+
optional :mean_absolute_error, :float, 2
|
12
|
+
optional :mean_absolute_percentage_error, :float, 3
|
13
|
+
optional :r_squared, :float, 4
|
14
|
+
optional :root_mean_squared_log_error, :float, 5
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Cloud
|
21
|
+
module AutoML
|
22
|
+
module V1beta1
|
23
|
+
RegressionEvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.RegressionEvaluationMetrics").msgclass
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,187 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/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/v1beta1/annotation_payload_pb'
|
11
|
+
require 'google/cloud/automl/v1beta1/annotation_spec_pb'
|
12
|
+
require 'google/cloud/automl/v1beta1/column_spec_pb'
|
13
|
+
require 'google/cloud/automl/v1beta1/dataset_pb'
|
14
|
+
require 'google/cloud/automl/v1beta1/image_pb'
|
15
|
+
require 'google/cloud/automl/v1beta1/io_pb'
|
16
|
+
require 'google/cloud/automl/v1beta1/model_pb'
|
17
|
+
require 'google/cloud/automl/v1beta1/model_evaluation_pb'
|
18
|
+
require 'google/cloud/automl/v1beta1/operations_pb'
|
19
|
+
require 'google/cloud/automl/v1beta1/table_spec_pb'
|
20
|
+
require 'google/longrunning/operations_pb'
|
21
|
+
require 'google/protobuf/field_mask_pb'
|
22
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
23
|
+
add_file("google/cloud/automl/v1beta1/service.proto", :syntax => :proto3) do
|
24
|
+
add_message "google.cloud.automl.v1beta1.CreateDatasetRequest" do
|
25
|
+
optional :parent, :string, 1
|
26
|
+
optional :dataset, :message, 2, "google.cloud.automl.v1beta1.Dataset"
|
27
|
+
end
|
28
|
+
add_message "google.cloud.automl.v1beta1.GetDatasetRequest" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
end
|
31
|
+
add_message "google.cloud.automl.v1beta1.ListDatasetsRequest" do
|
32
|
+
optional :parent, :string, 1
|
33
|
+
optional :filter, :string, 3
|
34
|
+
optional :page_size, :int32, 4
|
35
|
+
optional :page_token, :string, 6
|
36
|
+
end
|
37
|
+
add_message "google.cloud.automl.v1beta1.ListDatasetsResponse" do
|
38
|
+
repeated :datasets, :message, 1, "google.cloud.automl.v1beta1.Dataset"
|
39
|
+
optional :next_page_token, :string, 2
|
40
|
+
end
|
41
|
+
add_message "google.cloud.automl.v1beta1.UpdateDatasetRequest" do
|
42
|
+
optional :dataset, :message, 1, "google.cloud.automl.v1beta1.Dataset"
|
43
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
44
|
+
end
|
45
|
+
add_message "google.cloud.automl.v1beta1.DeleteDatasetRequest" do
|
46
|
+
optional :name, :string, 1
|
47
|
+
end
|
48
|
+
add_message "google.cloud.automl.v1beta1.ImportDataRequest" do
|
49
|
+
optional :name, :string, 1
|
50
|
+
optional :input_config, :message, 3, "google.cloud.automl.v1beta1.InputConfig"
|
51
|
+
end
|
52
|
+
add_message "google.cloud.automl.v1beta1.ExportDataRequest" do
|
53
|
+
optional :name, :string, 1
|
54
|
+
optional :output_config, :message, 3, "google.cloud.automl.v1beta1.OutputConfig"
|
55
|
+
end
|
56
|
+
add_message "google.cloud.automl.v1beta1.GetAnnotationSpecRequest" do
|
57
|
+
optional :name, :string, 1
|
58
|
+
end
|
59
|
+
add_message "google.cloud.automl.v1beta1.GetTableSpecRequest" do
|
60
|
+
optional :name, :string, 1
|
61
|
+
optional :field_mask, :message, 2, "google.protobuf.FieldMask"
|
62
|
+
end
|
63
|
+
add_message "google.cloud.automl.v1beta1.ListTableSpecsRequest" do
|
64
|
+
optional :parent, :string, 1
|
65
|
+
optional :field_mask, :message, 2, "google.protobuf.FieldMask"
|
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.v1beta1.ListTableSpecsResponse" do
|
71
|
+
repeated :table_specs, :message, 1, "google.cloud.automl.v1beta1.TableSpec"
|
72
|
+
optional :next_page_token, :string, 2
|
73
|
+
end
|
74
|
+
add_message "google.cloud.automl.v1beta1.UpdateTableSpecRequest" do
|
75
|
+
optional :table_spec, :message, 1, "google.cloud.automl.v1beta1.TableSpec"
|
76
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
77
|
+
end
|
78
|
+
add_message "google.cloud.automl.v1beta1.GetColumnSpecRequest" do
|
79
|
+
optional :name, :string, 1
|
80
|
+
optional :field_mask, :message, 2, "google.protobuf.FieldMask"
|
81
|
+
end
|
82
|
+
add_message "google.cloud.automl.v1beta1.ListColumnSpecsRequest" do
|
83
|
+
optional :parent, :string, 1
|
84
|
+
optional :field_mask, :message, 2, "google.protobuf.FieldMask"
|
85
|
+
optional :filter, :string, 3
|
86
|
+
optional :page_size, :int32, 4
|
87
|
+
optional :page_token, :string, 6
|
88
|
+
end
|
89
|
+
add_message "google.cloud.automl.v1beta1.ListColumnSpecsResponse" do
|
90
|
+
repeated :column_specs, :message, 1, "google.cloud.automl.v1beta1.ColumnSpec"
|
91
|
+
optional :next_page_token, :string, 2
|
92
|
+
end
|
93
|
+
add_message "google.cloud.automl.v1beta1.UpdateColumnSpecRequest" do
|
94
|
+
optional :column_spec, :message, 1, "google.cloud.automl.v1beta1.ColumnSpec"
|
95
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
96
|
+
end
|
97
|
+
add_message "google.cloud.automl.v1beta1.CreateModelRequest" do
|
98
|
+
optional :parent, :string, 1
|
99
|
+
optional :model, :message, 4, "google.cloud.automl.v1beta1.Model"
|
100
|
+
end
|
101
|
+
add_message "google.cloud.automl.v1beta1.GetModelRequest" do
|
102
|
+
optional :name, :string, 1
|
103
|
+
end
|
104
|
+
add_message "google.cloud.automl.v1beta1.ListModelsRequest" do
|
105
|
+
optional :parent, :string, 1
|
106
|
+
optional :filter, :string, 3
|
107
|
+
optional :page_size, :int32, 4
|
108
|
+
optional :page_token, :string, 6
|
109
|
+
end
|
110
|
+
add_message "google.cloud.automl.v1beta1.ListModelsResponse" do
|
111
|
+
repeated :model, :message, 1, "google.cloud.automl.v1beta1.Model"
|
112
|
+
optional :next_page_token, :string, 2
|
113
|
+
end
|
114
|
+
add_message "google.cloud.automl.v1beta1.DeleteModelRequest" do
|
115
|
+
optional :name, :string, 1
|
116
|
+
end
|
117
|
+
add_message "google.cloud.automl.v1beta1.DeployModelRequest" do
|
118
|
+
optional :name, :string, 1
|
119
|
+
oneof :model_deployment_metadata do
|
120
|
+
optional :image_object_detection_model_deployment_metadata, :message, 2, "google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata"
|
121
|
+
optional :image_classification_model_deployment_metadata, :message, 4, "google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata"
|
122
|
+
end
|
123
|
+
end
|
124
|
+
add_message "google.cloud.automl.v1beta1.UndeployModelRequest" do
|
125
|
+
optional :name, :string, 1
|
126
|
+
end
|
127
|
+
add_message "google.cloud.automl.v1beta1.ExportModelRequest" do
|
128
|
+
optional :name, :string, 1
|
129
|
+
optional :output_config, :message, 3, "google.cloud.automl.v1beta1.ModelExportOutputConfig"
|
130
|
+
end
|
131
|
+
add_message "google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest" do
|
132
|
+
optional :name, :string, 1
|
133
|
+
optional :output_config, :message, 3, "google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig"
|
134
|
+
end
|
135
|
+
add_message "google.cloud.automl.v1beta1.GetModelEvaluationRequest" do
|
136
|
+
optional :name, :string, 1
|
137
|
+
end
|
138
|
+
add_message "google.cloud.automl.v1beta1.ListModelEvaluationsRequest" do
|
139
|
+
optional :parent, :string, 1
|
140
|
+
optional :filter, :string, 3
|
141
|
+
optional :page_size, :int32, 4
|
142
|
+
optional :page_token, :string, 6
|
143
|
+
end
|
144
|
+
add_message "google.cloud.automl.v1beta1.ListModelEvaluationsResponse" do
|
145
|
+
repeated :model_evaluation, :message, 1, "google.cloud.automl.v1beta1.ModelEvaluation"
|
146
|
+
optional :next_page_token, :string, 2
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
module Google
|
152
|
+
module Cloud
|
153
|
+
module AutoML
|
154
|
+
module V1beta1
|
155
|
+
CreateDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CreateDatasetRequest").msgclass
|
156
|
+
GetDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.GetDatasetRequest").msgclass
|
157
|
+
ListDatasetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListDatasetsRequest").msgclass
|
158
|
+
ListDatasetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListDatasetsResponse").msgclass
|
159
|
+
UpdateDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.UpdateDatasetRequest").msgclass
|
160
|
+
DeleteDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DeleteDatasetRequest").msgclass
|
161
|
+
ImportDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ImportDataRequest").msgclass
|
162
|
+
ExportDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ExportDataRequest").msgclass
|
163
|
+
GetAnnotationSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.GetAnnotationSpecRequest").msgclass
|
164
|
+
GetTableSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.GetTableSpecRequest").msgclass
|
165
|
+
ListTableSpecsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListTableSpecsRequest").msgclass
|
166
|
+
ListTableSpecsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListTableSpecsResponse").msgclass
|
167
|
+
UpdateTableSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.UpdateTableSpecRequest").msgclass
|
168
|
+
GetColumnSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.GetColumnSpecRequest").msgclass
|
169
|
+
ListColumnSpecsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListColumnSpecsRequest").msgclass
|
170
|
+
ListColumnSpecsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListColumnSpecsResponse").msgclass
|
171
|
+
UpdateColumnSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.UpdateColumnSpecRequest").msgclass
|
172
|
+
CreateModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CreateModelRequest").msgclass
|
173
|
+
GetModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.GetModelRequest").msgclass
|
174
|
+
ListModelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListModelsRequest").msgclass
|
175
|
+
ListModelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListModelsResponse").msgclass
|
176
|
+
DeleteModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DeleteModelRequest").msgclass
|
177
|
+
DeployModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DeployModelRequest").msgclass
|
178
|
+
UndeployModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.UndeployModelRequest").msgclass
|
179
|
+
ExportModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ExportModelRequest").msgclass
|
180
|
+
ExportEvaluatedExamplesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest").msgclass
|
181
|
+
GetModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.GetModelEvaluationRequest").msgclass
|
182
|
+
ListModelEvaluationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListModelEvaluationsRequest").msgclass
|
183
|
+
ListModelEvaluationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ListModelEvaluationsResponse").msgclass
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -0,0 +1,163 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/automl/v1beta1/service.proto for package 'Google.Cloud.AutoML.V1beta1'
|
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/v1beta1/service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module AutoML
|
25
|
+
module V1beta1
|
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.v1beta1.AutoMl'
|
48
|
+
|
49
|
+
# Creates a dataset.
|
50
|
+
rpc :CreateDataset, Google::Cloud::AutoML::V1beta1::CreateDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
|
51
|
+
# Gets a dataset.
|
52
|
+
rpc :GetDataset, Google::Cloud::AutoML::V1beta1::GetDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
|
53
|
+
# Lists datasets in a project.
|
54
|
+
rpc :ListDatasets, Google::Cloud::AutoML::V1beta1::ListDatasetsRequest, Google::Cloud::AutoML::V1beta1::ListDatasetsResponse
|
55
|
+
# Updates a dataset.
|
56
|
+
rpc :UpdateDataset, Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest, Google::Cloud::AutoML::V1beta1::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::V1beta1::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.v1beta1.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::V1beta1::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::V1beta1::ExportDataRequest, Google::Longrunning::Operation
|
77
|
+
# Gets an annotation spec.
|
78
|
+
rpc :GetAnnotationSpec, Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest, Google::Cloud::AutoML::V1beta1::AnnotationSpec
|
79
|
+
# Gets a table spec.
|
80
|
+
rpc :GetTableSpec, Google::Cloud::AutoML::V1beta1::GetTableSpecRequest, Google::Cloud::AutoML::V1beta1::TableSpec
|
81
|
+
# Lists table specs in a dataset.
|
82
|
+
rpc :ListTableSpecs, Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest, Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse
|
83
|
+
# Updates a table spec.
|
84
|
+
rpc :UpdateTableSpec, Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest, Google::Cloud::AutoML::V1beta1::TableSpec
|
85
|
+
# Gets a column spec.
|
86
|
+
rpc :GetColumnSpec, Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest, Google::Cloud::AutoML::V1beta1::ColumnSpec
|
87
|
+
# Lists column specs in a table spec.
|
88
|
+
rpc :ListColumnSpecs, Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest, Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse
|
89
|
+
# Updates a column spec.
|
90
|
+
rpc :UpdateColumnSpec, Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest, Google::Cloud::AutoML::V1beta1::ColumnSpec
|
91
|
+
# Creates a model.
|
92
|
+
# Returns a Model in the [response][google.longrunning.Operation.response]
|
93
|
+
# field when it completes.
|
94
|
+
# When you create a model, several model evaluations are created for it:
|
95
|
+
# a global evaluation, and one evaluation for each annotation spec.
|
96
|
+
rpc :CreateModel, Google::Cloud::AutoML::V1beta1::CreateModelRequest, Google::Longrunning::Operation
|
97
|
+
# Gets a model.
|
98
|
+
rpc :GetModel, Google::Cloud::AutoML::V1beta1::GetModelRequest, Google::Cloud::AutoML::V1beta1::Model
|
99
|
+
# Lists models.
|
100
|
+
rpc :ListModels, Google::Cloud::AutoML::V1beta1::ListModelsRequest, Google::Cloud::AutoML::V1beta1::ListModelsResponse
|
101
|
+
# Deletes a model.
|
102
|
+
# Returns `google.protobuf.Empty` in the
|
103
|
+
# [response][google.longrunning.Operation.response] field when it completes,
|
104
|
+
# and `delete_details` in the
|
105
|
+
# [metadata][google.longrunning.Operation.metadata] field.
|
106
|
+
rpc :DeleteModel, Google::Cloud::AutoML::V1beta1::DeleteModelRequest, Google::Longrunning::Operation
|
107
|
+
# Deploys a model. If a model is already deployed, deploying it with the
|
108
|
+
# same parameters has no effect. Deploying with different parametrs
|
109
|
+
# (as e.g. changing
|
110
|
+
#
|
111
|
+
# [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number])
|
112
|
+
# will reset the deployment state without pausing the model's availability.
|
113
|
+
#
|
114
|
+
# Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
|
115
|
+
# deployment automatically.
|
116
|
+
#
|
117
|
+
# Returns an empty response in the
|
118
|
+
# [response][google.longrunning.Operation.response] field when it completes.
|
119
|
+
rpc :DeployModel, Google::Cloud::AutoML::V1beta1::DeployModelRequest, Google::Longrunning::Operation
|
120
|
+
# Undeploys a model. If the model is not deployed this method has no effect.
|
121
|
+
#
|
122
|
+
# Only applicable for Text Classification, Image Object Detection and Tables;
|
123
|
+
# all other domains manage deployment automatically.
|
124
|
+
#
|
125
|
+
# Returns an empty response in the
|
126
|
+
# [response][google.longrunning.Operation.response] field when it completes.
|
127
|
+
rpc :UndeployModel, Google::Cloud::AutoML::V1beta1::UndeployModelRequest, Google::Longrunning::Operation
|
128
|
+
# Exports a trained, "export-able", model to a user specified Google Cloud
|
129
|
+
# Storage location. A model is considered export-able if and only if it has
|
130
|
+
# an export format defined for it in
|
131
|
+
#
|
132
|
+
# [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
|
133
|
+
#
|
134
|
+
# Returns an empty response in the
|
135
|
+
# [response][google.longrunning.Operation.response] field when it completes.
|
136
|
+
rpc :ExportModel, Google::Cloud::AutoML::V1beta1::ExportModelRequest, Google::Longrunning::Operation
|
137
|
+
# Exports examples on which the model was evaluated (i.e. which were in the
|
138
|
+
# TEST set of the dataset the model was created from), together with their
|
139
|
+
# ground truth annotations and the annotations created (predicted) by the
|
140
|
+
# model.
|
141
|
+
# The examples, ground truth and predictions are exported in the state
|
142
|
+
# they were at the moment the model was evaluated.
|
143
|
+
#
|
144
|
+
# This export is available only for 30 days since the model evaluation is
|
145
|
+
# created.
|
146
|
+
#
|
147
|
+
# Currently only available for Tables.
|
148
|
+
#
|
149
|
+
# Returns an empty response in the
|
150
|
+
# [response][google.longrunning.Operation.response] field when it completes.
|
151
|
+
rpc :ExportEvaluatedExamples, Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest, Google::Longrunning::Operation
|
152
|
+
# Gets a model evaluation.
|
153
|
+
rpc :GetModelEvaluation, Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest, Google::Cloud::AutoML::V1beta1::ModelEvaluation
|
154
|
+
# Lists model evaluations.
|
155
|
+
rpc :ListModelEvaluations, Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest, Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse
|
156
|
+
end
|
157
|
+
|
158
|
+
Stub = Service.rpc_stub_class
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|