google-cloud-automl-v1beta1 0.2.6 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aecd3e7ef7b56b005e5685f406b9a794444a862513ac10cb8731e52c9d612bd7
4
- data.tar.gz: 8952ce8b1d461630e6b7d4a906868cfdb389bd8499240cd537f81a1988832cf6
3
+ metadata.gz: fd6f04fc5bdaebfdfb89230fe574ca2511bd7d22f9d9c58cdc3abab7551a4f05
4
+ data.tar.gz: 4b931193ea941ab291cbc4e8b27bfe6216682cd90a5267c6cbcbbf3872fa5163
5
5
  SHA512:
6
- metadata.gz: 956d5d8a2a1bb5b8590bd4184e9f233a071295d28648acdb4a426cd6b59a6376e98a0feff1d50b533d5e8b6337a57bf0d8d98a97713f239a2ded29106b1634d1
7
- data.tar.gz: 2feb936ca45194862841ed48d3a8d9367efbc5057f1ebe5f96f49b32e74fdc8677b39d0a35a36a1bc0611e9681dedd45f706a842233022622b4ba3761f54bce9
6
+ metadata.gz: db237184ba7888d054efa33601bcf8b3b1af402b34d504ecb008133dc5a7f31f24668ce1c959fbdedc7709bc7af2ea1b6f26087e6e2db476bb0b91cc9ed63e53
7
+ data.tar.gz: 4e25e1fef8dadc17cbb17be5a0a458af543b71cd1185511ef245498687e4e1403a65f69936a7f35588556c054cab99e5c88222e87beba80c5997e9fa05a557a2
@@ -55,7 +55,7 @@ module Google
55
55
  # [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type].
56
56
  # * Text Sentiment - TextSnippet, content up 500 characters, UTF-8
57
57
  # encoded.
58
- rpc :Predict, Google::Cloud::AutoML::V1beta1::PredictRequest, Google::Cloud::AutoML::V1beta1::PredictResponse
58
+ rpc :Predict, ::Google::Cloud::AutoML::V1beta1::PredictRequest, ::Google::Cloud::AutoML::V1beta1::PredictResponse
59
59
  # Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
60
60
  # prediction result won't be immediately available in the response. Instead,
61
61
  # a long running operation object is returned. User can poll the operation
@@ -68,7 +68,7 @@ module Google
68
68
  # * Video Classification
69
69
  # * Video Object Tracking * Text Extraction
70
70
  # * Tables
71
- rpc :BatchPredict, Google::Cloud::AutoML::V1beta1::BatchPredictRequest, Google::Longrunning::Operation
71
+ rpc :BatchPredict, ::Google::Cloud::AutoML::V1beta1::BatchPredictRequest, ::Google::Longrunning::Operation
72
72
  end
73
73
 
74
74
  Stub = Service.rpc_stub_class
@@ -47,19 +47,19 @@ module Google
47
47
  self.service_name = 'google.cloud.automl.v1beta1.AutoMl'
48
48
 
49
49
  # Creates a dataset.
50
- rpc :CreateDataset, Google::Cloud::AutoML::V1beta1::CreateDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
50
+ rpc :CreateDataset, ::Google::Cloud::AutoML::V1beta1::CreateDatasetRequest, ::Google::Cloud::AutoML::V1beta1::Dataset
51
51
  # Gets a dataset.
52
- rpc :GetDataset, Google::Cloud::AutoML::V1beta1::GetDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
52
+ rpc :GetDataset, ::Google::Cloud::AutoML::V1beta1::GetDatasetRequest, ::Google::Cloud::AutoML::V1beta1::Dataset
53
53
  # Lists datasets in a project.
54
- rpc :ListDatasets, Google::Cloud::AutoML::V1beta1::ListDatasetsRequest, Google::Cloud::AutoML::V1beta1::ListDatasetsResponse
54
+ rpc :ListDatasets, ::Google::Cloud::AutoML::V1beta1::ListDatasetsRequest, ::Google::Cloud::AutoML::V1beta1::ListDatasetsResponse
55
55
  # Updates a dataset.
56
- rpc :UpdateDataset, Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
56
+ rpc :UpdateDataset, ::Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest, ::Google::Cloud::AutoML::V1beta1::Dataset
57
57
  # Deletes a dataset and all of its contents.
58
58
  # Returns empty response in the
59
59
  # [response][google.longrunning.Operation.response] field when it completes,
60
60
  # and `delete_details` in the
61
61
  # [metadata][google.longrunning.Operation.metadata] field.
62
- rpc :DeleteDataset, Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest, Google::Longrunning::Operation
62
+ rpc :DeleteDataset, ::Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest, ::Google::Longrunning::Operation
63
63
  # Imports data into a dataset.
64
64
  # For Tables this method can only be called on an empty Dataset.
65
65
  #
@@ -69,41 +69,41 @@ module Google
69
69
  # parameter must be explicitly set.
70
70
  # Returns an empty response in the
71
71
  # [response][google.longrunning.Operation.response] field when it completes.
