@Generated(value="by gapic-generator-java") public class KnowledgeBaseName extends Object implements ResourceName
Modifier and Type | Class and Description |
---|---|
static class |
KnowledgeBaseName.Builder
Builder for projects/{project}/knowledgeBases/{knowledge_base}.
|
static class |
KnowledgeBaseName.ProjectLocationKnowledgeBaseBuilder
Builder for projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}.
|
Modifier | Constructor and Description |
---|---|
protected |
KnowledgeBaseName()
Deprecated.
|
@Deprecated protected KnowledgeBaseName()
public String getProject()
public String getKnowledgeBase()
public String getLocation()
public static KnowledgeBaseName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static KnowledgeBaseName.Builder newProjectKnowledgeBaseBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static KnowledgeBaseName.ProjectLocationKnowledgeBaseBuilder newProjectLocationKnowledgeBaseBuilder()
public KnowledgeBaseName.Builder toBuilder()
public static KnowledgeBaseName of(String project, String knowledgeBase)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static KnowledgeBaseName ofProjectKnowledgeBaseName(String project, String knowledgeBase)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static KnowledgeBaseName ofProjectLocationKnowledgeBaseName(String project, String location, String knowledgeBase)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectKnowledgeBaseName(String project, String knowledgeBase)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationKnowledgeBaseName(String project, String location, String knowledgeBase)
public static KnowledgeBaseName parse(String formattedString)
public static List<KnowledgeBaseName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<KnowledgeBaseName> values)
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
getFieldValuesMap
in interface ResourceName
public String getFieldValue(String fieldName)
getFieldValue
in interface ResourceName
Copyright © 2022 Google LLC. All rights reserved.