com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator 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/ShuntCompensator.proto
package com.zepben.protobuf.cim.iec61970.base.wires;
/**
*
**
* A shunt capacitor or reactor or switchable bank of shunt capacitors or reactors. A section of a shunt compensator is an individual
* capacitor or reactor. A negative value for reactivePerSection indicates that the compensator is a reactor. ShuntCompensator is a
* single terminal device. Ground is implied.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator}
*/
public final class ShuntCompensator extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator)
ShuntCompensatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShuntCompensator.newBuilder() to construct.
private ShuntCompensator(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShuntCompensator() {
phaseConnection_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShuntCompensator();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_ShuntCompensator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_ShuntCompensator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.class, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.Builder.class);
}
private int bitField0_;
public static final int RCE_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce_;
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
* @return Whether the rce field is set.
*/
@java.lang.Override
public boolean hasRce() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
* @return The rce.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq getRce() {
return rce_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.getDefaultInstance() : rce_;
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOrBuilder getRceOrBuilder() {
return rce_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.getDefaultInstance() : rce_;
}
public static final int SECTIONS_FIELD_NUMBER = 2;
private double sections_ = 0D;
/**
*
**
* Shunt compensator sections in use.
* Starting value for steady state solution. Non integer values are allowed to support continuous variables.
* The reasons for continuous value are to support study cases where no discrete shunt compensators has yet been
* designed, a solutions where a narrow voltage band force the sections to oscillate or accommodate for a continuous
* solution as input.
*
*
* double sections = 2;
* @return The sections.
*/
@java.lang.Override
public double getSections() {
return sections_;
}
public static final int GROUNDED_FIELD_NUMBER = 3;
private boolean grounded_ = false;
/**
*
**
* Used for Yn and Zn connections. True if the neutral is solidly grounded.
*
*
* bool grounded = 3;
* @return The grounded.
*/
@java.lang.Override
public boolean getGrounded() {
return grounded_;
}
public static final int NOMU_FIELD_NUMBER = 4;
private int nomU_ = 0;
/**
*
**
* The voltage at which the nominal reactive power may be calculated. This should normally be within 10% of the voltage at which the capacitor is connected to the network.
*
*
* int32 nomU = 4;
* @return The nomU.
*/
@java.lang.Override
public int getNomU() {
return nomU_;
}
public static final int PHASECONNECTION_FIELD_NUMBER = 5;
private int phaseConnection_ = 0;
/**
*
**
* The type of phase connection, such as wye or delta.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 5;
* @return The enum numeric value on the wire for phaseConnection.
*/
@java.lang.Override public int getPhaseConnectionValue() {
return phaseConnection_;
}
/**
*
**
* The type of phase connection, such as wye or delta.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 5;
* @return The phaseConnection.
*/
@java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum getPhaseConnection() {
com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum result = com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.forNumber(phaseConnection_);
return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.UNRECOGNIZED : result;
}
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, getRce());
}
if (java.lang.Double.doubleToRawLongBits(sections_) != 0) {
output.writeDouble(2, sections_);
}
if (grounded_ != false) {
output.writeBool(3, grounded_);
}
if (nomU_ != 0) {
output.writeInt32(4, nomU_);
}
if (phaseConnection_ != com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.UNKNOWN.getNumber()) {
output.writeEnum(5, phaseConnection_);
}
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, getRce());
}
if (java.lang.Double.doubleToRawLongBits(sections_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, sections_);
}
if (grounded_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, grounded_);
}
if (nomU_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, nomU_);
}
if (phaseConnection_ != com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, phaseConnection_);
}
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.ShuntCompensator)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator other = (com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator) obj;
if (hasRce() != other.hasRce()) return false;
if (hasRce()) {
if (!getRce()
.equals(other.getRce())) return false;
}
if (java.lang.Double.doubleToLongBits(getSections())
!= java.lang.Double.doubleToLongBits(
other.getSections())) return false;
if (getGrounded()
!= other.getGrounded()) return false;
if (getNomU()
!= other.getNomU()) return false;
if (phaseConnection_ != other.phaseConnection_) 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 (hasRce()) {
hash = (37 * hash) + RCE_FIELD_NUMBER;
hash = (53 * hash) + getRce().hashCode();
}
hash = (37 * hash) + SECTIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSections()));
hash = (37 * hash) + GROUNDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getGrounded());
hash = (37 * hash) + NOMU_FIELD_NUMBER;
hash = (53 * hash) + getNomU();
hash = (37 * hash) + PHASECONNECTION_FIELD_NUMBER;
hash = (53 * hash) + phaseConnection_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator 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.ShuntCompensator parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator 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.ShuntCompensator parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator 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.ShuntCompensator 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.ShuntCompensator 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.ShuntCompensator 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.ShuntCompensator 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.ShuntCompensator 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.ShuntCompensator 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.ShuntCompensator 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 shunt capacitor or reactor or switchable bank of shunt capacitors or reactors. A section of a shunt compensator is an individual
* capacitor or reactor. A negative value for reactivePerSection indicates that the compensator is a reactor. ShuntCompensator is a
* single terminal device. Ground is implied.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator)
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_ShuntCompensator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_ShuntCompensator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.class, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rce_ = null;
if (rceBuilder_ != null) {
rceBuilder_.dispose();
rceBuilder_ = null;
}
sections_ = 0D;
grounded_ = false;
nomU_ = 0;
phaseConnection_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_ShuntCompensator_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator build() {
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator buildPartial() {
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator result = new com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rce_ = rceBuilder_ == null
? rce_
: rceBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sections_ = sections_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.grounded_ = grounded_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.nomU_ = nomU_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.phaseConnection_ = phaseConnection_;
}
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.ShuntCompensator) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator other) {
if (other == com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.getDefaultInstance()) return this;
if (other.hasRce()) {
mergeRce(other.getRce());
}
if (other.getSections() != 0D) {
setSections(other.getSections());
}
if (other.getGrounded() != false) {
setGrounded(other.getGrounded());
}
if (other.getNomU() != 0) {
setNomU(other.getNomU());
}
if (other.phaseConnection_ != 0) {
setPhaseConnectionValue(other.getPhaseConnectionValue());
}
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(
getRceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
sections_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 24: {
grounded_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
nomU_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
phaseConnection_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
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.RegulatingCondEq rce_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.Builder, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOrBuilder> rceBuilder_;
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
* @return Whether the rce field is set.
*/
public boolean hasRce() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
* @return The rce.
*/
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq getRce() {
if (rceBuilder_ == null) {
return rce_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.getDefaultInstance() : rce_;
} else {
return rceBuilder_.getMessage();
}
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
public Builder setRce(com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq value) {
if (rceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rce_ = value;
} else {
rceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
public Builder setRce(
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.Builder builderForValue) {
if (rceBuilder_ == null) {
rce_ = builderForValue.build();
} else {
rceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
public Builder mergeRce(com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq value) {
if (rceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
rce_ != null &&
rce_ != com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.getDefaultInstance()) {
getRceBuilder().mergeFrom(value);
} else {
rce_ = value;
}
} else {
rceBuilder_.mergeFrom(value);
}
if (rce_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
public Builder clearRce() {
bitField0_ = (bitField0_ & ~0x00000001);
rce_ = null;
if (rceBuilder_ != null) {
rceBuilder_.dispose();
rceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.Builder getRceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRceFieldBuilder().getBuilder();
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOrBuilder getRceOrBuilder() {
if (rceBuilder_ != null) {
return rceBuilder_.getMessageOrBuilder();
} else {
return rce_ == null ?
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.getDefaultInstance() : rce_;
}
}
/**
*
**
* The RegulatingConductingEquipment fields for this ShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq rce = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.Builder, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOrBuilder>
getRceFieldBuilder() {
if (rceBuilder_ == null) {
rceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.Builder, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOrBuilder>(
getRce(),
getParentForChildren(),
isClean());
rce_ = null;
}
return rceBuilder_;
}
private double sections_ ;
/**
*
**
* Shunt compensator sections in use.
* Starting value for steady state solution. Non integer values are allowed to support continuous variables.
* The reasons for continuous value are to support study cases where no discrete shunt compensators has yet been
* designed, a solutions where a narrow voltage band force the sections to oscillate or accommodate for a continuous
* solution as input.
*
*
* double sections = 2;
* @return The sections.
*/
@java.lang.Override
public double getSections() {
return sections_;
}
/**
*
**
* Shunt compensator sections in use.
* Starting value for steady state solution. Non integer values are allowed to support continuous variables.
* The reasons for continuous value are to support study cases where no discrete shunt compensators has yet been
* designed, a solutions where a narrow voltage band force the sections to oscillate or accommodate for a continuous
* solution as input.
*
*
* double sections = 2;
* @param value The sections to set.
* @return This builder for chaining.
*/
public Builder setSections(double value) {
sections_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Shunt compensator sections in use.
* Starting value for steady state solution. Non integer values are allowed to support continuous variables.
* The reasons for continuous value are to support study cases where no discrete shunt compensators has yet been
* designed, a solutions where a narrow voltage band force the sections to oscillate or accommodate for a continuous
* solution as input.
*
*
* double sections = 2;
* @return This builder for chaining.
*/
public Builder clearSections() {
bitField0_ = (bitField0_ & ~0x00000002);
sections_ = 0D;
onChanged();
return this;
}
private boolean grounded_ ;
/**
*
**
* Used for Yn and Zn connections. True if the neutral is solidly grounded.
*
*
* bool grounded = 3;
* @return The grounded.
*/
@java.lang.Override
public boolean getGrounded() {
return grounded_;
}
/**
*
**
* Used for Yn and Zn connections. True if the neutral is solidly grounded.
*
*
* bool grounded = 3;
* @param value The grounded to set.
* @return This builder for chaining.
*/
public Builder setGrounded(boolean value) {
grounded_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Used for Yn and Zn connections. True if the neutral is solidly grounded.
*
*
* bool grounded = 3;
* @return This builder for chaining.
*/
public Builder clearGrounded() {
bitField0_ = (bitField0_ & ~0x00000004);
grounded_ = false;
onChanged();
return this;
}
private int nomU_ ;
/**
*
**
* The voltage at which the nominal reactive power may be calculated. This should normally be within 10% of the voltage at which the capacitor is connected to the network.
*
*
* int32 nomU = 4;
* @return The nomU.
*/
@java.lang.Override
public int getNomU() {
return nomU_;
}
/**
*
**
* The voltage at which the nominal reactive power may be calculated. This should normally be within 10% of the voltage at which the capacitor is connected to the network.
*
*
* int32 nomU = 4;
* @param value The nomU to set.
* @return This builder for chaining.
*/
public Builder setNomU(int value) {
nomU_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The voltage at which the nominal reactive power may be calculated. This should normally be within 10% of the voltage at which the capacitor is connected to the network.
*
*
* int32 nomU = 4;
* @return This builder for chaining.
*/
public Builder clearNomU() {
bitField0_ = (bitField0_ & ~0x00000008);
nomU_ = 0;
onChanged();
return this;
}
private int phaseConnection_ = 0;
/**
*
**
* The type of phase connection, such as wye or delta.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 5;
* @return The enum numeric value on the wire for phaseConnection.
*/
@java.lang.Override public int getPhaseConnectionValue() {
return phaseConnection_;
}
/**
*
**
* The type of phase connection, such as wye or delta.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 5;
* @param value The enum numeric value on the wire for phaseConnection to set.
* @return This builder for chaining.
*/
public Builder setPhaseConnectionValue(int value) {
phaseConnection_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The type of phase connection, such as wye or delta.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 5;
* @return The phaseConnection.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum getPhaseConnection() {
com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum result = com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.forNumber(phaseConnection_);
return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.UNRECOGNIZED : result;
}
/**
*
**
* The type of phase connection, such as wye or delta.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 5;
* @param value The phaseConnection to set.
* @return This builder for chaining.
*/
public Builder setPhaseConnection(com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
phaseConnection_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The type of phase connection, such as wye or delta.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 5;
* @return This builder for chaining.
*/
public Builder clearPhaseConnection() {
bitField0_ = (bitField0_ & ~0x00000010);
phaseConnection_ = 0;
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.ShuntCompensator)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator)
private static final com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator();
}
public static com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShuntCompensator 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.ShuntCompensator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}