com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection 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/cim/iec61970/base/wires/WindingConnection.proto
package com.zepben.protobuf.cim.iec61970.base.wires;
/**
*
**
* Winding connection type.
*
*
* Protobuf enum {@code zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection}
*/
public enum WindingConnection
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Default
*
*
* UNKNOWN_WINDING = 0;
*/
UNKNOWN_WINDING(0),
/**
*
* Delta
*
*
* D = 1;
*/
D(1),
/**
*
* Wye
*
*
* Y = 2;
*/
Y(2),
/**
*
* ZigZag
*
*
* Z = 3;
*/
Z(3),
/**
*
* Wye, with neutral brought out for grounding
*
*
* Yn = 4;
*/
Yn(4),
/**
*
* ZigZag, with neutral brought out for grounding
*
*
* Zn = 5;
*/
Zn(5),
/**
*
* Autotransformer common winding
*
*
* A = 6;
*/
A(6),
/**
*
* Independent winding, for single-phase connections
*
*
* I = 7;
*/
I(7),
UNRECOGNIZED(-1),
;
/**
*
* Default
*
*
* UNKNOWN_WINDING = 0;
*/
public static final int UNKNOWN_WINDING_VALUE = 0;
/**
*
* Delta
*
*
* D = 1;
*/
public static final int D_VALUE = 1;
/**
*
* Wye
*
*
* Y = 2;
*/
public static final int Y_VALUE = 2;
/**
*
* ZigZag
*
*
* Z = 3;
*/
public static final int Z_VALUE = 3;
/**
*
* Wye, with neutral brought out for grounding
*
*
* Yn = 4;
*/
public static final int Yn_VALUE = 4;
/**
*
* ZigZag, with neutral brought out for grounding
*
*
* Zn = 5;
*/
public static final int Zn_VALUE = 5;
/**
*
* Autotransformer common winding
*
*
* A = 6;
*/
public static final int A_VALUE = 6;
/**
*
* Independent winding, for single-phase connections
*
*
* I = 7;
*/
public static final int I_VALUE = 7;
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 WindingConnection 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 WindingConnection forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_WINDING;
case 1: return D;
case 2: return Y;
case 3: return Z;
case 4: return Yn;
case 5: return Zn;
case 6: return A;
case 7: return I;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
WindingConnection> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public WindingConnection findValueByNumber(int number) {
return WindingConnection.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.WindingConnectionOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final WindingConnection[] VALUES = values();
public static WindingConnection 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 WindingConnection(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection)
}