@Generated(value="by gapic-generator-java") public class ContextName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and 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}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ContextName()
Deprecated.
|
@Deprecated protected ContextName()
public String getProject()
public String getSession()
public String getContext()
public String getEnvironment()
public String getUser()
public String getLocation()
public static ContextName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.Builder newProjectSessionContextBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.ProjectEnvironmentUserSessionContextBuilder newProjectEnvironmentUserSessionContextBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.ProjectLocationSessionContextBuilder newProjectLocationSessionContextBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ContextName.ProjectLocationEnvironmentUserSessionContextBuilder newProjectLocationEnvironmentUserSessionContextBuilder()
public ContextName.Builder toBuilder()
public static ContextName of(String project, String session, String context)
@BetaApi(value="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)
@BetaApi(value="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)
@BetaApi(value="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)
@BetaApi(value="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)
@BetaApi(value="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)
@BetaApi(value="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)
@BetaApi(value="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)
@BetaApi(value="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)
public static ContextName parse(String formattedString)
public static List<ContextName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<ContextName> 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.