Package com.google.cloud.apihub.v1
Enum AuthType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AuthType>
@Generated
public enum AuthType
extends Enum<AuthType>
implements com.google.protobuf.ProtocolMessageEnum
AuthType represents the authentication type.Protobuf enum
google.cloud.apihub.v1.AuthType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAPI Key authentication.Authentication type not specified.Google service account authentication.No authentication.Oauth 2.0 client credentials grant authentication.Username and password authentication. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAPI Key authentication.static final intAuthentication type not specified.static final intGoogle service account authentication.static final intNo authentication.static final intOauth 2.0 client credentials grant authentication.static final intUsername and password authentication. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AuthType>static AuthTypevalueOf(int value) Deprecated.static AuthTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static AuthTypeReturns the enum constant of this type with the specified name.static AuthType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTH_TYPE_UNSPECIFIED
Authentication type not specified.
AUTH_TYPE_UNSPECIFIED = 0; -
NO_AUTH
No authentication.
NO_AUTH = 1; -
GOOGLE_SERVICE_ACCOUNT
Google service account authentication.
GOOGLE_SERVICE_ACCOUNT = 2; -
USER_PASSWORD
Username and password authentication.
USER_PASSWORD = 3; -
API_KEY
API Key authentication.
API_KEY = 4; -
OAUTH2_CLIENT_CREDENTIALS
Oauth 2.0 client credentials grant authentication.
OAUTH2_CLIENT_CREDENTIALS = 5; -
UNRECOGNIZED
-
-
Field Details
-
AUTH_TYPE_UNSPECIFIED_VALUE
public static final int AUTH_TYPE_UNSPECIFIED_VALUEAuthentication type not specified.
AUTH_TYPE_UNSPECIFIED = 0;- See Also:
-
NO_AUTH_VALUE
public static final int NO_AUTH_VALUENo authentication.
NO_AUTH = 1;- See Also:
-
GOOGLE_SERVICE_ACCOUNT_VALUE
public static final int GOOGLE_SERVICE_ACCOUNT_VALUEGoogle service account authentication.
GOOGLE_SERVICE_ACCOUNT = 2;- See Also:
-
USER_PASSWORD_VALUE
public static final int USER_PASSWORD_VALUEUsername and password authentication.
USER_PASSWORD = 3;- See Also:
-
API_KEY_VALUE
public static final int API_KEY_VALUEAPI Key authentication.
API_KEY = 4;- See Also:
-
OAUTH2_CLIENT_CREDENTIALS_VALUE
public static final int OAUTH2_CLIENT_CREDENTIALS_VALUEOauth 2.0 client credentials grant authentication.
OAUTH2_CLIENT_CREDENTIALS = 5;- 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
-
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
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
-