Class KnowledgeBaseName (4.7.0)

public class KnowledgeBaseName implements ResourceName

Inheritance

Object > KnowledgeBaseName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String knowledgeBase)

public static String format(String project, String knowledgeBase)
Parameters
NameDescription
projectString
knowledgeBaseString
Returns
TypeDescription
String

formatProjectKnowledgeBaseName(String project, String knowledgeBase)

public static String formatProjectKnowledgeBaseName(String project, String knowledgeBase)
Parameters
NameDescription
projectString
knowledgeBaseString
Returns
TypeDescription
String

formatProjectLocationKnowledgeBaseName(String project, String location, String knowledgeBase)

public static String formatProjectLocationKnowledgeBaseName(String project, String location, String knowledgeBase)
Parameters
NameDescription
projectString
locationString
knowledgeBaseString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

newProjectKnowledgeBaseBuilder()

public static KnowledgeBaseName.Builder newProjectKnowledgeBaseBuilder()
Returns
TypeDescription
KnowledgeBaseName.Builder

newProjectLocationKnowledgeBaseBuilder()

public static KnowledgeBaseName.ProjectLocationKnowledgeBaseBuilder newProjectLocationKnowledgeBaseBuilder()
Returns
TypeDescription
KnowledgeBaseName.ProjectLocationKnowledgeBaseBuilder

of(String project, String knowledgeBase)

public static KnowledgeBaseName of(String project, String knowledgeBase)
Parameters
NameDescription
projectString
knowledgeBaseString
Returns
TypeDescription
KnowledgeBaseName

ofProjectKnowledgeBaseName(String project, String knowledgeBase)

public static KnowledgeBaseName ofProjectKnowledgeBaseName(String project, String knowledgeBase)
Parameters
NameDescription
projectString
knowledgeBaseString
Returns
TypeDescription
KnowledgeBaseName

ofProjectLocationKnowledgeBaseName(String project, String location, String knowledgeBase)

public static KnowledgeBaseName ofProjectLocationKnowledgeBaseName(String project, String location, String knowledgeBase)
Parameters
NameDescription
projectString
locationString
knowledgeBaseString
Returns
TypeDescription
KnowledgeBaseName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<KnowledgeBaseName> values)

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

Constructors

KnowledgeBaseName()

protected KnowledgeBaseName()

Methods

equals(Object o)

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

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>

getKnowledgeBase()

public String getKnowledgeBase()
Returns
TypeDescription
String

getLocation()

public String getLocation()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides