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 Details

    • NETWORK_TYPE_UNSPECIFIED

      public static final Endpoint.NetworkType 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

      public static final Endpoint.NetworkType 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

      public static final Endpoint.NetworkType 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

      public static final Endpoint.NetworkType INTERNET
       Internet. Should be used for internet-routable external IP addresses or
       IP addresses for global Google APIs and services.
       
      INTERNET = 3;
    • UNRECOGNIZED

      public static final Endpoint.NetworkType UNRECOGNIZED
  • Field Details

    • NETWORK_TYPE_UNSPECIFIED_VALUE

      public static final int NETWORK_TYPE_UNSPECIFIED_VALUE
       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;
      See Also:
    • GCP_NETWORK_VALUE

      public static final int GCP_NETWORK_VALUE
       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;
      See Also:
    • NON_GCP_NETWORK_VALUE

      public static final int NON_GCP_NETWORK_VALUE
       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;
      See Also:
    • INTERNET_VALUE

      public static final int INTERNET_VALUE
       Internet. 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

      public static Endpoint.NetworkType[] 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 Endpoint.NetworkType 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 Endpoint.NetworkType 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 Endpoint.NetworkType 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<Endpoint.NetworkType> 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 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 name
      NullPointerException - if the argument is null