All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sass_lang.embedded_protocol.ListSeparator Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: sass-embedded-protocol-3.1.0/spec/embedded_sass.proto
// Protobuf Java Version: 4.28.2

package com.sass_lang.embedded_protocol;

/**
 * 
 * Different types of separators a list can have.
 * 
* * Protobuf enum {@code sass.embedded_protocol.ListSeparator} */ public enum ListSeparator implements com.google.protobuf.ProtocolMessageEnum { /** *
   * List elements are separated by a comma.
   * 
* * COMMA = 0; */ COMMA(0), /** *
   * List elements are separated by whitespace.
   * 
* * SPACE = 1; */ SPACE(1), /** *
   * List elements are separated by a forward slash.
   * 
* * SLASH = 2; */ SLASH(2), /** *
   * The list's separator hasn't yet been determined. This is only allowed for
   * singleton and empty lists.
   *
   * Singleton lists and empty lists don't have separators defined. This means
   * that list functions will prefer other lists' separators if possible.
   * 
* * UNDECIDED = 3; */ UNDECIDED(3), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", ListSeparator.class.getName()); } /** *
   * List elements are separated by a comma.
   * 
* * COMMA = 0; */ public static final int COMMA_VALUE = 0; /** *
   * List elements are separated by whitespace.
   * 
* * SPACE = 1; */ public static final int SPACE_VALUE = 1; /** *
   * List elements are separated by a forward slash.
   * 
* * SLASH = 2; */ public static final int SLASH_VALUE = 2; /** *
   * The list's separator hasn't yet been determined. This is only allowed for
   * singleton and empty lists.
   *
   * Singleton lists and empty lists don't have separators defined. This means
   * that list functions will prefer other lists' separators if possible.
   * 
* * UNDECIDED = 3; */ public static final int UNDECIDED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ListSeparator valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ListSeparator forNumber(int value) { switch (value) { case 0: return COMMA; case 1: return SPACE; case 2: return SLASH; case 3: return UNDECIDED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ListSeparator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ListSeparator findValueByNumber(int number) { return ListSeparator.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.sass_lang.embedded_protocol.EmbeddedSass.getDescriptor().getEnumTypes().get(4); } private static final ListSeparator[] VALUES = values(); public static ListSeparator valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ListSeparator(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:sass.embedded_protocol.ListSeparator) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy