public enum TrafficDirection extends Enum<TrafficDirection> implements com.google.protobuf.ProtocolMessageEnum
Identifies the direction of the traffic relative to the local Envoy.Protobuf enum
envoy.config.core.v3.TrafficDirection
Enum Constant and Description |
---|
INBOUND
The transport is used for incoming traffic.
|
OUTBOUND
The transport is used for outgoing traffic.
|
UNRECOGNIZED |
UNSPECIFIED
Default option is unspecified.
|
Modifier and Type | Field and Description |
---|---|
static int |
INBOUND_VALUE
The transport is used for incoming traffic.
|
static int |
OUTBOUND_VALUE
The transport is used for outgoing traffic.
|
static int |
UNSPECIFIED_VALUE
Default option is unspecified.
|
Modifier and Type | Method and Description |
---|---|
static TrafficDirection |
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<TrafficDirection> |
internalGetValueMap() |
static TrafficDirection |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TrafficDirection |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TrafficDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrafficDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficDirection UNSPECIFIED
Default option is unspecified.
UNSPECIFIED = 0;
public static final TrafficDirection INBOUND
The transport is used for incoming traffic.
INBOUND = 1;
public static final TrafficDirection OUTBOUND
The transport is used for outgoing traffic.
OUTBOUND = 2;
public static final TrafficDirection UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
Default option is unspecified.
UNSPECIFIED = 0;
public static final int INBOUND_VALUE
The transport is used for incoming traffic.
INBOUND = 1;
public static final int OUTBOUND_VALUE
The transport is used for outgoing traffic.
OUTBOUND = 2;
public static TrafficDirection[] values()
for (TrafficDirection c : TrafficDirection.values()) System.out.println(c);
public static TrafficDirection 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
@Deprecated public static TrafficDirection valueOf(int value)
forNumber(int)
instead.public static TrafficDirection forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<TrafficDirection> 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 TrafficDirection valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.