Enum Gateway.RoutingMode

java.lang.Object
java.lang.Enum<Gateway.RoutingMode>
com.google.cloud.networkservices.v1.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_MODE
 
Protobuf enum google.cloud.networkservices.v1.Gateway.RoutingMode
  • Enum Constant Details

    • EXPLICIT_ROUTING_MODE

      public static final Gateway.RoutingMode 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

      public static final Gateway.RoutingMode 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

      public static final Gateway.RoutingMode UNRECOGNIZED
  • Field Details

    • EXPLICIT_ROUTING_MODE_VALUE

      public static final int EXPLICIT_ROUTING_MODE_VALUE
       The 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_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static Gateway.RoutingMode[] 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

      public static Gateway.RoutingMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Gateway.RoutingMode valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Gateway.RoutingMode forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Gateway.RoutingMode> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Gateway.RoutingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null