Package io.grpc.binarylog.v1
Enum Address.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Address.Type>
- Enclosing class:
Address
public static enum Address.Type
extends Enum<Address.Type>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
grpc.binarylog.v1.Address.Type
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionaddress is in 1.2.3.4 formaddress is in IPv6 canonical form (RFC5952 section 4) The scope is NOT included in the address string.address is UDS stringTYPE_UNKNOWN = 0;
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.protobuf.Internal.EnumLiteMap
<Address.Type> static final int
address is in 1.2.3.4 formstatic final int
address is in IPv6 canonical form (RFC5952 section 4) The scope is NOT included in the address string.static final int
address is UDS stringstatic final int
TYPE_UNKNOWN = 0;
private final int
private static final Address.Type[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Address.Type
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<Address.Type> static Address.Type
valueOf
(int value) Deprecated.static Address.Type
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Address.Type
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 Details
-
TYPE_UNKNOWN
TYPE_UNKNOWN = 0;
-
TYPE_IPV4
address is in 1.2.3.4 form
TYPE_IPV4 = 1;
-
TYPE_IPV6
address is in IPv6 canonical form (RFC5952 section 4) The scope is NOT included in the address string.
TYPE_IPV6 = 2;
-
TYPE_UNIX
address is UDS string
TYPE_UNIX = 3;
-
UNRECOGNIZED
-
-
Field Details
-
TYPE_UNKNOWN_VALUE
public static final int TYPE_UNKNOWN_VALUETYPE_UNKNOWN = 0;
- See Also:
-
TYPE_IPV4_VALUE
public static final int TYPE_IPV4_VALUEaddress is in 1.2.3.4 form
TYPE_IPV4 = 1;
- See Also:
-
TYPE_IPV6_VALUE
public static final int TYPE_IPV6_VALUEaddress is in IPv6 canonical form (RFC5952 section 4) The scope is NOT included in the address string.
TYPE_IPV6 = 2;
- See Also:
-
TYPE_UNIX_VALUE
public static final int TYPE_UNIX_VALUEaddress is UDS string
TYPE_UNIX = 3;
- See Also:
-
internalValueMap
-
VALUES
-
value
private final int value
-
-
Constructor Details
-
Type
private Type(int value)
-
-
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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
-