Class PhoneNumberName (4.64.0)

public class PhoneNumberName implements ResourceName

Inheritance

Object > PhoneNumberName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String phoneNumber)

public static String format(String project, String phoneNumber)
Parameters
Name Description
project String
phoneNumber String
Returns
Type Description
String

formatProjectLocationPhoneNumberName(String project, String location, String phoneNumber)

public static String formatProjectLocationPhoneNumberName(String project, String location, String phoneNumber)
Parameters
Name Description
project String
location String
phoneNumber String
Returns
Type Description
String

formatProjectPhoneNumberName(String project, String phoneNumber)

public static String formatProjectPhoneNumberName(String project, String phoneNumber)
Parameters
Name Description
project String
phoneNumber 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 PhoneNumberName.Builder newBuilder()
Returns
Type Description
PhoneNumberName.Builder

newProjectLocationPhoneNumberBuilder()

public static PhoneNumberName.ProjectLocationPhoneNumberBuilder newProjectLocationPhoneNumberBuilder()
Returns
Type Description
PhoneNumberName.ProjectLocationPhoneNumberBuilder

newProjectPhoneNumberBuilder()

public static PhoneNumberName.Builder newProjectPhoneNumberBuilder()
Returns
Type Description
PhoneNumberName.Builder

of(String project, String phoneNumber)

public static PhoneNumberName of(String project, String phoneNumber)
Parameters
Name Description
project String
phoneNumber String
Returns
Type Description
PhoneNumberName

ofProjectLocationPhoneNumberName(String project, String location, String phoneNumber)

public static PhoneNumberName ofProjectLocationPhoneNumberName(String project, String location, String phoneNumber)
Parameters
Name Description
project String
location String
phoneNumber String
Returns
Type Description
PhoneNumberName

ofProjectPhoneNumberName(String project, String phoneNumber)

public static PhoneNumberName ofProjectPhoneNumberName(String project, String phoneNumber)
Parameters
Name Description
project String
phoneNumber String
Returns
Type Description
PhoneNumberName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<PhoneNumberName> values)

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

Constructors

PhoneNumberName() (deprecated)

protected PhoneNumberName()

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

getPhoneNumber()

public String getPhoneNumber()
Returns
Type Description
String

getProject()

public String getProject()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
Type Description
String
Overrides