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

io.axoniq.platform.grpc.ContextAction Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: platform_api.proto

package io.axoniq.platform.grpc;

/**
 * Protobuf enum {@code io.axoniq.platform.grpc.ContextAction}
 */
public enum ContextAction
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * MERGE_CONTEXT = 0;
   */
  MERGE_CONTEXT(0),
  /**
   * DELETE_CONTEXT = 1;
   */
  DELETE_CONTEXT(1),
  /**
   * ADD_NODES = 2;
   */
  ADD_NODES(2),
  /**
   * DELETE_NODES = 3;
   */
  DELETE_NODES(3),
  UNRECOGNIZED(-1),
  ;

  /**
   * MERGE_CONTEXT = 0;
   */
  public static final int MERGE_CONTEXT_VALUE = 0;
  /**
   * DELETE_CONTEXT = 1;
   */
  public static final int DELETE_CONTEXT_VALUE = 1;
  /**
   * ADD_NODES = 2;
   */
  public static final int ADD_NODES_VALUE = 2;
  /**
   * DELETE_NODES = 3;
   */
  public static final int DELETE_NODES_VALUE = 3;


  public final int getNumber() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalArgumentException(
          "Can't get the number of an unknown enum value.");
    }
    return value;
  }

  /**
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static ContextAction valueOf(int value) {
    return forNumber(value);
  }

  public static ContextAction forNumber(int value) {
    switch (value) {
      case 0: return MERGE_CONTEXT;
      case 1: return DELETE_CONTEXT;
      case 2: return ADD_NODES;
      case 3: return DELETE_NODES;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      ContextAction> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          public ContextAction findValueByNumber(int number) {
            return ContextAction.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 io.axoniq.platform.grpc.PlatformApi.getDescriptor()
        .getEnumTypes().get(1);
  }

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

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

  // @@protoc_insertion_point(enum_scope:io.axoniq.platform.grpc.ContextAction)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy