com.zepben.protobuf.network.model.FeederDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/network/model/FeederDirection.proto
package com.zepben.protobuf.network.model;
/**
*
**
* Enumeration of directions along a feeder at a terminal.
*
*
* Protobuf enum {@code zepben.protobuf.network.model.FeederDirection}
*/
public enum FeederDirection
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
**
* The terminal is not on a feeder.
*
*
* NONE = 0;
*/
NONE(0),
/**
*
**
* The terminal can be used to trace upstream towards the feeder head.
*
*
* UPSTREAM = 1;
*/
UPSTREAM(1),
/**
*
**
* The terminal can be used to trace downstream away from the feeder head.
*
*
* DOWNSTREAM = 2;
*/
DOWNSTREAM(2),
/**
*
**
* The terminal is part of a loop on the feeder and tracing in either direction will allow you
* to trace upstream towards the feeder head, or downstream away from the feeder head.
*
*
* BOTH = 3;
*/
BOTH(3),
UNRECOGNIZED(-1),
;
/**
*
**
* The terminal is not on a feeder.
*
*
* NONE = 0;
*/
public static final int NONE_VALUE = 0;
/**
*
**
* The terminal can be used to trace upstream towards the feeder head.
*
*
* UPSTREAM = 1;
*/
public static final int UPSTREAM_VALUE = 1;
/**
*
**
* The terminal can be used to trace downstream away from the feeder head.
*
*
* DOWNSTREAM = 2;
*/
public static final int DOWNSTREAM_VALUE = 2;
/**
*
**
* The terminal is part of a loop on the feeder and tracing in either direction will allow you
* to trace upstream towards the feeder head, or downstream away from the feeder head.
*
*
* BOTH = 3;
*/
public static final int BOTH_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;
}
/**
* @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 FeederDirection 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 FeederDirection forNumber(int value) {
switch (value) {
case 0: return NONE;
case 1: return UPSTREAM;
case 2: return DOWNSTREAM;
case 3: return BOTH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FeederDirection> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FeederDirection findValueByNumber(int number) {
return FeederDirection.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 com.zepben.protobuf.network.model.FeederDirectionOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final FeederDirection[] VALUES = values();
public static FeederDirection 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 FeederDirection(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:zepben.protobuf.network.model.FeederDirection)
}