72
- rpc :ImportData, Google::Cloud::AutoML::V1beta1::ImportDataRequest, Google::Longrunning::Operation
72
+ rpc :ImportData, ::Google::Cloud::AutoML::V1beta1::ImportDataRequest, ::Google::Longrunning::Operation
73
73
  # Exports dataset's data to the provided output location.
74
74
  # Returns an empty response in the
75
75
  # [response][google.longrunning.Operation.response] field when it completes.
76
- rpc :ExportData, Google::Cloud::AutoML::V1beta1::ExportDataRequest, Google::Longrunning::Operation
76
+ rpc :ExportData, ::Google::Cloud::AutoML::V1beta1::ExportDataRequest, ::Google::Longrunning::Operation
77
77
  # Gets an annotation spec.
78
- rpc :GetAnnotationSpec, Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest, Google::Cloud::AutoML::V1beta1::AnnotationSpec
78
+ rpc :GetAnnotationSpec, ::Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest, ::Google::Cloud::AutoML::V1beta1::AnnotationSpec
79
79
  # Gets a table spec.
80
- rpc :GetTableSpec, Google::Cloud::AutoML::V1beta1::GetTableSpecRequest, Google::Cloud::AutoML::V1beta1::TableSpec
80
+ rpc :GetTableSpec, ::Google::Cloud::AutoML::V1beta1::GetTableSpecRequest, ::Google::Cloud::AutoML::V1beta1::TableSpec
81
81
  # Lists table specs in a dataset.
82
- rpc :ListTableSpecs, Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest, Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse
82
+ rpc :ListTableSpecs, ::Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest, ::Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse
83
83
  # Updates a table spec.
84
- rpc :UpdateTableSpec, Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest, Google::Cloud::AutoML::V1beta1::TableSpec
84
+ rpc :UpdateTableSpec, ::Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest, ::Google::Cloud::AutoML::V1beta1::TableSpec
85
85
  # Gets a column spec.
86
- rpc :GetColumnSpec, Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest, Google::Cloud::AutoML::V1beta1::ColumnSpec
86
+ rpc :GetColumnSpec, ::Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest, ::Google::Cloud::AutoML::V1beta1::ColumnSpec
87
87
  # Lists column specs in a table spec.
88
- rpc :ListColumnSpecs, Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest, Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse
88
+ rpc :ListColumnSpecs, ::Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest, ::Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse
89
89
  # Updates a column spec.
90
- rpc :UpdateColumnSpec, Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest, Google::Cloud::AutoML::V1beta1::ColumnSpec
90
+ rpc :UpdateColumnSpec, ::Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest, ::Google::Cloud::AutoML::V1beta1::ColumnSpec
91
91
  # Creates a model.
92
92
  # Returns a Model in the [response][google.longrunning.Operation.response]
93
93
  # field when it completes.
94
94
  # When you create a model, several model evaluations are created for it:
95
95
  # a global evaluation, and one evaluation for each annotation spec.
96
- rpc :CreateModel, Google::Cloud::AutoML::V1beta1::CreateModelRequest, Google::Longrunning::Operation
96
+ rpc :CreateModel, ::Google::Cloud::AutoML::V1beta1::CreateModelRequest, ::Google::Longrunning::Operation
97
97
  # Gets a model.
98
- rpc :GetModel, Google::Cloud::AutoML::V1beta1::GetModelRequest, Google::Cloud::AutoML::V1beta1::Model
98
+ rpc :GetModel, ::Google::Cloud::AutoML::V1beta1::GetModelRequest, ::Google::Cloud::AutoML::V1beta1::Model
99
99
  # Lists models.
100
- rpc :ListModels, Google::Cloud::AutoML::V1beta1::ListModelsRequest, Google::Cloud::AutoML::V1beta1::ListModelsResponse
100
+ rpc :ListModels, ::Google::Cloud::AutoML::V1beta1::ListModelsRequest, ::Google::Cloud::AutoML::V1beta1::ListModelsResponse
101
101
  # Deletes a model.
102
102
  # Returns `google.protobuf.Empty` in the
103
103
  # [response][google.longrunning.Operation.response] field when it completes,
104
104
  # and `delete_details` in the
105
105
  # [metadata][google.longrunning.Operation.metadata] field.
106
- rpc :DeleteModel, Google::Cloud::AutoML::V1beta1::DeleteModelRequest, Google::Longrunning::Operation
106
+ rpc :DeleteModel, ::Google::Cloud::AutoML::V1beta1::DeleteModelRequest, ::Google::Longrunning::Operation
107
107
  # Deploys a model. If a model is already deployed, deploying it with the
108
108
  # same parameters has no effect. Deploying with different parametrs
109
109
  # (as e.g. changing
@@ -116,7 +116,7 @@ module Google
116
116
  #
117
117
  # Returns an empty response in the
118
118
  # [response][google.longrunning.Operation.response] field when it completes.
119
- rpc :DeployModel, Google::Cloud::AutoML::V1beta1::DeployModelRequest, Google::Longrunning::Operation
119
+ rpc :DeployModel, ::Google::Cloud::AutoML::V1beta1::DeployModelRequest, ::Google::Longrunning::Operation
120
120
  # Undeploys a model. If the model is not deployed this method has no effect.
121
121
  #
