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

com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind 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/base/wires/SinglePhaseKind.proto

package com.zepben.protobuf.cim.iec61970.base.wires;

/**
 * 
 **
 * Enumeration of single phase identifiers. Allows designation of single phases for both transmission and distribution equipment, circuits and loads.
 * 
* * Protobuf enum {@code zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind} */ public enum SinglePhaseKind implements com.google.protobuf.ProtocolMessageEnum { /** *
   **
   * no phase specified.
   * 
* * NONE = 0; */ NONE(0), /** *
   **
   * Phase A.
   * 
* * A = 1; */ A(1), /** *
   **
   * Phase B.
   * 
* * B = 2; */ B(2), /** *
   **
   * Phase C.
   * 
* * C = 3; */ C(3), /** *
   **
   * Neutral.
   * 
* * N = 4; */ N(4), /** *
   **
   * An unknown primary phase.
   * 
* * X = 5; */ X(5), /** *
   **
   * An unknown primary phase.
   * 
* * Y = 6; */ Y(6), /** *
   **
   * Secondary phase 1.
   * 
* * s1 = 7; */ s1(7), /** *
   **
   * Secondary phase 2.
   * 
* * s2 = 8; */ s2(8), /** *
   **
   * Invalid phase. Caused by trying to energise with multiple phases simultaneously.
   * 
* * INVALID = 9; */ INVALID(9), UNRECOGNIZED(-1), ; /** *
   **
   * no phase specified.
   * 
* * NONE = 0; */ public static final int NONE_VALUE = 0; /** *
   **
   * Phase A.
   * 
* * A = 1; */ public static final int A_VALUE = 1; /** *
   **
   * Phase B.
   * 
* * B = 2; */ public static final int B_VALUE = 2; /** *
   **
   * Phase C.
   * 
* * C = 3; */ public static final int C_VALUE = 3; /** *
   **
   * Neutral.
   * 
* * N = 4; */ public static final int N_VALUE = 4; /** *
   **
   * An unknown primary phase.
   * 
* * X = 5; */ public static final int X_VALUE = 5; /** *
   **
   * An unknown primary phase.
   * 
* * Y = 6; */ public static final int Y_VALUE = 6; /** *
   **
   * Secondary phase 1.
   * 
* * s1 = 7; */ public static final int s1_VALUE = 7; /** *
   **
   * Secondary phase 2.
   * 
* * s2 = 8; */ public static final int s2_VALUE = 8; /** *
   **
   * Invalid phase. Caused by trying to energise with multiple phases simultaneously.
   * 
* * INVALID = 9; */ public static final int INVALID_VALUE = 9; 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 SinglePhaseKind 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 SinglePhaseKind forNumber(int value) { switch (value) { case 0: return NONE; case 1: return A; case 2: return B; case 3: return C; case 4: return N; case 5: return X; case 6: return Y; case 7: return s1; case 8: return s2; case 9: return INVALID; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SinglePhaseKind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SinglePhaseKind findValueByNumber(int number) { return SinglePhaseKind.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.base.wires.SinglePhaseKindOuterClass.getDescriptor().getEnumTypes().get(0); } private static final SinglePhaseKind[] VALUES = values(); public static SinglePhaseKind 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 SinglePhaseKind(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy