Class LabelName (0.4.0)

public class LabelName implements ResourceName

Inheritance

Object > LabelName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String networkCode, String label)

public static String format(String networkCode, String label)
Parameters
Name Description
networkCode String
label String
Returns
Type Description
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
boolean

newBuilder()

public static LabelName.Builder newBuilder()
Returns
Type Description
LabelName.Builder

of(String networkCode, String label)

public static LabelName of(String networkCode, String label)
Parameters
Name Description
networkCode String
label String
Returns
Type Description
LabelName

parse(String formattedString)

public static LabelName parse(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
LabelName

parseList(List<String> formattedStrings)

public static List<LabelName> parseList(List<String> formattedStrings)
Parameter
Name Description
formattedStrings List<String>
Returns
Type Description
List<LabelName>

toStringList(List<LabelName> values)

public static List<String> toStringList(List<LabelName> values)
Parameter
Name Description
values List<LabelName>
Returns
Type Description
List<String>

Constructors

LabelName() (deprecated)

protected LabelName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
Name Description
fieldName String
Returns
Type Description
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
Type Description
Map<String,String>

getLabel()

public String getLabel()
Returns
Type Description
String

getNetworkCode()

public String getNetworkCode()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public LabelName.Builder toBuilder()
Returns
Type Description
LabelName.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides