Enum Schema.PrimitiveType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Schema.PrimitiveType>
    Enclosing class:
    Schema

    public static enum Schema.PrimitiveType
    extends Enum<Schema.PrimitiveType>
    implements com.google.protobuf.ProtocolMessageEnum
     next available: 19
     
    Protobuf enum relationalai.protocol.PrimitiveType
    • Field Detail

      • UNSPECIFIED_TYPE_VALUE

        public static final int UNSPECIFIED_TYPE_VALUE
         https://developers.google.com/protocol-buffers/docs/style#enums
         
        UNSPECIFIED_TYPE = 0;
        See Also:
        Constant Field Values
      • INT_128_VALUE

        public static final int INT_128_VALUE
         Not present in protobuf, needs two 64-bit ints
         
        INT_128 = 1;
        See Also:
        Constant Field Values
      • INT_16_VALUE

        public static final int INT_16_VALUE
         Not present in protobuf
         
        INT_16 = 4;
        See Also:
        Constant Field Values
      • INT_8_VALUE

        public static final int INT_8_VALUE
         Not present in protobuf
         
        INT_8 = 5;
        See Also:
        Constant Field Values
      • UINT_128_VALUE

        public static final int UINT_128_VALUE
         Not present in protobuf, needs two 64-bit ints
         
        UINT_128 = 6;
        See Also:
        Constant Field Values
      • UINT_16_VALUE

        public static final int UINT_16_VALUE
         Not present in protobuf
         
        UINT_16 = 9;
        See Also:
        Constant Field Values
      • UINT_8_VALUE

        public static final int UINT_8_VALUE
         Not present in protobuf
         
        UINT_8 = 10;
        See Also:
        Constant Field Values
      • FLOAT_16_VALUE

        public static final int FLOAT_16_VALUE
         Not present in protobuf
         
        FLOAT_16 = 13;
        See Also:
        Constant Field Values
      • STRING_VALUE

        public static final int STRING_VALUE
         these share the string_val field
         
        STRING = 16;
        See Also:
        Constant Field Values
      • SYMBOL_VALUE

        public static final int SYMBOL_VALUE
         In protobuf this is really bytes.
         
        SYMBOL = 17;
        See Also:
        Constant Field Values
      • VARIABLE_SIZE_STRING_VALUE

        public static final int VARIABLE_SIZE_STRING_VALUE
         VariableSizeStrings are not supported as PrimitiveValues, though the type can
         show up in (internal) type signatures.
         
        VARIABLE_SIZE_STRING = 18;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Schema.PrimitiveType[] 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 (Schema.PrimitiveType c : Schema.PrimitiveType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Schema.PrimitiveType valueOf​(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:
        IllegalArgumentException - if this enum type 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
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static Schema.PrimitiveType 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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static Schema.PrimitiveType 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<Schema.PrimitiveType> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Schema.PrimitiveType 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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null