com.zepben.protobuf.cim.iec61970.base.wires.TapChanger 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/TapChanger.proto
package com.zepben.protobuf.cim.iec61970.base.wires;
/**
*
**
* Mechanism for changing transformer winding tap positions.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.TapChanger}
*/
public final class TapChanger extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.TapChanger)
TapChangerOrBuilder {
private static final long serialVersionUID = 0L;
// Use TapChanger.newBuilder() to construct.
private TapChanger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TapChanger() {
tapChangerControlMRID_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TapChanger();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TapChanger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TapChanger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.class, com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.Builder.class);
}
private int bitField0_;
public static final int PSR_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr_;
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
* @return Whether the psr field is set.
*/
@java.lang.Override
public boolean hasPsr() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
* @return The psr.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource getPsr() {
return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_;
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder getPsrOrBuilder() {
return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_;
}
public static final int HIGHSTEP_FIELD_NUMBER = 2;
private int highStep_ = 0;
/**
*
**
* Highest possible tap step position, advance from neutral.
* The attribute shall be greater than lowStep.
*
*
* int32 highStep = 2;
* @return The highStep.
*/
@java.lang.Override
public int getHighStep() {
return highStep_;
}
public static final int LOWSTEP_FIELD_NUMBER = 3;
private int lowStep_ = 0;
/**
*
**
* Lowest possible tap step position, retard from neutral
*
*
* int32 lowStep = 3;
* @return The lowStep.
*/
@java.lang.Override
public int getLowStep() {
return lowStep_;
}
public static final int STEP_FIELD_NUMBER = 4;
private double step_ = 0D;
/**
*
**
* Tap changer position.
* Starting step for a steady state solution. Non integer values are allowed to support continuous tap variables.
* The reasons for continuous value are to support study cases where no discrete tap changers has yet been designed,
* a solutions where a narrow voltage band force the tap step to oscillate or accommodate for a continuous solution as input.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* double step = 4;
* @return The step.
*/
@java.lang.Override
public double getStep() {
return step_;
}
public static final int NEUTRALSTEP_FIELD_NUMBER = 5;
private int neutralStep_ = 0;
/**
*
**
* The neutral tap step position for this winding.
* The attribute shall be equal or greater than lowStep and equal or less than highStep
*
*
* int32 neutralStep = 5;
* @return The neutralStep.
*/
@java.lang.Override
public int getNeutralStep() {
return neutralStep_;
}
public static final int NEUTRALU_FIELD_NUMBER = 6;
private int neutralU_ = 0;
/**
*
**
* Voltage at which the winding operates at the neutral tap setting.
*
*
* int32 neutralU = 6;
* @return The neutralU.
*/
@java.lang.Override
public int getNeutralU() {
return neutralU_;
}
public static final int NORMALSTEP_FIELD_NUMBER = 7;
private int normalStep_ = 0;
/**
*
**
* The tap step position used in "normal" network operation for this winding.
* For a "Fixed" tap changer indicates the current physical tap setting.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* int32 normalStep = 7;
* @return The normalStep.
*/
@java.lang.Override
public int getNormalStep() {
return normalStep_;
}
public static final int CONTROLENABLED_FIELD_NUMBER = 8;
private boolean controlEnabled_ = false;
/**
*
**
* Specifies the regulation status of the equipment. True is regulating, false is not regulating.
*
*
* bool controlEnabled = 8;
* @return The controlEnabled.
*/
@java.lang.Override
public boolean getControlEnabled() {
return controlEnabled_;
}
public static final int TAPCHANGERCONTROLMRID_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object tapChangerControlMRID_ = "";
/**
*
**
* The regulating control scheme in which this tap changer participates.
*
*
* string tapChangerControlMRID = 9;
* @return The tapChangerControlMRID.
*/
@java.lang.Override
public java.lang.String getTapChangerControlMRID() {
java.lang.Object ref = tapChangerControlMRID_;
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();
tapChangerControlMRID_ = s;
return s;
}
}
/**
*
**
* The regulating control scheme in which this tap changer participates.
*
*
* string tapChangerControlMRID = 9;
* @return The bytes for tapChangerControlMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTapChangerControlMRIDBytes() {
java.lang.Object ref = tapChangerControlMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tapChangerControlMRID_ = 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, getPsr());
}
if (highStep_ != 0) {
output.writeInt32(2, highStep_);
}
if (lowStep_ != 0) {
output.writeInt32(3, lowStep_);
}
if (java.lang.Double.doubleToRawLongBits(step_) != 0) {
output.writeDouble(4, step_);
}
if (neutralStep_ != 0) {
output.writeInt32(5, neutralStep_);
}
if (neutralU_ != 0) {
output.writeInt32(6, neutralU_);
}
if (normalStep_ != 0) {
output.writeInt32(7, normalStep_);
}
if (controlEnabled_ != false) {
output.writeBool(8, controlEnabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tapChangerControlMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, tapChangerControlMRID_);
}
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, getPsr());
}
if (highStep_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, highStep_);
}
if (lowStep_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, lowStep_);
}
if (java.lang.Double.doubleToRawLongBits(step_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, step_);
}
if (neutralStep_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, neutralStep_);
}
if (neutralU_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, neutralU_);
}
if (normalStep_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, normalStep_);
}
if (controlEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, controlEnabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tapChangerControlMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, tapChangerControlMRID_);
}
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.TapChanger)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.wires.TapChanger other = (com.zepben.protobuf.cim.iec61970.base.wires.TapChanger) obj;
if (hasPsr() != other.hasPsr()) return false;
if (hasPsr()) {
if (!getPsr()
.equals(other.getPsr())) return false;
}
if (getHighStep()
!= other.getHighStep()) return false;
if (getLowStep()
!= other.getLowStep()) return false;
if (java.lang.Double.doubleToLongBits(getStep())
!= java.lang.Double.doubleToLongBits(
other.getStep())) return false;
if (getNeutralStep()
!= other.getNeutralStep()) return false;
if (getNeutralU()
!= other.getNeutralU()) return false;
if (getNormalStep()
!= other.getNormalStep()) return false;
if (getControlEnabled()
!= other.getControlEnabled()) return false;
if (!getTapChangerControlMRID()
.equals(other.getTapChangerControlMRID())) 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 (hasPsr()) {
hash = (37 * hash) + PSR_FIELD_NUMBER;
hash = (53 * hash) + getPsr().hashCode();
}
hash = (37 * hash) + HIGHSTEP_FIELD_NUMBER;
hash = (53 * hash) + getHighStep();
hash = (37 * hash) + LOWSTEP_FIELD_NUMBER;
hash = (53 * hash) + getLowStep();
hash = (37 * hash) + STEP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getStep()));
hash = (37 * hash) + NEUTRALSTEP_FIELD_NUMBER;
hash = (53 * hash) + getNeutralStep();
hash = (37 * hash) + NEUTRALU_FIELD_NUMBER;
hash = (53 * hash) + getNeutralU();
hash = (37 * hash) + NORMALSTEP_FIELD_NUMBER;
hash = (53 * hash) + getNormalStep();
hash = (37 * hash) + CONTROLENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getControlEnabled());
hash = (37 * hash) + TAPCHANGERCONTROLMRID_FIELD_NUMBER;
hash = (53 * hash) + getTapChangerControlMRID().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TapChanger parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TapChanger 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.TapChanger parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TapChanger 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.TapChanger parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TapChanger 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.TapChanger 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.TapChanger 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.TapChanger 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.TapChanger 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.TapChanger 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.TapChanger 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.TapChanger 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;
}
/**
*
**
* Mechanism for changing transformer winding tap positions.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.TapChanger}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.TapChanger)
com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TapChanger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TapChanger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.class, com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPsrFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
psr_ = null;
if (psrBuilder_ != null) {
psrBuilder_.dispose();
psrBuilder_ = null;
}
highStep_ = 0;
lowStep_ = 0;
step_ = 0D;
neutralStep_ = 0;
neutralU_ = 0;
normalStep_ = 0;
controlEnabled_ = false;
tapChangerControlMRID_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_TapChanger_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.TapChanger getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.TapChanger build() {
com.zepben.protobuf.cim.iec61970.base.wires.TapChanger result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.TapChanger buildPartial() {
com.zepben.protobuf.cim.iec61970.base.wires.TapChanger result = new com.zepben.protobuf.cim.iec61970.base.wires.TapChanger(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.TapChanger result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.psr_ = psrBuilder_ == null
? psr_
: psrBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.highStep_ = highStep_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lowStep_ = lowStep_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.step_ = step_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.neutralStep_ = neutralStep_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.neutralU_ = neutralU_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.normalStep_ = normalStep_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.controlEnabled_ = controlEnabled_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.tapChangerControlMRID_ = tapChangerControlMRID_;
}
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.TapChanger) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.TapChanger)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.TapChanger other) {
if (other == com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.getDefaultInstance()) return this;
if (other.hasPsr()) {
mergePsr(other.getPsr());
}
if (other.getHighStep() != 0) {
setHighStep(other.getHighStep());
}
if (other.getLowStep() != 0) {
setLowStep(other.getLowStep());
}
if (other.getStep() != 0D) {
setStep(other.getStep());
}
if (other.getNeutralStep() != 0) {
setNeutralStep(other.getNeutralStep());
}
if (other.getNeutralU() != 0) {
setNeutralU(other.getNeutralU());
}
if (other.getNormalStep() != 0) {
setNormalStep(other.getNormalStep());
}
if (other.getControlEnabled() != false) {
setControlEnabled(other.getControlEnabled());
}
if (!other.getTapChangerControlMRID().isEmpty()) {
tapChangerControlMRID_ = other.tapChangerControlMRID_;
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(
getPsrFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
highStep_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lowStep_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 33: {
step_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 40: {
neutralStep_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
neutralU_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
normalStep_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
controlEnabled_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
case 74: {
tapChangerControlMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
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.PowerSystemResource psr_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder> psrBuilder_;
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
* @return Whether the psr field is set.
*/
public boolean hasPsr() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
* @return The psr.
*/
public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource getPsr() {
if (psrBuilder_ == null) {
return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_;
} else {
return psrBuilder_.getMessage();
}
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
public Builder setPsr(com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource value) {
if (psrBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
psr_ = value;
} else {
psrBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
public Builder setPsr(
com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder builderForValue) {
if (psrBuilder_ == null) {
psr_ = builderForValue.build();
} else {
psrBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
public Builder mergePsr(com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource value) {
if (psrBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
psr_ != null &&
psr_ != com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance()) {
getPsrBuilder().mergeFrom(value);
} else {
psr_ = value;
}
} else {
psrBuilder_.mergeFrom(value);
}
if (psr_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
public Builder clearPsr() {
bitField0_ = (bitField0_ & ~0x00000001);
psr_ = null;
if (psrBuilder_ != null) {
psrBuilder_.dispose();
psrBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder getPsrBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPsrFieldBuilder().getBuilder();
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder getPsrOrBuilder() {
if (psrBuilder_ != null) {
return psrBuilder_.getMessageOrBuilder();
} else {
return psr_ == null ?
com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_;
}
}
/**
*
**
* The PowerSystemResource fields for this Equipment.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder>
getPsrFieldBuilder() {
if (psrBuilder_ == null) {
psrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder>(
getPsr(),
getParentForChildren(),
isClean());
psr_ = null;
}
return psrBuilder_;
}
private int highStep_ ;
/**
*
**
* Highest possible tap step position, advance from neutral.
* The attribute shall be greater than lowStep.
*
*
* int32 highStep = 2;
* @return The highStep.
*/
@java.lang.Override
public int getHighStep() {
return highStep_;
}
/**
*
**
* Highest possible tap step position, advance from neutral.
* The attribute shall be greater than lowStep.
*
*
* int32 highStep = 2;
* @param value The highStep to set.
* @return This builder for chaining.
*/
public Builder setHighStep(int value) {
highStep_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Highest possible tap step position, advance from neutral.
* The attribute shall be greater than lowStep.
*
*
* int32 highStep = 2;
* @return This builder for chaining.
*/
public Builder clearHighStep() {
bitField0_ = (bitField0_ & ~0x00000002);
highStep_ = 0;
onChanged();
return this;
}
private int lowStep_ ;
/**
*
**
* Lowest possible tap step position, retard from neutral
*
*
* int32 lowStep = 3;
* @return The lowStep.
*/
@java.lang.Override
public int getLowStep() {
return lowStep_;
}
/**
*
**
* Lowest possible tap step position, retard from neutral
*
*
* int32 lowStep = 3;
* @param value The lowStep to set.
* @return This builder for chaining.
*/
public Builder setLowStep(int value) {
lowStep_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Lowest possible tap step position, retard from neutral
*
*
* int32 lowStep = 3;
* @return This builder for chaining.
*/
public Builder clearLowStep() {
bitField0_ = (bitField0_ & ~0x00000004);
lowStep_ = 0;
onChanged();
return this;
}
private double step_ ;
/**
*
**
* Tap changer position.
* Starting step for a steady state solution. Non integer values are allowed to support continuous tap variables.
* The reasons for continuous value are to support study cases where no discrete tap changers has yet been designed,
* a solutions where a narrow voltage band force the tap step to oscillate or accommodate for a continuous solution as input.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* double step = 4;
* @return The step.
*/
@java.lang.Override
public double getStep() {
return step_;
}
/**
*
**
* Tap changer position.
* Starting step for a steady state solution. Non integer values are allowed to support continuous tap variables.
* The reasons for continuous value are to support study cases where no discrete tap changers has yet been designed,
* a solutions where a narrow voltage band force the tap step to oscillate or accommodate for a continuous solution as input.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* double step = 4;
* @param value The step to set.
* @return This builder for chaining.
*/
public Builder setStep(double value) {
step_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Tap changer position.
* Starting step for a steady state solution. Non integer values are allowed to support continuous tap variables.
* The reasons for continuous value are to support study cases where no discrete tap changers has yet been designed,
* a solutions where a narrow voltage band force the tap step to oscillate or accommodate for a continuous solution as input.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* double step = 4;
* @return This builder for chaining.
*/
public Builder clearStep() {
bitField0_ = (bitField0_ & ~0x00000008);
step_ = 0D;
onChanged();
return this;
}
private int neutralStep_ ;
/**
*
**
* The neutral tap step position for this winding.
* The attribute shall be equal or greater than lowStep and equal or less than highStep
*
*
* int32 neutralStep = 5;
* @return The neutralStep.
*/
@java.lang.Override
public int getNeutralStep() {
return neutralStep_;
}
/**
*
**
* The neutral tap step position for this winding.
* The attribute shall be equal or greater than lowStep and equal or less than highStep
*
*
* int32 neutralStep = 5;
* @param value The neutralStep to set.
* @return This builder for chaining.
*/
public Builder setNeutralStep(int value) {
neutralStep_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The neutral tap step position for this winding.
* The attribute shall be equal or greater than lowStep and equal or less than highStep
*
*
* int32 neutralStep = 5;
* @return This builder for chaining.
*/
public Builder clearNeutralStep() {
bitField0_ = (bitField0_ & ~0x00000010);
neutralStep_ = 0;
onChanged();
return this;
}
private int neutralU_ ;
/**
*
**
* Voltage at which the winding operates at the neutral tap setting.
*
*
* int32 neutralU = 6;
* @return The neutralU.
*/
@java.lang.Override
public int getNeutralU() {
return neutralU_;
}
/**
*
**
* Voltage at which the winding operates at the neutral tap setting.
*
*
* int32 neutralU = 6;
* @param value The neutralU to set.
* @return This builder for chaining.
*/
public Builder setNeutralU(int value) {
neutralU_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* Voltage at which the winding operates at the neutral tap setting.
*
*
* int32 neutralU = 6;
* @return This builder for chaining.
*/
public Builder clearNeutralU() {
bitField0_ = (bitField0_ & ~0x00000020);
neutralU_ = 0;
onChanged();
return this;
}
private int normalStep_ ;
/**
*
**
* The tap step position used in "normal" network operation for this winding.
* For a "Fixed" tap changer indicates the current physical tap setting.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* int32 normalStep = 7;
* @return The normalStep.
*/
@java.lang.Override
public int getNormalStep() {
return normalStep_;
}
/**
*
**
* The tap step position used in "normal" network operation for this winding.
* For a "Fixed" tap changer indicates the current physical tap setting.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* int32 normalStep = 7;
* @param value The normalStep to set.
* @return This builder for chaining.
*/
public Builder setNormalStep(int value) {
normalStep_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* The tap step position used in "normal" network operation for this winding.
* For a "Fixed" tap changer indicates the current physical tap setting.
* The attribute shall be equal or greater than lowStep and equal or less than highStep.
*
*
* int32 normalStep = 7;
* @return This builder for chaining.
*/
public Builder clearNormalStep() {
bitField0_ = (bitField0_ & ~0x00000040);
normalStep_ = 0;
onChanged();
return this;
}
private boolean controlEnabled_ ;
/**
*
**
* Specifies the regulation status of the equipment. True is regulating, false is not regulating.
*
*
* bool controlEnabled = 8;
* @return The controlEnabled.
*/
@java.lang.Override
public boolean getControlEnabled() {
return controlEnabled_;
}
/**
*
**
* Specifies the regulation status of the equipment. True is regulating, false is not regulating.
*
*
* bool controlEnabled = 8;
* @param value The controlEnabled to set.
* @return This builder for chaining.
*/
public Builder setControlEnabled(boolean value) {
controlEnabled_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* Specifies the regulation status of the equipment. True is regulating, false is not regulating.
*
*
* bool controlEnabled = 8;
* @return This builder for chaining.
*/
public Builder clearControlEnabled() {
bitField0_ = (bitField0_ & ~0x00000080);
controlEnabled_ = false;
onChanged();
return this;
}
private java.lang.Object tapChangerControlMRID_ = "";
/**
*
**
* The regulating control scheme in which this tap changer participates.
*
*
* string tapChangerControlMRID = 9;
* @return The tapChangerControlMRID.
*/
public java.lang.String getTapChangerControlMRID() {
java.lang.Object ref = tapChangerControlMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tapChangerControlMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The regulating control scheme in which this tap changer participates.
*
*
* string tapChangerControlMRID = 9;
* @return The bytes for tapChangerControlMRID.
*/
public com.google.protobuf.ByteString
getTapChangerControlMRIDBytes() {
java.lang.Object ref = tapChangerControlMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tapChangerControlMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The regulating control scheme in which this tap changer participates.
*
*
* string tapChangerControlMRID = 9;
* @param value The tapChangerControlMRID to set.
* @return This builder for chaining.
*/
public Builder setTapChangerControlMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
tapChangerControlMRID_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The regulating control scheme in which this tap changer participates.
*
*
* string tapChangerControlMRID = 9;
* @return This builder for chaining.
*/
public Builder clearTapChangerControlMRID() {
tapChangerControlMRID_ = getDefaultInstance().getTapChangerControlMRID();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
**
* The regulating control scheme in which this tap changer participates.
*
*
* string tapChangerControlMRID = 9;
* @param value The bytes for tapChangerControlMRID to set.
* @return This builder for chaining.
*/
public Builder setTapChangerControlMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
tapChangerControlMRID_ = 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.TapChanger)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.TapChanger)
private static final com.zepben.protobuf.cim.iec61970.base.wires.TapChanger DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.TapChanger();
}
public static com.zepben.protobuf.cim.iec61970.base.wires.TapChanger getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TapChanger 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.TapChanger getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}