Class DocumentName (4.3.1)

public class DocumentName implements ResourceName

Inheritance

Object > DocumentName

Implements

com.google.api.resourcenames.ResourceName

Constructors

DocumentName()

protected DocumentName()

Methods

equals(Object o)

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

format(String project, String knowledgeBase, String document)

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

formatProjectKnowledgeBaseDocumentName(String project, String knowledgeBase, String document)

public static String formatProjectKnowledgeBaseDocumentName(String project, String knowledgeBase, String document)
Parameters
NameDescription
projectString
knowledgeBaseString
documentString
Returns
TypeDescription
String

formatProjectLocationKnowledgeBaseDocumentName(String project, String location, String knowledgeBase, String document)

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

getDocument()

public String getDocument()
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>

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

isParsableFrom(String formattedString)

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

newBuilder()

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

newProjectKnowledgeBaseDocumentBuilder()

public static DocumentName.Builder newProjectKnowledgeBaseDocumentBuilder()
Returns
TypeDescription
DocumentName.Builder

newProjectLocationKnowledgeBaseDocumentBuilder()

public static DocumentName.ProjectLocationKnowledgeBaseDocumentBuilder newProjectLocationKnowledgeBaseDocumentBuilder()
Returns
TypeDescription
DocumentName.ProjectLocationKnowledgeBaseDocumentBuilder

of(String project, String knowledgeBase, String document)

public static DocumentName of(String project, String knowledgeBase, String document)
Parameters
NameDescription
projectString
knowledgeBaseString
documentString
Returns
TypeDescription
DocumentName

ofProjectKnowledgeBaseDocumentName(String project, String knowledgeBase, String document)

public static DocumentName ofProjectKnowledgeBaseDocumentName(String project, String knowledgeBase, String document)
Parameters
NameDescription
projectString
knowledgeBaseString
documentString
Returns
TypeDescription
DocumentName

ofProjectLocationKnowledgeBaseDocumentName(String project, String location, String knowledgeBase, String document)

public static DocumentName ofProjectLocationKnowledgeBaseDocumentName(String project, String location, String knowledgeBase, String document)
Parameters
NameDescription
projectString
locationString
knowledgeBaseString
documentString
Returns
TypeDescription
DocumentName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides

toStringList(List<DocumentName> values)

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