Class AgentName (4.3.1)

public class AgentName implements ResourceName

Inheritance

Object > AgentName

Implements

com.google.api.resourcenames.ResourceName

Constructors

AgentName()

protected AgentName()

Methods

equals(Object o)

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

format(String project)

public static String format(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
String

formatProjectAgentName(String project)

public static String formatProjectAgentName(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
String

formatProjectLocationAgentName(String project, String location)

public static String formatProjectLocationAgentName(String project, String location)
Parameters
NameDescription
projectString
locationString
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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isParsableFrom(String formattedString)

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

newBuilder()

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

newProjectAgentBuilder()

public static AgentName.Builder newProjectAgentBuilder()
Returns
TypeDescription
AgentName.Builder

newProjectLocationAgentBuilder()

public static AgentName.ProjectLocationAgentBuilder newProjectLocationAgentBuilder()
Returns
TypeDescription
AgentName.ProjectLocationAgentBuilder

of(String project)

public static AgentName of(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
AgentName

ofProjectAgentName(String project) (deprecated)

public static AgentName ofProjectAgentName(String project)

(deprecated) Please use #ofProjectName() instead

Parameter
NameDescription
projectString
Returns
TypeDescription
AgentName

ofProjectLocationAgentName(String project, String location) (deprecated)

public static AgentName ofProjectLocationAgentName(String project, String location)

(deprecated) Please use #ofProjectLocationName() instead

Parameters
NameDescription
projectString
locationString
Returns
TypeDescription
AgentName

ofProjectLocationName(String project, String location)

public static AgentName ofProjectLocationName(String project, String location)
Parameters
NameDescription
projectString
locationString
Returns
TypeDescription
AgentName

ofProjectName(String project)

public static AgentName ofProjectName(String project)
Parameter
NameDescription
projectString
Returns
TypeDescription
AgentName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides

toStringList(List<AgentName> values)

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