google-cloud-automl-v1 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1/automl/client.rb +373 -373
- data/lib/google/cloud/automl/v1/automl/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/automl/operations.rb +100 -100
- data/lib/google/cloud/automl/v1/automl/paths.rb +16 -16
- data/lib/google/cloud/automl/v1/automl.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +116 -120
- data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +100 -100
- data/lib/google/cloud/automl/v1/prediction_service/paths.rb +3 -3
- data/lib/google/cloud/automl/v1/prediction_service.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +30 -34
- data/lib/google/cloud/automl/v1/version.rb +1 -1
- data/lib/google/cloud/automl/v1.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +10 -10
- data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/classification.rb +37 -37
- data/proto_docs/google/cloud/automl/v1/data_items.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/dataset.rb +19 -19
- data/proto_docs/google/cloud/automl/v1/detection.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/geometry.rb +7 -7
- data/proto_docs/google/cloud/automl/v1/image.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/io.rb +46 -46
- data/proto_docs/google/cloud/automl/v1/model.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/operations.rb +49 -49
- data/proto_docs/google/cloud/automl/v1/prediction_service.rb +53 -53
- data/proto_docs/google/cloud/automl/v1/service.rb +115 -115
- data/proto_docs/google/cloud/automl/v1/text.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/text_extraction.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/text_segment.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/translation.rb +16 -16
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +2 -2
@@ -23,53 +23,53 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# API proto representing a trained machine learning model.
|
25
25
|
# @!attribute [rw] translation_model_metadata
|
26
|
-
# @return [Google::Cloud::AutoML::V1::TranslationModelMetadata]
|
26
|
+
# @return [::Google::Cloud::AutoML::V1::TranslationModelMetadata]
|
27
27
|
# Metadata for translation models.
|
28
28
|
# @!attribute [rw] image_classification_model_metadata
|
29
|
-
# @return [Google::Cloud::AutoML::V1::ImageClassificationModelMetadata]
|
29
|
+
# @return [::Google::Cloud::AutoML::V1::ImageClassificationModelMetadata]
|
30
30
|
# Metadata for image classification models.
|
31
31
|
# @!attribute [rw] text_classification_model_metadata
|
32
|
-
# @return [Google::Cloud::AutoML::V1::TextClassificationModelMetadata]
|
32
|
+
# @return [::Google::Cloud::AutoML::V1::TextClassificationModelMetadata]
|
33
33
|
# Metadata for text classification models.
|
34
34
|
# @!attribute [rw] image_object_detection_model_metadata
|
35
|
-
# @return [Google::Cloud::AutoML::V1::ImageObjectDetectionModelMetadata]
|
35
|
+
# @return [::Google::Cloud::AutoML::V1::ImageObjectDetectionModelMetadata]
|
36
36
|
# Metadata for image object detection models.
|
37
37
|
# @!attribute [rw] text_extraction_model_metadata
|
38
|
-
# @return [Google::Cloud::AutoML::V1::TextExtractionModelMetadata]
|
38
|
+
# @return [::Google::Cloud::AutoML::V1::TextExtractionModelMetadata]
|
39
39
|
# Metadata for text extraction models.
|
40
40
|
# @!attribute [rw] text_sentiment_model_metadata
|
41
|
-
# @return [Google::Cloud::AutoML::V1::TextSentimentModelMetadata]
|
41
|
+
# @return [::Google::Cloud::AutoML::V1::TextSentimentModelMetadata]
|
42
42
|
# Metadata for text sentiment models.
|
43
43
|
# @!attribute [rw] name
|
44
|
-
# @return [String]
|
44
|
+
# @return [::String]
|
45
45
|
# Output only. Resource name of the model.
|
46
46
|
# Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
|
47
47
|
# @!attribute [rw] display_name
|
48
|
-
# @return [String]
|
48
|
+
# @return [::String]
|
49
49
|
# Required. The name of the model to show in the interface. The name can be
|
50
50
|
# up to 32 characters long and can consist only of ASCII Latin letters A-Z
|
51
51
|
# and a-z, underscores
|
52
52
|
# (_), and ASCII digits 0-9. It must start with a letter.
|
53
53
|
# @!attribute [rw] dataset_id
|
54
|
-
# @return [String]
|
54
|
+
# @return [::String]
|
55
55
|
# Required. The resource ID of the dataset used to create the model. The dataset must
|
56
56
|
# come from the same ancestor project and location.
|
57
57
|
# @!attribute [rw] create_time
|
58
|
-
# @return [Google::Protobuf::Timestamp]
|
58
|
+
# @return [::Google::Protobuf::Timestamp]
|
59
59
|
# Output only. Timestamp when the model training finished and can be used for prediction.
|
60
60
|
# @!attribute [rw] update_time
|
61
|
-
# @return [Google::Protobuf::Timestamp]
|
61
|
+
# @return [::Google::Protobuf::Timestamp]
|
62
62
|
# Output only. Timestamp when this model was last updated.
|
63
63
|
# @!attribute [rw] deployment_state
|
64
|
-
# @return [Google::Cloud::AutoML::V1::Model::DeploymentState]
|
64
|
+
# @return [::Google::Cloud::AutoML::V1::Model::DeploymentState]
|
65
65
|
# Output only. Deployment state of the model. A model can only serve
|
66
66
|
# prediction requests after it gets deployed.
|
67
67
|
# @!attribute [rw] etag
|
68
|
-
# @return [String]
|
68
|
+
# @return [::String]
|
69
69
|
# Used to perform a consistent read-modify-write updates. If not set, a blind
|
70
70
|
# "overwrite" update happens.
|
71
71
|
# @!attribute [rw] labels
|
72
|
-
# @return [Google::Protobuf::Map{String => String}]
|
72
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
73
73
|
# Optional. The labels with user-defined metadata to organize your model.
|
74
74
|
#
|
75
75
|
# Label keys and values can be no longer than 64 characters
|
@@ -79,16 +79,16 @@ module Google
|
|
79
79
|
#
|
80
80
|
# See https://goo.gl/xmQnxf for more information on and examples of labels.
|
81
81
|
class Model
|
82
|
-
include Google::Protobuf::MessageExts
|
83
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
84
|
|
85
85
|
# @!attribute [rw] key
|
86
|
-
# @return [String]
|
86
|
+
# @return [::String]
|
87
87
|
# @!attribute [rw] value
|
88
|
-
# @return [String]
|
88
|
+
# @return [::String]
|
89
89
|
class LabelsEntry
|
90
|
-
include Google::Protobuf::MessageExts
|
91
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
92
|
end
|
93
93
|
|
94
94
|
# Deployment state of the model.
|
@@ -23,31 +23,31 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# Evaluation results of a model.
|
25
25
|
# @!attribute [rw] classification_evaluation_metrics
|
26
|
-
# @return [Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics]
|
26
|
+
# @return [::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics]
|
27
27
|
# Model evaluation metrics for image, text, video and tables
|
28
28
|
# classification.
|
29
29
|
# Tables problem is considered a classification when the target column
|
30
30
|
# is CATEGORY DataType.
|
31
31
|
# @!attribute [rw] translation_evaluation_metrics
|
32
|
-
# @return [Google::Cloud::AutoML::V1::TranslationEvaluationMetrics]
|
32
|
+
# @return [::Google::Cloud::AutoML::V1::TranslationEvaluationMetrics]
|
33
33
|
# Model evaluation metrics for translation.
|
34
34
|
# @!attribute [rw] image_object_detection_evaluation_metrics
|
35
|
-
# @return [Google::Cloud::AutoML::V1::ImageObjectDetectionEvaluationMetrics]
|
35
|
+
# @return [::Google::Cloud::AutoML::V1::ImageObjectDetectionEvaluationMetrics]
|
36
36
|
# Model evaluation metrics for image object detection.
|
37
37
|
# @!attribute [rw] text_sentiment_evaluation_metrics
|
38
|
-
# @return [Google::Cloud::AutoML::V1::TextSentimentEvaluationMetrics]
|
38
|
+
# @return [::Google::Cloud::AutoML::V1::TextSentimentEvaluationMetrics]
|
39
39
|
# Evaluation metrics for text sentiment models.
|
40
40
|
# @!attribute [rw] text_extraction_evaluation_metrics
|
41
|
-
# @return [Google::Cloud::AutoML::V1::TextExtractionEvaluationMetrics]
|
41
|
+
# @return [::Google::Cloud::AutoML::V1::TextExtractionEvaluationMetrics]
|
42
42
|
# Evaluation metrics for text extraction models.
|
43
43
|
# @!attribute [rw] name
|
44
|
-
# @return [String]
|
44
|
+
# @return [::String]
|
45
45
|
# Output only. Resource name of the model evaluation.
|
46
46
|
# Format:
|
47
47
|
#
|
48
48
|
# `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
|
49
49
|
# @!attribute [rw] annotation_spec_id
|
50
|
-
# @return [String]
|
50
|
+
# @return [::String]
|
51
51
|
# Output only. The ID of the annotation spec that the model evaluation applies to. The
|
52
52
|
# The ID is empty for the overall model evaluation.
|
53
53
|
# For Tables annotation specs in the dataset do not exist and this ID is
|
@@ -55,12 +55,12 @@ module Google
|
|
55
55
|
#
|
56
56
|
# [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type]
|
57
57
|
# the
|
58
|
-
# {Google::Cloud::AutoML::V1::ModelEvaluation#display_name display_name}
|
58
|
+
# {::Google::Cloud::AutoML::V1::ModelEvaluation#display_name display_name}
|
59
59
|
# field is used.
|
60
60
|
# @!attribute [rw] display_name
|
61
|
-
# @return [String]
|
61
|
+
# @return [::String]
|
62
62
|
# Output only. The value of
|
63
|
-
# {Google::Cloud::AutoML::V1::AnnotationSpec#display_name display_name}
|
63
|
+
# {::Google::Cloud::AutoML::V1::AnnotationSpec#display_name display_name}
|
64
64
|
# at the moment when the model was trained. Because this field returns a
|
65
65
|
# value at model training time, for different models trained from the same
|
66
66
|
# dataset, the values may differ, since display names could had been changed
|
@@ -71,10 +71,10 @@ module Google
|
|
71
71
|
# are populated here.
|
72
72
|
# The display_name is empty for the overall model evaluation.
|
73
73
|
# @!attribute [rw] create_time
|
74
|
-
# @return [Google::Protobuf::Timestamp]
|
74
|
+
# @return [::Google::Protobuf::Timestamp]
|
75
75
|
# Output only. Timestamp when this model evaluation was created.
|
76
76
|
# @!attribute [rw] evaluated_example_count
|
77
|
-
# @return [Integer]
|
77
|
+
# @return [::Integer]
|
78
78
|
# Output only. The number of examples used for model evaluation, i.e. for
|
79
79
|
# which ground truth from time of model creation is compared against the
|
80
80
|
# predicted annotations created by the model.
|
@@ -83,10 +83,10 @@ module Google
|
|
83
83
|
# Otherwise, this is the count of examples that according to the ground
|
84
84
|
# truth were annotated by the
|
85
85
|
#
|
86
|
-
# {Google::Cloud::AutoML::V1::ModelEvaluation#annotation_spec_id annotation_spec_id}.
|
86
|
+
# {::Google::Cloud::AutoML::V1::ModelEvaluation#annotation_spec_id annotation_spec_id}.
|
87
87
|
class ModelEvaluation
|
88
|
-
include Google::Protobuf::MessageExts
|
89
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
include ::Google::Protobuf::MessageExts
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
90
90
|
end
|
91
91
|
end
|
92
92
|
end
|
@@ -23,155 +23,155 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# Metadata used across all long running operations returned by AutoML API.
|
25
25
|
# @!attribute [rw] delete_details
|
26
|
-
# @return [Google::Cloud::AutoML::V1::DeleteOperationMetadata]
|
26
|
+
# @return [::Google::Cloud::AutoML::V1::DeleteOperationMetadata]
|
27
27
|
# Details of a Delete operation.
|
28
28
|
# @!attribute [rw] deploy_model_details
|
29
|
-
# @return [Google::Cloud::AutoML::V1::DeployModelOperationMetadata]
|
29
|
+
# @return [::Google::Cloud::AutoML::V1::DeployModelOperationMetadata]
|
30
30
|
# Details of a DeployModel operation.
|
31
31
|
# @!attribute [rw] undeploy_model_details
|
32
|
-
# @return [Google::Cloud::AutoML::V1::UndeployModelOperationMetadata]
|
32
|
+
# @return [::Google::Cloud::AutoML::V1::UndeployModelOperationMetadata]
|
33
33
|
# Details of an UndeployModel operation.
|
34
34
|
# @!attribute [rw] create_model_details
|
35
|
-
# @return [Google::Cloud::AutoML::V1::CreateModelOperationMetadata]
|
35
|
+
# @return [::Google::Cloud::AutoML::V1::CreateModelOperationMetadata]
|
36
36
|
# Details of CreateModel operation.
|
37
37
|
# @!attribute [rw] create_dataset_details
|
38
|
-
# @return [Google::Cloud::AutoML::V1::CreateDatasetOperationMetadata]
|
38
|
+
# @return [::Google::Cloud::AutoML::V1::CreateDatasetOperationMetadata]
|
39
39
|
# Details of CreateDataset operation.
|
40
40
|
# @!attribute [rw] import_data_details
|
41
|
-
# @return [Google::Cloud::AutoML::V1::ImportDataOperationMetadata]
|
41
|
+
# @return [::Google::Cloud::AutoML::V1::ImportDataOperationMetadata]
|
42
42
|
# Details of ImportData operation.
|
43
43
|
# @!attribute [rw] batch_predict_details
|
44
|
-
# @return [Google::Cloud::AutoML::V1::BatchPredictOperationMetadata]
|
44
|
+
# @return [::Google::Cloud::AutoML::V1::BatchPredictOperationMetadata]
|
45
45
|
# Details of BatchPredict operation.
|
46
46
|
# @!attribute [rw] export_data_details
|
47
|
-
# @return [Google::Cloud::AutoML::V1::ExportDataOperationMetadata]
|
47
|
+
# @return [::Google::Cloud::AutoML::V1::ExportDataOperationMetadata]
|
48
48
|
# Details of ExportData operation.
|
49
49
|
# @!attribute [rw] export_model_details
|
50
|
-
# @return [Google::Cloud::AutoML::V1::ExportModelOperationMetadata]
|
50
|
+
# @return [::Google::Cloud::AutoML::V1::ExportModelOperationMetadata]
|
51
51
|
# Details of ExportModel operation.
|
52
52
|
# @!attribute [rw] progress_percent
|
53
|
-
# @return [Integer]
|
53
|
+
# @return [::Integer]
|
54
54
|
# Output only. Progress of operation. Range: [0, 100].
|
55
55
|
# Not used currently.
|
56
56
|
# @!attribute [rw] partial_failures
|
57
|
-
# @return [Array
|
57
|
+
# @return [::Array<::Google::Rpc::Status>]
|
58
58
|
# Output only. Partial failures encountered.
|
59
59
|
# E.g. single files that couldn't be read.
|
60
60
|
# This field should never exceed 20 entries.
|
61
61
|
# Status details field will contain standard GCP error details.
|
62
62
|
# @!attribute [rw] create_time
|
63
|
-
# @return [Google::Protobuf::Timestamp]
|
63
|
+
# @return [::Google::Protobuf::Timestamp]
|
64
64
|
# Output only. Time when the operation was created.
|
65
65
|
# @!attribute [rw] update_time
|
66
|
-
# @return [Google::Protobuf::Timestamp]
|
66
|
+
# @return [::Google::Protobuf::Timestamp]
|
67
67
|
# Output only. Time when the operation was updated for the last time.
|
68
68
|
class OperationMetadata
|
69
|
-
include Google::Protobuf::MessageExts
|
70
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
include ::Google::Protobuf::MessageExts
|
70
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
71
71
|
end
|
72
72
|
|
73
73
|
# Details of operations that perform deletes of any entities.
|
74
74
|
class DeleteOperationMetadata
|
75
|
-
include Google::Protobuf::MessageExts
|
76
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
77
|
end
|
78
78
|
|
79
79
|
# Details of DeployModel operation.
|
80
80
|
class DeployModelOperationMetadata
|
81
|
-
include Google::Protobuf::MessageExts
|
82
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
83
|
end
|
84
84
|
|
85
85
|
# Details of UndeployModel operation.
|
86
86
|
class UndeployModelOperationMetadata
|
87
|
-
include Google::Protobuf::MessageExts
|
88
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
89
|
end
|
90
90
|
|
91
91
|
# Details of CreateDataset operation.
|
92
92
|
class CreateDatasetOperationMetadata
|
93
|
-
include Google::Protobuf::MessageExts
|
94
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
95
|
end
|
96
96
|
|
97
97
|
# Details of CreateModel operation.
|
98
98
|
class CreateModelOperationMetadata
|
99
|
-
include Google::Protobuf::MessageExts
|
100
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
99
|
+
include ::Google::Protobuf::MessageExts
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
101
101
|
end
|
102
102
|
|
103
103
|
# Details of ImportData operation.
|
104
104
|
class ImportDataOperationMetadata
|
105
|
-
include Google::Protobuf::MessageExts
|
106
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
include ::Google::Protobuf::MessageExts
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
107
107
|
end
|
108
108
|
|
109
109
|
# Details of ExportData operation.
|
110
110
|
# @!attribute [rw] output_info
|
111
|
-
# @return [Google::Cloud::AutoML::V1::ExportDataOperationMetadata::ExportDataOutputInfo]
|
111
|
+
# @return [::Google::Cloud::AutoML::V1::ExportDataOperationMetadata::ExportDataOutputInfo]
|
112
112
|
# Output only. Information further describing this export data's output.
|
113
113
|
class ExportDataOperationMetadata
|
114
|
-
include Google::Protobuf::MessageExts
|
115
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
include ::Google::Protobuf::MessageExts
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
116
|
|
117
117
|
# Further describes this export data's output.
|
118
118
|
# Supplements
|
119
|
-
# {Google::Cloud::AutoML::V1::OutputConfig OutputConfig}.
|
119
|
+
# {::Google::Cloud::AutoML::V1::OutputConfig OutputConfig}.
|
120
120
|
# @!attribute [rw] gcs_output_directory
|
121
|
-
# @return [String]
|
121
|
+
# @return [::String]
|
122
122
|
# The full path of the Google Cloud Storage directory created, into which
|
123
123
|
# the exported data is written.
|
124
124
|
class ExportDataOutputInfo
|
125
|
-
include Google::Protobuf::MessageExts
|
126
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
130
|
# Details of BatchPredict operation.
|
131
131
|
# @!attribute [rw] input_config
|
132
|
-
# @return [Google::Cloud::AutoML::V1::BatchPredictInputConfig]
|
132
|
+
# @return [::Google::Cloud::AutoML::V1::BatchPredictInputConfig]
|
133
133
|
# Output only. The input config that was given upon starting this
|
134
134
|
# batch predict operation.
|
135
135
|
# @!attribute [rw] output_info
|
136
|
-
# @return [Google::Cloud::AutoML::V1::BatchPredictOperationMetadata::BatchPredictOutputInfo]
|
136
|
+
# @return [::Google::Cloud::AutoML::V1::BatchPredictOperationMetadata::BatchPredictOutputInfo]
|
137
137
|
# Output only. Information further describing this batch predict's output.
|
138
138
|
class BatchPredictOperationMetadata
|
139
|
-
include Google::Protobuf::MessageExts
|
140
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
139
|
+
include ::Google::Protobuf::MessageExts
|
140
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
141
141
|
|
142
142
|
# Further describes this batch predict's output.
|
143
143
|
# Supplements
|
144
144
|
#
|
145
|
-
# {Google::Cloud::AutoML::V1::BatchPredictOutputConfig BatchPredictOutputConfig}.
|
145
|
+
# {::Google::Cloud::AutoML::V1::BatchPredictOutputConfig BatchPredictOutputConfig}.
|
146
146
|
# @!attribute [rw] gcs_output_directory
|
147
|
-
# @return [String]
|
147
|
+
# @return [::String]
|
148
148
|
# The full path of the Google Cloud Storage directory created, into which
|
149
149
|
# the prediction output is written.
|
150
150
|
class BatchPredictOutputInfo
|
151
|
-
include Google::Protobuf::MessageExts
|
152
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
151
|
+
include ::Google::Protobuf::MessageExts
|
152
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
156
|
# Details of ExportModel operation.
|
157
157
|
# @!attribute [rw] output_info
|
158
|
-
# @return [Google::Cloud::AutoML::V1::ExportModelOperationMetadata::ExportModelOutputInfo]
|
158
|
+
# @return [::Google::Cloud::AutoML::V1::ExportModelOperationMetadata::ExportModelOutputInfo]
|
159
159
|
# Output only. Information further describing the output of this model
|
160
160
|
# export.
|
161
161
|
class ExportModelOperationMetadata
|
162
|
-
include Google::Protobuf::MessageExts
|
163
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
include ::Google::Protobuf::MessageExts
|
163
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
164
164
|
|
165
165
|
# Further describes the output of model export.
|
166
166
|
# Supplements
|
167
|
-
# {Google::Cloud::AutoML::V1::ModelExportOutputConfig ModelExportOutputConfig}.
|
167
|
+
# {::Google::Cloud::AutoML::V1::ModelExportOutputConfig ModelExportOutputConfig}.
|
168
168
|
# @!attribute [rw] gcs_output_directory
|
169
|
-
# @return [String]
|
169
|
+
# @return [::String]
|
170
170
|
# The full path of the Google Cloud Storage directory created, into which
|
171
171
|
# the model will be exported.
|
172
172
|
class ExportModelOutputInfo
|
173
|
-
include Google::Protobuf::MessageExts
|
174
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
173
|
+
include ::Google::Protobuf::MessageExts
|
174
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
175
175
|
end
|
176
176
|
end
|
177
177
|
end
|
@@ -21,27 +21,27 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module AutoML
|
23
23
|
module V1
|
24
|
-
# Request message for {Google::Cloud::AutoML::V1::PredictionService::Client#predict PredictionService.Predict}.
|
24
|
+
# Request message for {::Google::Cloud::AutoML::V1::PredictionService::Client#predict PredictionService.Predict}.
|
25
25
|
# @!attribute [rw] name
|
26
|
-
# @return [String]
|
26
|
+
# @return [::String]
|
27
27
|
# Required. Name of the model requested to serve the prediction.
|
28
28
|
# @!attribute [rw] payload
|
29
|
-
# @return [Google::Cloud::AutoML::V1::ExamplePayload]
|
29
|
+
# @return [::Google::Cloud::AutoML::V1::ExamplePayload]
|
30
30
|
# Required. Payload to perform a prediction on. The payload must match the
|
31
31
|
# problem type that the model was trained to solve.
|
32
32
|
# @!attribute [rw] params
|
33
|
-
# @return [Google::Protobuf::Map{String => String}]
|
33
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
34
34
|
# Additional domain-specific parameters, any string must be up to 25000
|
35
35
|
# characters long.
|
36
36
|
#
|
37
|
-
#
|
37
|
+
# AutoML Vision Classification
|
38
38
|
#
|
39
39
|
# `score_threshold`
|
40
40
|
# : (float) A value from 0.0 to 1.0. When the model
|
41
41
|
# makes predictions for an image, it will only produce results that have
|
42
42
|
# at least this confidence score. The default is 0.5.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# AutoML Vision Object Detection
|
45
45
|
#
|
46
46
|
# `score_threshold`
|
47
47
|
# : (float) When Model detects objects on the image,
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
# boxes returned. The default is 100. The
|
54
54
|
# number of returned bounding boxes might be limited by the server.
|
55
55
|
#
|
56
|
-
#
|
56
|
+
# AutoML Tables
|
57
57
|
#
|
58
58
|
# `feature_importance`
|
59
59
|
# : (boolean) Whether
|
@@ -63,45 +63,45 @@ module Google
|
|
63
63
|
# [TablesAnnotation][google.cloud.automl.v1.TablesAnnotation]
|
64
64
|
# objects. The default is false.
|
65
65
|
class PredictRequest
|
66
|
-
include Google::Protobuf::MessageExts
|
67
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
68
|
|
69
69
|
# @!attribute [rw] key
|
70
|
-
# @return [String]
|
70
|
+
# @return [::String]
|
71
71
|
# @!attribute [rw] value
|
72
|
-
# @return [String]
|
72
|
+
# @return [::String]
|
73
73
|
class ParamsEntry
|
74
|
-
include Google::Protobuf::MessageExts
|
75
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
include ::Google::Protobuf::MessageExts
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
# Response message for {Google::Cloud::AutoML::V1::PredictionService::Client#predict PredictionService.Predict}.
|
79
|
+
# Response message for {::Google::Cloud::AutoML::V1::PredictionService::Client#predict PredictionService.Predict}.
|
80
80
|
# @!attribute [rw] payload
|
81
|
-
# @return [Array
|
81
|
+
# @return [::Array<::Google::Cloud::AutoML::V1::AnnotationPayload>]
|
82
82
|
# Prediction result.
|
83
83
|
# AutoML Translation and AutoML Natural Language Sentiment Analysis
|
84
84
|
# return precisely one payload.
|
85
85
|
# @!attribute [rw] preprocessed_input
|
86
|
-
# @return [Google::Cloud::AutoML::V1::ExamplePayload]
|
86
|
+
# @return [::Google::Cloud::AutoML::V1::ExamplePayload]
|
87
87
|
# The preprocessed example that AutoML actually makes prediction on.
|
88
88
|
# Empty if AutoML does not preprocess the input example.
|
89
89
|
#
|
90
90
|
# For AutoML Natural Language (Classification, Entity Extraction, and
|
91
91
|
# Sentiment Analysis), if the input is a document, the recognized text is
|
92
92
|
# returned in the
|
93
|
-
# {Google::Cloud::AutoML::V1::Document#document_text document_text}
|
93
|
+
# {::Google::Cloud::AutoML::V1::Document#document_text document_text}
|
94
94
|
# property.
|
95
95
|
# @!attribute [rw] metadata
|
96
|
-
# @return [Google::Protobuf::Map{String => String}]
|
96
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
97
97
|
# Additional domain-specific prediction response metadata.
|
98
98
|
#
|
99
|
-
#
|
99
|
+
# AutoML Vision Object Detection
|
100
100
|
#
|
101
101
|
# `max_bounding_box_count`
|
102
102
|
# : (int64) The maximum number of bounding boxes to return per image.
|
103
103
|
#
|
104
|
-
#
|
104
|
+
# AutoML Natural Language Sentiment Analysis
|
105
105
|
#
|
106
106
|
# `sentiment_score`
|
107
107
|
# : (float, deprecated) A value between -1 and 1,
|
@@ -113,36 +113,36 @@ module Google
|
|
113
113
|
# `sentiment_score` is not the same as "score" and "magnitude"
|
114
114
|
# from Sentiment Analysis in the Natural Language API.
|
115
115
|
class PredictResponse
|
116
|
-
include Google::Protobuf::MessageExts
|
117
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
118
|
|
119
119
|
# @!attribute [rw] key
|
120
|
-
# @return [String]
|
120
|
+
# @return [::String]
|
121
121
|
# @!attribute [rw] value
|
122
|
-
# @return [String]
|
122
|
+
# @return [::String]
|
123
123
|
class MetadataEntry
|
124
|
-
include Google::Protobuf::MessageExts
|
125
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
129
|
-
# Request message for {Google::Cloud::AutoML::V1::PredictionService::Client#batch_predict PredictionService.BatchPredict}.
|
129
|
+
# Request message for {::Google::Cloud::AutoML::V1::PredictionService::Client#batch_predict PredictionService.BatchPredict}.
|
130
130
|
# @!attribute [rw] name
|
131
|
-
# @return [String]
|
131
|
+
# @return [::String]
|
132
132
|
# Required. Name of the model requested to serve the batch prediction.
|
133
133
|
# @!attribute [rw] input_config
|
134
|
-
# @return [Google::Cloud::AutoML::V1::BatchPredictInputConfig]
|
134
|
+
# @return [::Google::Cloud::AutoML::V1::BatchPredictInputConfig]
|
135
135
|
# Required. The input configuration for batch prediction.
|
136
136
|
# @!attribute [rw] output_config
|
137
|
-
# @return [Google::Cloud::AutoML::V1::BatchPredictOutputConfig]
|
137
|
+
# @return [::Google::Cloud::AutoML::V1::BatchPredictOutputConfig]
|
138
138
|
# Required. The Configuration specifying where output predictions should
|
139
139
|
# be written.
|
140
140
|
# @!attribute [rw] params
|
141
|
-
# @return [Google::Protobuf::Map{String => String}]
|
141
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
142
142
|
# Additional domain-specific parameters for the predictions, any string must
|
143
143
|
# be up to 25000 characters long.
|
144
144
|
#
|
145
|
-
#
|
145
|
+
# AutoML Natural Language Classification
|
146
146
|
#
|
147
147
|
# `score_threshold`
|
148
148
|
# : (float) A value from 0.0 to 1.0. When the model
|
@@ -150,14 +150,14 @@ module Google
|
|
150
150
|
# that have at least this confidence score. The default is 0.5.
|
151
151
|
#
|
152
152
|
#
|
153
|
-
#
|
153
|
+
# AutoML Vision Classification
|
154
154
|
#
|
155
155
|
# `score_threshold`
|
156
156
|
# : (float) A value from 0.0 to 1.0. When the model
|
157
157
|
# makes predictions for an image, it will only produce results that
|
158
158
|
# have at least this confidence score. The default is 0.5.
|
159
159
|
#
|
160
|
-
#
|
160
|
+
# AutoML Vision Object Detection
|
161
161
|
#
|
162
162
|
# `score_threshold`
|
163
163
|
# : (float) When Model detects objects on the image,
|
@@ -168,7 +168,7 @@ module Google
|
|
168
168
|
# : (int64) The maximum number of bounding
|
169
169
|
# boxes returned per image. The default is 100, the
|
170
170
|
# number of bounding boxes returned might be limited by the server.
|
171
|
-
#
|
171
|
+
# AutoML Video Intelligence Classification
|
172
172
|
#
|
173
173
|
# `score_threshold`
|
174
174
|
# : (float) A value from 0.0 to 1.0. When the model
|
@@ -206,7 +206,7 @@ module Google
|
|
206
206
|
# type, the quality of it depends on training data, but there are no
|
207
207
|
# metrics provided to describe that quality.
|
208
208
|
#
|
209
|
-
#
|
209
|
+
# AutoML Video Intelligence Object Tracking
|
210
210
|
#
|
211
211
|
# `score_threshold`
|
212
212
|
# : (float) When Model detects objects on video frames,
|
@@ -223,46 +223,46 @@ module Google
|
|
223
223
|
# at least that long as a relative value of video frame size are
|
224
224
|
# returned. Value in 0 to 1 range. Default is 0.
|
225
225
|
class BatchPredictRequest
|
226
|
-
include Google::Protobuf::MessageExts
|
227
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
226
|
+
include ::Google::Protobuf::MessageExts
|
227
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
228
228
|
|
229
229
|
# @!attribute [rw] key
|
230
|
-
# @return [String]
|
230
|
+
# @return [::String]
|
231
231
|
# @!attribute [rw] value
|
232
|
-
# @return [String]
|
232
|
+
# @return [::String]
|
233
233
|
class ParamsEntry
|
234
|
-
include Google::Protobuf::MessageExts
|
235
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
236
|
end
|
237
237
|
end
|
238
238
|
|
239
239
|
# Result of the Batch Predict. This message is returned in
|
240
|
-
# {Google::Longrunning::Operation#response response} of the operation returned
|
241
|
-
# by the {Google::Cloud::AutoML::V1::PredictionService::Client#batch_predict PredictionService.BatchPredict}.
|
240
|
+
# {::Google::Longrunning::Operation#response response} of the operation returned
|
241
|
+
# by the {::Google::Cloud::AutoML::V1::PredictionService::Client#batch_predict PredictionService.BatchPredict}.
|
242
242
|
# @!attribute [rw] metadata
|
243
|
-
# @return [Google::Protobuf::Map{String => String}]
|
243
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
244
244
|
# Additional domain-specific prediction response metadata.
|
245
245
|
#
|
246
|
-
#
|
246
|
+
# AutoML Vision Object Detection
|
247
247
|
#
|
248
248
|
# `max_bounding_box_count`
|
249
249
|
# : (int64) The maximum number of bounding boxes returned per image.
|
250
250
|
#
|
251
|
-
#
|
251
|
+
# AutoML Video Intelligence Object Tracking
|
252
252
|
#
|
253
253
|
# `max_bounding_box_count`
|
254
254
|
# : (int64) The maximum number of bounding boxes returned per frame.
|
255
255
|
class BatchPredictResult
|
256
|
-
include Google::Protobuf::MessageExts
|
257
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
256
|
+
include ::Google::Protobuf::MessageExts
|
257
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
258
258
|
|
259
259
|
# @!attribute [rw] key
|
260
|
-
# @return [String]
|
260
|
+
# @return [::String]
|
261
261
|
# @!attribute [rw] value
|
262
|
-
# @return [String]
|
262
|
+
# @return [::String]
|
263
263
|
class MetadataEntry
|
264
|
-
include Google::Protobuf::MessageExts
|
265
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
264
|
+
include ::Google::Protobuf::MessageExts
|
265
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
266
266
|
end
|
267
267
|
end
|
268
268
|
end
|