Skip to content

Commit b90fd2b

Browse files
yoshi-automationPraful Makani
authored andcommitted
---
yaml --- r: 33343 b: refs/heads/autosynth-os-login c: e027b33 h: refs/heads/master i: 33341: 8ba51f8 33339: 196677b 33335: f9c4818 33327: c90ca47 33311: 4540f32 33279: 03db471
1 parent 70c1234 commit b90fd2b

11 files changed

Lines changed: 77 additions & 19 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ refs/heads/autosynth-firestore: e79eeb26930dfae4439424ad2fda5874eeca54c8
134134
refs/heads/autosynth-iot: 044be280805a59e06d09658688c9ee474a9815ad
135135
refs/heads/autosynth-kms: d31449d6621a50fb16a4bef4f30f0f3051d27d7c
136136
refs/heads/autosynth-language: 6130869312f99a1e7d3aa0485759172a23333cc5
137-
refs/heads/autosynth-os-login: a10c1fc32b0f652b64c0ff974caf3fe2394cb298
137+
refs/heads/autosynth-os-login: e027b337ced5fcfb3e1397eb6da18db5859c333f
138138
refs/heads/autosynth-redis: 6bedce4d7c7c6ca6a22e83ad1780e08fdc565a9e
139139
refs/heads/autosynth-scheduler: 57f9fdb1e7de30c85f4ec7198931a07f50603e55
140140
refs/heads/autosynth-spanner: de02ca32edea133b68b51052e325359a3704b5d2

branches/autosynth-os-login/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
}

branches/autosynth-os-login/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() {

branches/autosynth-os-login/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() {

branches/autosynth-os-login/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() {

branches/autosynth-os-login/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() {

branches/autosynth-os-login/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() {

branches/autosynth-os-login/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() {

branches/autosynth-os-login/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() {

branches/autosynth-os-login/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() {

0 commit comments

Comments
 (0)