@@ -131,14 +131,14 @@ public class ProductSearchClient implements BackgroundResource {
131131 private static final PathTemplate LOCATION_PATH_TEMPLATE =
132132 PathTemplate .createWithoutUrlEncoding ("projects/{project}/locations/{location}" );
133133
134- private static final PathTemplate PRODUCT_SET_PATH_TEMPLATE =
135- PathTemplate .createWithoutUrlEncoding (
136- "projects/{project}/locations/{location}/productSets/{product_set}" );
137-
138134 private static final PathTemplate PRODUCT_PATH_TEMPLATE =
139135 PathTemplate .createWithoutUrlEncoding (
140136 "projects/{project}/locations/{location}/products/{product}" );
141137
138+ private static final PathTemplate PRODUCT_SET_PATH_TEMPLATE =
139+ PathTemplate .createWithoutUrlEncoding (
140+ "projects/{project}/locations/{location}/productSets/{product_set}" );
141+
142142 private static final PathTemplate REFERENCE_IMAGE_PATH_TEMPLATE =
143143 PathTemplate .createWithoutUrlEncoding (
144144 "projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}" );
@@ -156,30 +156,30 @@ public static final String formatLocationName(String project, String location) {
156156 }
157157
158158 /**
159- * Formats a string containing the fully-qualified path to represent a product_set resource.
159+ * Formats a string containing the fully-qualified path to represent a product resource.
160160 *
161- * @deprecated Use the {@link ProductSetName } class instead.
161+ * @deprecated Use the {@link ProductName } class instead.
162162 */
163163 @ Deprecated
164- public static final String formatProductSetName (
165- String project , String location , String productSet ) {
166- return PRODUCT_SET_PATH_TEMPLATE .instantiate (
164+ public static final String formatProductName (String project , String location , String product ) {
165+ return PRODUCT_PATH_TEMPLATE .instantiate (
167166 "project" , project ,
168167 "location" , location ,
169- "product_set " , productSet );
168+ "product " , product );
170169 }
171170
172171 /**
173- * Formats a string containing the fully-qualified path to represent a product resource.
172+ * Formats a string containing the fully-qualified path to represent a product_set resource.
174173 *
175- * @deprecated Use the {@link ProductName } class instead.
174+ * @deprecated Use the {@link ProductSetName } class instead.
176175 */
177176 @ Deprecated
178- public static final String formatProductName (String project , String location , String product ) {
179- return PRODUCT_PATH_TEMPLATE .instantiate (
177+ public static final String formatProductSetName (
178+ String project , String location , String productSet ) {
179+ return PRODUCT_SET_PATH_TEMPLATE .instantiate (
180180 "project" , project ,
181181 "location" , location ,
182- "product " , product );
182+ "product_set " , productSet );
183183 }
184184
185185 /**
@@ -218,65 +218,65 @@ public static final String parseLocationFromLocationName(String locationName) {
218218 }
219219
220220 /**
221- * Parses the project from the given fully-qualified path which represents a product_set resource.
221+ * Parses the project from the given fully-qualified path which represents a product resource.
222222 *
223- * @deprecated Use the {@link ProductSetName } class instead.
223+ * @deprecated Use the {@link ProductName } class instead.
224224 */
225225 @ Deprecated
226- public static final String parseProjectFromProductSetName (String productSetName ) {
227- return PRODUCT_SET_PATH_TEMPLATE .parse (productSetName ).get ("project" );
226+ public static final String parseProjectFromProductName (String productName ) {
227+ return PRODUCT_PATH_TEMPLATE .parse (productName ).get ("project" );
228228 }
229229
230230 /**
231- * Parses the location from the given fully-qualified path which represents a product_set
232- * resource.
231+ * Parses the location from the given fully-qualified path which represents a product resource.
233232 *
234- * @deprecated Use the {@link ProductSetName } class instead.
233+ * @deprecated Use the {@link ProductName } class instead.
235234 */
236235 @ Deprecated
237- public static final String parseLocationFromProductSetName (String productSetName ) {
238- return PRODUCT_SET_PATH_TEMPLATE .parse (productSetName ).get ("location" );
236+ public static final String parseLocationFromProductName (String productName ) {
237+ return PRODUCT_PATH_TEMPLATE .parse (productName ).get ("location" );
239238 }
240239
241240 /**
242- * Parses the product_set from the given fully-qualified path which represents a product_set
243- * resource.
241+ * Parses the product from the given fully-qualified path which represents a product resource.
244242 *
245- * @deprecated Use the {@link ProductSetName } class instead.
243+ * @deprecated Use the {@link ProductName } class instead.
246244 */
247245 @ Deprecated
248- public static final String parseProductSetFromProductSetName (String productSetName ) {
249- return PRODUCT_SET_PATH_TEMPLATE .parse (productSetName ).get ("product_set " );
246+ public static final String parseProductFromProductName (String productName ) {
247+ return PRODUCT_PATH_TEMPLATE .parse (productName ).get ("product " );
250248 }
251249
252250 /**
253- * Parses the project from the given fully-qualified path which represents a product resource.
251+ * Parses the project from the given fully-qualified path which represents a product_set resource.
254252 *
255- * @deprecated Use the {@link ProductName } class instead.
253+ * @deprecated Use the {@link ProductSetName } class instead.
256254 */
257255 @ Deprecated
258- public static final String parseProjectFromProductName (String productName ) {
259- return PRODUCT_PATH_TEMPLATE .parse (productName ).get ("project" );
256+ public static final String parseProjectFromProductSetName (String productSetName ) {
257+ return PRODUCT_SET_PATH_TEMPLATE .parse (productSetName ).get ("project" );
260258 }
261259
262260 /**
263- * Parses the location from the given fully-qualified path which represents a product resource.
261+ * Parses the location from the given fully-qualified path which represents a product_set
262+ * resource.
264263 *
265- * @deprecated Use the {@link ProductName } class instead.
264+ * @deprecated Use the {@link ProductSetName } class instead.
266265 */
267266 @ Deprecated
268- public static final String parseLocationFromProductName (String productName ) {
269- return PRODUCT_PATH_TEMPLATE .parse (productName ).get ("location" );
267+ public static final String parseLocationFromProductSetName (String productSetName ) {
268+ return PRODUCT_SET_PATH_TEMPLATE .parse (productSetName ).get ("location" );
270269 }
271270
272271 /**
273- * Parses the product from the given fully-qualified path which represents a product resource.
272+ * Parses the product_set from the given fully-qualified path which represents a product_set
273+ * resource.
274274 *
275- * @deprecated Use the {@link ProductName } class instead.
275+ * @deprecated Use the {@link ProductSetName } class instead.
276276 */
277277 @ Deprecated
278- public static final String parseProductFromProductName (String productName ) {
279- return PRODUCT_PATH_TEMPLATE .parse (productName ).get ("product " );
278+ public static final String parseProductSetFromProductSetName (String productSetName ) {
279+ return PRODUCT_SET_PATH_TEMPLATE .parse (productSetName ).get ("product_set " );
280280 }
281281
282282 /**
0 commit comments