com.zepben.protobuf.hc.opendss.SummaryReport 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/hc/opendss/Diagnostics.proto
package com.zepben.protobuf.hc.opendss;
/**
*
**
* Message for streaming the summary report
*
*
* Protobuf type {@code zepben.protobuf.hc.opendss.SummaryReport}
*/
public final class SummaryReport extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.SummaryReport)
SummaryReportOrBuilder {
private static final long serialVersionUID = 0L;
// Use SummaryReport.newBuilder() to construct.
private SummaryReport(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SummaryReport() {
caseName_ = "";
mode_ = "";
controlMode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SummaryReport();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_SummaryReport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_SummaryReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.hc.opendss.SummaryReport.class, com.zepben.protobuf.hc.opendss.SummaryReport.Builder.class);
}
public static final int CASENAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object caseName_ = "";
/**
* string caseName = 1;
* @return The caseName.
*/
@java.lang.Override
public java.lang.String getCaseName() {
java.lang.Object ref = caseName_;
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();
caseName_ = s;
return s;
}
}
/**
* string caseName = 1;
* @return The bytes for caseName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCaseNameBytes() {
java.lang.Object ref = caseName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
caseName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOLVED_FIELD_NUMBER = 2;
private boolean solved_ = false;
/**
* bool solved = 2;
* @return The solved.
*/
@java.lang.Override
public boolean getSolved() {
return solved_;
}
public static final int MODE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object mode_ = "";
/**
* string mode = 3;
* @return The mode.
*/
@java.lang.Override
public java.lang.String getMode() {
java.lang.Object ref = mode_;
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();
mode_ = s;
return s;
}
}
/**
* string mode = 3;
* @return The bytes for mode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getModeBytes() {
java.lang.Object ref = mode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 4;
private int number_ = 0;
/**
* int32 number = 4;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
public static final int LOADMULT_FIELD_NUMBER = 5;
private double loadMult_ = 0D;
/**
* double loadMult = 5;
* @return The loadMult.
*/
@java.lang.Override
public double getLoadMult() {
return loadMult_;
}
public static final int NUMDEVICES_FIELD_NUMBER = 6;
private int numDevices_ = 0;
/**
* int32 numDevices = 6;
* @return The numDevices.
*/
@java.lang.Override
public int getNumDevices() {
return numDevices_;
}
public static final int NUMBUSES_FIELD_NUMBER = 7;
private int numBuses_ = 0;
/**
* int32 numBuses = 7;
* @return The numBuses.
*/
@java.lang.Override
public int getNumBuses() {
return numBuses_;
}
public static final int NUMNODES_FIELD_NUMBER = 8;
private int numNodes_ = 0;
/**
* int32 numNodes = 8;
* @return The numNodes.
*/
@java.lang.Override
public int getNumNodes() {
return numNodes_;
}
public static final int ITERATIONS_FIELD_NUMBER = 9;
private int iterations_ = 0;
/**
* int32 iterations = 9;
* @return The iterations.
*/
@java.lang.Override
public int getIterations() {
return iterations_;
}
public static final int CONTROLMODE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object controlMode_ = "";
/**
* string controlMode = 10;
* @return The controlMode.
*/
@java.lang.Override
public java.lang.String getControlMode() {
java.lang.Object ref = controlMode_;
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();
controlMode_ = s;
return s;
}
}
/**
* string controlMode = 10;
* @return The bytes for controlMode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getControlModeBytes() {
java.lang.Object ref = controlMode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
controlMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTROLITERATIONS_FIELD_NUMBER = 11;
private int controlIterations_ = 0;
/**
* int32 controlIterations = 11;
* @return The controlIterations.
*/
@java.lang.Override
public int getControlIterations() {
return controlIterations_;
}
public static final int MOSTITERATIONSDONE_FIELD_NUMBER = 12;
private int mostIterationsDone_ = 0;
/**
* int32 mostIterationsDone = 12;
* @return The mostIterationsDone.
*/
@java.lang.Override
public int getMostIterationsDone() {
return mostIterationsDone_;
}
public static final int YEAR_FIELD_NUMBER = 13;
private int year_ = 0;
/**
* int32 year = 13;
* @return The year.
*/
@java.lang.Override
public int getYear() {
return year_;
}
public static final int HOUR_FIELD_NUMBER = 14;
private int hour_ = 0;
/**
* int32 hour = 14;
* @return The hour.
*/
@java.lang.Override
public int getHour() {
return hour_;
}
public static final int MAXPUVOLTAGE_FIELD_NUMBER = 15;
private double maxPuVoltage_ = 0D;
/**
* double maxPuVoltage = 15;
* @return The maxPuVoltage.
*/
@java.lang.Override
public double getMaxPuVoltage() {
return maxPuVoltage_;
}
public static final int MINPUVOLTAGE_FIELD_NUMBER = 16;
private double minPuVoltage_ = 0D;
/**
* double minPuVoltage = 16;
* @return The minPuVoltage.
*/
@java.lang.Override
public double getMinPuVoltage() {
return minPuVoltage_;
}
public static final int TOTALMW_FIELD_NUMBER = 17;
private double totalMW_ = 0D;
/**
* double totalMW = 17;
* @return The totalMW.
*/
@java.lang.Override
public double getTotalMW() {
return totalMW_;
}
public static final int TOTALMVAR_FIELD_NUMBER = 18;
private double totalMvar_ = 0D;
/**
* double totalMvar = 18;
* @return The totalMvar.
*/
@java.lang.Override
public double getTotalMvar() {
return totalMvar_;
}
public static final int MWLOSSES_FIELD_NUMBER = 19;
private double mwLosses_ = 0D;
/**
* double mwLosses = 19;
* @return The mwLosses.
*/
@java.lang.Override
public double getMwLosses() {
return mwLosses_;
}
public static final int PCTLOSSES_FIELD_NUMBER = 20;
private double pctLosses_ = 0D;
/**
* double pctLosses = 20;
* @return The pctLosses.
*/
@java.lang.Override
public double getPctLosses() {
return pctLosses_;
}
public static final int MVARLOSSES_FIELD_NUMBER = 21;
private double mvarLosses_ = 0D;
/**
* double mvarLosses = 21;
* @return The mvarLosses.
*/
@java.lang.Override
public double getMvarLosses() {
return mvarLosses_;
}
public static final int FREQUENCY_FIELD_NUMBER = 22;
private double frequency_ = 0D;
/**
* double frequency = 22;
* @return The frequency.
*/
@java.lang.Override
public double getFrequency() {
return frequency_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caseName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caseName_);
}
if (solved_ != false) {
output.writeBool(2, solved_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mode_);
}
if (number_ != 0) {
output.writeInt32(4, number_);
}
if (java.lang.Double.doubleToRawLongBits(loadMult_) != 0) {
output.writeDouble(5, loadMult_);
}
if (numDevices_ != 0) {
output.writeInt32(6, numDevices_);
}
if (numBuses_ != 0) {
output.writeInt32(7, numBuses_);
}
if (numNodes_ != 0) {
output.writeInt32(8, numNodes_);
}
if (iterations_ != 0) {
output.writeInt32(9, iterations_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlMode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, controlMode_);
}
if (controlIterations_ != 0) {
output.writeInt32(11, controlIterations_);
}
if (mostIterationsDone_ != 0) {
output.writeInt32(12, mostIterationsDone_);
}
if (year_ != 0) {
output.writeInt32(13, year_);
}
if (hour_ != 0) {
output.writeInt32(14, hour_);
}
if (java.lang.Double.doubleToRawLongBits(maxPuVoltage_) != 0) {
output.writeDouble(15, maxPuVoltage_);
}
if (java.lang.Double.doubleToRawLongBits(minPuVoltage_) != 0) {
output.writeDouble(16, minPuVoltage_);
}
if (java.lang.Double.doubleToRawLongBits(totalMW_) != 0) {
output.writeDouble(17, totalMW_);
}
if (java.lang.Double.doubleToRawLongBits(totalMvar_) != 0) {
output.writeDouble(18, totalMvar_);
}
if (java.lang.Double.doubleToRawLongBits(mwLosses_) != 0) {
output.writeDouble(19, mwLosses_);
}
if (java.lang.Double.doubleToRawLongBits(pctLosses_) != 0) {
output.writeDouble(20, pctLosses_);
}
if (java.lang.Double.doubleToRawLongBits(mvarLosses_) != 0) {
output.writeDouble(21, mvarLosses_);
}
if (java.lang.Double.doubleToRawLongBits(frequency_) != 0) {
output.writeDouble(22, frequency_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caseName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caseName_);
}
if (solved_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, solved_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_);
}
if (number_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, number_);
}
if (java.lang.Double.doubleToRawLongBits(loadMult_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, loadMult_);
}
if (numDevices_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, numDevices_);
}
if (numBuses_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, numBuses_);
}
if (numNodes_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, numNodes_);
}
if (iterations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, iterations_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlMode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, controlMode_);
}
if (controlIterations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, controlIterations_);
}
if (mostIterationsDone_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, mostIterationsDone_);
}
if (year_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, year_);
}
if (hour_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, hour_);
}
if (java.lang.Double.doubleToRawLongBits(maxPuVoltage_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(15, maxPuVoltage_);
}
if (java.lang.Double.doubleToRawLongBits(minPuVoltage_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(16, minPuVoltage_);
}
if (java.lang.Double.doubleToRawLongBits(totalMW_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(17, totalMW_);
}
if (java.lang.Double.doubleToRawLongBits(totalMvar_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(18, totalMvar_);
}
if (java.lang.Double.doubleToRawLongBits(mwLosses_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(19, mwLosses_);
}
if (java.lang.Double.doubleToRawLongBits(pctLosses_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(20, pctLosses_);
}
if (java.lang.Double.doubleToRawLongBits(mvarLosses_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(21, mvarLosses_);
}
if (java.lang.Double.doubleToRawLongBits(frequency_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(22, frequency_);
}
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.hc.opendss.SummaryReport)) {
return super.equals(obj);
}
com.zepben.protobuf.hc.opendss.SummaryReport other = (com.zepben.protobuf.hc.opendss.SummaryReport) obj;
if (!getCaseName()
.equals(other.getCaseName())) return false;
if (getSolved()
!= other.getSolved()) return false;
if (!getMode()
.equals(other.getMode())) return false;
if (getNumber()
!= other.getNumber()) return false;
if (java.lang.Double.doubleToLongBits(getLoadMult())
!= java.lang.Double.doubleToLongBits(
other.getLoadMult())) return false;
if (getNumDevices()
!= other.getNumDevices()) return false;
if (getNumBuses()
!= other.getNumBuses()) return false;
if (getNumNodes()
!= other.getNumNodes()) return false;
if (getIterations()
!= other.getIterations()) return false;
if (!getControlMode()
.equals(other.getControlMode())) return false;
if (getControlIterations()
!= other.getControlIterations()) return false;
if (getMostIterationsDone()
!= other.getMostIterationsDone()) return false;
if (getYear()
!= other.getYear()) return false;
if (getHour()
!= other.getHour()) return false;
if (java.lang.Double.doubleToLongBits(getMaxPuVoltage())
!= java.lang.Double.doubleToLongBits(
other.getMaxPuVoltage())) return false;
if (java.lang.Double.doubleToLongBits(getMinPuVoltage())
!= java.lang.Double.doubleToLongBits(
other.getMinPuVoltage())) return false;
if (java.lang.Double.doubleToLongBits(getTotalMW())
!= java.lang.Double.doubleToLongBits(
other.getTotalMW())) return false;
if (java.lang.Double.doubleToLongBits(getTotalMvar())
!= java.lang.Double.doubleToLongBits(
other.getTotalMvar())) return false;
if (java.lang.Double.doubleToLongBits(getMwLosses())
!= java.lang.Double.doubleToLongBits(
other.getMwLosses())) return false;
if (java.lang.Double.doubleToLongBits(getPctLosses())
!= java.lang.Double.doubleToLongBits(
other.getPctLosses())) return false;
if (java.lang.Double.doubleToLongBits(getMvarLosses())
!= java.lang.Double.doubleToLongBits(
other.getMvarLosses())) return false;
if (java.lang.Double.doubleToLongBits(getFrequency())
!= java.lang.Double.doubleToLongBits(
other.getFrequency())) 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();
hash = (37 * hash) + CASENAME_FIELD_NUMBER;
hash = (53 * hash) + getCaseName().hashCode();
hash = (37 * hash) + SOLVED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSolved());
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + getMode().hashCode();
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber();
hash = (37 * hash) + LOADMULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLoadMult()));
hash = (37 * hash) + NUMDEVICES_FIELD_NUMBER;
hash = (53 * hash) + getNumDevices();
hash = (37 * hash) + NUMBUSES_FIELD_NUMBER;
hash = (53 * hash) + getNumBuses();
hash = (37 * hash) + NUMNODES_FIELD_NUMBER;
hash = (53 * hash) + getNumNodes();
hash = (37 * hash) + ITERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getIterations();
hash = (37 * hash) + CONTROLMODE_FIELD_NUMBER;
hash = (53 * hash) + getControlMode().hashCode();
hash = (37 * hash) + CONTROLITERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getControlIterations();
hash = (37 * hash) + MOSTITERATIONSDONE_FIELD_NUMBER;
hash = (53 * hash) + getMostIterationsDone();
hash = (37 * hash) + YEAR_FIELD_NUMBER;
hash = (53 * hash) + getYear();
hash = (37 * hash) + HOUR_FIELD_NUMBER;
hash = (53 * hash) + getHour();
hash = (37 * hash) + MAXPUVOLTAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMaxPuVoltage()));
hash = (37 * hash) + MINPUVOLTAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMinPuVoltage()));
hash = (37 * hash) + TOTALMW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTotalMW()));
hash = (37 * hash) + TOTALMVAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTotalMvar()));
hash = (37 * hash) + MWLOSSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMwLosses()));
hash = (37 * hash) + PCTLOSSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPctLosses()));
hash = (37 * hash) + MVARLOSSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMvarLosses()));
hash = (37 * hash) + FREQUENCY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getFrequency()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.hc.opendss.SummaryReport parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.hc.opendss.SummaryReport 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.hc.opendss.SummaryReport parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.hc.opendss.SummaryReport 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.hc.opendss.SummaryReport parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.hc.opendss.SummaryReport parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.hc.opendss.SummaryReport parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.hc.opendss.SummaryReport 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.hc.opendss.SummaryReport parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.hc.opendss.SummaryReport 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.hc.opendss.SummaryReport parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.hc.opendss.SummaryReport 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.hc.opendss.SummaryReport 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;
}
/**
*
**
* Message for streaming the summary report
*
*
* Protobuf type {@code zepben.protobuf.hc.opendss.SummaryReport}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.SummaryReport)
com.zepben.protobuf.hc.opendss.SummaryReportOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_SummaryReport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_SummaryReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.hc.opendss.SummaryReport.class, com.zepben.protobuf.hc.opendss.SummaryReport.Builder.class);
}
// Construct using com.zepben.protobuf.hc.opendss.SummaryReport.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
caseName_ = "";
solved_ = false;
mode_ = "";
number_ = 0;
loadMult_ = 0D;
numDevices_ = 0;
numBuses_ = 0;
numNodes_ = 0;
iterations_ = 0;
controlMode_ = "";
controlIterations_ = 0;
mostIterationsDone_ = 0;
year_ = 0;
hour_ = 0;
maxPuVoltage_ = 0D;
minPuVoltage_ = 0D;
totalMW_ = 0D;
totalMvar_ = 0D;
mwLosses_ = 0D;
pctLosses_ = 0D;
mvarLosses_ = 0D;
frequency_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_SummaryReport_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.hc.opendss.SummaryReport getDefaultInstanceForType() {
return com.zepben.protobuf.hc.opendss.SummaryReport.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.hc.opendss.SummaryReport build() {
com.zepben.protobuf.hc.opendss.SummaryReport result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.hc.opendss.SummaryReport buildPartial() {
com.zepben.protobuf.hc.opendss.SummaryReport result = new com.zepben.protobuf.hc.opendss.SummaryReport(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.hc.opendss.SummaryReport result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.caseName_ = caseName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.solved_ = solved_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.mode_ = mode_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.number_ = number_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.loadMult_ = loadMult_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.numDevices_ = numDevices_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.numBuses_ = numBuses_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.numNodes_ = numNodes_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.iterations_ = iterations_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.controlMode_ = controlMode_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.controlIterations_ = controlIterations_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.mostIterationsDone_ = mostIterationsDone_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.year_ = year_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.hour_ = hour_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.maxPuVoltage_ = maxPuVoltage_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.minPuVoltage_ = minPuVoltage_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.totalMW_ = totalMW_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.totalMvar_ = totalMvar_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.mwLosses_ = mwLosses_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.pctLosses_ = pctLosses_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.mvarLosses_ = mvarLosses_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.frequency_ = frequency_;
}
}
@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.hc.opendss.SummaryReport) {
return mergeFrom((com.zepben.protobuf.hc.opendss.SummaryReport)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.hc.opendss.SummaryReport other) {
if (other == com.zepben.protobuf.hc.opendss.SummaryReport.getDefaultInstance()) return this;
if (!other.getCaseName().isEmpty()) {
caseName_ = other.caseName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getSolved() != false) {
setSolved(other.getSolved());
}
if (!other.getMode().isEmpty()) {
mode_ = other.mode_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getNumber() != 0) {
setNumber(other.getNumber());
}
if (other.getLoadMult() != 0D) {
setLoadMult(other.getLoadMult());
}
if (other.getNumDevices() != 0) {
setNumDevices(other.getNumDevices());
}
if (other.getNumBuses() != 0) {
setNumBuses(other.getNumBuses());
}
if (other.getNumNodes() != 0) {
setNumNodes(other.getNumNodes());
}
if (other.getIterations() != 0) {
setIterations(other.getIterations());
}
if (!other.getControlMode().isEmpty()) {
controlMode_ = other.controlMode_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.getControlIterations() != 0) {
setControlIterations(other.getControlIterations());
}
if (other.getMostIterationsDone() != 0) {
setMostIterationsDone(other.getMostIterationsDone());
}
if (other.getYear() != 0) {
setYear(other.getYear());
}
if (other.getHour() != 0) {
setHour(other.getHour());
}
if (other.getMaxPuVoltage() != 0D) {
setMaxPuVoltage(other.getMaxPuVoltage());
}
if (other.getMinPuVoltage() != 0D) {
setMinPuVoltage(other.getMinPuVoltage());
}
if (other.getTotalMW() != 0D) {
setTotalMW(other.getTotalMW());
}
if (other.getTotalMvar() != 0D) {
setTotalMvar(other.getTotalMvar());
}
if (other.getMwLosses() != 0D) {
setMwLosses(other.getMwLosses());
}
if (other.getPctLosses() != 0D) {
setPctLosses(other.getPctLosses());
}
if (other.getMvarLosses() != 0D) {
setMvarLosses(other.getMvarLosses());
}
if (other.getFrequency() != 0D) {
setFrequency(other.getFrequency());
}
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: {
caseName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
solved_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
mode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
number_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 41: {
loadMult_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 48: {
numDevices_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
numBuses_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
numNodes_ = input.readInt32();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
iterations_ = input.readInt32();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
controlMode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 88: {
controlIterations_ = input.readInt32();
bitField0_ |= 0x00000400;
break;
} // case 88
case 96: {
mostIterationsDone_ = input.readInt32();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104: {
year_ = input.readInt32();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
hour_ = input.readInt32();
bitField0_ |= 0x00002000;
break;
} // case 112
case 121: {
maxPuVoltage_ = input.readDouble();
bitField0_ |= 0x00004000;
break;
} // case 121
case 129: {
minPuVoltage_ = input.readDouble();
bitField0_ |= 0x00008000;
break;
} // case 129
case 137: {
totalMW_ = input.readDouble();
bitField0_ |= 0x00010000;
break;
} // case 137
case 145: {
totalMvar_ = input.readDouble();
bitField0_ |= 0x00020000;
break;
} // case 145
case 153: {
mwLosses_ = input.readDouble();
bitField0_ |= 0x00040000;
break;
} // case 153
case 161: {
pctLosses_ = input.readDouble();
bitField0_ |= 0x00080000;
break;
} // case 161
case 169: {
mvarLosses_ = input.readDouble();
bitField0_ |= 0x00100000;
break;
} // case 169
case 177: {
frequency_ = input.readDouble();
bitField0_ |= 0x00200000;
break;
} // case 177
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 java.lang.Object caseName_ = "";
/**
* string caseName = 1;
* @return The caseName.
*/
public java.lang.String getCaseName() {
java.lang.Object ref = caseName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
caseName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string caseName = 1;
* @return The bytes for caseName.
*/
public com.google.protobuf.ByteString
getCaseNameBytes() {
java.lang.Object ref = caseName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
caseName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string caseName = 1;
* @param value The caseName to set.
* @return This builder for chaining.
*/
public Builder setCaseName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
caseName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string caseName = 1;
* @return This builder for chaining.
*/
public Builder clearCaseName() {
caseName_ = getDefaultInstance().getCaseName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string caseName = 1;
* @param value The bytes for caseName to set.
* @return This builder for chaining.
*/
public Builder setCaseNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
caseName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean solved_ ;
/**
* bool solved = 2;
* @return The solved.
*/
@java.lang.Override
public boolean getSolved() {
return solved_;
}
/**
* bool solved = 2;
* @param value The solved to set.
* @return This builder for chaining.
*/
public Builder setSolved(boolean value) {
solved_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool solved = 2;
* @return This builder for chaining.
*/
public Builder clearSolved() {
bitField0_ = (bitField0_ & ~0x00000002);
solved_ = false;
onChanged();
return this;
}
private java.lang.Object mode_ = "";
/**
* string mode = 3;
* @return The mode.
*/
public java.lang.String getMode() {
java.lang.Object ref = mode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string mode = 3;
* @return The bytes for mode.
*/
public com.google.protobuf.ByteString
getModeBytes() {
java.lang.Object ref = mode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mode = 3;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
mode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string mode = 3;
* @return This builder for chaining.
*/
public Builder clearMode() {
mode_ = getDefaultInstance().getMode();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string mode = 3;
* @param value The bytes for mode to set.
* @return This builder for chaining.
*/
public Builder setModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
mode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int number_ ;
/**
* int32 number = 4;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
/**
* int32 number = 4;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(int value) {
number_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int32 number = 4;
* @return This builder for chaining.
*/
public Builder clearNumber() {
bitField0_ = (bitField0_ & ~0x00000008);
number_ = 0;
onChanged();
return this;
}
private double loadMult_ ;
/**
* double loadMult = 5;
* @return The loadMult.
*/
@java.lang.Override
public double getLoadMult() {
return loadMult_;
}
/**
* double loadMult = 5;
* @param value The loadMult to set.
* @return This builder for chaining.
*/
public Builder setLoadMult(double value) {
loadMult_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* double loadMult = 5;
* @return This builder for chaining.
*/
public Builder clearLoadMult() {
bitField0_ = (bitField0_ & ~0x00000010);
loadMult_ = 0D;
onChanged();
return this;
}
private int numDevices_ ;
/**
* int32 numDevices = 6;
* @return The numDevices.
*/
@java.lang.Override
public int getNumDevices() {
return numDevices_;
}
/**
* int32 numDevices = 6;
* @param value The numDevices to set.
* @return This builder for chaining.
*/
public Builder setNumDevices(int value) {
numDevices_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int32 numDevices = 6;
* @return This builder for chaining.
*/
public Builder clearNumDevices() {
bitField0_ = (bitField0_ & ~0x00000020);
numDevices_ = 0;
onChanged();
return this;
}
private int numBuses_ ;
/**
* int32 numBuses = 7;
* @return The numBuses.
*/
@java.lang.Override
public int getNumBuses() {
return numBuses_;
}
/**
* int32 numBuses = 7;
* @param value The numBuses to set.
* @return This builder for chaining.
*/
public Builder setNumBuses(int value) {
numBuses_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* int32 numBuses = 7;
* @return This builder for chaining.
*/
public Builder clearNumBuses() {
bitField0_ = (bitField0_ & ~0x00000040);
numBuses_ = 0;
onChanged();
return this;
}
private int numNodes_ ;
/**
* int32 numNodes = 8;
* @return The numNodes.
*/
@java.lang.Override
public int getNumNodes() {
return numNodes_;
}
/**
* int32 numNodes = 8;
* @param value The numNodes to set.
* @return This builder for chaining.
*/
public Builder setNumNodes(int value) {
numNodes_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* int32 numNodes = 8;
* @return This builder for chaining.
*/
public Builder clearNumNodes() {
bitField0_ = (bitField0_ & ~0x00000080);
numNodes_ = 0;
onChanged();
return this;
}
private int iterations_ ;
/**
* int32 iterations = 9;
* @return The iterations.
*/
@java.lang.Override
public int getIterations() {
return iterations_;
}
/**
* int32 iterations = 9;
* @param value The iterations to set.
* @return This builder for chaining.
*/
public Builder setIterations(int value) {
iterations_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* int32 iterations = 9;
* @return This builder for chaining.
*/
public Builder clearIterations() {
bitField0_ = (bitField0_ & ~0x00000100);
iterations_ = 0;
onChanged();
return this;
}
private java.lang.Object controlMode_ = "";
/**
* string controlMode = 10;
* @return The controlMode.
*/
public java.lang.String getControlMode() {
java.lang.Object ref = controlMode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
controlMode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string controlMode = 10;
* @return The bytes for controlMode.
*/
public com.google.protobuf.ByteString
getControlModeBytes() {
java.lang.Object ref = controlMode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
controlMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string controlMode = 10;
* @param value The controlMode to set.
* @return This builder for chaining.
*/
public Builder setControlMode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
controlMode_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* string controlMode = 10;
* @return This builder for chaining.
*/
public Builder clearControlMode() {
controlMode_ = getDefaultInstance().getControlMode();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* string controlMode = 10;
* @param value The bytes for controlMode to set.
* @return This builder for chaining.
*/
public Builder setControlModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
controlMode_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private int controlIterations_ ;
/**
* int32 controlIterations = 11;
* @return The controlIterations.
*/
@java.lang.Override
public int getControlIterations() {
return controlIterations_;
}
/**
* int32 controlIterations = 11;
* @param value The controlIterations to set.
* @return This builder for chaining.
*/
public Builder setControlIterations(int value) {
controlIterations_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* int32 controlIterations = 11;
* @return This builder for chaining.
*/
public Builder clearControlIterations() {
bitField0_ = (bitField0_ & ~0x00000400);
controlIterations_ = 0;
onChanged();
return this;
}
private int mostIterationsDone_ ;
/**
* int32 mostIterationsDone = 12;
* @return The mostIterationsDone.
*/
@java.lang.Override
public int getMostIterationsDone() {
return mostIterationsDone_;
}
/**
* int32 mostIterationsDone = 12;
* @param value The mostIterationsDone to set.
* @return This builder for chaining.
*/
public Builder setMostIterationsDone(int value) {
mostIterationsDone_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* int32 mostIterationsDone = 12;
* @return This builder for chaining.
*/
public Builder clearMostIterationsDone() {
bitField0_ = (bitField0_ & ~0x00000800);
mostIterationsDone_ = 0;
onChanged();
return this;
}
private int year_ ;
/**
* int32 year = 13;
* @return The year.
*/
@java.lang.Override
public int getYear() {
return year_;
}
/**
* int32 year = 13;
* @param value The year to set.
* @return This builder for chaining.
*/
public Builder setYear(int value) {
year_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* int32 year = 13;
* @return This builder for chaining.
*/
public Builder clearYear() {
bitField0_ = (bitField0_ & ~0x00001000);
year_ = 0;
onChanged();
return this;
}
private int hour_ ;
/**
* int32 hour = 14;
* @return The hour.
*/
@java.lang.Override
public int getHour() {
return hour_;
}
/**
* int32 hour = 14;
* @param value The hour to set.
* @return This builder for chaining.
*/
public Builder setHour(int value) {
hour_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* int32 hour = 14;
* @return This builder for chaining.
*/
public Builder clearHour() {
bitField0_ = (bitField0_ & ~0x00002000);
hour_ = 0;
onChanged();
return this;
}
private double maxPuVoltage_ ;
/**
* double maxPuVoltage = 15;
* @return The maxPuVoltage.
*/
@java.lang.Override
public double getMaxPuVoltage() {
return maxPuVoltage_;
}
/**
* double maxPuVoltage = 15;
* @param value The maxPuVoltage to set.
* @return This builder for chaining.
*/
public Builder setMaxPuVoltage(double value) {
maxPuVoltage_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* double maxPuVoltage = 15;
* @return This builder for chaining.
*/
public Builder clearMaxPuVoltage() {
bitField0_ = (bitField0_ & ~0x00004000);
maxPuVoltage_ = 0D;
onChanged();
return this;
}
private double minPuVoltage_ ;
/**
* double minPuVoltage = 16;
* @return The minPuVoltage.
*/
@java.lang.Override
public double getMinPuVoltage() {
return minPuVoltage_;
}
/**
* double minPuVoltage = 16;
* @param value The minPuVoltage to set.
* @return This builder for chaining.
*/
public Builder setMinPuVoltage(double value) {
minPuVoltage_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* double minPuVoltage = 16;
* @return This builder for chaining.
*/
public Builder clearMinPuVoltage() {
bitField0_ = (bitField0_ & ~0x00008000);
minPuVoltage_ = 0D;
onChanged();
return this;
}
private double totalMW_ ;
/**
* double totalMW = 17;
* @return The totalMW.
*/
@java.lang.Override
public double getTotalMW() {
return totalMW_;
}
/**
* double totalMW = 17;
* @param value The totalMW to set.
* @return This builder for chaining.
*/
public Builder setTotalMW(double value) {
totalMW_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* double totalMW = 17;
* @return This builder for chaining.
*/
public Builder clearTotalMW() {
bitField0_ = (bitField0_ & ~0x00010000);
totalMW_ = 0D;
onChanged();
return this;
}
private double totalMvar_ ;
/**
* double totalMvar = 18;
* @return The totalMvar.
*/
@java.lang.Override
public double getTotalMvar() {
return totalMvar_;
}
/**
* double totalMvar = 18;
* @param value The totalMvar to set.
* @return This builder for chaining.
*/
public Builder setTotalMvar(double value) {
totalMvar_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
* double totalMvar = 18;
* @return This builder for chaining.
*/
public Builder clearTotalMvar() {
bitField0_ = (bitField0_ & ~0x00020000);
totalMvar_ = 0D;
onChanged();
return this;
}
private double mwLosses_ ;
/**
* double mwLosses = 19;
* @return The mwLosses.
*/
@java.lang.Override
public double getMwLosses() {
return mwLosses_;
}
/**
* double mwLosses = 19;
* @param value The mwLosses to set.
* @return This builder for chaining.
*/
public Builder setMwLosses(double value) {
mwLosses_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
* double mwLosses = 19;
* @return This builder for chaining.
*/
public Builder clearMwLosses() {
bitField0_ = (bitField0_ & ~0x00040000);
mwLosses_ = 0D;
onChanged();
return this;
}
private double pctLosses_ ;
/**
* double pctLosses = 20;
* @return The pctLosses.
*/
@java.lang.Override
public double getPctLosses() {
return pctLosses_;
}
/**
* double pctLosses = 20;
* @param value The pctLosses to set.
* @return This builder for chaining.
*/
public Builder setPctLosses(double value) {
pctLosses_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
* double pctLosses = 20;
* @return This builder for chaining.
*/
public Builder clearPctLosses() {
bitField0_ = (bitField0_ & ~0x00080000);
pctLosses_ = 0D;
onChanged();
return this;
}
private double mvarLosses_ ;
/**
* double mvarLosses = 21;
* @return The mvarLosses.
*/
@java.lang.Override
public double getMvarLosses() {
return mvarLosses_;
}
/**
* double mvarLosses = 21;
* @param value The mvarLosses to set.
* @return This builder for chaining.
*/
public Builder setMvarLosses(double value) {
mvarLosses_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
* double mvarLosses = 21;
* @return This builder for chaining.
*/
public Builder clearMvarLosses() {
bitField0_ = (bitField0_ & ~0x00100000);
mvarLosses_ = 0D;
onChanged();
return this;
}
private double frequency_ ;
/**
* double frequency = 22;
* @return The frequency.
*/
@java.lang.Override
public double getFrequency() {
return frequency_;
}
/**
* double frequency = 22;
* @param value The frequency to set.
* @return This builder for chaining.
*/
public Builder setFrequency(double value) {
frequency_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
* double frequency = 22;
* @return This builder for chaining.
*/
public Builder clearFrequency() {
bitField0_ = (bitField0_ & ~0x00200000);
frequency_ = 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.hc.opendss.SummaryReport)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.SummaryReport)
private static final com.zepben.protobuf.hc.opendss.SummaryReport DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.SummaryReport();
}
public static com.zepben.protobuf.hc.opendss.SummaryReport getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SummaryReport 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.hc.opendss.SummaryReport getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}