Class NpmPackageName (1.46.0)

public class NpmPackageName implements ResourceName

Inheritance

Object > NpmPackageName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String repository, String npmPackage)

public static String format(String project, String location, String repository, String npmPackage)
Parameters
Name Description
project String
location String
repository String
npmPackage 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 NpmPackageName.Builder newBuilder()
Returns
Type Description
NpmPackageName.Builder

of(String project, String location, String repository, String npmPackage)

public static NpmPackageName of(String project, String location, String repository, String npmPackage)
Parameters
Name Description
project String
location String
repository String
npmPackage String
Returns
Type Description
NpmPackageName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<NpmPackageName> values)

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

Constructors

NpmPackageName() (deprecated)

protected NpmPackageName()

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>

getLocation()

public String getLocation()
Returns
Type Description
String

getNpmPackage()

public String getNpmPackage()
Returns
Type Description
String

getProject()

public String getProject()
Returns
Type Description
String

getRepository()

public String getRepository()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
Type Description
String
Overrides