Package io.grpc.observabilitylog.v1
Enum Address.Type
- java.lang.Object
-
- java.lang.Enum<Address.Type>
-
- io.grpc.observabilitylog.v1.Address.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Address.Type>
- Enclosing class:
- Address
public static enum Address.Type extends java.lang.Enum<Address.Type> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumgrpc.observabilitylog.v1.Address.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IPV4in 1.2.3.4 formIPV6IPv6 canonical form (RFC5952 section 4)TYPE_UNKNOWNTYPE_UNKNOWN = 0;UNIXUDS stringUNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intIPV4_VALUEin 1.2.3.4 formstatic intIPV6_VALUEIPv6 canonical form (RFC5952 section 4)static intTYPE_UNKNOWN_VALUETYPE_UNKNOWN = 0;static intUNIX_VALUEUDS string
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Address.TypeforNumber(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<Address.Type>internalGetValueMap()static Address.TypevalueOf(int value)Deprecated.static Address.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Address.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Address.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_UNKNOWN
public static final Address.Type TYPE_UNKNOWN
TYPE_UNKNOWN = 0;
-
IPV4
public static final Address.Type IPV4
in 1.2.3.4 form
IPV4 = 1;
-
IPV6
public static final Address.Type IPV6
IPv6 canonical form (RFC5952 section 4)
IPV6 = 2;
-
UNIX
public static final Address.Type UNIX
UDS string
UNIX = 3;
-
UNRECOGNIZED
public static final Address.Type UNRECOGNIZED
-
-
Field Detail
-
TYPE_UNKNOWN_VALUE
public static final int TYPE_UNKNOWN_VALUE
TYPE_UNKNOWN = 0;- See Also:
- Constant Field Values
-
IPV4_VALUE
public static final int IPV4_VALUE
in 1.2.3.4 form
IPV4 = 1;- See Also:
- Constant Field Values
-
IPV6_VALUE
public static final int IPV6_VALUE
IPv6 canonical form (RFC5952 section 4)
IPV6 = 2;- See Also:
- Constant Field Values
-
UNIX_VALUE
public static final int UNIX_VALUE
UDS string
UNIX = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Address.Type[] 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 (Address.Type c : Address.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Address.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 Address.Type 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static Address.Type 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<Address.Type> 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 Address.Type 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-