Class DeviceName (2.34.0)

public class DeviceName implements ResourceName

Inheritance

Object > DeviceName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String registry, String device)

public static String format(String project, String location, String registry, String device)
Parameters
NameDescription
projectString
locationString
registryString
deviceString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static DeviceName.Builder newBuilder()
Returns
TypeDescription
DeviceName.Builder

of(String project, String location, String registry, String device)

public static DeviceName of(String project, String location, String registry, String device)
Parameters
NameDescription
projectString
locationString
registryString
deviceString
Returns
TypeDescription
DeviceName

parse(String formattedString)

public static DeviceName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
DeviceName

parseList(List<String> formattedStrings)

public static List<DeviceName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<DeviceName>

toStringList(List<DeviceName> values)

public static List<String> toStringList(List<DeviceName> values)
Parameter
NameDescription
valuesList<DeviceName>
Returns
TypeDescription
List<String>

Constructors

DeviceName() (deprecated)

protected DeviceName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getDevice()

public String getDevice()
Returns
TypeDescription
String

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

getRegistry()

public String getRegistry()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public DeviceName.Builder toBuilder()
Returns
TypeDescription
DeviceName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides