Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate vision client #4867

Merged
merged 1 commit into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,24 @@ public class ProductSearchClient implements BackgroundResource {
PathTemplate.createWithoutUrlEncoding(
"projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}");

/** Formats a string containing the fully-qualified path to represent a location resource. */
/**
* Formats a string containing the fully-qualified path to represent a location resource.
*
* @deprecated Use the {@link LocationName} class instead.
*/
@Deprecated
public static final String formatLocationName(String project, String location) {
return LOCATION_PATH_TEMPLATE.instantiate(
"project", project,
"location", location);
}

/** Formats a string containing the fully-qualified path to represent a product_set resource. */
/**
* Formats a string containing the fully-qualified path to represent a product_set resource.
*
* @deprecated Use the {@link ProductSetName} class instead.
*/
@Deprecated
public static final String formatProductSetName(
String project, String location, String productSet) {
return PRODUCT_SET_PATH_TEMPLATE.instantiate(
Expand All @@ -159,7 +169,12 @@ public static final String formatProductSetName(
"product_set", productSet);
}

/** Formats a string containing the fully-qualified path to represent a product resource. */
/**
* Formats a string containing the fully-qualified path to represent a product resource.
*
* @deprecated Use the {@link ProductName} class instead.
*/
@Deprecated
public static final String formatProductName(String project, String location, String product) {
return PRODUCT_PATH_TEMPLATE.instantiate(
"project", project,
Expand All @@ -169,7 +184,10 @@ public static final String formatProductName(String project, String location, St

/**
* Formats a string containing the fully-qualified path to represent a reference_image resource.
*
* @deprecated Use the {@link ReferenceImageName} class instead.
*/
@Deprecated
public static final String formatReferenceImageName(
String project, String location, String product, String referenceImage) {
return REFERENCE_IMAGE_PATH_TEMPLATE.instantiate(
Expand All @@ -181,86 +199,126 @@ public static final String formatReferenceImageName(

/**
* Parses the project from the given fully-qualified path which represents a location resource.
*
* @deprecated Use the {@link LocationName} class instead.
*/
@Deprecated
public static final String parseProjectFromLocationName(String locationName) {
return LOCATION_PATH_TEMPLATE.parse(locationName).get("project");
}

/**
* Parses the location from the given fully-qualified path which represents a location resource.
*
* @deprecated Use the {@link LocationName} class instead.
*/
@Deprecated
public static final String parseLocationFromLocationName(String locationName) {
return LOCATION_PATH_TEMPLATE.parse(locationName).get("location");
}

/**
* Parses the project from the given fully-qualified path which represents a product_set resource.
*
* @deprecated Use the {@link ProductSetName} class instead.
*/
@Deprecated
public static final String parseProjectFromProductSetName(String productSetName) {
return PRODUCT_SET_PATH_TEMPLATE.parse(productSetName).get("project");
}

/**
* Parses the location from the given fully-qualified path which represents a product_set
* resource.
*
* @deprecated Use the {@link ProductSetName} class instead.
*/
@Deprecated
public static final String parseLocationFromProductSetName(String productSetName) {
return PRODUCT_SET_PATH_TEMPLATE.parse(productSetName).get("location");
}

/**
* Parses the product_set from the given fully-qualified path which represents a product_set
* resource.
*
* @deprecated Use the {@link ProductSetName} class instead.
*/
@Deprecated
public static final String parseProductSetFromProductSetName(String productSetName) {
return PRODUCT_SET_PATH_TEMPLATE.parse(productSetName).get("product_set");
}

/** Parses the project from the given fully-qualified path which represents a product resource. */
/**
* Parses the project from the given fully-qualified path which represents a product resource.
*
* @deprecated Use the {@link ProductName} class instead.
*/
@Deprecated
public static final String parseProjectFromProductName(String productName) {
return PRODUCT_PATH_TEMPLATE.parse(productName).get("project");
}

/**
* Parses the location from the given fully-qualified path which represents a product resource.
*
* @deprecated Use the {@link ProductName} class instead.
*/
@Deprecated
public static final String parseLocationFromProductName(String productName) {
return PRODUCT_PATH_TEMPLATE.parse(productName).get("location");
}

/** Parses the product from the given fully-qualified path which represents a product resource. */
/**
* Parses the product from the given fully-qualified path which represents a product resource.
*
* @deprecated Use the {@link ProductName} class instead.
*/
@Deprecated
public static final String parseProductFromProductName(String productName) {
return PRODUCT_PATH_TEMPLATE.parse(productName).get("product");
}

/**
* Parses the project from the given fully-qualified path which represents a reference_image
* resource.
*
* @deprecated Use the {@link ReferenceImageName} class instead.
*/
@Deprecated
public static final String parseProjectFromReferenceImageName(String referenceImageName) {
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("project");
}

/**
* Parses the location from the given fully-qualified path which represents a reference_image
* resource.
*
* @deprecated Use the {@link ReferenceImageName} class instead.
*/
@Deprecated
public static final String parseLocationFromReferenceImageName(String referenceImageName) {
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("location");
}

/**
* Parses the product from the given fully-qualified path which represents a reference_image
* resource.
*
* @deprecated Use the {@link ReferenceImageName} class instead.
*/
@Deprecated
public static final String parseProductFromReferenceImageName(String referenceImageName) {
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("product");
}

/**
* Parses the reference_image from the given fully-qualified path which represents a
* reference_image resource.
*
* @deprecated Use the {@link ReferenceImageName} class instead.
*/
@Deprecated
public static final String parseReferenceImageFromReferenceImageName(String referenceImageName) {
return REFERENCE_IMAGE_PATH_TEMPLATE.parse(referenceImageName).get("reference_image");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockImageAnnotatorImpl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockProductSearchImpl extends ProductSearchImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockProductSearchImpl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockImageAnnotatorImpl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockImageAnnotatorImpl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockImageAnnotatorImpl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockProductSearchImpl extends ProductSearchImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockProductSearchImpl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockImageAnnotatorImpl extends ImageAnnotatorImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockImageAnnotatorImpl() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@javax.annotation.Generated("by GAPIC")
@BetaApi
public class MockProductSearchImpl extends ProductSearchImplBase {
private ArrayList<AbstractMessage> requests;
private List<AbstractMessage> requests;
private Queue<Object> responses;

public MockProductSearchImpl() {
Expand Down
10 changes: 5 additions & 5 deletions google-cloud-clients/google-cloud-vision/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-03-30T08:03:24.223672Z",
"updateTime": "2019-04-02T08:05:11.071368Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.21",
"dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78"
"version": "0.16.22",
"dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b",
"internalRef": "241096997"
"sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d",
"internalRef": "241437588"
}
}
],
Expand Down