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

org.openfeed.SettlementTerms 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.SettlementTerms}
 */
public enum SettlementTerms
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * UNKNOWN_SETTLEMENT_TERMS = 0;
   */
  UNKNOWN_SETTLEMENT_TERMS(0),
  /**
   * CASH = 1;
   */
  CASH(1),
  /**
   * NON_NET = 2;
   */
  NON_NET(2),
  /**
   * CONTINGENT_TRADE = 3;
   */
  CONTINGENT_TRADE(3),
  /**
   * CASH_TODAY = 4;
   */
  CASH_TODAY(4),
  /**
   * DATE = 5;
   */
  DATE(5),
  UNRECOGNIZED(-1),
  ;

  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 3,
      /* suffix= */ "",
      SettlementTerms.class.getName());
  }
  /**
   * UNKNOWN_SETTLEMENT_TERMS = 0;
   */
  public static final int UNKNOWN_SETTLEMENT_TERMS_VALUE = 0;
  /**
   * CASH = 1;
   */
  public static final int CASH_VALUE = 1;
  /**
   * NON_NET = 2;
   */
  public static final int NON_NET_VALUE = 2;
  /**
   * CONTINGENT_TRADE = 3;
   */
  public static final int CONTINGENT_TRADE_VALUE = 3;
  /**
   * CASH_TODAY = 4;
   */
  public static final int CASH_TODAY_VALUE = 4;
  /**
   * DATE = 5;
   */
  public static final int DATE_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 SettlementTerms 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 SettlementTerms forNumber(int value) {
    switch (value) {
      case 0: return UNKNOWN_SETTLEMENT_TERMS;
      case 1: return CASH;
      case 2: return NON_NET;
      case 3: return CONTINGENT_TRADE;
      case 4: return CASH_TODAY;
      case 5: return DATE;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      SettlementTerms> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public SettlementTerms findValueByNumber(int number) {
            return SettlementTerms.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(3);
  }

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

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

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy