Enum RouteInfo.RouteType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<RouteInfo.RouteType>
- Enclosing class:
- RouteInfo
public static enum RouteInfo.RouteType
extends Enum<RouteInfo.RouteType>
implements com.google.protobuf.ProtocolMessageEnum
Type of route:Protobuf enum
google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdvertised route.Dynamic route exchanged between BGP peers.A dynamic route received from peering network or NCC Hub.A static route received from peering network.A subnet route received from peering network or NCC Hub.Policy based route.Unspecified type.Static route created by the user, including the default route to the internet.Route is a subnet route automatically created by the system. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAdvertised route.static final intDynamic route exchanged between BGP peers.static final intA dynamic route received from peering network or NCC Hub.static final intA static route received from peering network.static final intA subnet route received from peering network or NCC Hub.static final intPolicy based route.static final intUnspecified type.static final intStatic route created by the user, including the default route to the internet.static final intRoute is a subnet route automatically created by the system. -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteInfo.RouteTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RouteInfo.RouteType>static RouteInfo.RouteTypevalueOf(int value) Deprecated.static RouteInfo.RouteTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RouteInfo.RouteTypeReturns the enum constant of this type with the specified name.static RouteInfo.RouteType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ROUTE_TYPE_UNSPECIFIED
Unspecified type. Default value.
ROUTE_TYPE_UNSPECIFIED = 0; -
SUBNET
Route is a subnet route automatically created by the system.
SUBNET = 1; -
STATIC
Static route created by the user, including the default route to the internet.
STATIC = 2; -
DYNAMIC
Dynamic route exchanged between BGP peers.
DYNAMIC = 3; -
PEERING_SUBNET
A subnet route received from peering network or NCC Hub.
PEERING_SUBNET = 4; -
PEERING_STATIC
A static route received from peering network.
PEERING_STATIC = 5; -
PEERING_DYNAMIC
A dynamic route received from peering network or NCC Hub.
PEERING_DYNAMIC = 6; -
POLICY_BASED
Policy based route.
POLICY_BASED = 7; -
ADVERTISED
Advertised route. Synthetic route which is used to transition from the StartFromPrivateNetwork state in Connectivity tests.
ADVERTISED = 101; -
UNRECOGNIZED
-
-
Field Details
-
ROUTE_TYPE_UNSPECIFIED_VALUE
public static final int ROUTE_TYPE_UNSPECIFIED_VALUEUnspecified type. Default value.
ROUTE_TYPE_UNSPECIFIED = 0;- See Also:
-
SUBNET_VALUE
public static final int SUBNET_VALUERoute is a subnet route automatically created by the system.
SUBNET = 1;- See Also:
-
STATIC_VALUE
public static final int STATIC_VALUEStatic route created by the user, including the default route to the internet.
STATIC = 2;- See Also:
-
DYNAMIC_VALUE
public static final int DYNAMIC_VALUEDynamic route exchanged between BGP peers.
DYNAMIC = 3;- See Also:
-
PEERING_SUBNET_VALUE
public static final int PEERING_SUBNET_VALUEA subnet route received from peering network or NCC Hub.
PEERING_SUBNET = 4;- See Also:
-
PEERING_STATIC_VALUE
public static final int PEERING_STATIC_VALUEA static route received from peering network.
PEERING_STATIC = 5;- See Also:
-
PEERING_DYNAMIC_VALUE
public static final int PEERING_DYNAMIC_VALUEA dynamic route received from peering network or NCC Hub.
PEERING_DYNAMIC = 6;- See Also:
-
POLICY_BASED_VALUE
public static final int POLICY_BASED_VALUEPolicy based route.
POLICY_BASED = 7;- See Also:
-
ADVERTISED_VALUE
public static final int ADVERTISED_VALUEAdvertised route. Synthetic route which is used to transition from the StartFromPrivateNetwork state in Connectivity tests.
ADVERTISED = 101;- 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
-