Package com.google.cloudbuild.v1
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionA Bitbucket Server-hosted repo.A Google Cloud Source Repositories-hosted repo.A GitHub-hosted repo not necessarily on "github.com" (i.e.A GitLab-hosted repo.The default, unknown repo type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA Bitbucket Server-hosted repo.static final intA Google Cloud Source Repositories-hosted repo.static final intA GitHub-hosted repo not necessarily on "github.com" (i.e.static final intA GitLab-hosted repo.static final intThe default, unknown repo type. -
Method Summary
Modifier and TypeMethodDescriptionstatic GitFileSource.RepoTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<GitFileSource.RepoType>static GitFileSource.RepoTypevalueOf(int value) Deprecated.static GitFileSource.RepoTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static GitFileSource.RepoTypeReturns the enum constant of this type with the specified name.static GitFileSource.RepoType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The default, unknown repo type. Don't use it, instead use one of the other repo types.
UNKNOWN = 0; -
CLOUD_SOURCE_REPOSITORIES
A Google Cloud Source Repositories-hosted repo.
CLOUD_SOURCE_REPOSITORIES = 1; -
GITHUB
A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub Enterprise).
GITHUB = 2; -
BITBUCKET_SERVER
A Bitbucket Server-hosted repo.
BITBUCKET_SERVER = 3; -
GITLAB
A GitLab-hosted repo.
GITLAB = 4; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe 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_VALUEA Google Cloud Source Repositories-hosted repo.
CLOUD_SOURCE_REPOSITORIES = 1;- See Also:
-
GITHUB_VALUE
public static final int GITHUB_VALUEA 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_VALUEA Bitbucket Server-hosted repo.
BITBUCKET_SERVER = 3;- See Also:
-
GITLAB_VALUE
public static final int GITLAB_VALUEA GitLab-hosted repo.
GITLAB = 4;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-