Enum Class DescriptorProtos.FieldDescriptorProto.Label

java.lang.Object
java.lang.Enum<DescriptorProtos.FieldDescriptorProto.Label>
com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<DescriptorProtos.FieldDescriptorProto.Label>, java.lang.constant.Constable
Enclosing class:
DescriptorProtos.FieldDescriptorProto

public static enum DescriptorProtos.FieldDescriptorProto.Label extends Enum<DescriptorProtos.FieldDescriptorProto.Label> implements com.google.protobuf.Internal.EnumLite
Protobuf enum google.protobuf.FieldDescriptorProto.Label
  • Enum Constant Details

  • Field Details

    • LABEL_OPTIONAL_VALUE

      public static final int LABEL_OPTIONAL_VALUE
       0 is reserved for errors
       
      LABEL_OPTIONAL = 1;
      See Also:
    • LABEL_REPEATED_VALUE

      public static final int LABEL_REPEATED_VALUE
      LABEL_REPEATED = 3;
      See Also:
    • LABEL_REQUIRED_VALUE

      public static final int LABEL_REQUIRED_VALUE
       The required label is only allowed in google.protobuf.  In proto3 and Editions
       it's explicitly prohibited.  In Editions, the `field_presence` feature
       can be used to get this behavior.
       
      LABEL_REQUIRED = 2;
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static DescriptorProtos.FieldDescriptorProto.Label valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static DescriptorProtos.FieldDescriptorProto.Label forNumber(int value)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.FieldDescriptorProto.Label> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()