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

ai.promoted.proto.event.CohortArm Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/event/event.proto

package ai.promoted.proto.event;

/**
 * Protobuf enum {@code event.CohortArm}
 */
public enum CohortArm
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * UNKNOWN_GROUP = 0;
   */
  UNKNOWN_GROUP(0),
  /**
   * CONTROL = 1;
   */
  CONTROL(1),
  /**
   * TREATMENT = 2;
   */
  TREATMENT(2),
  /**
   * TREATMENT1 = 3;
   */
  TREATMENT1(3),
  /**
   * TREATMENT2 = 4;
   */
  TREATMENT2(4),
  /**
   * TREATMENT3 = 5;
   */
  TREATMENT3(5),
  UNRECOGNIZED(-1),
  ;

  /**
   * UNKNOWN_GROUP = 0;
   */
  public static final int UNKNOWN_GROUP_VALUE = 0;
  /**
   * CONTROL = 1;
   */
  public static final int CONTROL_VALUE = 1;
  /**
   * TREATMENT = 2;
   */
  public static final int TREATMENT_VALUE = 2;
  /**
   * TREATMENT1 = 3;
   */
  public static final int TREATMENT1_VALUE = 3;
  /**
   * TREATMENT2 = 4;
   */
  public static final int TREATMENT2_VALUE = 4;
  /**
   * TREATMENT3 = 5;
   */
  public static final int TREATMENT3_VALUE = 5;


  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 CohortArm 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 CohortArm forNumber(int value) {
    switch (value) {
      case 0: return UNKNOWN_GROUP;
      case 1: return CONTROL;
      case 2: return TREATMENT;
      case 3: return TREATMENT1;
      case 4: return TREATMENT2;
      case 5: return TREATMENT3;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      CohortArm> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public CohortArm findValueByNumber(int number) {
            return CohortArm.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 ai.promoted.proto.event.Event.getDescriptor().getEnumTypes().get(1);
  }

  private static final CohortArm[] VALUES = values();

  public static CohortArm 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 CohortArm(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:event.CohortArm)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy