public static enum NetworkConnection.State extends Enum<NetworkConnection.State> implements com.google.protobuf.ProtocolMessageEnum
Network connection state.Protobuf enum
google.cloud.migrationcenter.v1.NetworkConnection.State| Enum Constant and Description |
|---|
CLOSED
The connection is closed.
|
CLOSING
The connection is being closed.
|
LISTEN
Listening for incoming connections.
|
OPEN
The connection is open.
|
OPENING
The connection is being opened.
|
STATE_UNSPECIFIED
Connection state is unknown or unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSED_VALUE
The connection is closed.
|
static int |
CLOSING_VALUE
The connection is being closed.
|
static int |
LISTEN_VALUE
Listening for incoming connections.
|
static int |
OPEN_VALUE
The connection is open.
|
static int |
OPENING_VALUE
The connection is being opened.
|
static int |
STATE_UNSPECIFIED_VALUE
Connection state is unknown or unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static NetworkConnection.State |
forNumber(int value) |
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<NetworkConnection.State> |
internalGetValueMap() |
static NetworkConnection.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static NetworkConnection.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static NetworkConnection.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkConnection.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkConnection.State STATE_UNSPECIFIED
Connection state is unknown or unspecified.
STATE_UNSPECIFIED = 0;public static final NetworkConnection.State OPENING
The connection is being opened.
OPENING = 1;public static final NetworkConnection.State OPEN
The connection is open.
OPEN = 2;public static final NetworkConnection.State LISTEN
Listening for incoming connections.
LISTEN = 3;public static final NetworkConnection.State CLOSING
The connection is being closed.
CLOSING = 4;public static final NetworkConnection.State CLOSED
The connection is closed.
CLOSED = 5;public static final NetworkConnection.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Connection state is unknown or unspecified.
STATE_UNSPECIFIED = 0;public static final int OPENING_VALUE
The connection is being opened.
OPENING = 1;public static final int OPEN_VALUE
The connection is open.
OPEN = 2;public static final int LISTEN_VALUE
Listening for incoming connections.
LISTEN = 3;public static final int CLOSING_VALUE
The connection is being closed.
CLOSING = 4;public static final int CLOSED_VALUE
The connection is closed.
CLOSED = 5;public static NetworkConnection.State[] values()
for (NetworkConnection.State c : NetworkConnection.State.values()) System.out.println(c);
public static NetworkConnection.State 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static NetworkConnection.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static NetworkConnection.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<NetworkConnection.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static NetworkConnection.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.