@Generated(value="by gapic-generator-java") public class SessionName extends Object implements ResourceName
Modifier and Type | Class and Description |
---|---|
static class |
SessionName.Builder
Builder for projects/{project}/agent/sessions/{session}.
|
static class |
SessionName.ProjectEnvironmentUserSessionBuilder
Builder for
projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}.
|
static class |
SessionName.ProjectLocationEnvironmentUserSessionBuilder
Builder for
projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}.
|
static class |
SessionName.ProjectLocationSessionBuilder
Builder for projects/{project}/locations/{location}/agent/sessions/{session}.
|
Modifier | Constructor and Description |
---|---|
protected |
SessionName()
Deprecated.
|
@Deprecated protected SessionName()
public String getProject()
public String getSession()
public String getEnvironment()
public String getUser()
public String getLocation()
public static SessionName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static SessionName.Builder newProjectSessionBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static SessionName.ProjectEnvironmentUserSessionBuilder newProjectEnvironmentUserSessionBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static SessionName.ProjectLocationSessionBuilder newProjectLocationSessionBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static SessionName.ProjectLocationEnvironmentUserSessionBuilder newProjectLocationEnvironmentUserSessionBuilder()
public SessionName.Builder toBuilder()
public static SessionName of(String project, String session)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static SessionName ofProjectSessionName(String project, String session)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static SessionName ofProjectEnvironmentUserSessionName(String project, String environment, String user, String session)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static SessionName ofProjectLocationSessionName(String project, String location, String session)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static SessionName ofProjectLocationEnvironmentUserSessionName(String project, String location, String environment, String user, String session)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectSessionName(String project, String session)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectEnvironmentUserSessionName(String project, String environment, String user, String session)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationSessionName(String project, String location, String session)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationEnvironmentUserSessionName(String project, String location, String environment, String user, String session)
public static SessionName parse(String formattedString)
public static List<SessionName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<SessionName> 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.