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

org.yamcs.protobuf.TransferDirection Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/filetransfer/filetransfer.proto

package org.yamcs.protobuf;

/**
 * Protobuf enum {@code yamcs.protobuf.filetransfer.TransferDirection}
 */
public enum TransferDirection
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * UPLOAD = 1;
   */
  UPLOAD(1),
  /**
   * DOWNLOAD = 2;
   */
  DOWNLOAD(2),
  ;

  /**
   * UPLOAD = 1;
   */
  public static final int UPLOAD_VALUE = 1;
  /**
   * DOWNLOAD = 2;
   */
  public static final int DOWNLOAD_VALUE = 2;


  public final int getNumber() {
    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 TransferDirection 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 TransferDirection forNumber(int value) {
    switch (value) {
      case 1: return UPLOAD;
      case 2: return DOWNLOAD;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      TransferDirection> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public TransferDirection findValueByNumber(int number) {
            return TransferDirection.forNumber(number);
          }
        };

  public final com.google.protobuf.Descriptors.EnumValueDescriptor
      getValueDescriptor() {
    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.yamcs.protobuf.FileTransferProto.getDescriptor().getEnumTypes().get(0);
  }

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

  public static TransferDirection valueOf(
      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    if (desc.getType() != getDescriptor()) {
      throw new java.lang.IllegalArgumentException(
        "EnumValueDescriptor is not for this type.");
    }
    return VALUES[desc.getIndex()];
  }

  private final int value;

  private TransferDirection(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:yamcs.protobuf.filetransfer.TransferDirection)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy