public static enum SetMasterAuthRequest.Action extends java.lang.Enum<SetMasterAuthRequest.Action> implements ProtocolMessageEnum
Operation type: what type update to perform.Protobuf enum
google.container.v1.SetMasterAuthRequest.Action
Enum Constant and Description |
---|
GENERATE_PASSWORD
Generate a new password and set it to that.
|
SET_PASSWORD
Set the password to a user generated value.
|
SET_USERNAME
Set the username.
|
UNKNOWN
Operation is unknown and will error out.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
GENERATE_PASSWORD_VALUE
Generate a new password and set it to that.
|
static int |
SET_PASSWORD_VALUE
Set the password to a user generated value.
|
static int |
SET_USERNAME_VALUE
Set the username.
|
static int |
UNKNOWN_VALUE
Operation is unknown and will error out.
|
Modifier and Type | Method and Description |
---|---|
static SetMasterAuthRequest.Action |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<SetMasterAuthRequest.Action> |
internalGetValueMap() |
static SetMasterAuthRequest.Action |
valueOf(Descriptors.EnumValueDescriptor desc) |
static SetMasterAuthRequest.Action |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SetMasterAuthRequest.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SetMasterAuthRequest.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SetMasterAuthRequest.Action UNKNOWN
Operation is unknown and will error out.
UNKNOWN = 0;
public static final SetMasterAuthRequest.Action SET_PASSWORD
Set the password to a user generated value.
SET_PASSWORD = 1;
public static final SetMasterAuthRequest.Action GENERATE_PASSWORD
Generate a new password and set it to that.
GENERATE_PASSWORD = 2;
public static final SetMasterAuthRequest.Action SET_USERNAME
Set the username. If an empty username is provided, basic authentication is disabled for the cluster. If a non-empty username is provided, basic authentication is enabled, with either a provided password or a generated one.
SET_USERNAME = 3;
public static final SetMasterAuthRequest.Action UNRECOGNIZED
public static final int UNKNOWN_VALUE
Operation is unknown and will error out.
UNKNOWN = 0;
public static final int SET_PASSWORD_VALUE
Set the password to a user generated value.
SET_PASSWORD = 1;
public static final int GENERATE_PASSWORD_VALUE
Generate a new password and set it to that.
GENERATE_PASSWORD = 2;
public static final int SET_USERNAME_VALUE
Set the username. If an empty username is provided, basic authentication is disabled for the cluster. If a non-empty username is provided, basic authentication is enabled, with either a provided password or a generated one.
SET_USERNAME = 3;
public static SetMasterAuthRequest.Action[] values()
for (SetMasterAuthRequest.Action c : SetMasterAuthRequest.Action.values()) System.out.println(c);
public static SetMasterAuthRequest.Action valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static SetMasterAuthRequest.Action valueOf(int value)
forNumber(int)
instead.public static SetMasterAuthRequest.Action forNumber(int value)
public static Internal.EnumLiteMap<SetMasterAuthRequest.Action> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static SetMasterAuthRequest.Action valueOf(Descriptors.EnumValueDescriptor desc)