public static enum Address.Type extends Enum<Address.Type> implements ProtocolMessageEnum
grpc.binarylog.v1.Address.Type| Enum Constant and Description |
|---|
TYPE_IPV4
address is in 1.2.3.4 form
|
TYPE_IPV6
address is in IPv6 canonical form (RFC5952 section 4)
The scope is NOT included in the address string.
|
TYPE_UNIX
address is UDS string
|
TYPE_UNKNOWN
TYPE_UNKNOWN = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_IPV4_VALUE
address is in 1.2.3.4 form
|
static int |
TYPE_IPV6_VALUE
address is in IPv6 canonical form (RFC5952 section 4)
The scope is NOT included in the address string.
|
static int |
TYPE_UNIX_VALUE
address is UDS string
|
static int |
TYPE_UNKNOWN_VALUE
TYPE_UNKNOWN = 0; |
| Modifier and Type | Method and Description |
|---|---|
static Address.Type |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Address.Type> |
internalGetValueMap() |
static Address.Type |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Address.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Address.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Address.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Address.Type TYPE_UNKNOWN
TYPE_UNKNOWN = 0;public static final Address.Type TYPE_IPV4
address is in 1.2.3.4 form
TYPE_IPV4 = 1;public static final Address.Type TYPE_IPV6
address is in IPv6 canonical form (RFC5952 section 4) The scope is NOT included in the address string.
TYPE_IPV6 = 2;public static final Address.Type TYPE_UNIX
address is UDS string
TYPE_UNIX = 3;public static final Address.Type UNRECOGNIZED
public static final int TYPE_UNKNOWN_VALUE
TYPE_UNKNOWN = 0;public static final int TYPE_IPV4_VALUE
address is in 1.2.3.4 form
TYPE_IPV4 = 1;public static final int TYPE_IPV6_VALUE
address is in IPv6 canonical form (RFC5952 section 4) The scope is NOT included in the address string.
TYPE_IPV6 = 2;public static final int TYPE_UNIX_VALUE
address is UDS string
TYPE_UNIX = 3;public static Address.Type[] values()
for (Address.Type c : Address.Type.values()) System.out.println(c);
public static Address.Type 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 Internal.EnumLitegetNumber in interface ProtocolMessageEnum@Deprecated public static Address.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Address.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Address.Type> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface ProtocolMessageEnumpublic final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface ProtocolMessageEnumpublic static final Descriptors.EnumDescriptor getDescriptor()
public static Address.Type valueOf(Descriptors.EnumValueDescriptor desc)