Enum RouteType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<RouteType>
@Generated
public enum RouteType
extends Enum<RouteType>
implements com.google.protobuf.ProtocolMessageEnum
The route's typeProtobuf enum
google.cloud.networkconnectivity.v1beta.RouteType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe route leads to a destination in a dynamic route.No route type information specifiedThe route leads to a destination within the primary address range of the VPC network's subnet.The route leads to a destination within the secondary address range of the VPC network's subnet. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe route leads to a destination in a dynamic route.static final intNo route type information specifiedstatic final intThe route leads to a destination within the primary address range of the VPC network's subnet.static final intThe route leads to a destination within the secondary address range of the VPC network's subnet. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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<RouteType>static RouteTypevalueOf(int value) Deprecated.static RouteTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RouteTypeReturns the enum constant of this type with the specified name.static RouteType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ROUTE_TYPE_UNSPECIFIED
No route type information specified
ROUTE_TYPE_UNSPECIFIED = 0; -
VPC_PRIMARY_SUBNET
The route leads to a destination within the primary address range of the VPC network's subnet.
VPC_PRIMARY_SUBNET = 1; -
VPC_SECONDARY_SUBNET
The route leads to a destination within the secondary address range of the VPC network's subnet.
VPC_SECONDARY_SUBNET = 2; -
DYNAMIC_ROUTE
The route leads to a destination in a dynamic route. Dynamic routes are derived from Border Gateway Protocol (BGP) advertisements received from an NCC hybrid spoke.
DYNAMIC_ROUTE = 3; -
UNRECOGNIZED
-
-
Field Details
-
ROUTE_TYPE_UNSPECIFIED_VALUE
public static final int ROUTE_TYPE_UNSPECIFIED_VALUENo route type information specified
ROUTE_TYPE_UNSPECIFIED = 0;- See Also:
-
VPC_PRIMARY_SUBNET_VALUE
public static final int VPC_PRIMARY_SUBNET_VALUEThe route leads to a destination within the primary address range of the VPC network's subnet.
VPC_PRIMARY_SUBNET = 1;- See Also:
-
VPC_SECONDARY_SUBNET_VALUE
public static final int VPC_SECONDARY_SUBNET_VALUEThe route leads to a destination within the secondary address range of the VPC network's subnet.
VPC_SECONDARY_SUBNET = 2;- See Also:
-
DYNAMIC_ROUTE_VALUE
public static final int DYNAMIC_ROUTE_VALUEThe route leads to a destination in a dynamic route. Dynamic routes are derived from Border Gateway Protocol (BGP) advertisements received from an NCC hybrid spoke.
DYNAMIC_ROUTE = 3;- 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
-