Enum Gateway.RoutingMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Gateway.RoutingMode>
- Enclosing class:
- Gateway
public static enum Gateway.RoutingMode
extends Enum<Gateway.RoutingMode>
implements com.google.protobuf.ProtocolMessageEnum
The routing mode of the Gateway, to determine how the Gateway routes traffic. Today, this field only applies to Gateways of type SECURE_WEB_GATEWAY. Possible values are: * EXPLICIT_ROUTING_MODE * NEXT_HOP_ROUTING_MODEProtobuf enum
google.cloud.networkservices.v1.Gateway.RoutingMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe routing mode is explicit; clients are configured to send traffic through the gateway.The routing mode is next-hop. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe routing mode is explicit; clients are configured to send traffic through the gateway.static final intThe routing mode is next-hop. -
Method Summary
Modifier and TypeMethodDescriptionstatic Gateway.RoutingModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Gateway.RoutingMode>static Gateway.RoutingModevalueOf(int value) Deprecated.static Gateway.RoutingModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Gateway.RoutingModeReturns the enum constant of this type with the specified name.static Gateway.RoutingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXPLICIT_ROUTING_MODE
The routing mode is explicit; clients are configured to send traffic through the gateway. This is the default routing mode.
EXPLICIT_ROUTING_MODE = 0; -
NEXT_HOP_ROUTING_MODE
The routing mode is next-hop. Clients are unaware of the gateway, and a route (advanced route or other route type) can be configured to direct traffic from client to gateway. The gateway then acts as a next-hop to the destination.
NEXT_HOP_ROUTING_MODE = 1; -
UNRECOGNIZED
-
-
Field Details
-
EXPLICIT_ROUTING_MODE_VALUE
public static final int EXPLICIT_ROUTING_MODE_VALUEThe routing mode is explicit; clients are configured to send traffic through the gateway. This is the default routing mode.
EXPLICIT_ROUTING_MODE = 0;- See Also:
-
NEXT_HOP_ROUTING_MODE_VALUE
public static final int NEXT_HOP_ROUTING_MODE_VALUEThe routing mode is next-hop. Clients are unaware of the gateway, and a route (advanced route or other route type) can be configured to direct traffic from client to gateway. The gateway then acts as a next-hop to the destination.
NEXT_HOP_ROUTING_MODE = 1;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-