Enum GitFileSource.RepoType

java.lang.Object
java.lang.Enum<GitFileSource.RepoType>
com.google.cloudbuild.v1.GitFileSource.RepoType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<GitFileSource.RepoType>
Enclosing class:
GitFileSource

public static enum GitFileSource.RepoType extends Enum<GitFileSource.RepoType> implements com.google.protobuf.ProtocolMessageEnum
 The type of the repo, since it may not be explicit from the `repo` field
 (e.g from a URL).
 
Protobuf enum google.devtools.cloudbuild.v1.GitFileSource.RepoType
  • Enum Constant Details

    • UNKNOWN

      public static final GitFileSource.RepoType UNKNOWN
       The default, unknown repo type. Don't use it, instead use one of
       the other repo types.
       
      UNKNOWN = 0;
    • CLOUD_SOURCE_REPOSITORIES

      public static final GitFileSource.RepoType CLOUD_SOURCE_REPOSITORIES
       A Google Cloud Source Repositories-hosted repo.
       
      CLOUD_SOURCE_REPOSITORIES = 1;
    • GITHUB

      public static final GitFileSource.RepoType GITHUB
       A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub
       Enterprise).
       
      GITHUB = 2;
    • BITBUCKET_SERVER

      public static final GitFileSource.RepoType BITBUCKET_SERVER
       A Bitbucket Server-hosted repo.
       
      BITBUCKET_SERVER = 3;
    • GITLAB

      public static final GitFileSource.RepoType GITLAB
       A GitLab-hosted repo.
       
      GITLAB = 4;
    • UNRECOGNIZED

      public static final GitFileSource.RepoType UNRECOGNIZED
  • Field Details

    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
       The default, unknown repo type. Don't use it, instead use one of
       the other repo types.
       
      UNKNOWN = 0;
      See Also:
    • CLOUD_SOURCE_REPOSITORIES_VALUE

      public static final int CLOUD_SOURCE_REPOSITORIES_VALUE
       A Google Cloud Source Repositories-hosted repo.
       
      CLOUD_SOURCE_REPOSITORIES = 1;
      See Also:
    • GITHUB_VALUE

      public static final int GITHUB_VALUE
       A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub
       Enterprise).
       
      GITHUB = 2;
      See Also:
    • BITBUCKET_SERVER_VALUE

      public static final int BITBUCKET_SERVER_VALUE
       A Bitbucket Server-hosted repo.
       
      BITBUCKET_SERVER = 3;
      See Also:
    • GITLAB_VALUE

      public static final int GITLAB_VALUE
       A GitLab-hosted repo.
       
      GITLAB = 4;
      See Also:
  • Method Details

    • values

      public static GitFileSource.RepoType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GitFileSource.RepoType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static GitFileSource.RepoType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static GitFileSource.RepoType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<GitFileSource.RepoType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static GitFileSource.RepoType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null