From 1853db41c8d09414eb22af6df9d0986795591343 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 24 Apr 2019 05:59:53 -0700 Subject: [PATCH] Regenerate translate client (#5001) --- .../v3beta1/TranslationServiceClient.java | 54 +++++++++---------- .../google-cloud-translate/synth.metadata | 10 ++-- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java index 53bfd4c5cfab..d5b084e8c806 100644 --- a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ b/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -114,24 +114,12 @@ public class TranslationServiceClient implements BackgroundResource { private final TranslationServiceStub stub; private final OperationsClient operationsClient; - private static final PathTemplate LOCATION_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private static final PathTemplate GLOSSARY_PATH_TEMPLATE = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/glossaries/{glossary}"); - /** - * 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); - } + private static final PathTemplate LOCATION_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); /** * Formats a string containing the fully-qualified path to represent a glossary resource. @@ -147,23 +135,15 @@ public static final String formatGlossaryName(String project, String location, S } /** - * 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. + * 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 parseLocationFromLocationName(String locationName) { - return LOCATION_PATH_TEMPLATE.parse(locationName).get("location"); + public static final String formatLocationName(String project, String location) { + return LOCATION_PATH_TEMPLATE.instantiate( + "project", project, + "location", location); } /** @@ -196,6 +176,26 @@ public static final String parseGlossaryFromGlossaryName(String glossaryName) { return GLOSSARY_PATH_TEMPLATE.parse(glossaryName).get("glossary"); } + /** + * 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"); + } + /** Constructs an instance of TranslationServiceClient with default settings. */ public static final TranslationServiceClient create() throws IOException { return create(TranslationServiceSettings.newBuilder().build()); diff --git a/google-cloud-clients/google-cloud-translate/synth.metadata b/google-cloud-clients/google-cloud-translate/synth.metadata index c0d16f626ebb..a897d07203db 100644 --- a/google-cloud-clients/google-cloud-translate/synth.metadata +++ b/google-cloud-clients/google-cloud-translate/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-04-01T22:20:44.823128Z", + "updateTime": "2019-04-23T07:58:00.510493Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.22", - "dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320" + "version": "0.17.0", + "dockerImage": "googleapis/artman@sha256:c58f4ec3838eb4e0718eb1bccc6512bd6850feaa85a360a9e38f6f848ec73bc2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1e20c384c2f8197d2b09d9e11bdbc28657e5aee1", - "internalRef": "241403898" + "sha": "547e19e7df398e9290e8e3674d7351efc500f9b0", + "internalRef": "244712781" } } ],