com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq 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/RegulatingCondEq.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.RegulatingCondEq}
*/
public final class RegulatingCondEq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq)
RegulatingCondEqOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegulatingCondEq.newBuilder() to construct.
private RegulatingCondEq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegulatingCondEq() {
regulatingControlMRID_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegulatingCondEq();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RegulatingCondEq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RegulatingCondEq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.class, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.Builder.class);
}
private int bitField0_;
public static final int EC_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec_;
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return Whether the ec field is set.
*/
@java.lang.Override
public boolean hasEc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return The ec.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection getEc() {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder getEcOrBuilder() {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
}
public static final int CONTROLENABLED_FIELD_NUMBER = 2;
private boolean controlEnabled_ = false;
/**
*
**
* Specifies the regulation status of the equipment. True is regulating, false is not regulating.
*
*
* bool controlEnabled = 2;
* @return The controlEnabled.
*/
@java.lang.Override
public boolean getControlEnabled() {
return controlEnabled_;
}
public static final int REGULATINGCONTROLMRID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object regulatingControlMRID_ = "";
/**
*
**
* The MRID of the regulating control scheme in which this equipment participates.
*
*
* string regulatingControlMRID = 3;
* @return The regulatingControlMRID.
*/
@java.lang.Override
public java.lang.String getRegulatingControlMRID() {
java.lang.Object ref = regulatingControlMRID_;
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();
regulatingControlMRID_ = s;
return s;
}
}
/**
*
**
* The MRID of the regulating control scheme in which this equipment participates.
*
*
* string regulatingControlMRID = 3;
* @return The bytes for regulatingControlMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegulatingControlMRIDBytes() {
java.lang.Object ref = regulatingControlMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
regulatingControlMRID_ = 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, getEc());
}
if (controlEnabled_ != false) {
output.writeBool(2, controlEnabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regulatingControlMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, regulatingControlMRID_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEc());
}
if (controlEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, controlEnabled_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regulatingControlMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, regulatingControlMRID_);
}
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.RegulatingCondEq)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq other = (com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq) obj;
if (hasEc() != other.hasEc()) return false;
if (hasEc()) {
if (!getEc()
.equals(other.getEc())) return false;
}
if (getControlEnabled()
!= other.getControlEnabled()) return false;
if (!getRegulatingControlMRID()
.equals(other.getRegulatingControlMRID())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEc()) {
hash = (37 * hash) + EC_FIELD_NUMBER;
hash = (53 * hash) + getEc().hashCode();
}
hash = (37 * hash) + CONTROLENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getControlEnabled());
hash = (37 * hash) + REGULATINGCONTROLMRID_FIELD_NUMBER;
hash = (53 * hash) + getRegulatingControlMRID().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq 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.RegulatingCondEq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq 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.RegulatingCondEq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq 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.RegulatingCondEq 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.RegulatingCondEq 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.RegulatingCondEq 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.RegulatingCondEq 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.RegulatingCondEq 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.RegulatingCondEq 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.RegulatingCondEq 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.RegulatingCondEq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq)
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RegulatingCondEq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RegulatingCondEq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.class, com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEcFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ec_ = null;
if (ecBuilder_ != null) {
ecBuilder_.dispose();
ecBuilder_ = null;
}
controlEnabled_ = false;
regulatingControlMRID_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEqOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RegulatingCondEq_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq build() {
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq buildPartial() {
com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq result = new com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ec_ = ecBuilder_ == null
? ec_
: ecBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.controlEnabled_ = controlEnabled_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.regulatingControlMRID_ = regulatingControlMRID_;
}
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.RegulatingCondEq) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq other) {
if (other == com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq.getDefaultInstance()) return this;
if (other.hasEc()) {
mergeEc(other.getEc());
}
if (other.getControlEnabled() != false) {
setControlEnabled(other.getControlEnabled());
}
if (!other.getRegulatingControlMRID().isEmpty()) {
regulatingControlMRID_ = other.regulatingControlMRID_;
bitField0_ |= 0x00000004;
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(
getEcFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
controlEnabled_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
regulatingControlMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder> ecBuilder_;
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return Whether the ec field is set.
*/
public boolean hasEc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return The ec.
*/
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection getEc() {
if (ecBuilder_ == null) {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
} else {
return ecBuilder_.getMessage();
}
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder setEc(com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection value) {
if (ecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ec_ = value;
} else {
ecBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder setEc(
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder builderForValue) {
if (ecBuilder_ == null) {
ec_ = builderForValue.build();
} else {
ecBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder mergeEc(com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection value) {
if (ecBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ec_ != null &&
ec_ != com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance()) {
getEcBuilder().mergeFrom(value);
} else {
ec_ = value;
}
} else {
ecBuilder_.mergeFrom(value);
}
if (ec_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public Builder clearEc() {
bitField0_ = (bitField0_ & ~0x00000001);
ec_ = null;
if (ecBuilder_ != null) {
ecBuilder_.dispose();
ecBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder getEcBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getEcFieldBuilder().getBuilder();
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder getEcOrBuilder() {
if (ecBuilder_ != null) {
return ecBuilder_.getMessageOrBuilder();
} else {
return ec_ == null ?
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.getDefaultInstance() : ec_;
}
}
/**
*
**
* The EnergyConnection fields for this RegulatingConductingEquipment.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder>
getEcFieldBuilder() {
if (ecBuilder_ == null) {
ecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection.Builder, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnectionOrBuilder>(
getEc(),
getParentForChildren(),
isClean());
ec_ = null;
}
return ecBuilder_;
}
private boolean controlEnabled_ ;
/**
*
**
* Specifies the regulation status of the equipment. True is regulating, false is not regulating.
*
*
* bool controlEnabled = 2;
* @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 = 2;
* @param value The controlEnabled to set.
* @return This builder for chaining.
*/
public Builder setControlEnabled(boolean value) {
controlEnabled_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Specifies the regulation status of the equipment. True is regulating, false is not regulating.
*
*
* bool controlEnabled = 2;
* @return This builder for chaining.
*/
public Builder clearControlEnabled() {
bitField0_ = (bitField0_ & ~0x00000002);
controlEnabled_ = false;
onChanged();
return this;
}
private java.lang.Object regulatingControlMRID_ = "";
/**
*
**
* The MRID of the regulating control scheme in which this equipment participates.
*
*
* string regulatingControlMRID = 3;
* @return The regulatingControlMRID.
*/
public java.lang.String getRegulatingControlMRID() {
java.lang.Object ref = regulatingControlMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
regulatingControlMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The MRID of the regulating control scheme in which this equipment participates.
*
*
* string regulatingControlMRID = 3;
* @return The bytes for regulatingControlMRID.
*/
public com.google.protobuf.ByteString
getRegulatingControlMRIDBytes() {
java.lang.Object ref = regulatingControlMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
regulatingControlMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The MRID of the regulating control scheme in which this equipment participates.
*
*
* string regulatingControlMRID = 3;
* @param value The regulatingControlMRID to set.
* @return This builder for chaining.
*/
public Builder setRegulatingControlMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
regulatingControlMRID_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The MRID of the regulating control scheme in which this equipment participates.
*
*
* string regulatingControlMRID = 3;
* @return This builder for chaining.
*/
public Builder clearRegulatingControlMRID() {
regulatingControlMRID_ = getDefaultInstance().getRegulatingControlMRID();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* The MRID of the regulating control scheme in which this equipment participates.
*
*
* string regulatingControlMRID = 3;
* @param value The bytes for regulatingControlMRID to set.
* @return This builder for chaining.
*/
public Builder setRegulatingControlMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
regulatingControlMRID_ = value;
bitField0_ |= 0x00000004;
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.RegulatingCondEq)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq)
private static final com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq();
}
public static com.zepben.protobuf.cim.iec61970.base.wires.RegulatingCondEq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegulatingCondEq 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.RegulatingCondEq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}