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

com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind Maven / Gradle / Ivy

There is a newer version: 0.32.0-SNAPSHOT2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: zepben/protobuf/cim/iec61970/infiec61970/protection/PowerDirectionKind.proto

package com.zepben.protobuf.cim.iec61970.infiec61970.protection;

/**
 * 
 **
 * The flow of power direction used by a ProtectionEquipment.
 * 
* * Protobuf enum {@code zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind} */ public enum PowerDirectionKind implements com.google.protobuf.ProtocolMessageEnum { /** *
   * Default. Unknown power direction flow.
   * 
* * UNKNOWN_DIRECTION = 0; */ UNKNOWN_DIRECTION(0), /** *
   **
   * Power direction flow type is not specified.
   * 
* * UNDIRECTED = 1; */ UNDIRECTED(1), /** *
   **
   * Power direction forward flow is used.
   * 
* * FORWARD = 2; */ FORWARD(2), /** *
   **
   * Power direction reverse flow is used.
   * 
* * REVERSE = 3; */ REVERSE(3), UNRECOGNIZED(-1), ; /** *
   * Default. Unknown power direction flow.
   * 
* * UNKNOWN_DIRECTION = 0; */ public static final int UNKNOWN_DIRECTION_VALUE = 0; /** *
   **
   * Power direction flow type is not specified.
   * 
* * UNDIRECTED = 1; */ public static final int UNDIRECTED_VALUE = 1; /** *
   **
   * Power direction forward flow is used.
   * 
* * FORWARD = 2; */ public static final int FORWARD_VALUE = 2; /** *
   **
   * Power direction reverse flow is used.
   * 
* * REVERSE = 3; */ public static final int REVERSE_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 PowerDirectionKind 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 PowerDirectionKind forNumber(int value) { switch (value) { case 0: return UNKNOWN_DIRECTION; case 1: return UNDIRECTED; case 2: return FORWARD; case 3: return REVERSE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PowerDirectionKind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PowerDirectionKind findValueByNumber(int number) { return PowerDirectionKind.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.cim.iec61970.infiec61970.protection.PowerDirectionKindOuterClass.getDescriptor().getEnumTypes().get(0); } private static final PowerDirectionKind[] VALUES = values(); public static PowerDirectionKind 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 PowerDirectionKind(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy