Skip to content

Commit 20bc3bc

Browse files
yoshi-automationsduskis
authored andcommitted
---
yaml --- r: 32731 b: refs/heads/autosynth-iot c: 1853db4 h: refs/heads/master i: 32729: 69f8ca2 32727: 85b1441
1 parent 9df8e18 commit 20bc3bc

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
@@ -131,7 +131,7 @@ refs/heads/autosynth-datastore: f1efc3dc465174f41041acd56cf29badcec3e5bd
131131
refs/heads/autosynth-dialogflow: 73974cc32e5212aec0126472e0bc1442886fedaf
132132
refs/heads/autosynth-errorreporting: effe8001d110ad584187b30aafc473db0dd4a15f
133133
refs/heads/autosynth-firestore: e79eeb26930dfae4439424ad2fda5874eeca54c8
134-
refs/heads/autosynth-iot: ab22057bdd02bfba43cacae221c929ad3c807e6c
134+
refs/heads/autosynth-iot: 1853db41c8d09414eb22af6df9d0986795591343
135135
refs/heads/autosynth-kms: 6b65b0f34c12d141031c7288cdc01e550212d0f6
136136
refs/heads/autosynth-language: e73905aa7672afa47240e65b25c087207f4594f9
137137
refs/heads/autosynth-os-login: 123ba209c5769d0ee067e0ce5848bec13b42a4f4

branches/autosynth-iot/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-iot/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)