Skip to content

Commit e027b33

Browse files
yoshi-automationPraful Makani
authored andcommitted
Regenerate vision client (#4867)
1 parent a10c1fc commit e027b33

File tree

10 files changed

+76
-18
lines changed

10 files changed

+76
-18
lines changed

google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,24 @@ public class ProductSearchClient implements BackgroundResource {
143143
PathTemplate.createWithoutUrlEncoding(
144144
"projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}");
145145

146-
/** Formats a string containing the fully-qualified path to represent a location resource. */
146+
/**
147+
* Formats a string containing the fully-qualified path to represent a location resource.
148+
*
149+
* @deprecated Use the {@link LocationName} class instead.
150+
*/
151+
@Deprecated
147152
public static final String formatLocationName(String project, String location) {
148153
return LOCATION_PATH_TEMPLATE.instantiate(
149154
"project", project,
150155
"location", location);
151156
}
152157

153-
/** Formats a string containing the fully-qualified path to represent a product_set resource. */
158+
/**
159+
* Formats a string containing the fully-qualified path to represent a product_set resource.
160+
*
161+
* @deprecated Use the {@link ProductSetName} class instead.
162+
*/
163+
@Deprecated
154164
public static final String formatProductSetName(
155165
String project, String location, String productSet) {
156166
return PRODUCT_SET_PATH_TEMPLATE.instantiate(
@@ -159,7 +169,12 @@ public static final String formatProductSetName(
159169
"product_set", productSet);
160170
}
161171

162-
/** Formats a string containing the fully-qualified path to represent a product resource. */
172+
/**
173+
* Formats a string containing the fully-qualified path to represent a product resource.
174+
*
175+
* @deprecated Use the {@link ProductName} class instead.
176+
*/
177+
@Deprecated
163178
public static final String formatProductName(String project, String location, String product) {
164179
return PRODUCT_PATH_TEMPLATE.instantiate(
165180
"project", project,
@@ -169,7 +184,10 @@ public static final String formatProductName(String project, String location, St
169184

170185
/**
171186
* Formats a string containing the fully-qualified path to represent a reference_image resource.
187+
*
188+
* @deprecated Use the {@link ReferenceImageName} class instead.
172189
*/
190+
@Deprecated
173191
public static final String formatReferenceImageName(
174192
String project, String location, String product, String referenceImage) {
175193
return REFERENCE_IMAGE_PATH_TEMPLATE.instantiate(
@@ -181,86 +199,126 @@ public static final String formatReferenceImageName(
181199

182200
/**
183201
* Parses the project from the given fully-qualified path which represents a location resource.
202+
*
203+
* @deprecated Use the {@link LocationName} class instead.
184204
*/
205+
@Deprecated
185206
public static final String parseProjectFromLocationName(String locationName) {
186207
return LOCATION_PATH_TEMPLATE.parse(locationName).get("project");
187208
}
188209

189210
/**
190211
* Parses the location from the given fully-qualified path which represents a location resource.
212+
*
213+
* @deprecated Use the {@link LocationName} class instead.
191214
*/
215+
@Deprecated
192216
public static final String parseLocationFromLocationName(String locationName) {
193217
return LOCATION_PATH_TEMPLATE.parse(locationName).get("location");
194218
}
195219

196220
/**
197221
* Parses the project from the given fully-qualified path which represents a product_set resource.
222+
*
223+
* @deprecated Use the {@link ProductSetName} class instead.
198224
*/
225+
@Deprecated
199226
public static final String parseProjectFromProductSetName(String productSetName) {
200227
return PRODUCT_SET_PATH_TEMPLATE.parse(productSetName).get("project");
201228
}
202229

203230
/**
204231
* Parses the location from the given fully-qualified path which represents a product_set
205232
* resource.
233+
*
234+
* @deprecated Use the {@link ProductSetName} class instead.
206235
*/
236+
@Deprecated
207237
public static final String parseLocationFromProductSetName(String productSetName) {
208238
return PRODUCT_SET_PATH_TEMPLATE.parse(productSetName).get("location");
209239
}
210240

211241
/**
212242
* Parses the product_set from the given fully-qualified path which represents a product_set
213243
* resource.
244+
*
245+
* @deprecated Use the {@link ProductSetName} class instead.
214246
*/
247+
@Deprecated
215248
public static final String parseProductSetFromProductSetName(String productSetName) {
216249
return PRODUCT_SET_PATH_TEMPLATE.parse(productSetName).get("product_set");
217250
}
218251

219-
/** Parses the project from the given fully-qualified path which represents a product resource. */
252+
/**
253+
* Parses the project from the given fully-qualified path which represents a product resource.
254+
*
255+
* @deprecated Use the {@link ProductName} class instead.
256+
*/
257+
@Deprecated
220258
public static final String parseProjectFromProductName(String productName) {
221259
return PRODUCT_PATH_TEMPLATE.parse(productName).get("project");
222260
}
223261

224262
/**
225263
* Parses the location from the given fully-qualified path which represents a product resource.
264+
*
265+
* @deprecated Use the {@link ProductName} class instead.
226266
*/
267+
@Deprecated
227268
public static final String parseLocationFromProductName(String productName) {
228269
return PRODUCT_PATH_TEMPLATE.parse(productName).get("location");
229270
}
230271

231-
/** Parses the product from the given fully-qualified path which represents a product resource. */
272+
/**
273+
* Parses the product from the given fully-qualified path which represents a product resource.
274+
*
275+
* @deprecated Use the {@link ProductName} class instead.
276+
*/
277+
@Deprecated
232278
public static final String parseProductFromProductName(String productName) {
233279
return PRODUCT_PATH_TEMPLATE.parse(productName).get("product");
234280
}
235281

236282
/**
237283
* Parses the project from the given fully-qualified path which represents a reference_image
238284
* resource.
285+
*
286+
* @deprecated Use the {@link ReferenceImageName} class instead.
239287
*/
288+
@Deprecated
240289
public static final String parseProjectFromReferenceImageName(String referenceImageName) {
241290
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("project");
242291
}
243292

244293
/**
245294
* Parses the location from the given fully-qualified path which represents a reference_image
246295
* resource.
296+
*
297+
* @deprecated Use the {@link ReferenceImageName} class instead.
247298
*/
299+
@Deprecated
248300
public static final String parseLocationFromReferenceImageName(String referenceImageName) {
249301
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("location");
250302
}
251303

252304
/**
253305
* Parses the product from the given fully-qualified path which represents a reference_image
254306
* resource.
307+
*
308+
* @deprecated Use the {@link ReferenceImageName} class instead.
255309
*/
310+
@Deprecated
256311
public static final String parseProductFromReferenceImageName(String referenceImageName) {
257312
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("product");
258313
}
259314

260315
/**
261316
* Parses the reference_image from the given fully-qualified path which represents a
262317
* reference_image resource.
318+
*
319+
* @deprecated Use the {@link ReferenceImageName} class instead.
263320
*/
321+
@Deprecated
264322
public static final String parseReferenceImageFromReferenceImageName(String referenceImageName) {
265323
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("reference_image");
266324
}

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockImageAnnotatorImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@javax.annotation.Generated("by GAPIC")
2929
@BetaApi
3030
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
31-
private ArrayList<AbstractMessage> requests;
31+
private List<AbstractMessage> requests;
3232
private Queue<Object> responses;
3333

3434
public MockImageAnnotatorImpl() {

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1/MockProductSearchImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@javax.annotation.Generated("by GAPIC")
3030
@BetaApi
3131
public class MockProductSearchImpl extends ProductSearchImplBase {
32-
private ArrayList<AbstractMessage> requests;
32+
private List<AbstractMessage> requests;
3333
private Queue<Object> responses;
3434

3535
public MockProductSearchImpl() {

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/MockImageAnnotatorImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@javax.annotation.Generated("by GAPIC")
2828
@BetaApi
2929
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
30-
private ArrayList<AbstractMessage> requests;
30+
private List<AbstractMessage> requests;
3131
private Queue<Object> responses;
3232

3333
public MockImageAnnotatorImpl() {

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/MockImageAnnotatorImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@javax.annotation.Generated("by GAPIC")
2929
@BetaApi
3030
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
31-
private ArrayList<AbstractMessage> requests;
31+
private List<AbstractMessage> requests;
3232
private Queue<Object> responses;
3333

3434
public MockImageAnnotatorImpl() {

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockImageAnnotatorImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@javax.annotation.Generated("by GAPIC")
2929
@BetaApi
3030
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
31-
private ArrayList<AbstractMessage> requests;
31+
private List<AbstractMessage> requests;
3232
private Queue<Object> responses;
3333

3434
public MockImageAnnotatorImpl() {

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/MockProductSearchImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@javax.annotation.Generated("by GAPIC")
3030
@BetaApi
3131
public class MockProductSearchImpl extends ProductSearchImplBase {
32-
private ArrayList<AbstractMessage> requests;
32+
private List<AbstractMessage> requests;
3333
private Queue<Object> responses;
3434

3535
public MockProductSearchImpl() {

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockImageAnnotatorImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@javax.annotation.Generated("by GAPIC")
2929
@BetaApi
3030
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
31-
private ArrayList<AbstractMessage> requests;
31+
private List<AbstractMessage> requests;
3232
private Queue<Object> responses;
3333

3434
public MockImageAnnotatorImpl() {

google-cloud-clients/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@javax.annotation.Generated("by GAPIC")
3030
@BetaApi
3131
public class MockProductSearchImpl extends ProductSearchImplBase {
32-
private ArrayList<AbstractMessage> requests;
32+
private List<AbstractMessage> requests;
3333
private Queue<Object> responses;
3434

3535
public MockProductSearchImpl() {

google-cloud-clients/google-cloud-vision/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-03-30T08:03:24.223672Z",
2+
"updateTime": "2019-04-02T08:05:11.071368Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.21",
8-
"dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78"
7+
"version": "0.16.22",
8+
"dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b",
16-
"internalRef": "241096997"
15+
"sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d",
16+
"internalRef": "241437588"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)