com.zepben.protobuf.cim.iec61970.base.wires.EnergySource 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/EnergySource.proto
package com.zepben.protobuf.cim.iec61970.base.wires;
/**
*
**
* A generic equivalent for an energy supplier on a transmission or distribution voltage level.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.EnergySource}
*/
public final class EnergySource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.EnergySource)
EnergySourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnergySource.newBuilder() to construct.
private EnergySource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EnergySource() {
energySourcePhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnergySource();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourceOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourceOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.EnergySource.class, com.zepben.protobuf.cim.iec61970.base.wires.EnergySource.Builder.class);
}
private int bitField0_;
public static final int EC_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec_;
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return Whether the ec field is set.
*/
@java.lang.Override
public boolean hasEc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return The ec.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection getEc() {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder getEcOrBuilder() {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
}
public static final int ENERGYSOURCEPHASESMRIDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList energySourcePhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @return A list containing the energySourcePhasesMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEnergySourcePhasesMRIDsList() {
return energySourcePhasesMRIDs_;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @return The count of energySourcePhasesMRIDs.
*/
public int getEnergySourcePhasesMRIDsCount() {
return energySourcePhasesMRIDs_.size();
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param index The index of the element to return.
* @return The energySourcePhasesMRIDs at the given index.
*/
public java.lang.String getEnergySourcePhasesMRIDs(int index) {
return energySourcePhasesMRIDs_.get(index);
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the energySourcePhasesMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEnergySourcePhasesMRIDsBytes(int index) {
return energySourcePhasesMRIDs_.getByteString(index);
}
public static final int ACTIVEPOWER_FIELD_NUMBER = 3;
private double activePower_ = 0D;
/**
*
**
* High voltage source active injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double activePower = 3;
* @return The activePower.
*/
@java.lang.Override
public double getActivePower() {
return activePower_;
}
public static final int REACTIVEPOWER_FIELD_NUMBER = 4;
private double reactivePower_ = 0D;
/**
*
**
* High voltage source reactive injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double reactivePower = 4;
* @return The reactivePower.
*/
@java.lang.Override
public double getReactivePower() {
return reactivePower_;
}
public static final int VOLTAGEANGLE_FIELD_NUMBER = 5;
private double voltageAngle_ = 0D;
/**
*
**
* Phase angle of a-phase open circuit used when voltage characteristics need to be imposed at the node associated with
* the terminal of the energy source, such as when voltages and angles from the transmission level are used as input to
* the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageAngle = 5;
* @return The voltageAngle.
*/
@java.lang.Override
public double getVoltageAngle() {
return voltageAngle_;
}
public static final int VOLTAGEMAGNITUDE_FIELD_NUMBER = 6;
private double voltageMagnitude_ = 0D;
/**
*
**
* Phase-to-phase open circuit voltage magnitude used when voltage characteristics need to be imposed at the node
* associated with the terminal of the energy source, such as when voltages and angles from the transmission level
* are used as input to the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageMagnitude = 6;
* @return The voltageMagnitude.
*/
@java.lang.Override
public double getVoltageMagnitude() {
return voltageMagnitude_;
}
public static final int R_FIELD_NUMBER = 7;
private double r_ = 0D;
/**
*
**
* Positive sequence Thevenin resistance.
*
*
* double r = 7;
* @return The r.
*/
@java.lang.Override
public double getR() {
return r_;
}
public static final int X_FIELD_NUMBER = 8;
private double x_ = 0D;
/**
*
**
* Positive sequence Thevenin reactance.
*
*
* double x = 8;
* @return The x.
*/
@java.lang.Override
public double getX() {
return x_;
}
public static final int PMAX_FIELD_NUMBER = 9;
private double pMax_ = 0D;
/**
*
**
* This is the maximum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMax = 9;
* @return The pMax.
*/
@java.lang.Override
public double getPMax() {
return pMax_;
}
public static final int PMIN_FIELD_NUMBER = 10;
private double pMin_ = 0D;
/**
*
**
* This is the minimum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMin = 10;
* @return The pMin.
*/
@java.lang.Override
public double getPMin() {
return pMin_;
}
public static final int R0_FIELD_NUMBER = 11;
private double r0_ = 0D;
/**
*
**
* Zero sequence Thevenin resistance.
*
*
* double r0 = 11;
* @return The r0.
*/
@java.lang.Override
public double getR0() {
return r0_;
}
public static final int RN_FIELD_NUMBER = 12;
private double rn_ = 0D;
/**
*
**
* Negative sequence Thevenin resistance.
*
*
* double rn = 12;
* @return The rn.
*/
@java.lang.Override
public double getRn() {
return rn_;
}
public static final int X0_FIELD_NUMBER = 13;
private double x0_ = 0D;
/**
*
**
* Zero sequence Thevenin reactance.
*
*
* double x0 = 13;
* @return The x0.
*/
@java.lang.Override
public double getX0() {
return x0_;
}
public static final int XN_FIELD_NUMBER = 14;
private double xn_ = 0D;
/**
*
**
* Negative sequence Thevenin reactance.
*
*
* double xn = 14;
* @return The xn.
*/
@java.lang.Override
public double getXn() {
return xn_;
}
public static final int ISEXTERNALGRID_FIELD_NUMBER = 15;
private boolean isExternalGrid_ = false;
/**
*
**
* True if this energy source represents the higher-level power grid connection to an external grid
* that normally is modelled as the slack bus for power flow calculations.
*
*
* bool isExternalGrid = 15;
* @return The isExternalGrid.
*/
@java.lang.Override
public boolean getIsExternalGrid() {
return isExternalGrid_;
}
public static final int RMIN_FIELD_NUMBER = 16;
private double rMin_ = 0D;
/**
*
**
* Minimum positive sequence Thevenin resistance.
*
*
* double rMin = 16;
* @return The rMin.
*/
@java.lang.Override
public double getRMin() {
return rMin_;
}
public static final int RNMIN_FIELD_NUMBER = 17;
private double rnMin_ = 0D;
/**
*
**
* Minimum negative sequence Thevenin resistance
*
*
* double rnMin = 17;
* @return The rnMin.
*/
@java.lang.Override
public double getRnMin() {
return rnMin_;
}
public static final int R0MIN_FIELD_NUMBER = 18;
private double r0Min_ = 0D;
/**
*
**
* Minimum zero sequence Thevenin resistance.
*
*
* double r0Min = 18;
* @return The r0Min.
*/
@java.lang.Override
public double getR0Min() {
return r0Min_;
}
public static final int XMIN_FIELD_NUMBER = 19;
private double xMin_ = 0D;
/**
*
**
* Minimum positive sequence Thevenin reactance.
*
*
* double xMin = 19;
* @return The xMin.
*/
@java.lang.Override
public double getXMin() {
return xMin_;
}
public static final int XNMIN_FIELD_NUMBER = 20;
private double xnMin_ = 0D;
/**
*
**
* Minimum negative sequence Thevenin reactance.
*
*
* double xnMin = 20;
* @return The xnMin.
*/
@java.lang.Override
public double getXnMin() {
return xnMin_;
}
public static final int X0MIN_FIELD_NUMBER = 21;
private double x0Min_ = 0D;
/**
*
**
* Minimum zero sequence Thevenin reactance.
*
*
* double x0Min = 21;
* @return The x0Min.
*/
@java.lang.Override
public double getX0Min() {
return x0Min_;
}
public static final int RMAX_FIELD_NUMBER = 22;
private double rMax_ = 0D;
/**
*
**
* Maximum positive sequence Thevenin resistance.
*
*
* double rMax = 22;
* @return The rMax.
*/
@java.lang.Override
public double getRMax() {
return rMax_;
}
public static final int RNMAX_FIELD_NUMBER = 23;
private double rnMax_ = 0D;
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double rnMax = 23;
* @return The rnMax.
*/
@java.lang.Override
public double getRnMax() {
return rnMax_;
}
public static final int R0MAX_FIELD_NUMBER = 24;
private double r0Max_ = 0D;
/**
*
**
* Maximum zero sequence Thevenin resistance.
*
*
* double r0Max = 24;
* @return The r0Max.
*/
@java.lang.Override
public double getR0Max() {
return r0Max_;
}
public static final int XMAX_FIELD_NUMBER = 25;
private double xMax_ = 0D;
/**
*
**
* Maximum positive sequence Thevenin reactance.
*
*
* double xMax = 25;
* @return The xMax.
*/
@java.lang.Override
public double getXMax() {
return xMax_;
}
public static final int XNMAX_FIELD_NUMBER = 26;
private double xnMax_ = 0D;
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double xnMax = 26;
* @return The xnMax.
*/
@java.lang.Override
public double getXnMax() {
return xnMax_;
}
public static final int X0MAX_FIELD_NUMBER = 27;
private double x0Max_ = 0D;
/**
*
**
* Maximum zero sequence Thevenin reactance.
*
*
* double x0Max = 27;
* @return The x0Max.
*/
@java.lang.Override
public double getX0Max() {
return x0Max_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getEc());
}
for (int i = 0; i < energySourcePhasesMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, energySourcePhasesMRIDs_.getRaw(i));
}
if (java.lang.Double.doubleToRawLongBits(activePower_) != 0) {
output.writeDouble(3, activePower_);
}
if (java.lang.Double.doubleToRawLongBits(reactivePower_) != 0) {
output.writeDouble(4, reactivePower_);
}
if (java.lang.Double.doubleToRawLongBits(voltageAngle_) != 0) {
output.writeDouble(5, voltageAngle_);
}
if (java.lang.Double.doubleToRawLongBits(voltageMagnitude_) != 0) {
output.writeDouble(6, voltageMagnitude_);
}
if (java.lang.Double.doubleToRawLongBits(r_) != 0) {
output.writeDouble(7, r_);
}
if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
output.writeDouble(8, x_);
}
if (java.lang.Double.doubleToRawLongBits(pMax_) != 0) {
output.writeDouble(9, pMax_);
}
if (java.lang.Double.doubleToRawLongBits(pMin_) != 0) {
output.writeDouble(10, pMin_);
}
if (java.lang.Double.doubleToRawLongBits(r0_) != 0) {
output.writeDouble(11, r0_);
}
if (java.lang.Double.doubleToRawLongBits(rn_) != 0) {
output.writeDouble(12, rn_);
}
if (java.lang.Double.doubleToRawLongBits(x0_) != 0) {
output.writeDouble(13, x0_);
}
if (java.lang.Double.doubleToRawLongBits(xn_) != 0) {
output.writeDouble(14, xn_);
}
if (isExternalGrid_ != false) {
output.writeBool(15, isExternalGrid_);
}
if (java.lang.Double.doubleToRawLongBits(rMin_) != 0) {
output.writeDouble(16, rMin_);
}
if (java.lang.Double.doubleToRawLongBits(rnMin_) != 0) {
output.writeDouble(17, rnMin_);
}
if (java.lang.Double.doubleToRawLongBits(r0Min_) != 0) {
output.writeDouble(18, r0Min_);
}
if (java.lang.Double.doubleToRawLongBits(xMin_) != 0) {
output.writeDouble(19, xMin_);
}
if (java.lang.Double.doubleToRawLongBits(xnMin_) != 0) {
output.writeDouble(20, xnMin_);
}
if (java.lang.Double.doubleToRawLongBits(x0Min_) != 0) {
output.writeDouble(21, x0Min_);
}
if (java.lang.Double.doubleToRawLongBits(rMax_) != 0) {
output.writeDouble(22, rMax_);
}
if (java.lang.Double.doubleToRawLongBits(rnMax_) != 0) {
output.writeDouble(23, rnMax_);
}
if (java.lang.Double.doubleToRawLongBits(r0Max_) != 0) {
output.writeDouble(24, r0Max_);
}
if (java.lang.Double.doubleToRawLongBits(xMax_) != 0) {
output.writeDouble(25, xMax_);
}
if (java.lang.Double.doubleToRawLongBits(xnMax_) != 0) {
output.writeDouble(26, xnMax_);
}
if (java.lang.Double.doubleToRawLongBits(x0Max_) != 0) {
output.writeDouble(27, x0Max_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEc());
}
{
int dataSize = 0;
for (int i = 0; i < energySourcePhasesMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(energySourcePhasesMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getEnergySourcePhasesMRIDsList().size();
}
if (java.lang.Double.doubleToRawLongBits(activePower_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, activePower_);
}
if (java.lang.Double.doubleToRawLongBits(reactivePower_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, reactivePower_);
}
if (java.lang.Double.doubleToRawLongBits(voltageAngle_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, voltageAngle_);
}
if (java.lang.Double.doubleToRawLongBits(voltageMagnitude_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, voltageMagnitude_);
}
if (java.lang.Double.doubleToRawLongBits(r_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, r_);
}
if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, x_);
}
if (java.lang.Double.doubleToRawLongBits(pMax_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, pMax_);
}
if (java.lang.Double.doubleToRawLongBits(pMin_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, pMin_);
}
if (java.lang.Double.doubleToRawLongBits(r0_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(11, r0_);
}
if (java.lang.Double.doubleToRawLongBits(rn_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, rn_);
}
if (java.lang.Double.doubleToRawLongBits(x0_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(13, x0_);
}
if (java.lang.Double.doubleToRawLongBits(xn_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(14, xn_);
}
if (isExternalGrid_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, isExternalGrid_);
}
if (java.lang.Double.doubleToRawLongBits(rMin_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(16, rMin_);
}
if (java.lang.Double.doubleToRawLongBits(rnMin_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(17, rnMin_);
}
if (java.lang.Double.doubleToRawLongBits(r0Min_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(18, r0Min_);
}
if (java.lang.Double.doubleToRawLongBits(xMin_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(19, xMin_);
}
if (java.lang.Double.doubleToRawLongBits(xnMin_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(20, xnMin_);
}
if (java.lang.Double.doubleToRawLongBits(x0Min_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(21, x0Min_);
}
if (java.lang.Double.doubleToRawLongBits(rMax_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(22, rMax_);
}
if (java.lang.Double.doubleToRawLongBits(rnMax_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(23, rnMax_);
}
if (java.lang.Double.doubleToRawLongBits(r0Max_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(24, r0Max_);
}
if (java.lang.Double.doubleToRawLongBits(xMax_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(25, xMax_);
}
if (java.lang.Double.doubleToRawLongBits(xnMax_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(26, xnMax_);
}
if (java.lang.Double.doubleToRawLongBits(x0Max_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(27, x0Max_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.zepben.protobuf.cim.iec61970.base.wires.EnergySource)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.wires.EnergySource other = (com.zepben.protobuf.cim.iec61970.base.wires.EnergySource) obj;
if (hasEc() != other.hasEc()) return false;
if (hasEc()) {
if (!getEc()
.equals(other.getEc())) return false;
}
if (!getEnergySourcePhasesMRIDsList()
.equals(other.getEnergySourcePhasesMRIDsList())) return false;
if (java.lang.Double.doubleToLongBits(getActivePower())
!= java.lang.Double.doubleToLongBits(
other.getActivePower())) return false;
if (java.lang.Double.doubleToLongBits(getReactivePower())
!= java.lang.Double.doubleToLongBits(
other.getReactivePower())) return false;
if (java.lang.Double.doubleToLongBits(getVoltageAngle())
!= java.lang.Double.doubleToLongBits(
other.getVoltageAngle())) return false;
if (java.lang.Double.doubleToLongBits(getVoltageMagnitude())
!= java.lang.Double.doubleToLongBits(
other.getVoltageMagnitude())) return false;
if (java.lang.Double.doubleToLongBits(getR())
!= java.lang.Double.doubleToLongBits(
other.getR())) return false;
if (java.lang.Double.doubleToLongBits(getX())
!= java.lang.Double.doubleToLongBits(
other.getX())) return false;
if (java.lang.Double.doubleToLongBits(getPMax())
!= java.lang.Double.doubleToLongBits(
other.getPMax())) return false;
if (java.lang.Double.doubleToLongBits(getPMin())
!= java.lang.Double.doubleToLongBits(
other.getPMin())) return false;
if (java.lang.Double.doubleToLongBits(getR0())
!= java.lang.Double.doubleToLongBits(
other.getR0())) return false;
if (java.lang.Double.doubleToLongBits(getRn())
!= java.lang.Double.doubleToLongBits(
other.getRn())) return false;
if (java.lang.Double.doubleToLongBits(getX0())
!= java.lang.Double.doubleToLongBits(
other.getX0())) return false;
if (java.lang.Double.doubleToLongBits(getXn())
!= java.lang.Double.doubleToLongBits(
other.getXn())) return false;
if (getIsExternalGrid()
!= other.getIsExternalGrid()) return false;
if (java.lang.Double.doubleToLongBits(getRMin())
!= java.lang.Double.doubleToLongBits(
other.getRMin())) return false;
if (java.lang.Double.doubleToLongBits(getRnMin())
!= java.lang.Double.doubleToLongBits(
other.getRnMin())) return false;
if (java.lang.Double.doubleToLongBits(getR0Min())
!= java.lang.Double.doubleToLongBits(
other.getR0Min())) return false;
if (java.lang.Double.doubleToLongBits(getXMin())
!= java.lang.Double.doubleToLongBits(
other.getXMin())) return false;
if (java.lang.Double.doubleToLongBits(getXnMin())
!= java.lang.Double.doubleToLongBits(
other.getXnMin())) return false;
if (java.lang.Double.doubleToLongBits(getX0Min())
!= java.lang.Double.doubleToLongBits(
other.getX0Min())) return false;
if (java.lang.Double.doubleToLongBits(getRMax())
!= java.lang.Double.doubleToLongBits(
other.getRMax())) return false;
if (java.lang.Double.doubleToLongBits(getRnMax())
!= java.lang.Double.doubleToLongBits(
other.getRnMax())) return false;
if (java.lang.Double.doubleToLongBits(getR0Max())
!= java.lang.Double.doubleToLongBits(
other.getR0Max())) return false;
if (java.lang.Double.doubleToLongBits(getXMax())
!= java.lang.Double.doubleToLongBits(
other.getXMax())) return false;
if (java.lang.Double.doubleToLongBits(getXnMax())
!= java.lang.Double.doubleToLongBits(
other.getXnMax())) return false;
if (java.lang.Double.doubleToLongBits(getX0Max())
!= java.lang.Double.doubleToLongBits(
other.getX0Max())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEc()) {
hash = (37 * hash) + EC_FIELD_NUMBER;
hash = (53 * hash) + getEc().hashCode();
}
if (getEnergySourcePhasesMRIDsCount() > 0) {
hash = (37 * hash) + ENERGYSOURCEPHASESMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getEnergySourcePhasesMRIDsList().hashCode();
}
hash = (37 * hash) + ACTIVEPOWER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getActivePower()));
hash = (37 * hash) + REACTIVEPOWER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getReactivePower()));
hash = (37 * hash) + VOLTAGEANGLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVoltageAngle()));
hash = (37 * hash) + VOLTAGEMAGNITUDE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVoltageMagnitude()));
hash = (37 * hash) + R_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getR()));
hash = (37 * hash) + X_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getX()));
hash = (37 * hash) + PMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPMax()));
hash = (37 * hash) + PMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPMin()));
hash = (37 * hash) + R0_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getR0()));
hash = (37 * hash) + RN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRn()));
hash = (37 * hash) + X0_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getX0()));
hash = (37 * hash) + XN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getXn()));
hash = (37 * hash) + ISEXTERNALGRID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsExternalGrid());
hash = (37 * hash) + RMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRMin()));
hash = (37 * hash) + RNMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRnMin()));
hash = (37 * hash) + R0MIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getR0Min()));
hash = (37 * hash) + XMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getXMin()));
hash = (37 * hash) + XNMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getXnMin()));
hash = (37 * hash) + X0MIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getX0Min()));
hash = (37 * hash) + RMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRMax()));
hash = (37 * hash) + RNMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRnMax()));
hash = (37 * hash) + R0MAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getR0Max()));
hash = (37 * hash) + XMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getXMax()));
hash = (37 * hash) + XNMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getXnMax()));
hash = (37 * hash) + X0MAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getX0Max()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.zepben.protobuf.cim.iec61970.base.wires.EnergySource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* A generic equivalent for an energy supplier on a transmission or distribution voltage level.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.EnergySource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.EnergySource)
com.zepben.protobuf.cim.iec61970.base.wires.EnergySourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourceOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourceOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.EnergySource.class, com.zepben.protobuf.cim.iec61970.base.wires.EnergySource.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.wires.EnergySource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEcFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ec_ = null;
if (ecBuilder_ != null) {
ecBuilder_.dispose();
ecBuilder_ = null;
}
energySourcePhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
activePower_ = 0D;
reactivePower_ = 0D;
voltageAngle_ = 0D;
voltageMagnitude_ = 0D;
r_ = 0D;
x_ = 0D;
pMax_ = 0D;
pMin_ = 0D;
r0_ = 0D;
rn_ = 0D;
x0_ = 0D;
xn_ = 0D;
isExternalGrid_ = false;
rMin_ = 0D;
rnMin_ = 0D;
r0Min_ = 0D;
xMin_ = 0D;
xnMin_ = 0D;
x0Min_ = 0D;
rMax_ = 0D;
rnMax_ = 0D;
r0Max_ = 0D;
xMax_ = 0D;
xnMax_ = 0D;
x0Max_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourceOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySource_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergySource getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergySource.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergySource build() {
com.zepben.protobuf.cim.iec61970.base.wires.EnergySource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergySource buildPartial() {
com.zepben.protobuf.cim.iec61970.base.wires.EnergySource result = new com.zepben.protobuf.cim.iec61970.base.wires.EnergySource(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.EnergySource result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ec_ = ecBuilder_ == null
? ec_
: ecBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
energySourcePhasesMRIDs_.makeImmutable();
result.energySourcePhasesMRIDs_ = energySourcePhasesMRIDs_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.activePower_ = activePower_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.reactivePower_ = reactivePower_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.voltageAngle_ = voltageAngle_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.voltageMagnitude_ = voltageMagnitude_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.r_ = r_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.x_ = x_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.pMax_ = pMax_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.pMin_ = pMin_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.r0_ = r0_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.rn_ = rn_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.x0_ = x0_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.xn_ = xn_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.isExternalGrid_ = isExternalGrid_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.rMin_ = rMin_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.rnMin_ = rnMin_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.r0Min_ = r0Min_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.xMin_ = xMin_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.xnMin_ = xnMin_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.x0Min_ = x0Min_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.rMax_ = rMax_;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.rnMax_ = rnMax_;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.r0Max_ = r0Max_;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.xMax_ = xMax_;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.xnMax_ = xnMax_;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.x0Max_ = x0Max_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.zepben.protobuf.cim.iec61970.base.wires.EnergySource) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.EnergySource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.EnergySource other) {
if (other == com.zepben.protobuf.cim.iec61970.base.wires.EnergySource.getDefaultInstance()) return this;
if (other.hasEc()) {
mergeEc(other.getEc());
}
if (!other.energySourcePhasesMRIDs_.isEmpty()) {
if (energySourcePhasesMRIDs_.isEmpty()) {
energySourcePhasesMRIDs_ = other.energySourcePhasesMRIDs_;
bitField0_ |= 0x00000002;
} else {
ensureEnergySourcePhasesMRIDsIsMutable();
energySourcePhasesMRIDs_.addAll(other.energySourcePhasesMRIDs_);
}
onChanged();
}
if (other.getActivePower() != 0D) {
setActivePower(other.getActivePower());
}
if (other.getReactivePower() != 0D) {
setReactivePower(other.getReactivePower());
}
if (other.getVoltageAngle() != 0D) {
setVoltageAngle(other.getVoltageAngle());
}
if (other.getVoltageMagnitude() != 0D) {
setVoltageMagnitude(other.getVoltageMagnitude());
}
if (other.getR() != 0D) {
setR(other.getR());
}
if (other.getX() != 0D) {
setX(other.getX());
}
if (other.getPMax() != 0D) {
setPMax(other.getPMax());
}
if (other.getPMin() != 0D) {
setPMin(other.getPMin());
}
if (other.getR0() != 0D) {
setR0(other.getR0());
}
if (other.getRn() != 0D) {
setRn(other.getRn());
}
if (other.getX0() != 0D) {
setX0(other.getX0());
}
if (other.getXn() != 0D) {
setXn(other.getXn());
}
if (other.getIsExternalGrid() != false) {
setIsExternalGrid(other.getIsExternalGrid());
}
if (other.getRMin() != 0D) {
setRMin(other.getRMin());
}
if (other.getRnMin() != 0D) {
setRnMin(other.getRnMin());
}
if (other.getR0Min() != 0D) {
setR0Min(other.getR0Min());
}
if (other.getXMin() != 0D) {
setXMin(other.getXMin());
}
if (other.getXnMin() != 0D) {
setXnMin(other.getXnMin());
}
if (other.getX0Min() != 0D) {
setX0Min(other.getX0Min());
}
if (other.getRMax() != 0D) {
setRMax(other.getRMax());
}
if (other.getRnMax() != 0D) {
setRnMax(other.getRnMax());
}
if (other.getR0Max() != 0D) {
setR0Max(other.getR0Max());
}
if (other.getXMax() != 0D) {
setXMax(other.getXMax());
}
if (other.getXnMax() != 0D) {
setXnMax(other.getXnMax());
}
if (other.getX0Max() != 0D) {
setX0Max(other.getX0Max());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getEcFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureEnergySourcePhasesMRIDsIsMutable();
energySourcePhasesMRIDs_.add(s);
break;
} // case 18
case 25: {
activePower_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
reactivePower_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
voltageAngle_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
voltageMagnitude_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 49
case 57: {
r_ = input.readDouble();
bitField0_ |= 0x00000040;
break;
} // case 57
case 65: {
x_ = input.readDouble();
bitField0_ |= 0x00000080;
break;
} // case 65
case 73: {
pMax_ = input.readDouble();
bitField0_ |= 0x00000100;
break;
} // case 73
case 81: {
pMin_ = input.readDouble();
bitField0_ |= 0x00000200;
break;
} // case 81
case 89: {
r0_ = input.readDouble();
bitField0_ |= 0x00000400;
break;
} // case 89
case 97: {
rn_ = input.readDouble();
bitField0_ |= 0x00000800;
break;
} // case 97
case 105: {
x0_ = input.readDouble();
bitField0_ |= 0x00001000;
break;
} // case 105
case 113: {
xn_ = input.readDouble();
bitField0_ |= 0x00002000;
break;
} // case 113
case 120: {
isExternalGrid_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 120
case 129: {
rMin_ = input.readDouble();
bitField0_ |= 0x00008000;
break;
} // case 129
case 137: {
rnMin_ = input.readDouble();
bitField0_ |= 0x00010000;
break;
} // case 137
case 145: {
r0Min_ = input.readDouble();
bitField0_ |= 0x00020000;
break;
} // case 145
case 153: {
xMin_ = input.readDouble();
bitField0_ |= 0x00040000;
break;
} // case 153
case 161: {
xnMin_ = input.readDouble();
bitField0_ |= 0x00080000;
break;
} // case 161
case 169: {
x0Min_ = input.readDouble();
bitField0_ |= 0x00100000;
break;
} // case 169
case 177: {
rMax_ = input.readDouble();
bitField0_ |= 0x00200000;
break;
} // case 177
case 185: {
rnMax_ = input.readDouble();
bitField0_ |= 0x00400000;
break;
} // case 185
case 193: {
r0Max_ = input.readDouble();
bitField0_ |= 0x00800000;
break;
} // case 193
case 201: {
xMax_ = input.readDouble();
bitField0_ |= 0x01000000;
break;
} // case 201
case 209: {
xnMax_ = input.readDouble();
bitField0_ |= 0x02000000;
break;
} // case 209
case 217: {
x0Max_ = input.readDouble();
bitField0_ |= 0x04000000;
break;
} // case 217
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder> ecBuilder_;
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return Whether the ec field is set.
*/
public boolean hasEc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return The ec.
*/
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection getEc() {
if (ecBuilder_ == null) {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
} else {
return ecBuilder_.getMessage();
}
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder setEc(com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection value) {
if (ecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ec_ = value;
} else {
ecBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder setEc(
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder builderForValue) {
if (ecBuilder_ == null) {
ec_ = builderForValue.build();
} else {
ecBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder mergeEc(com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection value) {
if (ecBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ec_ != null &&
ec_ != com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance()) {
getEcBuilder().mergeFrom(value);
} else {
ec_ = value;
}
} else {
ecBuilder_.mergeFrom(value);
}
if (ec_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder clearEc() {
bitField0_ = (bitField0_ & ~0x00000001);
ec_ = null;
if (ecBuilder_ != null) {
ecBuilder_.dispose();
ecBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder getEcBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getEcFieldBuilder().getBuilder();
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder getEcOrBuilder() {
if (ecBuilder_ != null) {
return ecBuilder_.getMessageOrBuilder();
} else {
return ec_ == null ?
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
}
}
/**
*
**
* ConductingEquipment fields for this EnergySource.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder>
getEcFieldBuilder() {
if (ecBuilder_ == null) {
ecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder>(
getEc(),
getParentForChildren(),
isClean());
ec_ = null;
}
return ecBuilder_;
}
private com.google.protobuf.LazyStringArrayList energySourcePhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEnergySourcePhasesMRIDsIsMutable() {
if (!energySourcePhasesMRIDs_.isModifiable()) {
energySourcePhasesMRIDs_ = new com.google.protobuf.LazyStringArrayList(energySourcePhasesMRIDs_);
}
bitField0_ |= 0x00000002;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @return A list containing the energySourcePhasesMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEnergySourcePhasesMRIDsList() {
energySourcePhasesMRIDs_.makeImmutable();
return energySourcePhasesMRIDs_;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @return The count of energySourcePhasesMRIDs.
*/
public int getEnergySourcePhasesMRIDsCount() {
return energySourcePhasesMRIDs_.size();
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param index The index of the element to return.
* @return The energySourcePhasesMRIDs at the given index.
*/
public java.lang.String getEnergySourcePhasesMRIDs(int index) {
return energySourcePhasesMRIDs_.get(index);
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the energySourcePhasesMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEnergySourcePhasesMRIDsBytes(int index) {
return energySourcePhasesMRIDs_.getByteString(index);
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param index The index to set the value at.
* @param value The energySourcePhasesMRIDs to set.
* @return This builder for chaining.
*/
public Builder setEnergySourcePhasesMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnergySourcePhasesMRIDsIsMutable();
energySourcePhasesMRIDs_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param value The energySourcePhasesMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEnergySourcePhasesMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnergySourcePhasesMRIDsIsMutable();
energySourcePhasesMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param values The energySourcePhasesMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllEnergySourcePhasesMRIDs(
java.lang.Iterable values) {
ensureEnergySourcePhasesMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, energySourcePhasesMRIDs_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @return This builder for chaining.
*/
public Builder clearEnergySourcePhasesMRIDs() {
energySourcePhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energySourcePhasesMRIDs = 2;
* @param value The bytes of the energySourcePhasesMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEnergySourcePhasesMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEnergySourcePhasesMRIDsIsMutable();
energySourcePhasesMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private double activePower_ ;
/**
*
**
* High voltage source active injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double activePower = 3;
* @return The activePower.
*/
@java.lang.Override
public double getActivePower() {
return activePower_;
}
/**
*
**
* High voltage source active injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double activePower = 3;
* @param value The activePower to set.
* @return This builder for chaining.
*/
public Builder setActivePower(double value) {
activePower_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* High voltage source active injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double activePower = 3;
* @return This builder for chaining.
*/
public Builder clearActivePower() {
bitField0_ = (bitField0_ & ~0x00000004);
activePower_ = 0D;
onChanged();
return this;
}
private double reactivePower_ ;
/**
*
**
* High voltage source reactive injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double reactivePower = 4;
* @return The reactivePower.
*/
@java.lang.Override
public double getReactivePower() {
return reactivePower_;
}
/**
*
**
* High voltage source reactive injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double reactivePower = 4;
* @param value The reactivePower to set.
* @return This builder for chaining.
*/
public Builder setReactivePower(double value) {
reactivePower_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* High voltage source reactive injection. Load sign convention is used, i.e. positive sign means flow out from a node.
* Starting value for steady state solutions.
*
*
* double reactivePower = 4;
* @return This builder for chaining.
*/
public Builder clearReactivePower() {
bitField0_ = (bitField0_ & ~0x00000008);
reactivePower_ = 0D;
onChanged();
return this;
}
private double voltageAngle_ ;
/**
*
**
* Phase angle of a-phase open circuit used when voltage characteristics need to be imposed at the node associated with
* the terminal of the energy source, such as when voltages and angles from the transmission level are used as input to
* the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageAngle = 5;
* @return The voltageAngle.
*/
@java.lang.Override
public double getVoltageAngle() {
return voltageAngle_;
}
/**
*
**
* Phase angle of a-phase open circuit used when voltage characteristics need to be imposed at the node associated with
* the terminal of the energy source, such as when voltages and angles from the transmission level are used as input to
* the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageAngle = 5;
* @param value The voltageAngle to set.
* @return This builder for chaining.
*/
public Builder setVoltageAngle(double value) {
voltageAngle_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* Phase angle of a-phase open circuit used when voltage characteristics need to be imposed at the node associated with
* the terminal of the energy source, such as when voltages and angles from the transmission level are used as input to
* the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageAngle = 5;
* @return This builder for chaining.
*/
public Builder clearVoltageAngle() {
bitField0_ = (bitField0_ & ~0x00000010);
voltageAngle_ = 0D;
onChanged();
return this;
}
private double voltageMagnitude_ ;
/**
*
**
* Phase-to-phase open circuit voltage magnitude used when voltage characteristics need to be imposed at the node
* associated with the terminal of the energy source, such as when voltages and angles from the transmission level
* are used as input to the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageMagnitude = 6;
* @return The voltageMagnitude.
*/
@java.lang.Override
public double getVoltageMagnitude() {
return voltageMagnitude_;
}
/**
*
**
* Phase-to-phase open circuit voltage magnitude used when voltage characteristics need to be imposed at the node
* associated with the terminal of the energy source, such as when voltages and angles from the transmission level
* are used as input to the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageMagnitude = 6;
* @param value The voltageMagnitude to set.
* @return This builder for chaining.
*/
public Builder setVoltageMagnitude(double value) {
voltageMagnitude_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* Phase-to-phase open circuit voltage magnitude used when voltage characteristics need to be imposed at the node
* associated with the terminal of the energy source, such as when voltages and angles from the transmission level
* are used as input to the distribution network. The attribute shall be a positive value or zero.
*
*
* double voltageMagnitude = 6;
* @return This builder for chaining.
*/
public Builder clearVoltageMagnitude() {
bitField0_ = (bitField0_ & ~0x00000020);
voltageMagnitude_ = 0D;
onChanged();
return this;
}
private double r_ ;
/**
*
**
* Positive sequence Thevenin resistance.
*
*
* double r = 7;
* @return The r.
*/
@java.lang.Override
public double getR() {
return r_;
}
/**
*
**
* Positive sequence Thevenin resistance.
*
*
* double r = 7;
* @param value The r to set.
* @return This builder for chaining.
*/
public Builder setR(double value) {
r_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* Positive sequence Thevenin resistance.
*
*
* double r = 7;
* @return This builder for chaining.
*/
public Builder clearR() {
bitField0_ = (bitField0_ & ~0x00000040);
r_ = 0D;
onChanged();
return this;
}
private double x_ ;
/**
*
**
* Positive sequence Thevenin reactance.
*
*
* double x = 8;
* @return The x.
*/
@java.lang.Override
public double getX() {
return x_;
}
/**
*
**
* Positive sequence Thevenin reactance.
*
*
* double x = 8;
* @param value The x to set.
* @return This builder for chaining.
*/
public Builder setX(double value) {
x_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* Positive sequence Thevenin reactance.
*
*
* double x = 8;
* @return This builder for chaining.
*/
public Builder clearX() {
bitField0_ = (bitField0_ & ~0x00000080);
x_ = 0D;
onChanged();
return this;
}
private double pMax_ ;
/**
*
**
* This is the maximum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMax = 9;
* @return The pMax.
*/
@java.lang.Override
public double getPMax() {
return pMax_;
}
/**
*
**
* This is the maximum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMax = 9;
* @param value The pMax to set.
* @return This builder for chaining.
*/
public Builder setPMax(double value) {
pMax_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* This is the maximum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMax = 9;
* @return This builder for chaining.
*/
public Builder clearPMax() {
bitField0_ = (bitField0_ & ~0x00000100);
pMax_ = 0D;
onChanged();
return this;
}
private double pMin_ ;
/**
*
**
* This is the minimum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMin = 10;
* @return The pMin.
*/
@java.lang.Override
public double getPMin() {
return pMin_;
}
/**
*
**
* This is the minimum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMin = 10;
* @param value The pMin to set.
* @return This builder for chaining.
*/
public Builder setPMin(double value) {
pMin_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* This is the minimum active power that can be produced by the source. Load sign convention is used,
* i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.
*
*
* double pMin = 10;
* @return This builder for chaining.
*/
public Builder clearPMin() {
bitField0_ = (bitField0_ & ~0x00000200);
pMin_ = 0D;
onChanged();
return this;
}
private double r0_ ;
/**
*
**
* Zero sequence Thevenin resistance.
*
*
* double r0 = 11;
* @return The r0.
*/
@java.lang.Override
public double getR0() {
return r0_;
}
/**
*
**
* Zero sequence Thevenin resistance.
*
*
* double r0 = 11;
* @param value The r0 to set.
* @return This builder for chaining.
*/
public Builder setR0(double value) {
r0_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* Zero sequence Thevenin resistance.
*
*
* double r0 = 11;
* @return This builder for chaining.
*/
public Builder clearR0() {
bitField0_ = (bitField0_ & ~0x00000400);
r0_ = 0D;
onChanged();
return this;
}
private double rn_ ;
/**
*
**
* Negative sequence Thevenin resistance.
*
*
* double rn = 12;
* @return The rn.
*/
@java.lang.Override
public double getRn() {
return rn_;
}
/**
*
**
* Negative sequence Thevenin resistance.
*
*
* double rn = 12;
* @param value The rn to set.
* @return This builder for chaining.
*/
public Builder setRn(double value) {
rn_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* Negative sequence Thevenin resistance.
*
*
* double rn = 12;
* @return This builder for chaining.
*/
public Builder clearRn() {
bitField0_ = (bitField0_ & ~0x00000800);
rn_ = 0D;
onChanged();
return this;
}
private double x0_ ;
/**
*
**
* Zero sequence Thevenin reactance.
*
*
* double x0 = 13;
* @return The x0.
*/
@java.lang.Override
public double getX0() {
return x0_;
}
/**
*
**
* Zero sequence Thevenin reactance.
*
*
* double x0 = 13;
* @param value The x0 to set.
* @return This builder for chaining.
*/
public Builder setX0(double value) {
x0_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* Zero sequence Thevenin reactance.
*
*
* double x0 = 13;
* @return This builder for chaining.
*/
public Builder clearX0() {
bitField0_ = (bitField0_ & ~0x00001000);
x0_ = 0D;
onChanged();
return this;
}
private double xn_ ;
/**
*
**
* Negative sequence Thevenin reactance.
*
*
* double xn = 14;
* @return The xn.
*/
@java.lang.Override
public double getXn() {
return xn_;
}
/**
*
**
* Negative sequence Thevenin reactance.
*
*
* double xn = 14;
* @param value The xn to set.
* @return This builder for chaining.
*/
public Builder setXn(double value) {
xn_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* Negative sequence Thevenin reactance.
*
*
* double xn = 14;
* @return This builder for chaining.
*/
public Builder clearXn() {
bitField0_ = (bitField0_ & ~0x00002000);
xn_ = 0D;
onChanged();
return this;
}
private boolean isExternalGrid_ ;
/**
*
**
* True if this energy source represents the higher-level power grid connection to an external grid
* that normally is modelled as the slack bus for power flow calculations.
*
*
* bool isExternalGrid = 15;
* @return The isExternalGrid.
*/
@java.lang.Override
public boolean getIsExternalGrid() {
return isExternalGrid_;
}
/**
*
**
* True if this energy source represents the higher-level power grid connection to an external grid
* that normally is modelled as the slack bus for power flow calculations.
*
*
* bool isExternalGrid = 15;
* @param value The isExternalGrid to set.
* @return This builder for chaining.
*/
public Builder setIsExternalGrid(boolean value) {
isExternalGrid_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
**
* True if this energy source represents the higher-level power grid connection to an external grid
* that normally is modelled as the slack bus for power flow calculations.
*
*
* bool isExternalGrid = 15;
* @return This builder for chaining.
*/
public Builder clearIsExternalGrid() {
bitField0_ = (bitField0_ & ~0x00004000);
isExternalGrid_ = false;
onChanged();
return this;
}
private double rMin_ ;
/**
*
**
* Minimum positive sequence Thevenin resistance.
*
*
* double rMin = 16;
* @return The rMin.
*/
@java.lang.Override
public double getRMin() {
return rMin_;
}
/**
*
**
* Minimum positive sequence Thevenin resistance.
*
*
* double rMin = 16;
* @param value The rMin to set.
* @return This builder for chaining.
*/
public Builder setRMin(double value) {
rMin_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
**
* Minimum positive sequence Thevenin resistance.
*
*
* double rMin = 16;
* @return This builder for chaining.
*/
public Builder clearRMin() {
bitField0_ = (bitField0_ & ~0x00008000);
rMin_ = 0D;
onChanged();
return this;
}
private double rnMin_ ;
/**
*
**
* Minimum negative sequence Thevenin resistance
*
*
* double rnMin = 17;
* @return The rnMin.
*/
@java.lang.Override
public double getRnMin() {
return rnMin_;
}
/**
*
**
* Minimum negative sequence Thevenin resistance
*
*
* double rnMin = 17;
* @param value The rnMin to set.
* @return This builder for chaining.
*/
public Builder setRnMin(double value) {
rnMin_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
**
* Minimum negative sequence Thevenin resistance
*
*
* double rnMin = 17;
* @return This builder for chaining.
*/
public Builder clearRnMin() {
bitField0_ = (bitField0_ & ~0x00010000);
rnMin_ = 0D;
onChanged();
return this;
}
private double r0Min_ ;
/**
*
**
* Minimum zero sequence Thevenin resistance.
*
*
* double r0Min = 18;
* @return The r0Min.
*/
@java.lang.Override
public double getR0Min() {
return r0Min_;
}
/**
*
**
* Minimum zero sequence Thevenin resistance.
*
*
* double r0Min = 18;
* @param value The r0Min to set.
* @return This builder for chaining.
*/
public Builder setR0Min(double value) {
r0Min_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
**
* Minimum zero sequence Thevenin resistance.
*
*
* double r0Min = 18;
* @return This builder for chaining.
*/
public Builder clearR0Min() {
bitField0_ = (bitField0_ & ~0x00020000);
r0Min_ = 0D;
onChanged();
return this;
}
private double xMin_ ;
/**
*
**
* Minimum positive sequence Thevenin reactance.
*
*
* double xMin = 19;
* @return The xMin.
*/
@java.lang.Override
public double getXMin() {
return xMin_;
}
/**
*
**
* Minimum positive sequence Thevenin reactance.
*
*
* double xMin = 19;
* @param value The xMin to set.
* @return This builder for chaining.
*/
public Builder setXMin(double value) {
xMin_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
**
* Minimum positive sequence Thevenin reactance.
*
*
* double xMin = 19;
* @return This builder for chaining.
*/
public Builder clearXMin() {
bitField0_ = (bitField0_ & ~0x00040000);
xMin_ = 0D;
onChanged();
return this;
}
private double xnMin_ ;
/**
*
**
* Minimum negative sequence Thevenin reactance.
*
*
* double xnMin = 20;
* @return The xnMin.
*/
@java.lang.Override
public double getXnMin() {
return xnMin_;
}
/**
*
**
* Minimum negative sequence Thevenin reactance.
*
*
* double xnMin = 20;
* @param value The xnMin to set.
* @return This builder for chaining.
*/
public Builder setXnMin(double value) {
xnMin_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
**
* Minimum negative sequence Thevenin reactance.
*
*
* double xnMin = 20;
* @return This builder for chaining.
*/
public Builder clearXnMin() {
bitField0_ = (bitField0_ & ~0x00080000);
xnMin_ = 0D;
onChanged();
return this;
}
private double x0Min_ ;
/**
*
**
* Minimum zero sequence Thevenin reactance.
*
*
* double x0Min = 21;
* @return The x0Min.
*/
@java.lang.Override
public double getX0Min() {
return x0Min_;
}
/**
*
**
* Minimum zero sequence Thevenin reactance.
*
*
* double x0Min = 21;
* @param value The x0Min to set.
* @return This builder for chaining.
*/
public Builder setX0Min(double value) {
x0Min_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
**
* Minimum zero sequence Thevenin reactance.
*
*
* double x0Min = 21;
* @return This builder for chaining.
*/
public Builder clearX0Min() {
bitField0_ = (bitField0_ & ~0x00100000);
x0Min_ = 0D;
onChanged();
return this;
}
private double rMax_ ;
/**
*
**
* Maximum positive sequence Thevenin resistance.
*
*
* double rMax = 22;
* @return The rMax.
*/
@java.lang.Override
public double getRMax() {
return rMax_;
}
/**
*
**
* Maximum positive sequence Thevenin resistance.
*
*
* double rMax = 22;
* @param value The rMax to set.
* @return This builder for chaining.
*/
public Builder setRMax(double value) {
rMax_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
**
* Maximum positive sequence Thevenin resistance.
*
*
* double rMax = 22;
* @return This builder for chaining.
*/
public Builder clearRMax() {
bitField0_ = (bitField0_ & ~0x00200000);
rMax_ = 0D;
onChanged();
return this;
}
private double rnMax_ ;
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double rnMax = 23;
* @return The rnMax.
*/
@java.lang.Override
public double getRnMax() {
return rnMax_;
}
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double rnMax = 23;
* @param value The rnMax to set.
* @return This builder for chaining.
*/
public Builder setRnMax(double value) {
rnMax_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double rnMax = 23;
* @return This builder for chaining.
*/
public Builder clearRnMax() {
bitField0_ = (bitField0_ & ~0x00400000);
rnMax_ = 0D;
onChanged();
return this;
}
private double r0Max_ ;
/**
*
**
* Maximum zero sequence Thevenin resistance.
*
*
* double r0Max = 24;
* @return The r0Max.
*/
@java.lang.Override
public double getR0Max() {
return r0Max_;
}
/**
*
**
* Maximum zero sequence Thevenin resistance.
*
*
* double r0Max = 24;
* @param value The r0Max to set.
* @return This builder for chaining.
*/
public Builder setR0Max(double value) {
r0Max_ = value;
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
**
* Maximum zero sequence Thevenin resistance.
*
*
* double r0Max = 24;
* @return This builder for chaining.
*/
public Builder clearR0Max() {
bitField0_ = (bitField0_ & ~0x00800000);
r0Max_ = 0D;
onChanged();
return this;
}
private double xMax_ ;
/**
*
**
* Maximum positive sequence Thevenin reactance.
*
*
* double xMax = 25;
* @return The xMax.
*/
@java.lang.Override
public double getXMax() {
return xMax_;
}
/**
*
**
* Maximum positive sequence Thevenin reactance.
*
*
* double xMax = 25;
* @param value The xMax to set.
* @return This builder for chaining.
*/
public Builder setXMax(double value) {
xMax_ = value;
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
**
* Maximum positive sequence Thevenin reactance.
*
*
* double xMax = 25;
* @return This builder for chaining.
*/
public Builder clearXMax() {
bitField0_ = (bitField0_ & ~0x01000000);
xMax_ = 0D;
onChanged();
return this;
}
private double xnMax_ ;
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double xnMax = 26;
* @return The xnMax.
*/
@java.lang.Override
public double getXnMax() {
return xnMax_;
}
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double xnMax = 26;
* @param value The xnMax to set.
* @return This builder for chaining.
*/
public Builder setXnMax(double value) {
xnMax_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
**
* Maximum negative sequence Thevenin resistance.
*
*
* double xnMax = 26;
* @return This builder for chaining.
*/
public Builder clearXnMax() {
bitField0_ = (bitField0_ & ~0x02000000);
xnMax_ = 0D;
onChanged();
return this;
}
private double x0Max_ ;
/**
*
**
* Maximum zero sequence Thevenin reactance.
*
*
* double x0Max = 27;
* @return The x0Max.
*/
@java.lang.Override
public double getX0Max() {
return x0Max_;
}
/**
*
**
* Maximum zero sequence Thevenin reactance.
*
*
* double x0Max = 27;
* @param value The x0Max to set.
* @return This builder for chaining.
*/
public Builder setX0Max(double value) {
x0Max_ = value;
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
**
* Maximum zero sequence Thevenin reactance.
*
*
* double x0Max = 27;
* @return This builder for chaining.
*/
public Builder clearX0Max() {
bitField0_ = (bitField0_ & ~0x04000000);
x0Max_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61970.base.wires.EnergySource)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.EnergySource)
private static final com.zepben.protobuf.cim.iec61970.base.wires.EnergySource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.EnergySource();
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EnergySource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergySource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}