google-cloud-automl-v1 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/v1/annotation_payload_pb.rb +37 -0
- data/lib/google/cloud/automl/v1/annotation_spec_pb.rb +26 -0
- data/lib/google/cloud/automl/v1/automl/client.rb +1851 -0
- data/lib/google/cloud/automl/v1/automl/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1/automl/operations.rb +564 -0
- data/lib/google/cloud/automl/v1/automl/paths.rb +130 -0
- data/lib/google/cloud/automl/v1/automl.rb +63 -0
- data/lib/google/cloud/automl/v1/classification_pb.rb +65 -0
- data/lib/google/cloud/automl/v1/data_items_pb.rb +87 -0
- data/lib/google/cloud/automl/v1/dataset_pb.rb +42 -0
- data/lib/google/cloud/automl/v1/detection_pb.rb +45 -0
- data/lib/google/cloud/automl/v1/geometry_pb.rb +28 -0
- data/lib/google/cloud/automl/v1/image_pb.rb +57 -0
- data/lib/google/cloud/automl/v1/io_pb.rb +65 -0
- data/lib/google/cloud/automl/v1/model_evaluation_pb.rb +41 -0
- data/lib/google/cloud/automl/v1/model_pb.rb +49 -0
- data/lib/google/cloud/automl/v1/operations_pb.rb +88 -0
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +634 -0
- data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +564 -0
- data/lib/google/cloud/automl/v1/prediction_service/paths.rb +52 -0
- data/lib/google/cloud/automl/v1/prediction_service.rb +53 -0
- data/lib/google/cloud/automl/v1/prediction_service_pb.rb +50 -0
- data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +103 -0
- data/lib/google/cloud/automl/v1/service_pb.rb +139 -0
- data/lib/google/cloud/automl/v1/service_services_pb.rb +137 -0
- data/lib/google/cloud/automl/v1/text_extraction_pb.rb +39 -0
- data/lib/google/cloud/automl/v1/text_pb.rb +41 -0
- data/lib/google/cloud/automl/v1/text_segment_pb.rb +25 -0
- data/lib/google/cloud/automl/v1/text_sentiment_pb.rb +35 -0
- data/lib/google/cloud/automl/v1/translation_pb.rb +41 -0
- data/lib/google/cloud/automl/v1/version.rb +28 -0
- data/lib/google/cloud/automl/v1.rb +36 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/lib/google-cloud-automl-v1.rb +21 -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/v1/annotation_payload.rb +60 -0
- data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +46 -0
- data/proto_docs/google/cloud/automl/v1/classification.rb +191 -0
- data/proto_docs/google/cloud/automl/v1/data_items.rb +197 -0
- data/proto_docs/google/cloud/automl/v1/dataset.rb +94 -0
- data/proto_docs/google/cloud/automl/v1/detection.rb +97 -0
- data/proto_docs/google/cloud/automl/v1/geometry.rb +53 -0
- data/proto_docs/google/cloud/automl/v1/image.rb +217 -0
- data/proto_docs/google/cloud/automl/v1/io.rb +1402 -0
- data/proto_docs/google/cloud/automl/v1/model.rb +109 -0
- data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +94 -0
- data/proto_docs/google/cloud/automl/v1/operations.rb +180 -0
- data/proto_docs/google/cloud/automl/v1/prediction_service.rb +271 -0
- data/proto_docs/google/cloud/automl/v1/service.rb +322 -0
- data/proto_docs/google/cloud/automl/v1/text.rb +76 -0
- data/proto_docs/google/cloud/automl/v1/text_extraction.rb +73 -0
- data/proto_docs/google/cloud/automl/v1/text_segment.rb +44 -0
- data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +82 -0
- data/proto_docs/google/cloud/automl/v1/translation.rb +79 -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 +227 -0
@@ -0,0 +1,130 @@
|
|
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 AutoML
|
25
|
+
# Path helper methods for the AutoMl API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified AnnotationSpec resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param dataset [String]
|
37
|
+
# @param annotation_spec [String]
|
38
|
+
#
|
39
|
+
# @return [String]
|
40
|
+
def annotation_spec_path project:, location:, dataset:, annotation_spec:
|
41
|
+
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
raise ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/datasets/#{dataset}/annotationSpecs/#{annotation_spec}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified Dataset resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param dataset [String]
|
58
|
+
#
|
59
|
+
# @return [String]
|
60
|
+
def dataset_path project:, location:, dataset:
|
61
|
+
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/datasets/#{dataset}"
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a fully-qualified Location resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
#
|
77
|
+
# @return [String]
|
78
|
+
def location_path project:, location:
|
79
|
+
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/#{location}"
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Create a fully-qualified Model resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/locations/{location}/models/{model}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param location [String]
|
93
|
+
# @param model [String]
|
94
|
+
#
|
95
|
+
# @return [String]
|
96
|
+
def model_path project:, location:, model:
|
97
|
+
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/models/#{model}"
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# Create a fully-qualified ModelEvaluation resource string.
|
105
|
+
#
|
106
|
+
# The resource will be in the following format:
|
107
|
+
#
|
108
|
+
# `projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}`
|
109
|
+
#
|
110
|
+
# @param project [String]
|
111
|
+
# @param location [String]
|
112
|
+
# @param model [String]
|
113
|
+
# @param model_evaluation [String]
|
114
|
+
#
|
115
|
+
# @return [String]
|
116
|
+
def model_evaluation_path project:, location:, model:, model_evaluation:
|
117
|
+
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
118
|
+
raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
119
|
+
raise ArgumentError, "model cannot contain /" if model.to_s.include? "/"
|
120
|
+
|
121
|
+
"projects/#{project}/locations/#{location}/models/#{model}/modelEvaluations/#{model_evaluation}"
|
122
|
+
end
|
123
|
+
|
124
|
+
extend self
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,63 @@
|
|
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/automl/credentials"
|
26
|
+
require "google/cloud/automl/v1/automl/paths"
|
27
|
+
require "google/cloud/automl/v1/automl/operations"
|
28
|
+
require "google/cloud/automl/v1/automl/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module AutoML
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# AutoML Server API.
|
36
|
+
#
|
37
|
+
# The resource names are assigned by the server.
|
38
|
+
# The server never reuses names that it has created after the resources with
|
39
|
+
# those names are deleted.
|
40
|
+
#
|
41
|
+
# An ID of a resource is the last element of the item's resource name. For
|
42
|
+
# `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
|
43
|
+
# the id for the item is `{dataset_id}`.
|
44
|
+
#
|
45
|
+
# Currently the only supported `location_id` is "us-central1".
|
46
|
+
#
|
47
|
+
# On any input that is documented to expect a string parameter in
|
48
|
+
# snake_case or kebab-case, either of those cases is accepted.
|
49
|
+
#
|
50
|
+
# To load this service and instantiate a client:
|
51
|
+
#
|
52
|
+
# require "google/cloud/automl/v1/automl"
|
53
|
+
# client = Google::Cloud::AutoML::V1::AutoML::Client.new
|
54
|
+
#
|
55
|
+
module AutoML
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
helper_path = ::File.join __dir__, "automl", "helpers.rb"
|
63
|
+
require "google/cloud/automl/v1/automl/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1/classification.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/v1/classification.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.automl.v1.ClassificationAnnotation" do
|
10
|
+
optional :score, :float, 1
|
11
|
+
end
|
12
|
+
add_message "google.cloud.automl.v1.ClassificationEvaluationMetrics" do
|
13
|
+
optional :au_prc, :float, 1
|
14
|
+
optional :au_roc, :float, 6
|
15
|
+
optional :log_loss, :float, 7
|
16
|
+
repeated :confidence_metrics_entry, :message, 3, "google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry"
|
17
|
+
optional :confusion_matrix, :message, 4, "google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix"
|
18
|
+
repeated :annotation_spec_id, :string, 5
|
19
|
+
end
|
20
|
+
add_message "google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry" do
|
21
|
+
optional :confidence_threshold, :float, 1
|
22
|
+
optional :position_threshold, :int32, 14
|
23
|
+
optional :recall, :float, 2
|
24
|
+
optional :precision, :float, 3
|
25
|
+
optional :false_positive_rate, :float, 8
|
26
|
+
optional :f1_score, :float, 4
|
27
|
+
optional :recall_at1, :float, 5
|
28
|
+
optional :precision_at1, :float, 6
|
29
|
+
optional :false_positive_rate_at1, :float, 9
|
30
|
+
optional :f1_score_at1, :float, 7
|
31
|
+
optional :true_positive_count, :int64, 10
|
32
|
+
optional :false_positive_count, :int64, 11
|
33
|
+
optional :false_negative_count, :int64, 12
|
34
|
+
optional :true_negative_count, :int64, 13
|
35
|
+
end
|
36
|
+
add_message "google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix" do
|
37
|
+
repeated :annotation_spec_id, :string, 1
|
38
|
+
repeated :display_name, :string, 3
|
39
|
+
repeated :row, :message, 2, "google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row"
|
40
|
+
end
|
41
|
+
add_message "google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row" do
|
42
|
+
repeated :example_count, :int32, 1
|
43
|
+
end
|
44
|
+
add_enum "google.cloud.automl.v1.ClassificationType" do
|
45
|
+
value :CLASSIFICATION_TYPE_UNSPECIFIED, 0
|
46
|
+
value :MULTICLASS, 1
|
47
|
+
value :MULTILABEL, 2
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module Google
|
53
|
+
module Cloud
|
54
|
+
module AutoML
|
55
|
+
module V1
|
56
|
+
ClassificationAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ClassificationAnnotation").msgclass
|
57
|
+
ClassificationEvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ClassificationEvaluationMetrics").msgclass
|
58
|
+
ClassificationEvaluationMetrics::ConfidenceMetricsEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry").msgclass
|
59
|
+
ClassificationEvaluationMetrics::ConfusionMatrix = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix").msgclass
|
60
|
+
ClassificationEvaluationMetrics::ConfusionMatrix::Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row").msgclass
|
61
|
+
ClassificationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ClassificationType").enummodule
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1/data_items.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/automl/v1/geometry_pb'
|
7
|
+
require 'google/cloud/automl/v1/io_pb'
|
8
|
+
require 'google/cloud/automl/v1/text_segment_pb'
|
9
|
+
require 'google/protobuf/any_pb'
|
10
|
+
require 'google/protobuf/duration_pb'
|
11
|
+
require 'google/protobuf/struct_pb'
|
12
|
+
require 'google/api/annotations_pb'
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/automl/v1/data_items.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.automl.v1.Image" do
|
16
|
+
optional :thumbnail_uri, :string, 4
|
17
|
+
oneof :data do
|
18
|
+
optional :image_bytes, :bytes, 1
|
19
|
+
end
|
20
|
+
end
|
21
|
+
add_message "google.cloud.automl.v1.TextSnippet" do
|
22
|
+
optional :content, :string, 1
|
23
|
+
optional :mime_type, :string, 2
|
24
|
+
optional :content_uri, :string, 4
|
25
|
+
end
|
26
|
+
add_message "google.cloud.automl.v1.DocumentDimensions" do
|
27
|
+
optional :unit, :enum, 1, "google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit"
|
28
|
+
optional :width, :float, 2
|
29
|
+
optional :height, :float, 3
|
30
|
+
end
|
31
|
+
add_enum "google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit" do
|
32
|
+
value :DOCUMENT_DIMENSION_UNIT_UNSPECIFIED, 0
|
33
|
+
value :INCH, 1
|
34
|
+
value :CENTIMETER, 2
|
35
|
+
value :POINT, 3
|
36
|
+
end
|
37
|
+
add_message "google.cloud.automl.v1.Document" do
|
38
|
+
optional :input_config, :message, 1, "google.cloud.automl.v1.DocumentInputConfig"
|
39
|
+
optional :document_text, :message, 2, "google.cloud.automl.v1.TextSnippet"
|
40
|
+
repeated :layout, :message, 3, "google.cloud.automl.v1.Document.Layout"
|
41
|
+
optional :document_dimensions, :message, 4, "google.cloud.automl.v1.DocumentDimensions"
|
42
|
+
optional :page_count, :int32, 5
|
43
|
+
end
|
44
|
+
add_message "google.cloud.automl.v1.Document.Layout" do
|
45
|
+
optional :text_segment, :message, 1, "google.cloud.automl.v1.TextSegment"
|
46
|
+
optional :page_number, :int32, 2
|
47
|
+
optional :bounding_poly, :message, 3, "google.cloud.automl.v1.BoundingPoly"
|
48
|
+
optional :text_segment_type, :enum, 4, "google.cloud.automl.v1.Document.Layout.TextSegmentType"
|
49
|
+
end
|
50
|
+
add_enum "google.cloud.automl.v1.Document.Layout.TextSegmentType" do
|
51
|
+
value :TEXT_SEGMENT_TYPE_UNSPECIFIED, 0
|
52
|
+
value :TOKEN, 1
|
53
|
+
value :PARAGRAPH, 2
|
54
|
+
value :FORM_FIELD, 3
|
55
|
+
value :FORM_FIELD_NAME, 4
|
56
|
+
value :FORM_FIELD_CONTENTS, 5
|
57
|
+
value :TABLE, 6
|
58
|
+
value :TABLE_HEADER, 7
|
59
|
+
value :TABLE_ROW, 8
|
60
|
+
value :TABLE_CELL, 9
|
61
|
+
end
|
62
|
+
add_message "google.cloud.automl.v1.ExamplePayload" do
|
63
|
+
oneof :payload do
|
64
|
+
optional :image, :message, 1, "google.cloud.automl.v1.Image"
|
65
|
+
optional :text_snippet, :message, 2, "google.cloud.automl.v1.TextSnippet"
|
66
|
+
optional :document, :message, 4, "google.cloud.automl.v1.Document"
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
module Google
|
73
|
+
module Cloud
|
74
|
+
module AutoML
|
75
|
+
module V1
|
76
|
+
Image = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.Image").msgclass
|
77
|
+
TextSnippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.TextSnippet").msgclass
|
78
|
+
DocumentDimensions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.DocumentDimensions").msgclass
|
79
|
+
DocumentDimensions::DocumentDimensionUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit").enummodule
|
80
|
+
Document = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.Document").msgclass
|
81
|
+
Document::Layout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.Document.Layout").msgclass
|
82
|
+
Document::Layout::TextSegmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.Document.Layout.TextSegmentType").enummodule
|
83
|
+
ExamplePayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ExamplePayload").msgclass
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1/dataset.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/automl/v1/image_pb'
|
8
|
+
require 'google/cloud/automl/v1/text_pb'
|
9
|
+
require 'google/cloud/automl/v1/translation_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/automl/v1/dataset.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.automl.v1.Dataset" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :display_name, :string, 2
|
17
|
+
optional :description, :string, 3
|
18
|
+
optional :example_count, :int32, 21
|
19
|
+
optional :create_time, :message, 14, "google.protobuf.Timestamp"
|
20
|
+
optional :etag, :string, 17
|
21
|
+
map :labels, :string, :string, 39
|
22
|
+
oneof :dataset_metadata do
|
23
|
+
optional :translation_dataset_metadata, :message, 23, "google.cloud.automl.v1.TranslationDatasetMetadata"
|
24
|
+
optional :image_classification_dataset_metadata, :message, 24, "google.cloud.automl.v1.ImageClassificationDatasetMetadata"
|
25
|
+
optional :text_classification_dataset_metadata, :message, 25, "google.cloud.automl.v1.TextClassificationDatasetMetadata"
|
26
|
+
optional :image_object_detection_dataset_metadata, :message, 26, "google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata"
|
27
|
+
optional :text_extraction_dataset_metadata, :message, 28, "google.cloud.automl.v1.TextExtractionDatasetMetadata"
|
28
|
+
optional :text_sentiment_dataset_metadata, :message, 30, "google.cloud.automl.v1.TextSentimentDatasetMetadata"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
module Google
|
35
|
+
module Cloud
|
36
|
+
module AutoML
|
37
|
+
module V1
|
38
|
+
Dataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.Dataset").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1/detection.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/automl/v1/geometry_pb'
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/automl/v1/detection.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.automl.v1.ImageObjectDetectionAnnotation" do
|
12
|
+
optional :bounding_box, :message, 1, "google.cloud.automl.v1.BoundingPoly"
|
13
|
+
optional :score, :float, 2
|
14
|
+
end
|
15
|
+
add_message "google.cloud.automl.v1.BoundingBoxMetricsEntry" do
|
16
|
+
optional :iou_threshold, :float, 1
|
17
|
+
optional :mean_average_precision, :float, 2
|
18
|
+
repeated :confidence_metrics_entries, :message, 3, "google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry"
|
19
|
+
end
|
20
|
+
add_message "google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry" do
|
21
|
+
optional :confidence_threshold, :float, 1
|
22
|
+
optional :recall, :float, 2
|
23
|
+
optional :precision, :float, 3
|
24
|
+
optional :f1_score, :float, 4
|
25
|
+
end
|
26
|
+
add_message "google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics" do
|
27
|
+
optional :evaluated_bounding_box_count, :int32, 1
|
28
|
+
repeated :bounding_box_metrics_entries, :message, 2, "google.cloud.automl.v1.BoundingBoxMetricsEntry"
|
29
|
+
optional :bounding_box_mean_average_precision, :float, 3
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
module Google
|
35
|
+
module Cloud
|
36
|
+
module AutoML
|
37
|
+
module V1
|
38
|
+
ImageObjectDetectionAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ImageObjectDetectionAnnotation").msgclass
|
39
|
+
BoundingBoxMetricsEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.BoundingBoxMetricsEntry").msgclass
|
40
|
+
BoundingBoxMetricsEntry::ConfidenceMetricsEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry").msgclass
|
41
|
+
ImageObjectDetectionEvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics").msgclass
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1/geometry.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/v1/geometry.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.automl.v1.NormalizedVertex" do
|
10
|
+
optional :x, :float, 1
|
11
|
+
optional :y, :float, 2
|
12
|
+
end
|
13
|
+
add_message "google.cloud.automl.v1.BoundingPoly" do
|
14
|
+
repeated :normalized_vertices, :message, 2, "google.cloud.automl.v1.NormalizedVertex"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Cloud
|
21
|
+
module AutoML
|
22
|
+
module V1
|
23
|
+
NormalizedVertex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.NormalizedVertex").msgclass
|
24
|
+
BoundingPoly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1.BoundingPoly").msgclass
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|