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

org.finos.tracdap.config.RoutingProtocol Maven / Gradle / Ivy

Go to download

TRAC D.A.P. config library, contains data structures used for config files (and other config sources)

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

package org.finos.tracdap.config;

/**
 * Protobuf enum {@code tracdap.config.RoutingProtocol}
 */
public enum RoutingProtocol
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * PROTOCOL_NOT_SET = 0;
   */
  PROTOCOL_NOT_SET(0),
  /**
   * HTTP = 1;
   */
  HTTP(1),
  /**
   * GRPC = 2;
   */
  GRPC(2),
  /**
   * GRPC_WEB = 3;
   */
  GRPC_WEB(3),
  /**
   * REST = 4;
   */
  REST(4),
  UNRECOGNIZED(-1),
  ;

  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 2,
      /* suffix= */ "",
      RoutingProtocol.class.getName());
  }
  /**
   * PROTOCOL_NOT_SET = 0;
   */
  public static final int PROTOCOL_NOT_SET_VALUE = 0;
  /**
   * HTTP = 1;
   */
  public static final int HTTP_VALUE = 1;
  /**
   * GRPC = 2;
   */
  public static final int GRPC_VALUE = 2;
  /**
   * GRPC_WEB = 3;
   */
  public static final int GRPC_WEB_VALUE = 3;
  /**
   * REST = 4;
   */
  public static final int REST_VALUE = 4;


  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 RoutingProtocol 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 RoutingProtocol forNumber(int value) {
    switch (value) {
      case 0: return PROTOCOL_NOT_SET;
      case 1: return HTTP;
      case 2: return GRPC;
      case 3: return GRPC_WEB;
      case 4: return REST;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      RoutingProtocol> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public RoutingProtocol findValueByNumber(int number) {
            return RoutingProtocol.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.finos.tracdap.config.Platform.getDescriptor().getEnumTypes().get(0);
  }

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

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

  // @@protoc_insertion_point(enum_scope:tracdap.config.RoutingProtocol)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy