public static enum Protos.NetworkInfo.Protocol extends Enum<Protos.NetworkInfo.Protocol> implements com.google.protobuf.ProtocolMessageEnum
mesos.v1.NetworkInfo.Protocol
Modifier and Type | Field and Description |
---|---|
static int |
IPv4_VALUE
IPv4 = 1; |
static int |
IPv6_VALUE
IPv6 = 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<Protos.NetworkInfo.Protocol> |
internalGetValueMap() |
static Protos.NetworkInfo.Protocol |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.NetworkInfo.Protocol |
valueOf(int value) |
static Protos.NetworkInfo.Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protos.NetworkInfo.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.NetworkInfo.Protocol IPv4
IPv4 = 1;
public static final Protos.NetworkInfo.Protocol IPv6
IPv6 = 2;
public static final int IPv4_VALUE
IPv4 = 1;
public static final int IPv6_VALUE
IPv6 = 2;
public static Protos.NetworkInfo.Protocol[] values()
for (Protos.NetworkInfo.Protocol c : Protos.NetworkInfo.Protocol.values()) System.out.println(c);
public static Protos.NetworkInfo.Protocol 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 Protos.NetworkInfo.Protocol valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.NetworkInfo.Protocol> 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 Protos.NetworkInfo.Protocol valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.