Class 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
    • 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()
      • newProjectSessionContextBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static ContextName.Builder newProjectSessionContextBuilder()
      • 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)
      • isParsableFrom

        public static boolean isParsableFrom​(String formattedString)
      • getFieldValuesMap

        public Map<String,​String> getFieldValuesMap()
        Specified by:
        getFieldValuesMap in interface com.google.api.resourcenames.ResourceName
      • getFieldValue

        public String getFieldValue​(String fieldName)
        Specified by:
        getFieldValue in interface com.google.api.resourcenames.ResourceName
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object