Package com.google.cloud.dialogflow.v2
Class ContextName
- java.lang.Object
-
- com.google.cloud.dialogflow.v2.ContextName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class ContextName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContextName.Builder
Builder for projects/{project}/agent/sessions/{session}/contexts/{context}.static class
ContextName.ProjectEnvironmentUserSessionContextBuilder
Builder for projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}.static class
ContextName.ProjectLocationEnvironmentUserSessionContextBuilder
Builder for projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}.static class
ContextName.ProjectLocationSessionContextBuilder
Builder for projects/{project}/locations/{location}/agent/sessions/{session}/contexts/{context}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContextName()
Deprecated.
-
Method Summary
-
-
-
Constructor Detail
-
ContextName
@Deprecated protected ContextName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getSession
public String getSession()
-
getContext
public String getContext()
-
getEnvironment
public String getEnvironment()
-
getUser
public String getUser()
-
getLocation
public String getLocation()
-
newBuilder
public static ContextName.Builder newBuilder()
-
newProjectSessionContextBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.Builder newProjectSessionContextBuilder()
-
newProjectEnvironmentUserSessionContextBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.ProjectEnvironmentUserSessionContextBuilder newProjectEnvironmentUserSessionContextBuilder()
-
newProjectLocationSessionContextBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.ProjectLocationSessionContextBuilder newProjectLocationSessionContextBuilder()
-
newProjectLocationEnvironmentUserSessionContextBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.ProjectLocationEnvironmentUserSessionContextBuilder newProjectLocationEnvironmentUserSessionContextBuilder()
-
toBuilder
public ContextName.Builder toBuilder()
-
of
public static ContextName of(String project, String session, String context)
-
ofProjectSessionContextName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static ContextName ofProjectSessionContextName(String project, String session, String context)
-
ofProjectEnvironmentUserSessionContextName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static ContextName ofProjectEnvironmentUserSessionContextName(String project, String environment, String user, String session, String context)
-
ofProjectLocationSessionContextName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static ContextName ofProjectLocationSessionContextName(String project, String location, String session, String context)
-
ofProjectLocationEnvironmentUserSessionContextName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static ContextName ofProjectLocationEnvironmentUserSessionContextName(String project, String location, String environment, String user, String session, String context)
-
formatProjectSessionContextName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectSessionContextName(String project, String session, String context)
-
formatProjectEnvironmentUserSessionContextName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectEnvironmentUserSessionContextName(String project, String environment, String user, String session, String context)
-
formatProjectLocationSessionContextName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationSessionContextName(String project, String location, String session, String context)
-
formatProjectLocationEnvironmentUserSessionContextName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationEnvironmentUserSessionContextName(String project, String location, String environment, String user, String session, String context)
-
parse
public static ContextName parse(String formattedString)
-
parseList
public static List<ContextName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<ContextName> values)
-
isParsableFrom
public static boolean isParsableFrom(String formattedString)
-
getFieldValuesMap
public Map<String,String> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValue
in interfacecom.google.api.resourcenames.ResourceName
-
-