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

io.nats.streaming.protobuf.StartPosition Maven / Gradle / Ivy

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

package io.nats.streaming.protobuf;

/**
 * Protobuf enum {@code pb.StartPosition}
 *
 * 
 * Enum for start position type.
 * 
*/ public enum StartPosition implements com.google.protobuf.ProtocolMessageEnum { /** * NewOnly = 0; */ NewOnly(0, 0), /** * LastReceived = 1; */ LastReceived(1, 1), /** * TimeDeltaStart = 2; */ TimeDeltaStart(2, 2), /** * SequenceStart = 3; */ SequenceStart(3, 3), /** * First = 4; */ First(4, 4), UNRECOGNIZED(-1, -1), ; /** * NewOnly = 0; */ public static final int NewOnly_VALUE = 0; /** * LastReceived = 1; */ public static final int LastReceived_VALUE = 1; /** * TimeDeltaStart = 2; */ public static final int TimeDeltaStart_VALUE = 2; /** * SequenceStart = 3; */ public static final int SequenceStart_VALUE = 3; /** * First = 4; */ public static final int First_VALUE = 4; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static StartPosition valueOf(int value) { switch (value) { case 0: return NewOnly; case 1: return LastReceived; case 2: return TimeDeltaStart; case 3: return SequenceStart; case 4: return First; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StartPosition findValueByNumber(int number) { return StartPosition.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.nats.streaming.protobuf.Protocol.getDescriptor() .getEnumTypes().get(0); } private static final StartPosition[] VALUES = values(); public static StartPosition 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 index; private final int value; private StartPosition(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:pb.StartPosition) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy