public static enum SocketAddress.PortSpecifierCase extends Enum<SocketAddress.PortSpecifierCase> implements com.google.protobuf.Internal.EnumLite
| Enum Constant and Description |
|---|
NAMED_PORT |
PORT_VALUE |
PORTSPECIFIER_NOT_SET |
| Modifier and Type | Method and Description |
|---|---|
static SocketAddress.PortSpecifierCase |
forNumber(int value) |
int |
getNumber() |
static SocketAddress.PortSpecifierCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SocketAddress.PortSpecifierCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketAddress.PortSpecifierCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketAddress.PortSpecifierCase PORT_VALUE
public static final SocketAddress.PortSpecifierCase NAMED_PORT
public static final SocketAddress.PortSpecifierCase PORTSPECIFIER_NOT_SET
public static SocketAddress.PortSpecifierCase[] values()
for (SocketAddress.PortSpecifierCase c : SocketAddress.PortSpecifierCase.values()) System.out.println(c);
public static SocketAddress.PortSpecifierCase 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 null@Deprecated public static SocketAddress.PortSpecifierCase valueOf(int value)
forNumber(int) instead.public static SocketAddress.PortSpecifierCase forNumber(int value)
public int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLiteCopyright © 2018–2021 The Envoy Project. All rights reserved.