Skip to content

Commit 72bb8f2

Browse files
yoshi-automationsduskis
authored andcommitted
---
yaml --- r: 30705 b: refs/heads/autosynth-bigquerydatatransfer c: 1853db4 h: refs/heads/master i: 30703: 97365c2
1 parent e98edcf commit 72bb8f2

3 files changed

Lines changed: 33 additions & 33 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
122122
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
123123
refs/heads/autosynth-asset: bdb45634a0fe8f7a510692b56b31f5312e25f453
124124
refs/heads/autosynth-automl: 22f9dd5b6f5df8dbfa7da0126864d565229519b2
125-
refs/heads/autosynth-bigquerydatatransfer: ab22057bdd02bfba43cacae221c929ad3c807e6c
125+
refs/heads/autosynth-bigquerydatatransfer: 1853db41c8d09414eb22af6df9d0986795591343
126126
refs/heads/autosynth-bigquerystorage: d2c53da3b012e38c662e4df0738042435f19365f
127127
refs/heads/autosynth-bigtable: 9e5429f45cf9face9fed585d0233534993e36b58
128128
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca

branches/autosynth-bigquerydatatransfer/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -114,24 +114,12 @@ public class TranslationServiceClient implements BackgroundResource {
114114
private final TranslationServiceStub stub;
115115
private final OperationsClient operationsClient;
116116

117-
private static final PathTemplate LOCATION_PATH_TEMPLATE =
118-
PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
119-
120117
private static final PathTemplate GLOSSARY_PATH_TEMPLATE =
121118
PathTemplate.createWithoutUrlEncoding(
122119
"projects/{project}/locations/{location}/glossaries/{glossary}");
123120

124-
/**
125-
* Formats a string containing the fully-qualified path to represent a location resource.
126-
*
127-
* @deprecated Use the {@link LocationName} class instead.
128-
*/
129-
@Deprecated
130-
public static final String formatLocationName(String project, String location) {
131-
return LOCATION_PATH_TEMPLATE.instantiate(
132-
"project", project,
133-
"location", location);
134-
}
121+
private static final PathTemplate LOCATION_PATH_TEMPLATE =
122+
PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
135123

136124
/**
137125
* 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
147135
}
148136

149137
/**
150-
* Parses the project from the given fully-qualified path which represents a location resource.
151-
*
152-
* @deprecated Use the {@link LocationName} class instead.
153-
*/
154-
@Deprecated
155-
public static final String parseProjectFromLocationName(String locationName) {
156-
return LOCATION_PATH_TEMPLATE.parse(locationName).get("project");
157-
}
158-
159-
/**
160-
* Parses the location from the given fully-qualified path which represents a location resource.
138+
* Formats a string containing the fully-qualified path to represent a location resource.
161139
*
162140
* @deprecated Use the {@link LocationName} class instead.
163141
*/
164142
@Deprecated
165-
public static final String parseLocationFromLocationName(String locationName) {
166-
return LOCATION_PATH_TEMPLATE.parse(locationName).get("location");
143+
public static final String formatLocationName(String project, String location) {
144+
return LOCATION_PATH_TEMPLATE.instantiate(
145+
"project", project,
146+
"location", location);
167147
}
168148

169149
/**
@@ -196,6 +176,26 @@ public static final String parseGlossaryFromGlossaryName(String glossaryName) {
196176
return GLOSSARY_PATH_TEMPLATE.parse(glossaryName).get("glossary");
197177
}
198178

179+
/**
180+
* Parses the project from the given fully-qualified path which represents a location resource.
181+
*
182+
* @deprecated Use the {@link LocationName} class instead.
183+
*/
184+
@Deprecated
185+
public static final String parseProjectFromLocationName(String locationName) {
186+
return LOCATION_PATH_TEMPLATE.parse(locationName).get("project");
187+
}
188+
189+
/**
190+
* Parses the location from the given fully-qualified path which represents a location resource.
191+
*
192+
* @deprecated Use the {@link LocationName} class instead.
193+
*/
194+
@Deprecated
195+
public static final String parseLocationFromLocationName(String locationName) {
196+
return LOCATION_PATH_TEMPLATE.parse(locationName).get("location");
197+
}
198+
199199
/** Constructs an instance of TranslationServiceClient with default settings. */
200200
public static final TranslationServiceClient create() throws IOException {
201201
return create(TranslationServiceSettings.newBuilder().build());

branches/autosynth-bigquerydatatransfer/google-cloud-clients/google-cloud-translate/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-04-01T22:20:44.823128Z",
2+
"updateTime": "2019-04-23T07:58:00.510493Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.22",
8-
"dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320"
7+
"version": "0.17.0",
8+
"dockerImage": "googleapis/artman@sha256:c58f4ec3838eb4e0718eb1bccc6512bd6850feaa85a360a9e38f6f848ec73bc2"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "1e20c384c2f8197d2b09d9e11bdbc28657e5aee1",
16-
"internalRef": "241403898"
15+
"sha": "547e19e7df398e9290e8e3674d7351efc500f9b0",
16+
"internalRef": "244712781"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)