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

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

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

/**
 * 
 **
 * A PowerTransformerEnd is associated with each Terminal of a PowerTransformer.
 * The impedance values r, r0, x, and x0 of a PowerTransformerEnd represents a star equivalent as follows
 * <p>
 * 1) for a two Terminal PowerTransformer the high voltage PowerTransformerEnd has non zero values on r, r0, x, and x0
 *    while the low voltage PowerTransformerEnd has zero values for r, r0, x, and x0.
 * 2) for a three Terminal PowerTransformer the three PowerTransformerEnds represents a star equivalent with each leg in
 *    the star represented by r, r0, x, and x0 values.
 * 3) for a PowerTransformer with more than three Terminals the PowerTransformerEnd impedance values cannot be used.
 *    Instead use the TransformerMeshImpedance or split the transformer into multiple PowerTransformers.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd} */ public final class PowerTransformerEnd extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd) PowerTransformerEndOrBuilder { private static final long serialVersionUID = 0L; // Use PowerTransformerEnd.newBuilder() to construct. private PowerTransformerEnd(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PowerTransformerEnd() { powerTransformerMRID_ = ""; connectionKind_ = 0; ratings_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PowerTransformerEnd(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformerEnd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformerEnd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd.class, com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd.Builder.class); } private int bitField0_; public static final int TE_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te_; /** *
   **
   * IdentifiedObject fields for this PowerTransformerEnd.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; * @return Whether the te field is set. */ @java.lang.Override public boolean hasTe() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * IdentifiedObject fields for this PowerTransformerEnd.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; * @return The te. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd getTe() { return te_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.getDefaultInstance() : te_; } /** *
   **
   * IdentifiedObject fields for this PowerTransformerEnd.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOrBuilder getTeOrBuilder() { return te_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.getDefaultInstance() : te_; } public static final int POWERTRANSFORMERMRID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object powerTransformerMRID_ = ""; /** *
   **
   * The power transformer of this power transformer end.
   * 
* * string powerTransformerMRID = 2; * @return The powerTransformerMRID. */ @java.lang.Override public java.lang.String getPowerTransformerMRID() { java.lang.Object ref = powerTransformerMRID_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); powerTransformerMRID_ = s; return s; } } /** *
   **
   * The power transformer of this power transformer end.
   * 
* * string powerTransformerMRID = 2; * @return The bytes for powerTransformerMRID. */ @java.lang.Override public com.google.protobuf.ByteString getPowerTransformerMRIDBytes() { java.lang.Object ref = powerTransformerMRID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); powerTransformerMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RATEDS_FIELD_NUMBER = 3; private int ratedS_ = 0; /** *
   **
   * Deprecated - use ratings instead.
   * Normal apparent power rating. The attribute shall be a positive value. For a two-winding transformer the values
   * for the high and low voltage sides shall be identical.
   * 
* * int32 ratedS = 3; * @return The ratedS. */ @java.lang.Override public int getRatedS() { return ratedS_; } public static final int RATEDU_FIELD_NUMBER = 4; private int ratedU_ = 0; /** *
   **
   * Rated voltage: phase-phase for three-phase windings, and either phase-phase or phase-neutral for single-phase windings.
   * A high voltage side, as given by TransformerEnd.endNumber, shall have a ratedU that is greater or equal than
   * ratedU for the lower voltage sides
   * 
* * int32 ratedU = 4; * @return The ratedU. */ @java.lang.Override public int getRatedU() { return ratedU_; } public static final int R_FIELD_NUMBER = 5; private double r_ = 0D; /** *
   **
   * Resistance (star-model) of the transformer end.
   * The attribute shall be equal or greater than zero for non-equivalent transformers.
   * 
* * double r = 5; * @return The r. */ @java.lang.Override public double getR() { return r_; } public static final int X_FIELD_NUMBER = 6; private double x_ = 0D; /** *
   **
   * Positive sequence series reactance (star-model) of the transformer end.
   * 
* * double x = 6; * @return The x. */ @java.lang.Override public double getX() { return x_; } public static final int R0_FIELD_NUMBER = 7; private double r0_ = 0D; /** *
   **
   * Zero sequence series resistance (star-model) of the transformer end.
   * 
* * double r0 = 7; * @return The r0. */ @java.lang.Override public double getR0() { return r0_; } public static final int X0_FIELD_NUMBER = 8; private double x0_ = 0D; /** *
   **
   * Zero sequence series reactance of the transformer end.
   * 
* * double x0 = 8; * @return The x0. */ @java.lang.Override public double getX0() { return x0_; } public static final int CONNECTIONKIND_FIELD_NUMBER = 9; private int connectionKind_ = 0; /** *
   **
   * Kind of connection.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection connectionKind = 9; * @return The enum numeric value on the wire for connectionKind. */ @java.lang.Override public int getConnectionKindValue() { return connectionKind_; } /** *
   **
   * Kind of connection.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection connectionKind = 9; * @return The connectionKind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection getConnectionKind() { com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection result = com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection.forNumber(connectionKind_); return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection.UNRECOGNIZED : result; } public static final int B_FIELD_NUMBER = 10; private double b_ = 0D; /** *
   **
   * Magnetizing branch susceptance (B mag).  The value can be positive or negative.
   * 
* * double b = 10; * @return The b. */ @java.lang.Override public double getB() { return b_; } public static final int B0_FIELD_NUMBER = 11; private double b0_ = 0D; /** *
   **
   * Zero sequence magnetizing branch susceptance.
   * 
* * double b0 = 11; * @return The b0. */ @java.lang.Override public double getB0() { return b0_; } public static final int G_FIELD_NUMBER = 12; private double g_ = 0D; /** *
   **
   * Magnetizing branch conductance.
   * 
* * double g = 12; * @return The g. */ @java.lang.Override public double getG() { return g_; } public static final int G0_FIELD_NUMBER = 13; private double g0_ = 0D; /** *
   **
   * Zero sequence magnetizing branch conductance (star-model).
   * 
* * double g0 = 13; * @return The g0. */ @java.lang.Override public double getG0() { return g0_; } public static final int PHASEANGLECLOCK_FIELD_NUMBER = 14; private int phaseAngleClock_ = 0; /** *
   **
   * Terminal voltage phase angle displacement where 360 degrees are represented with clock hours.
   * The valid values are 0 to 11. For example, for the secondary side end of a transformer with vector group
   * code of 'Dyn11', specify the connection kind as wye with neutral and specify the phase angle of the clock as 11.
   * The clock value of the transformer end number specified as 1, is assumed to be zero.
   * Note the transformer end number is not assumed to be the same as the terminal sequence number.
   * 
* * int32 phaseAngleClock = 14; * @return The phaseAngleClock. */ @java.lang.Override public int getPhaseAngleClock() { return phaseAngleClock_; } public static final int RATINGS_FIELD_NUMBER = 15; @SuppressWarnings("serial") private java.util.List ratings_; /** *
   **
   * The normal apparent power ratings for this PowerTransformerEnd.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ @java.lang.Override public java.util.List getRatingsList() { return ratings_; } /** *
   **
   * The normal apparent power ratings for this PowerTransformerEnd.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ @java.lang.Override public java.util.List getRatingsOrBuilderList() { return ratings_; } /** *
   **
   * The normal apparent power ratings for this PowerTransformerEnd.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ @java.lang.Override public int getRatingsCount() { return ratings_.size(); } /** *
   **
   * The normal apparent power ratings for this PowerTransformerEnd.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS getRatings(int index) { return ratings_.get(index); } /** *
   **
   * The normal apparent power ratings for this PowerTransformerEnd.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedSOrBuilder getRatingsOrBuilder( int index) { return ratings_.get(index); } 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, getTe()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(powerTransformerMRID_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, powerTransformerMRID_); } if (ratedS_ != 0) { output.writeInt32(3, ratedS_); } if (ratedU_ != 0) { output.writeInt32(4, ratedU_); } if (java.lang.Double.doubleToRawLongBits(r_) != 0) { output.writeDouble(5, r_); } if (java.lang.Double.doubleToRawLongBits(x_) != 0) { output.writeDouble(6, x_); } if (java.lang.Double.doubleToRawLongBits(r0_) != 0) { output.writeDouble(7, r0_); } if (java.lang.Double.doubleToRawLongBits(x0_) != 0) { output.writeDouble(8, x0_); } if (connectionKind_ != com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection.UNKNOWN_WINDING.getNumber()) { output.writeEnum(9, connectionKind_); } if (java.lang.Double.doubleToRawLongBits(b_) != 0) { output.writeDouble(10, b_); } if (java.lang.Double.doubleToRawLongBits(b0_) != 0) { output.writeDouble(11, b0_); } if (java.lang.Double.doubleToRawLongBits(g_) != 0) { output.writeDouble(12, g_); } if (java.lang.Double.doubleToRawLongBits(g0_) != 0) { output.writeDouble(13, g0_); } if (phaseAngleClock_ != 0) { output.writeInt32(14, phaseAngleClock_); } for (int i = 0; i < ratings_.size(); i++) { output.writeMessage(15, ratings_.get(i)); } 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, getTe()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(powerTransformerMRID_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, powerTransformerMRID_); } if (ratedS_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, ratedS_); } if (ratedU_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, ratedU_); } if (java.lang.Double.doubleToRawLongBits(r_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, r_); } if (java.lang.Double.doubleToRawLongBits(x_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, x_); } if (java.lang.Double.doubleToRawLongBits(r0_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, r0_); } if (java.lang.Double.doubleToRawLongBits(x0_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, x0_); } if (connectionKind_ != com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection.UNKNOWN_WINDING.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, connectionKind_); } if (java.lang.Double.doubleToRawLongBits(b_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, b_); } if (java.lang.Double.doubleToRawLongBits(b0_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, b0_); } if (java.lang.Double.doubleToRawLongBits(g_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(12, g_); } if (java.lang.Double.doubleToRawLongBits(g0_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(13, g0_); } if (phaseAngleClock_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, phaseAngleClock_); } for (int i = 0; i < ratings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, ratings_.get(i)); } 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.PowerTransformerEnd)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd other = (com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd) obj; if (hasTe() != other.hasTe()) return false; if (hasTe()) { if (!getTe() .equals(other.getTe())) return false; } if (!getPowerTransformerMRID() .equals(other.getPowerTransformerMRID())) return false; if (getRatedS() != other.getRatedS()) return false; if (getRatedU() != other.getRatedU()) 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(getR0()) != java.lang.Double.doubleToLongBits( other.getR0())) return false; if (java.lang.Double.doubleToLongBits(getX0()) != java.lang.Double.doubleToLongBits( other.getX0())) return false; if (connectionKind_ != other.connectionKind_) return false; if (java.lang.Double.doubleToLongBits(getB()) != java.lang.Double.doubleToLongBits( other.getB())) return false; if (java.lang.Double.doubleToLongBits(getB0()) != java.lang.Double.doubleToLongBits( other.getB0())) return false; if (java.lang.Double.doubleToLongBits(getG()) != java.lang.Double.doubleToLongBits( other.getG())) return false; if (java.lang.Double.doubleToLongBits(getG0()) != java.lang.Double.doubleToLongBits( other.getG0())) return false; if (getPhaseAngleClock() != other.getPhaseAngleClock()) return false; if (!getRatingsList() .equals(other.getRatingsList())) 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 (hasTe()) { hash = (37 * hash) + TE_FIELD_NUMBER; hash = (53 * hash) + getTe().hashCode(); } hash = (37 * hash) + POWERTRANSFORMERMRID_FIELD_NUMBER; hash = (53 * hash) + getPowerTransformerMRID().hashCode(); hash = (37 * hash) + RATEDS_FIELD_NUMBER; hash = (53 * hash) + getRatedS(); hash = (37 * hash) + RATEDU_FIELD_NUMBER; hash = (53 * hash) + getRatedU(); 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) + R0_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getR0())); hash = (37 * hash) + X0_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getX0())); hash = (37 * hash) + CONNECTIONKIND_FIELD_NUMBER; hash = (53 * hash) + connectionKind_; hash = (37 * hash) + B_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getB())); hash = (37 * hash) + B0_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getB0())); hash = (37 * hash) + G_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getG())); hash = (37 * hash) + G0_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getG0())); hash = (37 * hash) + PHASEANGLECLOCK_FIELD_NUMBER; hash = (53 * hash) + getPhaseAngleClock(); if (getRatingsCount() > 0) { hash = (37 * hash) + RATINGS_FIELD_NUMBER; hash = (53 * hash) + getRatingsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd 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.PowerTransformerEnd parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd 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.PowerTransformerEnd parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd 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.PowerTransformerEnd 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.PowerTransformerEnd 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.PowerTransformerEnd 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.PowerTransformerEnd 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.PowerTransformerEnd 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.PowerTransformerEnd 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.PowerTransformerEnd 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 PowerTransformerEnd is associated with each Terminal of a PowerTransformer.
   * The impedance values r, r0, x, and x0 of a PowerTransformerEnd represents a star equivalent as follows
   * <p>
   * 1) for a two Terminal PowerTransformer the high voltage PowerTransformerEnd has non zero values on r, r0, x, and x0
   *    while the low voltage PowerTransformerEnd has zero values for r, r0, x, and x0.
   * 2) for a three Terminal PowerTransformer the three PowerTransformerEnds represents a star equivalent with each leg in
   *    the star represented by r, r0, x, and x0 values.
   * 3) for a PowerTransformer with more than three Terminals the PowerTransformerEnd impedance values cannot be used.
   *    Instead use the TransformerMeshImpedance or split the transformer into multiple PowerTransformers.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd) com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEndOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformerEnd_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformerEnd_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd.class, com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTeFieldBuilder(); getRatingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; te_ = null; if (teBuilder_ != null) { teBuilder_.dispose(); teBuilder_ = null; } powerTransformerMRID_ = ""; ratedS_ = 0; ratedU_ = 0; r_ = 0D; x_ = 0D; r0_ = 0D; x0_ = 0D; connectionKind_ = 0; b_ = 0D; b0_ = 0D; g_ = 0D; g0_ = 0D; phaseAngleClock_ = 0; if (ratingsBuilder_ == null) { ratings_ = java.util.Collections.emptyList(); } else { ratings_ = null; ratingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformerEnd_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd build() { com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd buildPartial() { com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd result = new com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd result) { if (ratingsBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0)) { ratings_ = java.util.Collections.unmodifiableList(ratings_); bitField0_ = (bitField0_ & ~0x00004000); } result.ratings_ = ratings_; } else { result.ratings_ = ratingsBuilder_.build(); } } private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.te_ = teBuilder_ == null ? te_ : teBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.powerTransformerMRID_ = powerTransformerMRID_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ratedS_ = ratedS_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ratedU_ = ratedU_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.r_ = r_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.x_ = x_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.r0_ = r0_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.x0_ = x0_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.connectionKind_ = connectionKind_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.b_ = b_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.b0_ = b0_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.g_ = g_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.g0_ = g0_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.phaseAngleClock_ = phaseAngleClock_; } 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.PowerTransformerEnd) { return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd other) { if (other == com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd.getDefaultInstance()) return this; if (other.hasTe()) { mergeTe(other.getTe()); } if (!other.getPowerTransformerMRID().isEmpty()) { powerTransformerMRID_ = other.powerTransformerMRID_; bitField0_ |= 0x00000002; onChanged(); } if (other.getRatedS() != 0) { setRatedS(other.getRatedS()); } if (other.getRatedU() != 0) { setRatedU(other.getRatedU()); } if (other.getR() != 0D) { setR(other.getR()); } if (other.getX() != 0D) { setX(other.getX()); } if (other.getR0() != 0D) { setR0(other.getR0()); } if (other.getX0() != 0D) { setX0(other.getX0()); } if (other.connectionKind_ != 0) { setConnectionKindValue(other.getConnectionKindValue()); } if (other.getB() != 0D) { setB(other.getB()); } if (other.getB0() != 0D) { setB0(other.getB0()); } if (other.getG() != 0D) { setG(other.getG()); } if (other.getG0() != 0D) { setG0(other.getG0()); } if (other.getPhaseAngleClock() != 0) { setPhaseAngleClock(other.getPhaseAngleClock()); } if (ratingsBuilder_ == null) { if (!other.ratings_.isEmpty()) { if (ratings_.isEmpty()) { ratings_ = other.ratings_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureRatingsIsMutable(); ratings_.addAll(other.ratings_); } onChanged(); } } else { if (!other.ratings_.isEmpty()) { if (ratingsBuilder_.isEmpty()) { ratingsBuilder_.dispose(); ratingsBuilder_ = null; ratings_ = other.ratings_; bitField0_ = (bitField0_ & ~0x00004000); ratingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRatingsFieldBuilder() : null; } else { ratingsBuilder_.addAllMessages(other.ratings_); } } } 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( getTeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { powerTransformerMRID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { ratedS_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { ratedU_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 41: { r_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 49: { x_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 case 57: { r0_ = input.readDouble(); bitField0_ |= 0x00000040; break; } // case 57 case 65: { x0_ = input.readDouble(); bitField0_ |= 0x00000080; break; } // case 65 case 72: { connectionKind_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 72 case 81: { b_ = input.readDouble(); bitField0_ |= 0x00000200; break; } // case 81 case 89: { b0_ = input.readDouble(); bitField0_ |= 0x00000400; break; } // case 89 case 97: { g_ = input.readDouble(); bitField0_ |= 0x00000800; break; } // case 97 case 105: { g0_ = input.readDouble(); bitField0_ |= 0x00001000; break; } // case 105 case 112: { phaseAngleClock_ = input.readInt32(); bitField0_ |= 0x00002000; break; } // case 112 case 122: { com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS m = input.readMessage( com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.parser(), extensionRegistry); if (ratingsBuilder_ == null) { ensureRatingsIsMutable(); ratings_.add(m); } else { ratingsBuilder_.addMessage(m); } break; } // case 122 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.TransformerEnd te_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOrBuilder> teBuilder_; /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; * @return Whether the te field is set. */ public boolean hasTe() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; * @return The te. */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd getTe() { if (teBuilder_ == null) { return te_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.getDefaultInstance() : te_; } else { return teBuilder_.getMessage(); } } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ public Builder setTe(com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd value) { if (teBuilder_ == null) { if (value == null) { throw new NullPointerException(); } te_ = value; } else { teBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ public Builder setTe( com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.Builder builderForValue) { if (teBuilder_ == null) { te_ = builderForValue.build(); } else { teBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ public Builder mergeTe(com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd value) { if (teBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && te_ != null && te_ != com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.getDefaultInstance()) { getTeBuilder().mergeFrom(value); } else { te_ = value; } } else { teBuilder_.mergeFrom(value); } if (te_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ public Builder clearTe() { bitField0_ = (bitField0_ & ~0x00000001); te_ = null; if (teBuilder_ != null) { teBuilder_.dispose(); teBuilder_ = null; } onChanged(); return this; } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.Builder getTeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTeFieldBuilder().getBuilder(); } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOrBuilder getTeOrBuilder() { if (teBuilder_ != null) { return teBuilder_.getMessageOrBuilder(); } else { return te_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.getDefaultInstance() : te_; } } /** *
     **
     * IdentifiedObject fields for this PowerTransformerEnd.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TransformerEnd te = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOrBuilder> getTeFieldBuilder() { if (teBuilder_ == null) { teBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOrBuilder>( getTe(), getParentForChildren(), isClean()); te_ = null; } return teBuilder_; } private java.lang.Object powerTransformerMRID_ = ""; /** *
     **
     * The power transformer of this power transformer end.
     * 
* * string powerTransformerMRID = 2; * @return The powerTransformerMRID. */ public java.lang.String getPowerTransformerMRID() { java.lang.Object ref = powerTransformerMRID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); powerTransformerMRID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * The power transformer of this power transformer end.
     * 
* * string powerTransformerMRID = 2; * @return The bytes for powerTransformerMRID. */ public com.google.protobuf.ByteString getPowerTransformerMRIDBytes() { java.lang.Object ref = powerTransformerMRID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); powerTransformerMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * The power transformer of this power transformer end.
     * 
* * string powerTransformerMRID = 2; * @param value The powerTransformerMRID to set. * @return This builder for chaining. */ public Builder setPowerTransformerMRID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } powerTransformerMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The power transformer of this power transformer end.
     * 
* * string powerTransformerMRID = 2; * @return This builder for chaining. */ public Builder clearPowerTransformerMRID() { powerTransformerMRID_ = getDefaultInstance().getPowerTransformerMRID(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * The power transformer of this power transformer end.
     * 
* * string powerTransformerMRID = 2; * @param value The bytes for powerTransformerMRID to set. * @return This builder for chaining. */ public Builder setPowerTransformerMRIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); powerTransformerMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int ratedS_ ; /** *
     **
     * Deprecated - use ratings instead.
     * Normal apparent power rating. The attribute shall be a positive value. For a two-winding transformer the values
     * for the high and low voltage sides shall be identical.
     * 
* * int32 ratedS = 3; * @return The ratedS. */ @java.lang.Override public int getRatedS() { return ratedS_; } /** *
     **
     * Deprecated - use ratings instead.
     * Normal apparent power rating. The attribute shall be a positive value. For a two-winding transformer the values
     * for the high and low voltage sides shall be identical.
     * 
* * int32 ratedS = 3; * @param value The ratedS to set. * @return This builder for chaining. */ public Builder setRatedS(int value) { ratedS_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * Deprecated - use ratings instead.
     * Normal apparent power rating. The attribute shall be a positive value. For a two-winding transformer the values
     * for the high and low voltage sides shall be identical.
     * 
* * int32 ratedS = 3; * @return This builder for chaining. */ public Builder clearRatedS() { bitField0_ = (bitField0_ & ~0x00000004); ratedS_ = 0; onChanged(); return this; } private int ratedU_ ; /** *
     **
     * Rated voltage: phase-phase for three-phase windings, and either phase-phase or phase-neutral for single-phase windings.
     * A high voltage side, as given by TransformerEnd.endNumber, shall have a ratedU that is greater or equal than
     * ratedU for the lower voltage sides
     * 
* * int32 ratedU = 4; * @return The ratedU. */ @java.lang.Override public int getRatedU() { return ratedU_; } /** *
     **
     * Rated voltage: phase-phase for three-phase windings, and either phase-phase or phase-neutral for single-phase windings.
     * A high voltage side, as given by TransformerEnd.endNumber, shall have a ratedU that is greater or equal than
     * ratedU for the lower voltage sides
     * 
* * int32 ratedU = 4; * @param value The ratedU to set. * @return This builder for chaining. */ public Builder setRatedU(int value) { ratedU_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * Rated voltage: phase-phase for three-phase windings, and either phase-phase or phase-neutral for single-phase windings.
     * A high voltage side, as given by TransformerEnd.endNumber, shall have a ratedU that is greater or equal than
     * ratedU for the lower voltage sides
     * 
* * int32 ratedU = 4; * @return This builder for chaining. */ public Builder clearRatedU() { bitField0_ = (bitField0_ & ~0x00000008); ratedU_ = 0; onChanged(); return this; } private double r_ ; /** *
     **
     * Resistance (star-model) of the transformer end.
     * The attribute shall be equal or greater than zero for non-equivalent transformers.
     * 
* * double r = 5; * @return The r. */ @java.lang.Override public double getR() { return r_; } /** *
     **
     * Resistance (star-model) of the transformer end.
     * The attribute shall be equal or greater than zero for non-equivalent transformers.
     * 
* * double r = 5; * @param value The r to set. * @return This builder for chaining. */ public Builder setR(double value) { r_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * Resistance (star-model) of the transformer end.
     * The attribute shall be equal or greater than zero for non-equivalent transformers.
     * 
* * double r = 5; * @return This builder for chaining. */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000010); r_ = 0D; onChanged(); return this; } private double x_ ; /** *
     **
     * Positive sequence series reactance (star-model) of the transformer end.
     * 
* * double x = 6; * @return The x. */ @java.lang.Override public double getX() { return x_; } /** *
     **
     * Positive sequence series reactance (star-model) of the transformer end.
     * 
* * double x = 6; * @param value The x to set. * @return This builder for chaining. */ public Builder setX(double value) { x_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * Positive sequence series reactance (star-model) of the transformer end.
     * 
* * double x = 6; * @return This builder for chaining. */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000020); x_ = 0D; onChanged(); return this; } private double r0_ ; /** *
     **
     * Zero sequence series resistance (star-model) of the transformer end.
     * 
* * double r0 = 7; * @return The r0. */ @java.lang.Override public double getR0() { return r0_; } /** *
     **
     * Zero sequence series resistance (star-model) of the transformer end.
     * 
* * double r0 = 7; * @param value The r0 to set. * @return This builder for chaining. */ public Builder setR0(double value) { r0_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * Zero sequence series resistance (star-model) of the transformer end.
     * 
* * double r0 = 7; * @return This builder for chaining. */ public Builder clearR0() { bitField0_ = (bitField0_ & ~0x00000040); r0_ = 0D; onChanged(); return this; } private double x0_ ; /** *
     **
     * Zero sequence series reactance of the transformer end.
     * 
* * double x0 = 8; * @return The x0. */ @java.lang.Override public double getX0() { return x0_; } /** *
     **
     * Zero sequence series reactance of the transformer end.
     * 
* * double x0 = 8; * @param value The x0 to set. * @return This builder for chaining. */ public Builder setX0(double value) { x0_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * Zero sequence series reactance of the transformer end.
     * 
* * double x0 = 8; * @return This builder for chaining. */ public Builder clearX0() { bitField0_ = (bitField0_ & ~0x00000080); x0_ = 0D; onChanged(); return this; } private int connectionKind_ = 0; /** *
     **
     * Kind of connection.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection connectionKind = 9; * @return The enum numeric value on the wire for connectionKind. */ @java.lang.Override public int getConnectionKindValue() { return connectionKind_; } /** *
     **
     * Kind of connection.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection connectionKind = 9; * @param value The enum numeric value on the wire for connectionKind to set. * @return This builder for chaining. */ public Builder setConnectionKindValue(int value) { connectionKind_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * Kind of connection.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection connectionKind = 9; * @return The connectionKind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection getConnectionKind() { com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection result = com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection.forNumber(connectionKind_); return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection.UNRECOGNIZED : result; } /** *
     **
     * Kind of connection.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection connectionKind = 9; * @param value The connectionKind to set. * @return This builder for chaining. */ public Builder setConnectionKind(com.zepben.protobuf.cim.iec61970.base.wires.WindingConnection value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; connectionKind_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * Kind of connection.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.winding.WindingConnection connectionKind = 9; * @return This builder for chaining. */ public Builder clearConnectionKind() { bitField0_ = (bitField0_ & ~0x00000100); connectionKind_ = 0; onChanged(); return this; } private double b_ ; /** *
     **
     * Magnetizing branch susceptance (B mag).  The value can be positive or negative.
     * 
* * double b = 10; * @return The b. */ @java.lang.Override public double getB() { return b_; } /** *
     **
     * Magnetizing branch susceptance (B mag).  The value can be positive or negative.
     * 
* * double b = 10; * @param value The b to set. * @return This builder for chaining. */ public Builder setB(double value) { b_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     **
     * Magnetizing branch susceptance (B mag).  The value can be positive or negative.
     * 
* * double b = 10; * @return This builder for chaining. */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000200); b_ = 0D; onChanged(); return this; } private double b0_ ; /** *
     **
     * Zero sequence magnetizing branch susceptance.
     * 
* * double b0 = 11; * @return The b0. */ @java.lang.Override public double getB0() { return b0_; } /** *
     **
     * Zero sequence magnetizing branch susceptance.
     * 
* * double b0 = 11; * @param value The b0 to set. * @return This builder for chaining. */ public Builder setB0(double value) { b0_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     **
     * Zero sequence magnetizing branch susceptance.
     * 
* * double b0 = 11; * @return This builder for chaining. */ public Builder clearB0() { bitField0_ = (bitField0_ & ~0x00000400); b0_ = 0D; onChanged(); return this; } private double g_ ; /** *
     **
     * Magnetizing branch conductance.
     * 
* * double g = 12; * @return The g. */ @java.lang.Override public double getG() { return g_; } /** *
     **
     * Magnetizing branch conductance.
     * 
* * double g = 12; * @param value The g to set. * @return This builder for chaining. */ public Builder setG(double value) { g_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     **
     * Magnetizing branch conductance.
     * 
* * double g = 12; * @return This builder for chaining. */ public Builder clearG() { bitField0_ = (bitField0_ & ~0x00000800); g_ = 0D; onChanged(); return this; } private double g0_ ; /** *
     **
     * Zero sequence magnetizing branch conductance (star-model).
     * 
* * double g0 = 13; * @return The g0. */ @java.lang.Override public double getG0() { return g0_; } /** *
     **
     * Zero sequence magnetizing branch conductance (star-model).
     * 
* * double g0 = 13; * @param value The g0 to set. * @return This builder for chaining. */ public Builder setG0(double value) { g0_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * Zero sequence magnetizing branch conductance (star-model).
     * 
* * double g0 = 13; * @return This builder for chaining. */ public Builder clearG0() { bitField0_ = (bitField0_ & ~0x00001000); g0_ = 0D; onChanged(); return this; } private int phaseAngleClock_ ; /** *
     **
     * Terminal voltage phase angle displacement where 360 degrees are represented with clock hours.
     * The valid values are 0 to 11. For example, for the secondary side end of a transformer with vector group
     * code of 'Dyn11', specify the connection kind as wye with neutral and specify the phase angle of the clock as 11.
     * The clock value of the transformer end number specified as 1, is assumed to be zero.
     * Note the transformer end number is not assumed to be the same as the terminal sequence number.
     * 
* * int32 phaseAngleClock = 14; * @return The phaseAngleClock. */ @java.lang.Override public int getPhaseAngleClock() { return phaseAngleClock_; } /** *
     **
     * Terminal voltage phase angle displacement where 360 degrees are represented with clock hours.
     * The valid values are 0 to 11. For example, for the secondary side end of a transformer with vector group
     * code of 'Dyn11', specify the connection kind as wye with neutral and specify the phase angle of the clock as 11.
     * The clock value of the transformer end number specified as 1, is assumed to be zero.
     * Note the transformer end number is not assumed to be the same as the terminal sequence number.
     * 
* * int32 phaseAngleClock = 14; * @param value The phaseAngleClock to set. * @return This builder for chaining. */ public Builder setPhaseAngleClock(int value) { phaseAngleClock_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     **
     * Terminal voltage phase angle displacement where 360 degrees are represented with clock hours.
     * The valid values are 0 to 11. For example, for the secondary side end of a transformer with vector group
     * code of 'Dyn11', specify the connection kind as wye with neutral and specify the phase angle of the clock as 11.
     * The clock value of the transformer end number specified as 1, is assumed to be zero.
     * Note the transformer end number is not assumed to be the same as the terminal sequence number.
     * 
* * int32 phaseAngleClock = 14; * @return This builder for chaining. */ public Builder clearPhaseAngleClock() { bitField0_ = (bitField0_ & ~0x00002000); phaseAngleClock_ = 0; onChanged(); return this; } private java.util.List ratings_ = java.util.Collections.emptyList(); private void ensureRatingsIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { ratings_ = new java.util.ArrayList(ratings_); bitField0_ |= 0x00004000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedSOrBuilder> ratingsBuilder_; /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public java.util.List getRatingsList() { if (ratingsBuilder_ == null) { return java.util.Collections.unmodifiableList(ratings_); } else { return ratingsBuilder_.getMessageList(); } } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public int getRatingsCount() { if (ratingsBuilder_ == null) { return ratings_.size(); } else { return ratingsBuilder_.getCount(); } } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS getRatings(int index) { if (ratingsBuilder_ == null) { return ratings_.get(index); } else { return ratingsBuilder_.getMessage(index); } } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder setRatings( int index, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS value) { if (ratingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRatingsIsMutable(); ratings_.set(index, value); onChanged(); } else { ratingsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder setRatings( int index, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder builderForValue) { if (ratingsBuilder_ == null) { ensureRatingsIsMutable(); ratings_.set(index, builderForValue.build()); onChanged(); } else { ratingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder addRatings(com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS value) { if (ratingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRatingsIsMutable(); ratings_.add(value); onChanged(); } else { ratingsBuilder_.addMessage(value); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder addRatings( int index, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS value) { if (ratingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRatingsIsMutable(); ratings_.add(index, value); onChanged(); } else { ratingsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder addRatings( com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder builderForValue) { if (ratingsBuilder_ == null) { ensureRatingsIsMutable(); ratings_.add(builderForValue.build()); onChanged(); } else { ratingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder addRatings( int index, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder builderForValue) { if (ratingsBuilder_ == null) { ensureRatingsIsMutable(); ratings_.add(index, builderForValue.build()); onChanged(); } else { ratingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder addAllRatings( java.lang.Iterable values) { if (ratingsBuilder_ == null) { ensureRatingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ratings_); onChanged(); } else { ratingsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder clearRatings() { if (ratingsBuilder_ == null) { ratings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { ratingsBuilder_.clear(); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public Builder removeRatings(int index) { if (ratingsBuilder_ == null) { ensureRatingsIsMutable(); ratings_.remove(index); onChanged(); } else { ratingsBuilder_.remove(index); } return this; } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder getRatingsBuilder( int index) { return getRatingsFieldBuilder().getBuilder(index); } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedSOrBuilder getRatingsOrBuilder( int index) { if (ratingsBuilder_ == null) { return ratings_.get(index); } else { return ratingsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public java.util.List getRatingsOrBuilderList() { if (ratingsBuilder_ != null) { return ratingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ratings_); } } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder addRatingsBuilder() { return getRatingsFieldBuilder().addBuilder( com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.getDefaultInstance()); } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder addRatingsBuilder( int index) { return getRatingsFieldBuilder().addBuilder( index, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.getDefaultInstance()); } /** *
     **
     * The normal apparent power ratings for this PowerTransformerEnd.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS ratings = 15; */ public java.util.List getRatingsBuilderList() { return getRatingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedSOrBuilder> getRatingsFieldBuilder() { if (ratingsBuilder_ == null) { ratingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedS.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndRatedSOrBuilder>( ratings_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); ratings_ = null; } return ratingsBuilder_; } @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.PowerTransformerEnd) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd) private static final com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd(); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerEnd getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PowerTransformerEnd 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.PowerTransformerEnd getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy