Enum Endpoint.NetworkType
java.lang.Object
java.lang.Enum<Endpoint.NetworkType>
com.google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Endpoint.NetworkType>
- Enclosing class:
- Endpoint
public static enum Endpoint.NetworkType
extends Enum<Endpoint.NetworkType>
implements com.google.protobuf.ProtocolMessageEnum
The type of the network of the IP address endpoint. Relevant for the source IP address endpoints.Protobuf enum
google.cloud.networkmanagement.v1beta1.Endpoint.NetworkType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA VPC network.Internet.Unspecified.A non-GCP network (for example, an on-premises network or another cloud provider network). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA VPC network.static final intInternet.static final intUnspecified.static final intA non-GCP network (for example, an on-premises network or another cloud provider network). -
Method Summary
Modifier and TypeMethodDescriptionstatic Endpoint.NetworkTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Endpoint.NetworkType>static Endpoint.NetworkTypevalueOf(int value) Deprecated.static Endpoint.NetworkTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Endpoint.NetworkTypeReturns the enum constant of this type with the specified name.static Endpoint.NetworkType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NETWORK_TYPE_UNSPECIFIED
Unspecified. The test will analyze all possible IP address locations. This might take longer and produce inaccurate or ambiguous results, so prefer specifying an explicit network type. The `project_id` field should be set to the project where the GCP endpoint is located, or where the non-GCP endpoint should be reachable from (via routes to non-GCP networks). The project might also be inferred from the Connectivity Test project or other projects referenced in the request.
NETWORK_TYPE_UNSPECIFIED = 0; -
GCP_NETWORK
A VPC network. Should be used for internal IP addresses in VPC networks. The `network` field should be set to the URI of this network. Only endpoints within this network will be considered.
GCP_NETWORK = 1; -
NON_GCP_NETWORK
A non-GCP network (for example, an on-premises network or another cloud provider network). Should be used for internal IP addresses outside of Google Cloud. The `network` field should be set to the URI of the VPC network containing a corresponding Cloud VPN tunnel, Cloud Interconnect VLAN attachment, or a router appliance instance. Only endpoints reachable from the provided VPC network via the routes to non-GCP networks will be considered.
NON_GCP_NETWORK = 2; -
INTERNET
Internet. Should be used for internet-routable external IP addresses or IP addresses for global Google APIs and services.
INTERNET = 3; -
UNRECOGNIZED
-
-
Field Details
-
NETWORK_TYPE_UNSPECIFIED_VALUE
public static final int NETWORK_TYPE_UNSPECIFIED_VALUEUnspecified. The test will analyze all possible IP address locations. This might take longer and produce inaccurate or ambiguous results, so prefer specifying an explicit network type. The `project_id` field should be set to the project where the GCP endpoint is located, or where the non-GCP endpoint should be reachable from (via routes to non-GCP networks). The project might also be inferred from the Connectivity Test project or other projects referenced in the request.
NETWORK_TYPE_UNSPECIFIED = 0;- See Also:
-
GCP_NETWORK_VALUE
public static final int GCP_NETWORK_VALUEA VPC network. Should be used for internal IP addresses in VPC networks. The `network` field should be set to the URI of this network. Only endpoints within this network will be considered.
GCP_NETWORK = 1;- See Also:
-
NON_GCP_NETWORK_VALUE
public static final int NON_GCP_NETWORK_VALUEA non-GCP network (for example, an on-premises network or another cloud provider network). Should be used for internal IP addresses outside of Google Cloud. The `network` field should be set to the URI of the VPC network containing a corresponding Cloud VPN tunnel, Cloud Interconnect VLAN attachment, or a router appliance instance. Only endpoints reachable from the provided VPC network via the routes to non-GCP networks will be considered.
NON_GCP_NETWORK = 2;- See Also:
-
INTERNET_VALUE
public static final int INTERNET_VALUEInternet. Should be used for internet-routable external IP addresses or IP addresses for global Google APIs and services.
INTERNET = 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
public static Endpoint.NetworkType 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 nameNullPointerException- if the argument is null
-