Package com.buildless.telemetry
Enum Class HttpVersion
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<HttpVersion>,Constable
public enum HttpVersion
extends Enum<HttpVersion>
implements com.google.protobuf.ProtocolMessageEnum
## HTTP Version Enumerates known/supported HTTP protocol versions.Protobuf enum
buildless.telemetry.HttpVersion-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies HTTP/1.0.Specifies HTTP/1.1.Specifies HTTP/2.Specifies HTTP/3 (QUIC).Specifies an unknown or un-recognized HTTP protocol version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSpecifies HTTP/1.0.static final intSpecifies HTTP/1.1.static final intSpecifies HTTP/2.static final intSpecifies HTTP/3 (QUIC).static final intSpecifies an unknown or un-recognized HTTP protocol version. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpVersionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<HttpVersion>static HttpVersionvalueOf(int value) Deprecated.static HttpVersionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static HttpVersionReturns the enum constant of this class with the specified name.static HttpVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN_HTTP_VERSION
Specifies an unknown or un-recognized HTTP protocol version.
UNKNOWN_HTTP_VERSION = 0; -
HTTP_1_0
Specifies HTTP/1.0.
HTTP_1_0 = 1; -
HTTP_1_1
Specifies HTTP/1.1.
HTTP_1_1 = 2; -
HTTP_2
Specifies HTTP/2.
HTTP_2 = 3; -
HTTP_3
Specifies HTTP/3 (QUIC).
HTTP_3 = 4; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_HTTP_VERSION_VALUE
public static final int UNKNOWN_HTTP_VERSION_VALUESpecifies an unknown or un-recognized HTTP protocol version.
UNKNOWN_HTTP_VERSION = 0;- See Also:
-
HTTP_1_0_VALUE
public static final int HTTP_1_0_VALUESpecifies HTTP/1.0.
HTTP_1_0 = 1;- See Also:
-
HTTP_1_1_VALUE
public static final int HTTP_1_1_VALUESpecifies HTTP/1.1.
HTTP_1_1 = 2;- See Also:
-
HTTP_2_VALUE
public static final int HTTP_2_VALUESpecifies HTTP/2.
HTTP_2 = 3;- See Also:
-
HTTP_3_VALUE
public static final int HTTP_3_VALUESpecifies HTTP/3 (QUIC).
HTTP_3 = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-