Class ServiceName

  • All Implemented Interfaces:
    com.google.api.resourcenames.ResourceName

    @Generated("by gapic-generator-java")
    public class ServiceName
    extends Object
    implements com.google.api.resourcenames.ResourceName
    • Constructor Detail

      • ServiceName

        @Deprecated
        protected ServiceName()
        Deprecated.
    • Method Detail

      • getProject

        public String getProject()
      • getService

        public String getService()
      • getOrganization

        public String getOrganization()
      • getFolder

        public String getFolder()
      • newProjectServiceBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static ServiceName.Builder newProjectServiceBuilder()
      • newOrganizationServiceBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static ServiceName.OrganizationServiceBuilder newOrganizationServiceBuilder()
      • newFolderServiceBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static ServiceName.FolderServiceBuilder newFolderServiceBuilder()
      • ofProjectServiceName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static ServiceName ofProjectServiceName​(String project,
                                                       String service)
      • ofOrganizationServiceName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static ServiceName ofOrganizationServiceName​(String organization,
                                                            String service)
      • ofFolderServiceName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static ServiceName ofFolderServiceName​(String folder,
                                                      String service)
      • formatProjectServiceName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatProjectServiceName​(String project,
                                                      String service)
      • formatOrganizationServiceName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatOrganizationServiceName​(String organization,
                                                           String service)
      • formatFolderServiceName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatFolderServiceName​(String folder,
                                                     String service)
      • 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