# Interface ProtocolMessageEnum (3.19.4)

    public interface ProtocolMessageEnum extends Internal.EnumLite

Interface of useful methods added to all enums generated by the protocol compiler.

## Implements

[Internal.EnumLite](https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Internal.EnumLite)

## Methods

### getDescriptorForType()

    public abstract Descriptors.EnumDescriptor getDescriptorForType()

Return the enum type's descriptor, which contains information about each defined value, etc.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.EnumDescriptor` |   |

### getNumber()

    public abstract int getNumber()

Return the value's numeric value as defined in the .proto file.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getValueDescriptor()

    public abstract Descriptors.EnumValueDescriptor getValueDescriptor()

Return the value's descriptor, which contains information such as value name, number, and type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.EnumValueDescriptor` |   |