com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer 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/EnergyConsumer.proto
package com.zepben.protobuf.cim.iec61970.base.wires;
/**
*
**
* Generic user of energy - a point of consumption on the power system model.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer}
*/
public final class EnergyConsumer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer)
EnergyConsumerOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnergyConsumer.newBuilder() to construct.
private EnergyConsumer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EnergyConsumer() {
energyConsumerPhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
phaseConnection_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnergyConsumer();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergyConsumer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergyConsumer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer.class, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer.Builder.class);
}
private int bitField0_;
public static final int EC_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec_;
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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);
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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_;
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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 ENERGYCONSUMERPHASESMRIDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList energyConsumerPhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @return A list containing the energyConsumerPhasesMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEnergyConsumerPhasesMRIDsList() {
return energyConsumerPhasesMRIDs_;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @return The count of energyConsumerPhasesMRIDs.
*/
public int getEnergyConsumerPhasesMRIDsCount() {
return energyConsumerPhasesMRIDs_.size();
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param index The index of the element to return.
* @return The energyConsumerPhasesMRIDs at the given index.
*/
public java.lang.String getEnergyConsumerPhasesMRIDs(int index) {
return energyConsumerPhasesMRIDs_.get(index);
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the energyConsumerPhasesMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEnergyConsumerPhasesMRIDsBytes(int index) {
return energyConsumerPhasesMRIDs_.getByteString(index);
}
public static final int CUSTOMERCOUNT_FIELD_NUMBER = 3;
private int customerCount_ = 0;
/**
*
**
* Number of individual customers represented by this demand.
*
*
* int32 customerCount = 3;
* @return The customerCount.
*/
@java.lang.Override
public int getCustomerCount() {
return customerCount_;
}
public static final int GROUNDED_FIELD_NUMBER = 4;
private boolean grounded_ = false;
/**
*
**
* Used for Yn and Zn connections. True if the neutral is solidly grounded.
*
*
* bool grounded = 4;
* @return The grounded.
*/
@java.lang.Override
public boolean getGrounded() {
return grounded_;
}
public static final int P_FIELD_NUMBER = 5;
private double p_ = 0D;
/**
*
**
* Active power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double p = 5;
* @return The p.
*/
@java.lang.Override
public double getP() {
return p_;
}
public static final int PFIXED_FIELD_NUMBER = 6;
private double pFixed_ = 0D;
/**
*
**
* Active power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double pFixed = 6;
* @return The pFixed.
*/
@java.lang.Override
public double getPFixed() {
return pFixed_;
}
public static final int PHASECONNECTION_FIELD_NUMBER = 7;
private int phaseConnection_ = 0;
/**
*
**
* The configuration of phase connections for a single terminal device such as a load or capacitor.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 7;
* @return The enum numeric value on the wire for phaseConnection.
*/
@java.lang.Override public int getPhaseConnectionValue() {
return phaseConnection_;
}
/**
*
**
* The configuration of phase connections for a single terminal device such as a load or capacitor.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 7;
* @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;
}
public static final int Q_FIELD_NUMBER = 8;
private double q_ = 0D;
/**
*
**
* Reactive power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double q = 8;
* @return The q.
*/
@java.lang.Override
public double getQ() {
return q_;
}
public static final int QFIXED_FIELD_NUMBER = 9;
private double qFixed_ = 0D;
/**
*
**
* Reactive power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double qFixed = 9;
* @return The qFixed.
*/
@java.lang.Override
public double getQFixed() {
return qFixed_;
}
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());
}
for (int i = 0; i < energyConsumerPhasesMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, energyConsumerPhasesMRIDs_.getRaw(i));
}
if (customerCount_ != 0) {
output.writeInt32(3, customerCount_);
}
if (grounded_ != false) {
output.writeBool(4, grounded_);
}
if (java.lang.Double.doubleToRawLongBits(p_) != 0) {
output.writeDouble(5, p_);
}
if (java.lang.Double.doubleToRawLongBits(pFixed_) != 0) {
output.writeDouble(6, pFixed_);
}
if (phaseConnection_ != com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.UNKNOWN.getNumber()) {
output.writeEnum(7, phaseConnection_);
}
if (java.lang.Double.doubleToRawLongBits(q_) != 0) {
output.writeDouble(8, q_);
}
if (java.lang.Double.doubleToRawLongBits(qFixed_) != 0) {
output.writeDouble(9, qFixed_);
}
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());
}
{
int dataSize = 0;
for (int i = 0; i < energyConsumerPhasesMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(energyConsumerPhasesMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getEnergyConsumerPhasesMRIDsList().size();
}
if (customerCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, customerCount_);
}
if (grounded_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, grounded_);
}
if (java.lang.Double.doubleToRawLongBits(p_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, p_);
}
if (java.lang.Double.doubleToRawLongBits(pFixed_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, pFixed_);
}
if (phaseConnection_ != com.zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, phaseConnection_);
}
if (java.lang.Double.doubleToRawLongBits(q_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, q_);
}
if (java.lang.Double.doubleToRawLongBits(qFixed_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, qFixed_);
}
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.EnergyConsumer)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer other = (com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer) obj;
if (hasEc() != other.hasEc()) return false;
if (hasEc()) {
if (!getEc()
.equals(other.getEc())) return false;
}
if (!getEnergyConsumerPhasesMRIDsList()
.equals(other.getEnergyConsumerPhasesMRIDsList())) return false;
if (getCustomerCount()
!= other.getCustomerCount()) return false;
if (getGrounded()
!= other.getGrounded()) return false;
if (java.lang.Double.doubleToLongBits(getP())
!= java.lang.Double.doubleToLongBits(
other.getP())) return false;
if (java.lang.Double.doubleToLongBits(getPFixed())
!= java.lang.Double.doubleToLongBits(
other.getPFixed())) return false;
if (phaseConnection_ != other.phaseConnection_) return false;
if (java.lang.Double.doubleToLongBits(getQ())
!= java.lang.Double.doubleToLongBits(
other.getQ())) return false;
if (java.lang.Double.doubleToLongBits(getQFixed())
!= java.lang.Double.doubleToLongBits(
other.getQFixed())) 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();
}
if (getEnergyConsumerPhasesMRIDsCount() > 0) {
hash = (37 * hash) + ENERGYCONSUMERPHASESMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getEnergyConsumerPhasesMRIDsList().hashCode();
}
hash = (37 * hash) + CUSTOMERCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getCustomerCount();
hash = (37 * hash) + GROUNDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getGrounded());
hash = (37 * hash) + P_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getP()));
hash = (37 * hash) + PFIXED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPFixed()));
hash = (37 * hash) + PHASECONNECTION_FIELD_NUMBER;
hash = (53 * hash) + phaseConnection_;
hash = (37 * hash) + Q_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getQ()));
hash = (37 * hash) + QFIXED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getQFixed()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer 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.EnergyConsumer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer 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.EnergyConsumer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer 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.EnergyConsumer 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.EnergyConsumer 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.EnergyConsumer 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.EnergyConsumer 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.EnergyConsumer 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.EnergyConsumer 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.EnergyConsumer 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;
}
/**
*
**
* Generic user of energy - a point of consumption on the power system model.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer)
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergyConsumer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergyConsumer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer.class, com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer.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;
}
energyConsumerPhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
customerCount_ = 0;
grounded_ = false;
p_ = 0D;
pFixed_ = 0D;
phaseConnection_ = 0;
q_ = 0D;
qFixed_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergyConsumer_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer build() {
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer buildPartial() {
com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer result = new com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer 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)) {
energyConsumerPhasesMRIDs_.makeImmutable();
result.energyConsumerPhasesMRIDs_ = energyConsumerPhasesMRIDs_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.customerCount_ = customerCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.grounded_ = grounded_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.p_ = p_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.pFixed_ = pFixed_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.phaseConnection_ = phaseConnection_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.q_ = q_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.qFixed_ = qFixed_;
}
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.EnergyConsumer) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer other) {
if (other == com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer.getDefaultInstance()) return this;
if (other.hasEc()) {
mergeEc(other.getEc());
}
if (!other.energyConsumerPhasesMRIDs_.isEmpty()) {
if (energyConsumerPhasesMRIDs_.isEmpty()) {
energyConsumerPhasesMRIDs_ = other.energyConsumerPhasesMRIDs_;
bitField0_ |= 0x00000002;
} else {
ensureEnergyConsumerPhasesMRIDsIsMutable();
energyConsumerPhasesMRIDs_.addAll(other.energyConsumerPhasesMRIDs_);
}
onChanged();
}
if (other.getCustomerCount() != 0) {
setCustomerCount(other.getCustomerCount());
}
if (other.getGrounded() != false) {
setGrounded(other.getGrounded());
}
if (other.getP() != 0D) {
setP(other.getP());
}
if (other.getPFixed() != 0D) {
setPFixed(other.getPFixed());
}
if (other.phaseConnection_ != 0) {
setPhaseConnectionValue(other.getPhaseConnectionValue());
}
if (other.getQ() != 0D) {
setQ(other.getQ());
}
if (other.getQFixed() != 0D) {
setQFixed(other.getQFixed());
}
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 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureEnergyConsumerPhasesMRIDsIsMutable();
energyConsumerPhasesMRIDs_.add(s);
break;
} // case 18
case 24: {
customerCount_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
grounded_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 41: {
p_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
pFixed_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 49
case 56: {
phaseConnection_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 56
case 65: {
q_ = input.readDouble();
bitField0_ |= 0x00000080;
break;
} // case 65
case 73: {
qFixed_ = input.readDouble();
bitField0_ |= 0x00000100;
break;
} // case 73
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_;
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.EnergyConnection ec = 1;
* @return Whether the ec field is set.
*/
public boolean hasEc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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();
}
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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;
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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;
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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;
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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;
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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();
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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_;
}
}
/**
*
**
* EnergyConnection fields for this EnergyConsumer.
*
*
* .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 com.google.protobuf.LazyStringArrayList energyConsumerPhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEnergyConsumerPhasesMRIDsIsMutable() {
if (!energyConsumerPhasesMRIDs_.isModifiable()) {
energyConsumerPhasesMRIDs_ = new com.google.protobuf.LazyStringArrayList(energyConsumerPhasesMRIDs_);
}
bitField0_ |= 0x00000002;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @return A list containing the energyConsumerPhasesMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEnergyConsumerPhasesMRIDsList() {
energyConsumerPhasesMRIDs_.makeImmutable();
return energyConsumerPhasesMRIDs_;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @return The count of energyConsumerPhasesMRIDs.
*/
public int getEnergyConsumerPhasesMRIDsCount() {
return energyConsumerPhasesMRIDs_.size();
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param index The index of the element to return.
* @return The energyConsumerPhasesMRIDs at the given index.
*/
public java.lang.String getEnergyConsumerPhasesMRIDs(int index) {
return energyConsumerPhasesMRIDs_.get(index);
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the energyConsumerPhasesMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEnergyConsumerPhasesMRIDsBytes(int index) {
return energyConsumerPhasesMRIDs_.getByteString(index);
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param index The index to set the value at.
* @param value The energyConsumerPhasesMRIDs to set.
* @return This builder for chaining.
*/
public Builder setEnergyConsumerPhasesMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnergyConsumerPhasesMRIDsIsMutable();
energyConsumerPhasesMRIDs_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param value The energyConsumerPhasesMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEnergyConsumerPhasesMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEnergyConsumerPhasesMRIDsIsMutable();
energyConsumerPhasesMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param values The energyConsumerPhasesMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllEnergyConsumerPhasesMRIDs(
java.lang.Iterable values) {
ensureEnergyConsumerPhasesMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, energyConsumerPhasesMRIDs_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @return This builder for chaining.
*/
public Builder clearEnergyConsumerPhasesMRIDs() {
energyConsumerPhasesMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
**
* The individual phase information of the energy source.
*
*
* repeated string energyConsumerPhasesMRIDs = 2;
* @param value The bytes of the energyConsumerPhasesMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEnergyConsumerPhasesMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEnergyConsumerPhasesMRIDsIsMutable();
energyConsumerPhasesMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int customerCount_ ;
/**
*
**
* Number of individual customers represented by this demand.
*
*
* int32 customerCount = 3;
* @return The customerCount.
*/
@java.lang.Override
public int getCustomerCount() {
return customerCount_;
}
/**
*
**
* Number of individual customers represented by this demand.
*
*
* int32 customerCount = 3;
* @param value The customerCount to set.
* @return This builder for chaining.
*/
public Builder setCustomerCount(int value) {
customerCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Number of individual customers represented by this demand.
*
*
* int32 customerCount = 3;
* @return This builder for chaining.
*/
public Builder clearCustomerCount() {
bitField0_ = (bitField0_ & ~0x00000004);
customerCount_ = 0;
onChanged();
return this;
}
private boolean grounded_ ;
/**
*
**
* Used for Yn and Zn connections. True if the neutral is solidly grounded.
*
*
* bool grounded = 4;
* @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 = 4;
* @param value The grounded to set.
* @return This builder for chaining.
*/
public Builder setGrounded(boolean value) {
grounded_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Used for Yn and Zn connections. True if the neutral is solidly grounded.
*
*
* bool grounded = 4;
* @return This builder for chaining.
*/
public Builder clearGrounded() {
bitField0_ = (bitField0_ & ~0x00000008);
grounded_ = false;
onChanged();
return this;
}
private double p_ ;
/**
*
**
* Active power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double p = 5;
* @return The p.
*/
@java.lang.Override
public double getP() {
return p_;
}
/**
*
**
* Active power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double p = 5;
* @param value The p to set.
* @return This builder for chaining.
*/
public Builder setP(double value) {
p_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* Active power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double p = 5;
* @return This builder for chaining.
*/
public Builder clearP() {
bitField0_ = (bitField0_ & ~0x00000010);
p_ = 0D;
onChanged();
return this;
}
private double pFixed_ ;
/**
*
**
* Active power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double pFixed = 6;
* @return The pFixed.
*/
@java.lang.Override
public double getPFixed() {
return pFixed_;
}
/**
*
**
* Active power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double pFixed = 6;
* @param value The pFixed to set.
* @return This builder for chaining.
*/
public Builder setPFixed(double value) {
pFixed_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* Active power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double pFixed = 6;
* @return This builder for chaining.
*/
public Builder clearPFixed() {
bitField0_ = (bitField0_ & ~0x00000020);
pFixed_ = 0D;
onChanged();
return this;
}
private int phaseConnection_ = 0;
/**
*
**
* The configuration of phase connections for a single terminal device such as a load or capacitor.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 7;
* @return The enum numeric value on the wire for phaseConnection.
*/
@java.lang.Override public int getPhaseConnectionValue() {
return phaseConnection_;
}
/**
*
**
* The configuration of phase connections for a single terminal device such as a load or capacitor.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 7;
* @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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* The configuration of phase connections for a single terminal device such as a load or capacitor.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 7;
* @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 configuration of phase connections for a single terminal device such as a load or capacitor.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 7;
* @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_ |= 0x00000040;
phaseConnection_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The configuration of phase connections for a single terminal device such as a load or capacitor.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.PhaseShuntConnectionKind.Enum phaseConnection = 7;
* @return This builder for chaining.
*/
public Builder clearPhaseConnection() {
bitField0_ = (bitField0_ & ~0x00000040);
phaseConnection_ = 0;
onChanged();
return this;
}
private double q_ ;
/**
*
**
* Reactive power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double q = 8;
* @return The q.
*/
@java.lang.Override
public double getQ() {
return q_;
}
/**
*
**
* Reactive power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double q = 8;
* @param value The q to set.
* @return This builder for chaining.
*/
public Builder setQ(double value) {
q_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* Reactive power of the load. Load sign convention is used, i.e. positive sign means flow out from a node.
* For voltage dependent loads the value is at rated voltage.
* Starting value for a steady state solution.
*
*
* double q = 8;
* @return This builder for chaining.
*/
public Builder clearQ() {
bitField0_ = (bitField0_ & ~0x00000080);
q_ = 0D;
onChanged();
return this;
}
private double qFixed_ ;
/**
*
**
* Reactive power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double qFixed = 9;
* @return The qFixed.
*/
@java.lang.Override
public double getQFixed() {
return qFixed_;
}
/**
*
**
* Reactive power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double qFixed = 9;
* @param value The qFixed to set.
* @return This builder for chaining.
*/
public Builder setQFixed(double value) {
qFixed_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* Reactive power of the load that is a fixed quantity.
* Load sign convention is used, i.e. positive sign means flow out from a node.
*
*
* double qFixed = 9;
* @return This builder for chaining.
*/
public Builder clearQFixed() {
bitField0_ = (bitField0_ & ~0x00000100);
qFixed_ = 0D;
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.EnergyConsumer)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer)
private static final com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer();
}
public static com.zepben.protobuf.cim.iec61970.base.wires.EnergyConsumer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EnergyConsumer 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.EnergyConsumer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}