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

org.openfeed.Service Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * Protobuf enum {@code org.openfeed.Service}
 */
public enum Service
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * UNKNOWN_SERVICE = 0;
   */
  UNKNOWN_SERVICE(0),
  /**
   * REAL_TIME = 1;
   */
  REAL_TIME(1),
  /**
   * DELAYED = 2;
   */
  DELAYED(2),
  /**
   * REAL_TIME_SNAPSHOT = 3;
   */
  REAL_TIME_SNAPSHOT(3),
  /**
   * DELAYED_SNAPSHOT = 4;
   */
  DELAYED_SNAPSHOT(4),
  /**
   * END_OF_DAY = 5;
   */
  END_OF_DAY(5),
  UNRECOGNIZED(-1),
  ;

  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 3,
      /* suffix= */ "",
      Service.class.getName());
  }
  /**
   * UNKNOWN_SERVICE = 0;
   */
  public static final int UNKNOWN_SERVICE_VALUE = 0;
  /**
   * REAL_TIME = 1;
   */
  public static final int REAL_TIME_VALUE = 1;
  /**
   * DELAYED = 2;
   */
  public static final int DELAYED_VALUE = 2;
  /**
   * REAL_TIME_SNAPSHOT = 3;
   */
  public static final int REAL_TIME_SNAPSHOT_VALUE = 3;
  /**
   * DELAYED_SNAPSHOT = 4;
   */
  public static final int DELAYED_SNAPSHOT_VALUE = 4;
  /**
   * END_OF_DAY = 5;
   */
  public static final int END_OF_DAY_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 Service 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 Service forNumber(int value) {
    switch (value) {
      case 0: return UNKNOWN_SERVICE;
      case 1: return REAL_TIME;
      case 2: return DELAYED;
      case 3: return REAL_TIME_SNAPSHOT;
      case 4: return DELAYED_SNAPSHOT;
      case 5: return END_OF_DAY;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      Service> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public Service findValueByNumber(int number) {
            return Service.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 org.openfeed.Openfeed.getDescriptor().getEnumTypes().get(7);
  }

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

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

  // @@protoc_insertion_point(enum_scope:org.openfeed.Service)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy