google-cloud-automl-v1beta1 0.2.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69ceb62bd77003d2423387e93b02915f5ea1e97a923766ab17344165b6abdddf
4
- data.tar.gz: 9bb4e78a29005bd132544abc35f1a4daef9de732ce6bf46f9448417b77edc11b
3
+ metadata.gz: ae32d8e959c9ea7c9c9374747a3a9c514404de844e6aa26ee0348d9fbbe1ee34
4
+ data.tar.gz: c3abf0e4d12e53093b88e9daeed929ac03329d6749e1a0a05feb53dbc23cf10a
5
5
  SHA512:
6
- metadata.gz: 5945ef44f02fd8a150a02470e057b52e5a0114ed48ea2dfbd6aff12ccd8629532ccb9b92031d31ffb80b5911f0648fd97272955a4a4e570a7707237579d73628
7
- data.tar.gz: 0fa96ac6deafe06a708dcbb6ccdab0026c8b499e7df1688834db918dc33b68711a3db8331f3943586e733acfb0bacfc049152bdb293cfcb51bc8637c9c6c27ac
6
+ metadata.gz: cf47ec451aff76ba8d35d4a8fe9c240d78cdff41e44f5170fc6d90c59b33cc137c5a9627deed148863e897769ff83db7dc2ece2efe8d3b233cf4a2daa52f045a
7
+ data.tar.gz: 59d839e87f0efbde4e5a966da62d903ddbc38f1822ec65a98176c278132d4fe4df1a5a1add731128415cfd28cb1187db6ac373f8b47692d7eb997e35b902a3f3
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/automl.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.predict request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-automl-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/automl)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -34,3 +34,6 @@ module Google
34
34
  end
35
35
  end
36
36
  end
37
+
38
+ helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
39
+ require "google/cloud/automl/v1beta1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,26 @@
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
+
18
+ module Google
19
+ module Cloud
20
+ module Automl
21
+ module V1beta1
22
+ VERSION = ::Google::Cloud::AutoML::V1beta1::VERSION
23
+ end
24
+ end
25
+ end
26
+ end
@@ -85,7 +85,7 @@ module Google
85
85
  initial_delay: 0.1,
86
86
  max_delay: 60.0,
87
87
  multiplier: 1.3,
88
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
88
+ retry_codes: [14, 4]
89
89
  }
90
90
 
91
91
  default_config.rpcs.list_datasets.timeout = 5.0
@@ -93,7 +93,7 @@ module Google
93
93
  initial_delay: 0.1,
94
94
  max_delay: 60.0,
95
95
  multiplier: 1.3,
96
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
96
+ retry_codes: [14, 4]
97
97
  }
98
98
 
99
99
  default_config.rpcs.update_dataset.timeout = 5.0
@@ -103,7 +103,7 @@ module Google
103
103
  initial_delay: 0.1,
104
104
  max_delay: 60.0,
105
105
  multiplier: 1.3,
106
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
106
+ retry_codes: [14, 4]
107
107
  }
108
108
 
109
109
  default_config.rpcs.import_data.timeout = 5.0
@@ -115,7 +115,7 @@ module Google
115
115
  initial_delay: 0.1,
116
116
  max_delay: 60.0,
117
117
  multiplier: 1.3,
118
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
118
+ retry_codes: [14, 4]
119
119
  }
120
120
 
121
121
  default_config.rpcs.get_table_spec.timeout = 5.0
@@ -123,7 +123,7 @@ module Google
123
123
  initial_delay: 0.1,
124
124
  max_delay: 60.0,
125
125
  multiplier: 1.3,
126
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
126
+ retry_codes: [14, 4]
127
127
  }
128
128
 
129
129
  default_config.rpcs.list_table_specs.timeout = 5.0
@@ -131,7 +131,7 @@ module Google
131
131
  initial_delay: 0.1,
132
132
  max_delay: 60.0,
133
133
  multiplier: 1.3,
134
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
134
+ retry_codes: [14, 4]
135
135
  }
136
136
 
137
137
  default_config.rpcs.update_table_spec.timeout = 5.0
@@ -141,7 +141,7 @@ module Google
141
141
  initial_delay: 0.1,
142
142
  max_delay: 60.0,
143
143
  multiplier: 1.3,
144
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
144
+ retry_codes: [14, 4]
145
145
  }
146
146
 
147
147
  default_config.rpcs.list_column_specs.timeout = 5.0
@@ -149,7 +149,7 @@ module Google
149
149
  initial_delay: 0.1,
150
150
  max_delay: 60.0,
151
151
  multiplier: 1.3,
152
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
152
+ retry_codes: [14, 4]
153
153
  }
154
154
 
155
155
  default_config.rpcs.update_column_spec.timeout = 5.0
@@ -161,7 +161,7 @@ module Google
161
161
  initial_delay: 0.1,
162
162
  max_delay: 60.0,
163
163
  multiplier: 1.3,
164
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
164
+ retry_codes: [14, 4]
165
165
  }
166
166
 
167
167
  default_config.rpcs.list_models.timeout = 5.0
@@ -169,7 +169,7 @@ module Google
169
169
  initial_delay: 0.1,
170
170
  max_delay: 60.0,
171
171
  multiplier: 1.3,
172
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
172
+ retry_codes: [14, 4]
173
173
  }
174
174
 
175
175
  default_config.rpcs.delete_model.timeout = 5.0
@@ -177,7 +177,7 @@ module Google
177
177
  initial_delay: 0.1,
178
178
  max_delay: 60.0,
179
179
  multiplier: 1.3,
180
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
180
+ retry_codes: [14, 4]
181
181
  }
182
182
 
183
183
  default_config.rpcs.deploy_model.timeout = 5.0
@@ -193,7 +193,7 @@ module Google
193
193
  initial_delay: 0.1,
194
194
  max_delay: 60.0,
195
195
  multiplier: 1.3,
196
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
196
+ retry_codes: [14, 4]
197
197
  }
198
198
 
199
199
  default_config.rpcs.list_model_evaluations.timeout = 5.0
@@ -334,7 +334,7 @@ module Google
334
334
  # Set x-goog-api-client and x-goog-user-project headers
335
335
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
336
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
337
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
338
338
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
339
339
 
