Package com.google.cloud.retail.v2alpha
Class ProductName
- java.lang.Object
-
- com.google.cloud.retail.v2alpha.ProductName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class ProductName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProductName.Builder
Builder for projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}/products/{product}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProductName()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static String
format(String project, String location, String catalog, String branch, String product)
String
getBranch()
String
getCatalog()
String
getFieldValue(String fieldName)
Map<String,String>
getFieldValuesMap()
String
getLocation()
String
getProduct()
String
getProject()
int
hashCode()
static boolean
isParsableFrom(String formattedString)
static ProductName.Builder
newBuilder()
static ProductName
of(String project, String location, String catalog, String branch, String product)
static ProductName
parse(String formattedString)
static List<ProductName>
parseList(List<String> formattedStrings)
ProductName.Builder
toBuilder()
String
toString()
static List<String>
toStringList(List<ProductName> values)
-
-
-
Constructor Detail
-
ProductName
@Deprecated protected ProductName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getLocation
public String getLocation()
-
getCatalog
public String getCatalog()
-
getBranch
public String getBranch()
-
getProduct
public String getProduct()
-
newBuilder
public static ProductName.Builder newBuilder()
-
toBuilder
public ProductName.Builder toBuilder()
-
of
public static ProductName of(String project, String location, String catalog, String branch, String product)
-
format
public static String format(String project, String location, String catalog, String branch, String product)
-
parse
public static ProductName parse(String formattedString)
-
parseList
public static List<ProductName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<ProductName> values)
-
isParsableFrom
public static boolean isParsableFrom(String formattedString)
-
getFieldValuesMap
public Map<String,String> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValue
in interfacecom.google.api.resourcenames.ResourceName
-
-