122
122
  # Only applicable for Text Classification, Image Object Detection and Tables;
@@ -124,7 +124,7 @@ module Google
124
124
  #
125
125
  # Returns an empty response in the
126
126
  # [response][google.longrunning.Operation.response] field when it completes.
127
- rpc :UndeployModel, Google::Cloud::AutoML::V1beta1::UndeployModelRequest, Google::Longrunning::Operation
127
+ rpc :UndeployModel, ::Google::Cloud::AutoML::V1beta1::UndeployModelRequest, ::Google::Longrunning::Operation
128
128
  # Exports a trained, "export-able", model to a user specified Google Cloud
129
129
  # Storage location. A model is considered export-able if and only if it has
130
130
  # an export format defined for it in
@@ -133,7 +133,7 @@ module Google
133
133
  #
134
134
  # Returns an empty response in the
135
135
  # [response][google.longrunning.Operation.response] field when it completes.
136
- rpc :ExportModel, Google::Cloud::AutoML::V1beta1::ExportModelRequest, Google::Longrunning::Operation
136
+ rpc :ExportModel, ::Google::Cloud::AutoML::V1beta1::ExportModelRequest, ::Google::Longrunning::Operation
137
137
  # Exports examples on which the model was evaluated (i.e. which were in the
138
138
  # TEST set of the dataset the model was created from), together with their
139
139
  # ground truth annotations and the annotations created (predicted) by the
@@ -148,11 +148,11 @@ module Google
148
148
  #
149
149
  # Returns an empty response in the
150
150
  # [response][google.longrunning.Operation.response] field when it completes.
151
- rpc :ExportEvaluatedExamples, Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest, Google::Longrunning::Operation
151
+ rpc :ExportEvaluatedExamples, ::Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest, ::Google::Longrunning::Operation
152
152
  # Gets a model evaluation.
153
- rpc :GetModelEvaluation, Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest, Google::Cloud::AutoML::V1beta1::ModelEvaluation
153
+ rpc :GetModelEvaluation, ::Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest, ::Google::Cloud::AutoML::V1beta1::ModelEvaluation
154
154
  # Lists model evaluations.
155
- rpc :ListModelEvaluations, Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest, Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse
155
+ rpc :ListModelEvaluations, ::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest, ::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse
156
156
  end
157
157
 
158
158
  Stub = Service.rpc_stub_class
@@ -16,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_message "google.cloud.automl.v1beta1.TextExtractionDatasetMetadata" do
17
17
  end
18
18
  add_message "google.cloud.automl.v1beta1.TextExtractionModelMetadata" do
19
+ optional :model_hint, :string, 3
19
20
  end
20
21
  add_message "google.cloud.automl.v1beta1.TextSentimentDatasetMetadata" do
21
22
  optional :sentiment_max, :int32, 1
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Automl
23
23
  module V1beta1
24
- VERSION = "0.2.6"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1014,6 +1014,32 @@ module Google
1014
1014
  # * For Image Classification mobile-core-ml-low-latency-1,
1015
1015
  # mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
1016
1016
  # "core_ml" (default).
1017
+ #
1018
+ # * For Image Object Detection mobile-low-latency-1, mobile-versatile-1,
1019
+ # mobile-high-accuracy-1:
1020
+ # "tflite", "tf_saved_model", "tf_js".
1021
+ #
1022
+ # * For Video Classification cloud,
1023
+ # "tf_saved_model".
1024
+ #
1025
+ # * For Video Object Tracking cloud,
1026
+ # "tf_saved_model".
1027
+ #
1028
+ # * For Video Object Tracking mobile-versatile-1:
1029
+ # "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
1030
+ #
1031
+ # * For Video Object Tracking mobile-coral-versatile-1:
1032
+ # "tflite", "edgetpu_tflite", "docker".
1033
+ #
1034
+ # * For Video Object Tracking mobile-coral-low-latency-1:
1035
+ # "tflite", "edgetpu_tflite", "docker".
1036
+ #
1037
+ # * For Video Object Tracking mobile-jetson-versatile-1:
1038
+ # "tf_saved_model", "docker".
1039
+ #
1040
+ # * For Tables:
1041
+ # "docker".
1042
+ #
1017
1043
  # Formats description:
1018
1044
  #
1019
1045
  # * tflite - Used for Android mobile devices.
@@ -46,6 +46,14 @@ module Google
46
46
  end
47
47
 
48
48
  # Model metadata that is specific to text extraction.
49
+ # @!attribute [rw] model_hint
50
+ # @return [::String]
51
+ # Indicates the scope of model use case.
52
+ #
53
+ # * `default`: Use to train a general text extraction model. Default value.
54
+ #
55
+ # * `health_care`: Use to train a text extraction model that is tuned for
56
+ # healthcare applications.
49
57
  class TextExtractionModelMetadata
50
58
  include ::Google::Protobuf::MessageExts
51
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-automl-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  - !ruby/object:Gem::Version
266
266
  version: '0'
267
267
  requirements: []
268
- rubygems_version: 3.1.3
268
+ rubygems_version: 3.1.4
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: API Client library for the Cloud AutoML V1beta1 API