340
340
  header_params = {
@@ -400,7 +400,7 @@ module Google
400
400
  # Set x-goog-api-client and x-goog-user-project headers
401
401
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
402
402
  lib_name: @config.lib_name, lib_version: @config.lib_version,
403
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
403
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
404
404
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
405
 
406
406
  header_params = {
@@ -482,7 +482,7 @@ module Google
482
482
  # Set x-goog-api-client and x-goog-user-project headers
483
483
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
484
484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
485
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
485
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
486
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
487
487
 
488
488
  header_params = {
@@ -551,7 +551,7 @@ module Google
551
551
  # Set x-goog-api-client and x-goog-user-project headers
552
552
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
553
553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
554
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
554
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
555
555
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
556
556
 
557
557
  header_params = {
@@ -621,7 +621,7 @@ module Google
621
621
  # Set x-goog-api-client and x-goog-user-project headers
622
622
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
623
  lib_name: @config.lib_name, lib_version: @config.lib_version,
624
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
624
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
625
625
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
626
626
 
627
627
  header_params = {
@@ -700,7 +700,7 @@ module Google
700
700
  # Set x-goog-api-client and x-goog-user-project headers
701
701
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
702
702
  lib_name: @config.lib_name, lib_version: @config.lib_version,
703
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
703
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
704
704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
705
705
 
706
706
  header_params = {
@@ -771,7 +771,7 @@ module Google
771
771
  # Set x-goog-api-client and x-goog-user-project headers
772
772
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
773
773
  lib_name: @config.lib_name, lib_version: @config.lib_version,
774
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
774
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
775
775
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
776
776
 
777
777
  header_params = {
@@ -838,7 +838,7 @@ module Google
838
838
  # Set x-goog-api-client and x-goog-user-project headers
839
839
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
841
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
842
842
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
843
 
844
844
  header_params = {
@@ -906,7 +906,7 @@ module Google
906
906
  # Set x-goog-api-client and x-goog-user-project headers
907
907
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
908
908
  lib_name: @config.lib_name, lib_version: @config.lib_version,
909
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
909
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
910
910
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
911
911
 
912
912
  header_params = {
@@ -984,7 +984,7 @@ module Google
984
984
  # Set x-goog-api-client and x-goog-user-project headers
985
985
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
986
986
  lib_name: @config.lib_name, lib_version: @config.lib_version,
987
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
987
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
988
988
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
989
989
 
990
990
  header_params = {
@@ -1053,7 +1053,7 @@ module Google
1053
1053
  # Set x-goog-api-client and x-goog-user-project headers
1054
1054
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1055
1055
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1056
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1056
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1057
1057
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1058
1058
 
1059
1059
  header_params = {
@@ -1121,7 +1121,7 @@ module Google
1121
1121
  # Set x-goog-api-client and x-goog-user-project headers
1122
1122
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1123
1123
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1124
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1124
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1125
1125
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1126
 
1127
1127
  header_params = {
@@ -1199,7 +1199,7 @@ module Google
1199
1199
  # Set x-goog-api-client and x-goog-user-project headers
1200
1200
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1201
1201
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1202
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1202
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1203
1203
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1204
1204
 
1205
1205
  header_params = {
@@ -1268,7 +1268,7 @@ module Google
1268
1268
  # Set x-goog-api-client and x-goog-user-project headers
1269
1269
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1270
1270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1271
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1271
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1272
1272
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1273
1273
 
1274
1274
  header_params = {
@@ -1340,7 +1340,7 @@ module Google
1340
1340
  # Set x-goog-api-client and x-goog-user-project headers
1341
1341
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1342
1342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1343
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1343
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1344
1344
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1345
1345
 
1346
1346
  header_params = {
@@ -1407,7 +1407,7 @@ module Google
1407
1407
  # Set x-goog-api-client and x-goog-user-project headers
1408
1408
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1409
1409
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1410
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1410
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1411
1411
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1412
1412
 
1413
1413
  header_params = {
@@ -1490,7 +1490,7 @@ module Google
1490
1490
  # Set x-goog-api-client and x-goog-user-project headers
1491
1491
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1492
1492
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1493
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1493
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1494
1494
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1495
1495
 
1496
1496
  header_params = {
@@ -1561,7 +1561,7 @@ module Google
1561
1561
  # Set x-goog-api-client and x-goog-user-project headers
1562
1562
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1563
1563
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1564
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1564
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1565
1565
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1566
1566
 
1567
1567
  header_params = {
@@ -1643,7 +1643,7 @@ module Google
1643
1643
  # Set x-goog-api-client and x-goog-user-project headers
1644
1644
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1645
1645
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1646
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1646
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1647
1647
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1648
1648
 
1649
1649
  header_params = {
@@ -1716,7 +1716,7 @@ module Google
1716
1716
  # Set x-goog-api-client and x-goog-user-project headers
1717
1717
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1718
1718
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1719
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1719
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1720
1720
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1721
1721
 
1722
1722
  header_params = {
@@ -1792,7 +1792,7 @@ module Google
1792
1792
  # Set x-goog-api-client and x-goog-user-project headers
1793
1793
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1794
1794
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1795
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1795
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1796
1796
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1797
1797
 
1798
1798
  header_params = {
@@ -1875,7 +1875,7 @@ module Google
1875
1875
  # Set x-goog-api-client and x-goog-user-project headers
1876
1876
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1877
1877
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1878
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1878
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1879
1879
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1880
1880
 
1881
1881
  header_params = {
@@ -1942,7 +1942,7 @@ module Google
1942
1942
  # Set x-goog-api-client and x-goog-user-project headers
1943
1943
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1944
1944
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1945
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1945
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1946
1946
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1947
1947
 
1948
1948
  header_params = {
@@ -2029,7 +2029,7 @@ module Google
2029
2029
  # Set x-goog-api-client and x-goog-user-project headers
2030
2030
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2031
2031
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2032
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
2032
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2033
2033
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2034
2034
 
2035
2035
  header_params = {
@@ -2138,7 +2138,7 @@ module Google
2138
2138
 
2139
2139
  config_attr :endpoint, "automl.googleapis.com", ::String
2140
2140
  config_attr :credentials, nil do |value|
2141
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2141
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2142
2142
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2143
2143
  allowed.any? { |klass| klass === value }
2144
2144
  end
@@ -152,7 +152,7 @@ module Google
152
152
  # Set x-goog-api-client and x-goog-user-project headers
153
153
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
154
154
  lib_name: @config.lib_name, lib_version: @config.lib_version,
155
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
155
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
156
156
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
157
157
 
158
158
  header_params = {
@@ -222,7 +222,7 @@ module Google
222
222
  # Set x-goog-api-client and x-goog-user-project headers
223
223
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
224
224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
225
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
225
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
226
226
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
227
 
228
228
  header_params = {
@@ -292,7 +292,7 @@ module Google
292
292
  # Set x-goog-api-client and x-goog-user-project headers
293
293
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
294
294
  lib_name: @config.lib_name, lib_version: @config.lib_version,
295
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
295
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
296
296
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
297
297
 
298
298
  header_params = {
@@ -367,7 +367,7 @@ module Google
367
367
  # Set x-goog-api-client and x-goog-user-project headers
368
368
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
370
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
370
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
371
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
372
372
 
373
373
  header_params = {
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "automl.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -248,7 +248,7 @@ module Google
248
248
  # Set x-goog-api-client and x-goog-user-project headers
249
249
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
250
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
251
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
251
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
252
252
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
253
253
 
254
254
  header_params = {
@@ -401,7 +401,7 @@ module Google
401
401
  # Set x-goog-api-client and x-goog-user-project headers
402
402
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
403
403
  lib_name: @config.lib_name, lib_version: @config.lib_version,
404
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
404
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
405
405
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
406
406
 
407
407
  header_params = {
@@ -510,7 +510,7 @@ module Google
510
510
 
511
511
  config_attr :endpoint, "automl.googleapis.com", ::String
512
512
  config_attr :credentials, nil do |value|
513
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
513
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
514
514
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
515
515
  allowed.any? { |klass| klass === value }
516
516
  end
@@ -152,7 +152,7 @@ module Google
152
152
  # Set x-goog-api-client and x-goog-user-project headers
153
153
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
154
154
  lib_name: @config.lib_name, lib_version: @config.lib_version,
155
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
155
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
156
156
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
157
157
 
158
158
  header_params = {
@@ -222,7 +222,7 @@ module Google
222
222
  # Set x-goog-api-client and x-goog-user-project headers
223
223
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
224
224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
225
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
225
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
226
226
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
227
 
228
228
  header_params = {
@@ -292,7 +292,7 @@ module Google
292
292
  # Set x-goog-api-client and x-goog-user-project headers
293
293
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
294
294
  lib_name: @config.lib_name, lib_version: @config.lib_version,
295
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
295
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
296
296
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
297
297
 
298
298
  header_params = {
@@ -367,7 +367,7 @@ module Google
367
367
  # Set x-goog-api-client and x-goog-user-project headers
368
368
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
370
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
370
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
371
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
372
372
 
373
373
  header_params = {
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "automl.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -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
@@ -19,9 +19,9 @@
19
19
 
20
20
  module Google
21
21
  module Cloud
22
- module Automl
22
+ module AutoML
23
23
  module V1beta1
24
- VERSION = "0.2.3"
24
+ VERSION = "0.3.1"
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.3
4
+ version: 0.3.1
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-06-06 00:00:00.000000000 Z
11
+ date: 2020-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -166,6 +166,7 @@ files:
166
166
  - README.md
167
167
  - lib/google-cloud-automl-v1beta1.rb
168
168
  - lib/google/cloud/automl/v1beta1.rb
169
+ - lib/google/cloud/automl/v1beta1/_helpers.rb
169
170
  - lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb
170
171
  - lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb
171
172
  - lib/google/cloud/automl/v1beta1/automl.rb
@@ -265,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
266
  - !ruby/object:Gem::Version
266
267
  version: '0'
267
268
  requirements: []
268
- rubygems_version: 3.1.3
269
+ rubygems_version: 3.1.4
269
270
  signing_key:
270
271
  specification_version: 4
271
272
  summary: API Client library for the Cloud AutoML V1beta1 API