com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd 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/TransformerEnd.proto
package com.zepben.protobuf.cim.iec61970.base.wires;
/**
*
**
* A conducting connection point of a power transformer. It corresponds to a physical transformer winding terminal.
* In earlier CIM versions, the TransformerWinding class served a similar purpose, but this class is more flexible
* because it associates to terminal but is not a specialization of ConductingEquipment.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.TransformerEnd}
*/
public final class TransformerEnd extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.TransformerEnd)
TransformerEndOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransformerEnd.newBuilder() to construct.
private TransformerEnd(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransformerEnd() {
terminalMRID_ = "";
baseVoltageMRID_ = "";
ratioTapChangerMRID_ = "";
starImpedanceMRID_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransformerEnd();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TransformerEnd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TransformerEnd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.class, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.Builder.class);
}
private int bitField0_;
public static final int IO_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io_;
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
@java.lang.Override
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
public static final int TERMINALMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object terminalMRID_ = "";
/**
*
**
* The terminal of the transformer that this end is associated with
*
*
* string terminalMRID = 2;
* @return The terminalMRID.
*/
@java.lang.Override
public java.lang.String getTerminalMRID() {
java.lang.Object ref = terminalMRID_;
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();
terminalMRID_ = s;
return s;
}
}
/**
*
**
* The terminal of the transformer that this end is associated with
*
*
* string terminalMRID = 2;
* @return The bytes for terminalMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTerminalMRIDBytes() {
java.lang.Object ref = terminalMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminalMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BASEVOLTAGEMRID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object baseVoltageMRID_ = "";
/**
*
**
* Base voltage of the transformer end. This is essential for PU calculation.
*
*
* string baseVoltageMRID = 3;
* @return The baseVoltageMRID.
*/
@java.lang.Override
public java.lang.String getBaseVoltageMRID() {
java.lang.Object ref = baseVoltageMRID_;
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();
baseVoltageMRID_ = s;
return s;
}
}
/**
*
**
* Base voltage of the transformer end. This is essential for PU calculation.
*
*
* string baseVoltageMRID = 3;
* @return The bytes for baseVoltageMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBaseVoltageMRIDBytes() {
java.lang.Object ref = baseVoltageMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
baseVoltageMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDNUMBER_FIELD_NUMBER = 4;
private int endNumber_ = 0;
/**
*
**
* This TransformerEnds number.
*
*
* uint32 endNumber = 4;
* @return The endNumber.
*/
@java.lang.Override
public int getEndNumber() {
return endNumber_;
}
public static final int RATIOTAPCHANGERMRID_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object ratioTapChangerMRID_ = "";
/**
*
**
* The tap changer associated with this PowerTransformerEnd
*
*
* string ratioTapChangerMRID = 9;
* @return The ratioTapChangerMRID.
*/
@java.lang.Override
public java.lang.String getRatioTapChangerMRID() {
java.lang.Object ref = ratioTapChangerMRID_;
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();
ratioTapChangerMRID_ = s;
return s;
}
}
/**
*
**
* The tap changer associated with this PowerTransformerEnd
*
*
* string ratioTapChangerMRID = 9;
* @return The bytes for ratioTapChangerMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRatioTapChangerMRIDBytes() {
java.lang.Object ref = ratioTapChangerMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ratioTapChangerMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GROUNDED_FIELD_NUMBER = 10;
private boolean grounded_ = false;
/**
*
**
* (for Yn and Zn connections) True if the neutral is solidly grounded.
*
*
* bool grounded = 10;
* @return The grounded.
*/
@java.lang.Override
public boolean getGrounded() {
return grounded_;
}
public static final int RGROUND_FIELD_NUMBER = 11;
private double rGround_ = 0D;
/**
*
**
* (for Yn and Zn connections) Resistance part of neutral impedance where 'grounded' is true.
*
*
* double rGround = 11;
* @return The rGround.
*/
@java.lang.Override
public double getRGround() {
return rGround_;
}
public static final int XGROUND_FIELD_NUMBER = 12;
private double xGround_ = 0D;
/**
*
**
* (for Yn and Zn connections) Reactive part of neutral impedance where 'grounded' is true.
*
*
* double xGround = 12;
* @return The xGround.
*/
@java.lang.Override
public double getXGround() {
return xGround_;
}
public static final int STARIMPEDANCEMRID_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object starImpedanceMRID_ = "";
/**
*
**
* (accurate for 2- or 3-winding transformers only) Pi-model impedances of this transformer end.
* By convention, for a two winding transformer,
* the full values of the transformer should be entered on the high voltage end (endNumber=1).
*
*
* string starImpedanceMRID = 13;
* @return The starImpedanceMRID.
*/
@java.lang.Override
public java.lang.String getStarImpedanceMRID() {
java.lang.Object ref = starImpedanceMRID_;
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();
starImpedanceMRID_ = s;
return s;
}
}
/**
*
**
* (accurate for 2- or 3-winding transformers only) Pi-model impedances of this transformer end.
* By convention, for a two winding transformer,
* the full values of the transformer should be entered on the high voltage end (endNumber=1).
*
*
* string starImpedanceMRID = 13;
* @return The bytes for starImpedanceMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStarImpedanceMRIDBytes() {
java.lang.Object ref = starImpedanceMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
starImpedanceMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, getIo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(terminalMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, terminalMRID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVoltageMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, baseVoltageMRID_);
}
if (endNumber_ != 0) {
output.writeUInt32(4, endNumber_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ratioTapChangerMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ratioTapChangerMRID_);
}
if (grounded_ != false) {
output.writeBool(10, grounded_);
}
if (java.lang.Double.doubleToRawLongBits(rGround_) != 0) {
output.writeDouble(11, rGround_);
}
if (java.lang.Double.doubleToRawLongBits(xGround_) != 0) {
output.writeDouble(12, xGround_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(starImpedanceMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, starImpedanceMRID_);
}
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, getIo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(terminalMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, terminalMRID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVoltageMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, baseVoltageMRID_);
}
if (endNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, endNumber_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ratioTapChangerMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ratioTapChangerMRID_);
}
if (grounded_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, grounded_);
}
if (java.lang.Double.doubleToRawLongBits(rGround_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(11, rGround_);
}
if (java.lang.Double.doubleToRawLongBits(xGround_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, xGround_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(starImpedanceMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, starImpedanceMRID_);
}
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.TransformerEnd)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd other = (com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd) obj;
if (hasIo() != other.hasIo()) return false;
if (hasIo()) {
if (!getIo()
.equals(other.getIo())) return false;
}
if (!getTerminalMRID()
.equals(other.getTerminalMRID())) return false;
if (!getBaseVoltageMRID()
.equals(other.getBaseVoltageMRID())) return false;
if (getEndNumber()
!= other.getEndNumber()) return false;
if (!getRatioTapChangerMRID()
.equals(other.getRatioTapChangerMRID())) return false;
if (getGrounded()
!= other.getGrounded()) return false;
if (java.lang.Double.doubleToLongBits(getRGround())
!= java.lang.Double.doubleToLongBits(
other.getRGround())) return false;
if (java.lang.Double.doubleToLongBits(getXGround())
!= java.lang.Double.doubleToLongBits(
other.getXGround())) return false;
if (!getStarImpedanceMRID()
.equals(other.getStarImpedanceMRID())) 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 (hasIo()) {
hash = (37 * hash) + IO_FIELD_NUMBER;
hash = (53 * hash) + getIo().hashCode();
}
hash = (37 * hash) + TERMINALMRID_FIELD_NUMBER;
hash = (53 * hash) + getTerminalMRID().hashCode();
hash = (37 * hash) + BASEVOLTAGEMRID_FIELD_NUMBER;
hash = (53 * hash) + getBaseVoltageMRID().hashCode();
hash = (37 * hash) + ENDNUMBER_FIELD_NUMBER;
hash = (53 * hash) + getEndNumber();
hash = (37 * hash) + RATIOTAPCHANGERMRID_FIELD_NUMBER;
hash = (53 * hash) + getRatioTapChangerMRID().hashCode();
hash = (37 * hash) + GROUNDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getGrounded());
hash = (37 * hash) + RGROUND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRGround()));
hash = (37 * hash) + XGROUND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getXGround()));
hash = (37 * hash) + STARIMPEDANCEMRID_FIELD_NUMBER;
hash = (53 * hash) + getStarImpedanceMRID().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd 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.TransformerEnd parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd 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.TransformerEnd parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd 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.TransformerEnd 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.TransformerEnd 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.TransformerEnd 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.TransformerEnd 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.TransformerEnd 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.TransformerEnd 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.TransformerEnd 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 conducting connection point of a power transformer. It corresponds to a physical transformer winding terminal.
* In earlier CIM versions, the TransformerWinding class served a similar purpose, but this class is more flexible
* because it associates to terminal but is not a specialization of ConductingEquipment.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.TransformerEnd}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.TransformerEnd)
com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TransformerEnd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TransformerEnd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.class, com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
terminalMRID_ = "";
baseVoltageMRID_ = "";
endNumber_ = 0;
ratioTapChangerMRID_ = "";
grounded_ = false;
rGround_ = 0D;
xGround_ = 0D;
starImpedanceMRID_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.TransformerEndOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TransformerEnd_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd build() {
com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd buildPartial() {
com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd result = new com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.io_ = ioBuilder_ == null
? io_
: ioBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.terminalMRID_ = terminalMRID_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.baseVoltageMRID_ = baseVoltageMRID_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.endNumber_ = endNumber_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ratioTapChangerMRID_ = ratioTapChangerMRID_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.grounded_ = grounded_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.rGround_ = rGround_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.xGround_ = xGround_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.starImpedanceMRID_ = starImpedanceMRID_;
}
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.TransformerEnd) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd other) {
if (other == com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd.getDefaultInstance()) return this;
if (other.hasIo()) {
mergeIo(other.getIo());
}
if (!other.getTerminalMRID().isEmpty()) {
terminalMRID_ = other.terminalMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getBaseVoltageMRID().isEmpty()) {
baseVoltageMRID_ = other.baseVoltageMRID_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getEndNumber() != 0) {
setEndNumber(other.getEndNumber());
}
if (!other.getRatioTapChangerMRID().isEmpty()) {
ratioTapChangerMRID_ = other.ratioTapChangerMRID_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getGrounded() != false) {
setGrounded(other.getGrounded());
}
if (other.getRGround() != 0D) {
setRGround(other.getRGround());
}
if (other.getXGround() != 0D) {
setXGround(other.getXGround());
}
if (!other.getStarImpedanceMRID().isEmpty()) {
starImpedanceMRID_ = other.starImpedanceMRID_;
bitField0_ |= 0x00000100;
onChanged();
}
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(
getIoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
terminalMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
baseVoltageMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
endNumber_ = input.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 74: {
ratioTapChangerMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 74
case 80: {
grounded_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 80
case 89: {
rGround_ = input.readDouble();
bitField0_ |= 0x00000040;
break;
} // case 89
case 97: {
xGround_ = input.readDouble();
bitField0_ |= 0x00000080;
break;
} // case 97
case 106: {
starImpedanceMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 106
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.core.IdentifiedObject io_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder> ioBuilder_;
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
if (ioBuilder_ == null) {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
} else {
return ioBuilder_.getMessage();
}
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
io_ = value;
} else {
ioBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder builderForValue) {
if (ioBuilder_ == null) {
io_ = builderForValue.build();
} else {
ioBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder mergeIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
io_ != null &&
io_ != com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance()) {
getIoBuilder().mergeFrom(value);
} else {
io_ = value;
}
} else {
ioBuilder_.mergeFrom(value);
}
if (io_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder clearIo() {
bitField0_ = (bitField0_ & ~0x00000001);
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder getIoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIoFieldBuilder().getBuilder();
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
if (ioBuilder_ != null) {
return ioBuilder_.getMessageOrBuilder();
} else {
return io_ == null ?
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
}
/**
*
**
* IdentifiedObject fields for this TransformerEnd.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>
getIoFieldBuilder() {
if (ioBuilder_ == null) {
ioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>(
getIo(),
getParentForChildren(),
isClean());
io_ = null;
}
return ioBuilder_;
}
private java.lang.Object terminalMRID_ = "";
/**
*
**
* The terminal of the transformer that this end is associated with
*
*
* string terminalMRID = 2;
* @return The terminalMRID.
*/
public java.lang.String getTerminalMRID() {
java.lang.Object ref = terminalMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
terminalMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The terminal of the transformer that this end is associated with
*
*
* string terminalMRID = 2;
* @return The bytes for terminalMRID.
*/
public com.google.protobuf.ByteString
getTerminalMRIDBytes() {
java.lang.Object ref = terminalMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminalMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The terminal of the transformer that this end is associated with
*
*
* string terminalMRID = 2;
* @param value The terminalMRID to set.
* @return This builder for chaining.
*/
public Builder setTerminalMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
terminalMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The terminal of the transformer that this end is associated with
*
*
* string terminalMRID = 2;
* @return This builder for chaining.
*/
public Builder clearTerminalMRID() {
terminalMRID_ = getDefaultInstance().getTerminalMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The terminal of the transformer that this end is associated with
*
*
* string terminalMRID = 2;
* @param value The bytes for terminalMRID to set.
* @return This builder for chaining.
*/
public Builder setTerminalMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
terminalMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object baseVoltageMRID_ = "";
/**
*
**
* Base voltage of the transformer end. This is essential for PU calculation.
*
*
* string baseVoltageMRID = 3;
* @return The baseVoltageMRID.
*/
public java.lang.String getBaseVoltageMRID() {
java.lang.Object ref = baseVoltageMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
baseVoltageMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Base voltage of the transformer end. This is essential for PU calculation.
*
*
* string baseVoltageMRID = 3;
* @return The bytes for baseVoltageMRID.
*/
public com.google.protobuf.ByteString
getBaseVoltageMRIDBytes() {
java.lang.Object ref = baseVoltageMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
baseVoltageMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Base voltage of the transformer end. This is essential for PU calculation.
*
*
* string baseVoltageMRID = 3;
* @param value The baseVoltageMRID to set.
* @return This builder for chaining.
*/
public Builder setBaseVoltageMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
baseVoltageMRID_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Base voltage of the transformer end. This is essential for PU calculation.
*
*
* string baseVoltageMRID = 3;
* @return This builder for chaining.
*/
public Builder clearBaseVoltageMRID() {
baseVoltageMRID_ = getDefaultInstance().getBaseVoltageMRID();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* Base voltage of the transformer end. This is essential for PU calculation.
*
*
* string baseVoltageMRID = 3;
* @param value The bytes for baseVoltageMRID to set.
* @return This builder for chaining.
*/
public Builder setBaseVoltageMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
baseVoltageMRID_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int endNumber_ ;
/**
*
**
* This TransformerEnds number.
*
*
* uint32 endNumber = 4;
* @return The endNumber.
*/
@java.lang.Override
public int getEndNumber() {
return endNumber_;
}
/**
*
**
* This TransformerEnds number.
*
*
* uint32 endNumber = 4;
* @param value The endNumber to set.
* @return This builder for chaining.
*/
public Builder setEndNumber(int value) {
endNumber_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* This TransformerEnds number.
*
*
* uint32 endNumber = 4;
* @return This builder for chaining.
*/
public Builder clearEndNumber() {
bitField0_ = (bitField0_ & ~0x00000008);
endNumber_ = 0;
onChanged();
return this;
}
private java.lang.Object ratioTapChangerMRID_ = "";
/**
*
**
* The tap changer associated with this PowerTransformerEnd
*
*
* string ratioTapChangerMRID = 9;
* @return The ratioTapChangerMRID.
*/
public java.lang.String getRatioTapChangerMRID() {
java.lang.Object ref = ratioTapChangerMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ratioTapChangerMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The tap changer associated with this PowerTransformerEnd
*
*
* string ratioTapChangerMRID = 9;
* @return The bytes for ratioTapChangerMRID.
*/
public com.google.protobuf.ByteString
getRatioTapChangerMRIDBytes() {
java.lang.Object ref = ratioTapChangerMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ratioTapChangerMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The tap changer associated with this PowerTransformerEnd
*
*
* string ratioTapChangerMRID = 9;
* @param value The ratioTapChangerMRID to set.
* @return This builder for chaining.
*/
public Builder setRatioTapChangerMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ratioTapChangerMRID_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The tap changer associated with this PowerTransformerEnd
*
*
* string ratioTapChangerMRID = 9;
* @return This builder for chaining.
*/
public Builder clearRatioTapChangerMRID() {
ratioTapChangerMRID_ = getDefaultInstance().getRatioTapChangerMRID();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
**
* The tap changer associated with this PowerTransformerEnd
*
*
* string ratioTapChangerMRID = 9;
* @param value The bytes for ratioTapChangerMRID to set.
* @return This builder for chaining.
*/
public Builder setRatioTapChangerMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ratioTapChangerMRID_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private boolean grounded_ ;
/**
*
**
* (for Yn and Zn connections) True if the neutral is solidly grounded.
*
*
* bool grounded = 10;
* @return The grounded.
*/
@java.lang.Override
public boolean getGrounded() {
return grounded_;
}
/**
*
**
* (for Yn and Zn connections) True if the neutral is solidly grounded.
*
*
* bool grounded = 10;
* @param value The grounded to set.
* @return This builder for chaining.
*/
public Builder setGrounded(boolean value) {
grounded_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* (for Yn and Zn connections) True if the neutral is solidly grounded.
*
*
* bool grounded = 10;
* @return This builder for chaining.
*/
public Builder clearGrounded() {
bitField0_ = (bitField0_ & ~0x00000020);
grounded_ = false;
onChanged();
return this;
}
private double rGround_ ;
/**
*
**
* (for Yn and Zn connections) Resistance part of neutral impedance where 'grounded' is true.
*
*
* double rGround = 11;
* @return The rGround.
*/
@java.lang.Override
public double getRGround() {
return rGround_;
}
/**
*
**
* (for Yn and Zn connections) Resistance part of neutral impedance where 'grounded' is true.
*
*
* double rGround = 11;
* @param value The rGround to set.
* @return This builder for chaining.
*/
public Builder setRGround(double value) {
rGround_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* (for Yn and Zn connections) Resistance part of neutral impedance where 'grounded' is true.
*
*
* double rGround = 11;
* @return This builder for chaining.
*/
public Builder clearRGround() {
bitField0_ = (bitField0_ & ~0x00000040);
rGround_ = 0D;
onChanged();
return this;
}
private double xGround_ ;
/**
*
**
* (for Yn and Zn connections) Reactive part of neutral impedance where 'grounded' is true.
*
*
* double xGround = 12;
* @return The xGround.
*/
@java.lang.Override
public double getXGround() {
return xGround_;
}
/**
*
**
* (for Yn and Zn connections) Reactive part of neutral impedance where 'grounded' is true.
*
*
* double xGround = 12;
* @param value The xGround to set.
* @return This builder for chaining.
*/
public Builder setXGround(double value) {
xGround_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* (for Yn and Zn connections) Reactive part of neutral impedance where 'grounded' is true.
*
*
* double xGround = 12;
* @return This builder for chaining.
*/
public Builder clearXGround() {
bitField0_ = (bitField0_ & ~0x00000080);
xGround_ = 0D;
onChanged();
return this;
}
private java.lang.Object starImpedanceMRID_ = "";
/**
*
**
* (accurate for 2- or 3-winding transformers only) Pi-model impedances of this transformer end.
* By convention, for a two winding transformer,
* the full values of the transformer should be entered on the high voltage end (endNumber=1).
*
*
* string starImpedanceMRID = 13;
* @return The starImpedanceMRID.
*/
public java.lang.String getStarImpedanceMRID() {
java.lang.Object ref = starImpedanceMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
starImpedanceMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* (accurate for 2- or 3-winding transformers only) Pi-model impedances of this transformer end.
* By convention, for a two winding transformer,
* the full values of the transformer should be entered on the high voltage end (endNumber=1).
*
*
* string starImpedanceMRID = 13;
* @return The bytes for starImpedanceMRID.
*/
public com.google.protobuf.ByteString
getStarImpedanceMRIDBytes() {
java.lang.Object ref = starImpedanceMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
starImpedanceMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* (accurate for 2- or 3-winding transformers only) Pi-model impedances of this transformer end.
* By convention, for a two winding transformer,
* the full values of the transformer should be entered on the high voltage end (endNumber=1).
*
*
* string starImpedanceMRID = 13;
* @param value The starImpedanceMRID to set.
* @return This builder for chaining.
*/
public Builder setStarImpedanceMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
starImpedanceMRID_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* (accurate for 2- or 3-winding transformers only) Pi-model impedances of this transformer end.
* By convention, for a two winding transformer,
* the full values of the transformer should be entered on the high voltage end (endNumber=1).
*
*
* string starImpedanceMRID = 13;
* @return This builder for chaining.
*/
public Builder clearStarImpedanceMRID() {
starImpedanceMRID_ = getDefaultInstance().getStarImpedanceMRID();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
**
* (accurate for 2- or 3-winding transformers only) Pi-model impedances of this transformer end.
* By convention, for a two winding transformer,
* the full values of the transformer should be entered on the high voltage end (endNumber=1).
*
*
* string starImpedanceMRID = 13;
* @param value The bytes for starImpedanceMRID to set.
* @return This builder for chaining.
*/
public Builder setStarImpedanceMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
starImpedanceMRID_ = value;
bitField0_ |= 0x00000100;
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.TransformerEnd)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.TransformerEnd)
private static final com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd();
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TransformerEnd getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransformerEnd 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.TransformerEnd getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}