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

io.axoniq.axonserver.grpc.ProcessingKey Maven / Gradle / Ivy

There is a newer version: 2024.1.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package io.axoniq.axonserver.grpc;

/**
 * 
 * An enumeration of possible keys for processing instructions. 
 * 
* * Protobuf enum {@code io.axoniq.axonserver.grpc.ProcessingKey} */ public enum ProcessingKey implements com.google.protobuf.ProtocolMessageEnum { /** *
   * key indicating that the attached value should be used for consistent routing. 
   * 
* * ROUTING_KEY = 0; */ ROUTING_KEY(0), /** *
   * key indicating that the attached value indicates relative priority of this message. 
   * 
* * PRIORITY = 1; */ PRIORITY(1), /** *
   * key indicating that the accompanied message has a finite validity. The attached value contains the number of milliseconds. 
   * 
* * TIMEOUT = 2; */ TIMEOUT(2), /** *
   * key indicating that the requester expects at most the given number of results from this message. Use -1 for unlimited. 
   * 
* * NR_OF_RESULTS = 3; */ NR_OF_RESULTS(3), UNRECOGNIZED(-1), ; /** *
   * key indicating that the attached value should be used for consistent routing. 
   * 
* * ROUTING_KEY = 0; */ public static final int ROUTING_KEY_VALUE = 0; /** *
   * key indicating that the attached value indicates relative priority of this message. 
   * 
* * PRIORITY = 1; */ public static final int PRIORITY_VALUE = 1; /** *
   * key indicating that the accompanied message has a finite validity. The attached value contains the number of milliseconds. 
   * 
* * TIMEOUT = 2; */ public static final int TIMEOUT_VALUE = 2; /** *
   * key indicating that the requester expects at most the given number of results from this message. Use -1 for unlimited. 
   * 
* * NR_OF_RESULTS = 3; */ public static final int NR_OF_RESULTS_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 ProcessingKey valueOf(int value) { return forNumber(value); } public static ProcessingKey forNumber(int value) { switch (value) { case 0: return ROUTING_KEY; case 1: return PRIORITY; case 2: return TIMEOUT; case 3: return NR_OF_RESULTS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ProcessingKey> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ProcessingKey findValueByNumber(int number) { return ProcessingKey.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.axonserver.grpc.Common.getDescriptor().getEnumTypes().get(0); } private static final ProcessingKey[] VALUES = values(); public static ProcessingKey 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 ProcessingKey(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.axoniq.axonserver.grpc.ProcessingKey) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy