Enum Connection.Protocol
- java.lang.Object
-
- java.lang.Enum<Connection.Protocol>
-
- com.google.cloud.securitycenter.v1.Connection.Protocol
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Connection.Protocol>
- Enclosing class:
- Connection
public static enum Connection.Protocol extends Enum<Connection.Protocol> implements com.google.protobuf.ProtocolMessageEnum
IANA Internet Protocol Number such as TCP(6) and UDP(17).
Protobuf enumgoogle.cloud.securitycenter.v1.Connection.Protocol
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ESPEncap Security Payload.GREGeneric Routing Encapsulation.ICMPInternet Control Message Protocol.PROTOCOL_UNSPECIFIEDUnspecified protocol (not HOPOPT).TCPTransmission Control Protocol.UDPUser Datagram Protocol.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intESP_VALUEEncap Security Payload.static intGRE_VALUEGeneric Routing Encapsulation.static intICMP_VALUEInternet Control Message Protocol.static intPROTOCOL_UNSPECIFIED_VALUEUnspecified protocol (not HOPOPT).static intTCP_VALUETransmission Control Protocol.static intUDP_VALUEUser Datagram Protocol.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Connection.ProtocolforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Connection.Protocol>internalGetValueMap()static Connection.ProtocolvalueOf(int value)Deprecated.static Connection.ProtocolvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Connection.ProtocolvalueOf(String name)Returns the enum constant of this type with the specified name.static Connection.Protocol[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROTOCOL_UNSPECIFIED
public static final Connection.Protocol PROTOCOL_UNSPECIFIED
Unspecified protocol (not HOPOPT).
PROTOCOL_UNSPECIFIED = 0;
-
ICMP
public static final Connection.Protocol ICMP
Internet Control Message Protocol.
ICMP = 1;
-
TCP
public static final Connection.Protocol TCP
Transmission Control Protocol.
TCP = 6;
-
UDP
public static final Connection.Protocol UDP
User Datagram Protocol.
UDP = 17;
-
GRE
public static final Connection.Protocol GRE
Generic Routing Encapsulation.
GRE = 47;
-
ESP
public static final Connection.Protocol ESP
Encap Security Payload.
ESP = 50;
-
UNRECOGNIZED
public static final Connection.Protocol UNRECOGNIZED
-
-
Field Detail
-
PROTOCOL_UNSPECIFIED_VALUE
public static final int PROTOCOL_UNSPECIFIED_VALUE
Unspecified protocol (not HOPOPT).
PROTOCOL_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
ICMP_VALUE
public static final int ICMP_VALUE
Internet Control Message Protocol.
ICMP = 1;- See Also:
- Constant Field Values
-
TCP_VALUE
public static final int TCP_VALUE
Transmission Control Protocol.
TCP = 6;- See Also:
- Constant Field Values
-
UDP_VALUE
public static final int UDP_VALUE
User Datagram Protocol.
UDP = 17;- See Also:
- Constant Field Values
-
GRE_VALUE
public static final int GRE_VALUE
Generic Routing Encapsulation.
GRE = 47;- See Also:
- Constant Field Values
-
ESP_VALUE
public static final int ESP_VALUE
Encap Security Payload.
ESP = 50;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Connection.Protocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Connection.Protocol c : Connection.Protocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Connection.Protocol 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 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 public static Connection.Protocol 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 nameNullPointerException- if the argument is null
-
forNumber
public static Connection.Protocol 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<Connection.Protocol> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Connection.Protocol 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
-
-