public static enum ClientNamenodeProtocolProtos.CreateFlagProto extends Enum<ClientNamenodeProtocolProtos.CreateFlagProto> implements com.google.protobuf.ProtocolMessageEnum
hadoop.hdfs.CreateFlagProto
Enum Constant and Description |
---|
APPEND
APPEND = 4; |
CREATE
CREATE = 1; |
OVERWRITE
OVERWRITE = 2; |
Modifier and Type | Field and Description |
---|---|
static int |
APPEND_VALUE
APPEND = 4; |
static int |
CREATE_VALUE
CREATE = 1; |
static int |
OVERWRITE_VALUE
OVERWRITE = 2; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ClientNamenodeProtocolProtos.CreateFlagProto> |
internalGetValueMap() |
static ClientNamenodeProtocolProtos.CreateFlagProto |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ClientNamenodeProtocolProtos.CreateFlagProto |
valueOf(int value) |
static ClientNamenodeProtocolProtos.CreateFlagProto |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientNamenodeProtocolProtos.CreateFlagProto[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientNamenodeProtocolProtos.CreateFlagProto CREATE
CREATE = 1;
Create a file
public static final ClientNamenodeProtocolProtos.CreateFlagProto OVERWRITE
OVERWRITE = 2;
Truncate/overwrite a file. Same as POSIX O_TRUNC
public static final ClientNamenodeProtocolProtos.CreateFlagProto APPEND
APPEND = 4;
Append to a file
public static final int CREATE_VALUE
CREATE = 1;
Create a file
public static final int OVERWRITE_VALUE
OVERWRITE = 2;
Truncate/overwrite a file. Same as POSIX O_TRUNC
public static final int APPEND_VALUE
APPEND = 4;
Append to a file
public static ClientNamenodeProtocolProtos.CreateFlagProto[] values()
for (ClientNamenodeProtocolProtos.CreateFlagProto c : ClientNamenodeProtocolProtos.CreateFlagProto.values()) System.out.println(c);
public static ClientNamenodeProtocolProtos.CreateFlagProto valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static ClientNamenodeProtocolProtos.CreateFlagProto valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ClientNamenodeProtocolProtos.CreateFlagProto> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ClientNamenodeProtocolProtos.CreateFlagProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2013 Apache Software Foundation. All rights reserved.