@Generated(value="by gapic-generator-java") public class DocumentName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentName.Builder
Builder for projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.
|
static class |
DocumentName.ProjectLocationKnowledgeBaseDocumentBuilder
Builder for
projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DocumentName()
Deprecated.
|
@Deprecated protected DocumentName()
public String getProject()
public String getKnowledgeBase()
public String getDocument()
public String getLocation()
public static DocumentName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static DocumentName.Builder newProjectKnowledgeBaseDocumentBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static DocumentName.ProjectLocationKnowledgeBaseDocumentBuilder newProjectLocationKnowledgeBaseDocumentBuilder()
public DocumentName.Builder toBuilder()
public static DocumentName of(String project, String knowledgeBase, String document)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static DocumentName ofProjectKnowledgeBaseDocumentName(String project, String knowledgeBase, String document)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static DocumentName ofProjectLocationKnowledgeBaseDocumentName(String project, String location, String knowledgeBase, String document)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectKnowledgeBaseDocumentName(String project, String knowledgeBase, String document)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationKnowledgeBaseDocumentName(String project, String location, String knowledgeBase, String document)
public static DocumentName parse(String formattedString)
public static List<DocumentName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<DocumentName> values)
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
getFieldValuesMap in interface com.google.api.resourcenames.ResourceNamepublic String getFieldValue(String fieldName)
getFieldValue in interface com.google.api.resourcenames.ResourceNameCopyright © 2023 Google LLC. All rights reserved.