All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zepben.protobuf.hc.opendss.OverloadReport Maven / Gradle / Ivy

There is a newer version: 0.32.0-SNAPSHOT2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: zepben/protobuf/hc/opendss/EnergyMeter.proto

package com.zepben.protobuf.hc.opendss;

/**
 * 
 **
 * Message for streaming the records written to OV_MHandle in WriteOverloadReport.
 * 
* * Protobuf type {@code OverloadReport} */ public final class OverloadReport extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:OverloadReport) OverloadReportOrBuilder { private static final long serialVersionUID = 0L; // Use OverloadReport.newBuilder() to construct. private OverloadReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OverloadReport() { element_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OverloadReport(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.EnergyMeter.internal_static_OverloadReport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.EnergyMeter.internal_static_OverloadReport_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.OverloadReport.class, com.zepben.protobuf.hc.opendss.OverloadReport.Builder.class); } public static final int HOUR_FIELD_NUMBER = 1; private double hour_ = 0D; /** * double hour = 1; * @return The hour. */ @java.lang.Override public double getHour() { return hour_; } public static final int ELEMENT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object element_ = ""; /** * string element = 2; * @return The element. */ @java.lang.Override public java.lang.String getElement() { java.lang.Object ref = element_; 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(); element_ = s; return s; } } /** * string element = 2; * @return The bytes for element. */ @java.lang.Override public com.google.protobuf.ByteString getElementBytes() { java.lang.Object ref = element_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); element_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NORMALAMPS_FIELD_NUMBER = 3; private double normalAmps_ = 0D; /** * double normalAmps = 3; * @return The normalAmps. */ @java.lang.Override public double getNormalAmps() { return normalAmps_; } public static final int EMERGAMPS_FIELD_NUMBER = 4; private double emergAmps_ = 0D; /** * double emergAmps = 4; * @return The emergAmps. */ @java.lang.Override public double getEmergAmps() { return emergAmps_; } public static final int PERCENTNORMAL_FIELD_NUMBER = 5; private double percentNormal_ = 0D; /** * double percentNormal = 5; * @return The percentNormal. */ @java.lang.Override public double getPercentNormal() { return percentNormal_; } public static final int PERCENTEMERG_FIELD_NUMBER = 6; private double percentEmerg_ = 0D; /** * double percentEmerg = 6; * @return The percentEmerg. */ @java.lang.Override public double getPercentEmerg() { return percentEmerg_; } public static final int KVBASE_FIELD_NUMBER = 7; private double kvBase_ = 0D; /** * double kvBase = 7; * @return The kvBase. */ @java.lang.Override public double getKvBase() { return kvBase_; } public static final int PHASE1AMPS_FIELD_NUMBER = 8; private double phase1Amps_ = 0D; /** * double phase1Amps = 8; * @return The phase1Amps. */ @java.lang.Override public double getPhase1Amps() { return phase1Amps_; } public static final int PHASE2AMPS_FIELD_NUMBER = 9; private double phase2Amps_ = 0D; /** * double phase2Amps = 9; * @return The phase2Amps. */ @java.lang.Override public double getPhase2Amps() { return phase2Amps_; } public static final int PHASE3AMPS_FIELD_NUMBER = 10; private double phase3Amps_ = 0D; /** * double phase3Amps = 10; * @return The phase3Amps. */ @java.lang.Override public double getPhase3Amps() { return phase3Amps_; } 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 (java.lang.Double.doubleToRawLongBits(hour_) != 0) { output.writeDouble(1, hour_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(element_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, element_); } if (java.lang.Double.doubleToRawLongBits(normalAmps_) != 0) { output.writeDouble(3, normalAmps_); } if (java.lang.Double.doubleToRawLongBits(emergAmps_) != 0) { output.writeDouble(4, emergAmps_); } if (java.lang.Double.doubleToRawLongBits(percentNormal_) != 0) { output.writeDouble(5, percentNormal_); } if (java.lang.Double.doubleToRawLongBits(percentEmerg_) != 0) { output.writeDouble(6, percentEmerg_); } if (java.lang.Double.doubleToRawLongBits(kvBase_) != 0) { output.writeDouble(7, kvBase_); } if (java.lang.Double.doubleToRawLongBits(phase1Amps_) != 0) { output.writeDouble(8, phase1Amps_); } if (java.lang.Double.doubleToRawLongBits(phase2Amps_) != 0) { output.writeDouble(9, phase2Amps_); } if (java.lang.Double.doubleToRawLongBits(phase3Amps_) != 0) { output.writeDouble(10, phase3Amps_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(hour_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, hour_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(element_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, element_); } if (java.lang.Double.doubleToRawLongBits(normalAmps_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, normalAmps_); } if (java.lang.Double.doubleToRawLongBits(emergAmps_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, emergAmps_); } if (java.lang.Double.doubleToRawLongBits(percentNormal_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, percentNormal_); } if (java.lang.Double.doubleToRawLongBits(percentEmerg_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, percentEmerg_); } if (java.lang.Double.doubleToRawLongBits(kvBase_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, kvBase_); } if (java.lang.Double.doubleToRawLongBits(phase1Amps_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, phase1Amps_); } if (java.lang.Double.doubleToRawLongBits(phase2Amps_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(9, phase2Amps_); } if (java.lang.Double.doubleToRawLongBits(phase3Amps_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, phase3Amps_); } 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.OverloadReport)) { return super.equals(obj); } com.zepben.protobuf.hc.opendss.OverloadReport other = (com.zepben.protobuf.hc.opendss.OverloadReport) obj; if (java.lang.Double.doubleToLongBits(getHour()) != java.lang.Double.doubleToLongBits( other.getHour())) return false; if (!getElement() .equals(other.getElement())) return false; if (java.lang.Double.doubleToLongBits(getNormalAmps()) != java.lang.Double.doubleToLongBits( other.getNormalAmps())) return false; if (java.lang.Double.doubleToLongBits(getEmergAmps()) != java.lang.Double.doubleToLongBits( other.getEmergAmps())) return false; if (java.lang.Double.doubleToLongBits(getPercentNormal()) != java.lang.Double.doubleToLongBits( other.getPercentNormal())) return false; if (java.lang.Double.doubleToLongBits(getPercentEmerg()) != java.lang.Double.doubleToLongBits( other.getPercentEmerg())) return false; if (java.lang.Double.doubleToLongBits(getKvBase()) != java.lang.Double.doubleToLongBits( other.getKvBase())) return false; if (java.lang.Double.doubleToLongBits(getPhase1Amps()) != java.lang.Double.doubleToLongBits( other.getPhase1Amps())) return false; if (java.lang.Double.doubleToLongBits(getPhase2Amps()) != java.lang.Double.doubleToLongBits( other.getPhase2Amps())) return false; if (java.lang.Double.doubleToLongBits(getPhase3Amps()) != java.lang.Double.doubleToLongBits( other.getPhase3Amps())) 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) + HOUR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getHour())); hash = (37 * hash) + ELEMENT_FIELD_NUMBER; hash = (53 * hash) + getElement().hashCode(); hash = (37 * hash) + NORMALAMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNormalAmps())); hash = (37 * hash) + EMERGAMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getEmergAmps())); hash = (37 * hash) + PERCENTNORMAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPercentNormal())); hash = (37 * hash) + PERCENTEMERG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPercentEmerg())); hash = (37 * hash) + KVBASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getKvBase())); hash = (37 * hash) + PHASE1AMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPhase1Amps())); hash = (37 * hash) + PHASE2AMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPhase2Amps())); hash = (37 * hash) + PHASE3AMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPhase3Amps())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.hc.opendss.OverloadReport parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.OverloadReport 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.OverloadReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.OverloadReport 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.OverloadReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.OverloadReport 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.OverloadReport parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.OverloadReport 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.OverloadReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.OverloadReport 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.OverloadReport 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.OverloadReport 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.OverloadReport 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 records written to OV_MHandle in WriteOverloadReport.
   * 
* * Protobuf type {@code OverloadReport} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:OverloadReport) com.zepben.protobuf.hc.opendss.OverloadReportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.EnergyMeter.internal_static_OverloadReport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.EnergyMeter.internal_static_OverloadReport_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.OverloadReport.class, com.zepben.protobuf.hc.opendss.OverloadReport.Builder.class); } // Construct using com.zepben.protobuf.hc.opendss.OverloadReport.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; hour_ = 0D; element_ = ""; normalAmps_ = 0D; emergAmps_ = 0D; percentNormal_ = 0D; percentEmerg_ = 0D; kvBase_ = 0D; phase1Amps_ = 0D; phase2Amps_ = 0D; phase3Amps_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.hc.opendss.EnergyMeter.internal_static_OverloadReport_descriptor; } @java.lang.Override public com.zepben.protobuf.hc.opendss.OverloadReport getDefaultInstanceForType() { return com.zepben.protobuf.hc.opendss.OverloadReport.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.hc.opendss.OverloadReport build() { com.zepben.protobuf.hc.opendss.OverloadReport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.hc.opendss.OverloadReport buildPartial() { com.zepben.protobuf.hc.opendss.OverloadReport result = new com.zepben.protobuf.hc.opendss.OverloadReport(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.hc.opendss.OverloadReport result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hour_ = hour_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.element_ = element_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.normalAmps_ = normalAmps_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.emergAmps_ = emergAmps_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.percentNormal_ = percentNormal_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.percentEmerg_ = percentEmerg_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.kvBase_ = kvBase_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.phase1Amps_ = phase1Amps_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.phase2Amps_ = phase2Amps_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.phase3Amps_ = phase3Amps_; } } @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.OverloadReport) { return mergeFrom((com.zepben.protobuf.hc.opendss.OverloadReport)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.hc.opendss.OverloadReport other) { if (other == com.zepben.protobuf.hc.opendss.OverloadReport.getDefaultInstance()) return this; if (other.getHour() != 0D) { setHour(other.getHour()); } if (!other.getElement().isEmpty()) { element_ = other.element_; bitField0_ |= 0x00000002; onChanged(); } if (other.getNormalAmps() != 0D) { setNormalAmps(other.getNormalAmps()); } if (other.getEmergAmps() != 0D) { setEmergAmps(other.getEmergAmps()); } if (other.getPercentNormal() != 0D) { setPercentNormal(other.getPercentNormal()); } if (other.getPercentEmerg() != 0D) { setPercentEmerg(other.getPercentEmerg()); } if (other.getKvBase() != 0D) { setKvBase(other.getKvBase()); } if (other.getPhase1Amps() != 0D) { setPhase1Amps(other.getPhase1Amps()); } if (other.getPhase2Amps() != 0D) { setPhase2Amps(other.getPhase2Amps()); } if (other.getPhase3Amps() != 0D) { setPhase3Amps(other.getPhase3Amps()); } 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 9: { hour_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 18: { element_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 25: { normalAmps_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { emergAmps_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 41: { percentNormal_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 49: { percentEmerg_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 case 57: { kvBase_ = input.readDouble(); bitField0_ |= 0x00000040; break; } // case 57 case 65: { phase1Amps_ = input.readDouble(); bitField0_ |= 0x00000080; break; } // case 65 case 73: { phase2Amps_ = input.readDouble(); bitField0_ |= 0x00000100; break; } // case 73 case 81: { phase3Amps_ = input.readDouble(); bitField0_ |= 0x00000200; break; } // case 81 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 double hour_ ; /** * double hour = 1; * @return The hour. */ @java.lang.Override public double getHour() { return hour_; } /** * double hour = 1; * @param value The hour to set. * @return This builder for chaining. */ public Builder setHour(double value) { hour_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * double hour = 1; * @return This builder for chaining. */ public Builder clearHour() { bitField0_ = (bitField0_ & ~0x00000001); hour_ = 0D; onChanged(); return this; } private java.lang.Object element_ = ""; /** * string element = 2; * @return The element. */ public java.lang.String getElement() { java.lang.Object ref = element_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); element_ = s; return s; } else { return (java.lang.String) ref; } } /** * string element = 2; * @return The bytes for element. */ public com.google.protobuf.ByteString getElementBytes() { java.lang.Object ref = element_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); element_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string element = 2; * @param value The element to set. * @return This builder for chaining. */ public Builder setElement( java.lang.String value) { if (value == null) { throw new NullPointerException(); } element_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string element = 2; * @return This builder for chaining. */ public Builder clearElement() { element_ = getDefaultInstance().getElement(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string element = 2; * @param value The bytes for element to set. * @return This builder for chaining. */ public Builder setElementBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); element_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private double normalAmps_ ; /** * double normalAmps = 3; * @return The normalAmps. */ @java.lang.Override public double getNormalAmps() { return normalAmps_; } /** * double normalAmps = 3; * @param value The normalAmps to set. * @return This builder for chaining. */ public Builder setNormalAmps(double value) { normalAmps_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * double normalAmps = 3; * @return This builder for chaining. */ public Builder clearNormalAmps() { bitField0_ = (bitField0_ & ~0x00000004); normalAmps_ = 0D; onChanged(); return this; } private double emergAmps_ ; /** * double emergAmps = 4; * @return The emergAmps. */ @java.lang.Override public double getEmergAmps() { return emergAmps_; } /** * double emergAmps = 4; * @param value The emergAmps to set. * @return This builder for chaining. */ public Builder setEmergAmps(double value) { emergAmps_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double emergAmps = 4; * @return This builder for chaining. */ public Builder clearEmergAmps() { bitField0_ = (bitField0_ & ~0x00000008); emergAmps_ = 0D; onChanged(); return this; } private double percentNormal_ ; /** * double percentNormal = 5; * @return The percentNormal. */ @java.lang.Override public double getPercentNormal() { return percentNormal_; } /** * double percentNormal = 5; * @param value The percentNormal to set. * @return This builder for chaining. */ public Builder setPercentNormal(double value) { percentNormal_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * double percentNormal = 5; * @return This builder for chaining. */ public Builder clearPercentNormal() { bitField0_ = (bitField0_ & ~0x00000010); percentNormal_ = 0D; onChanged(); return this; } private double percentEmerg_ ; /** * double percentEmerg = 6; * @return The percentEmerg. */ @java.lang.Override public double getPercentEmerg() { return percentEmerg_; } /** * double percentEmerg = 6; * @param value The percentEmerg to set. * @return This builder for chaining. */ public Builder setPercentEmerg(double value) { percentEmerg_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * double percentEmerg = 6; * @return This builder for chaining. */ public Builder clearPercentEmerg() { bitField0_ = (bitField0_ & ~0x00000020); percentEmerg_ = 0D; onChanged(); return this; } private double kvBase_ ; /** * double kvBase = 7; * @return The kvBase. */ @java.lang.Override public double getKvBase() { return kvBase_; } /** * double kvBase = 7; * @param value The kvBase to set. * @return This builder for chaining. */ public Builder setKvBase(double value) { kvBase_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * double kvBase = 7; * @return This builder for chaining. */ public Builder clearKvBase() { bitField0_ = (bitField0_ & ~0x00000040); kvBase_ = 0D; onChanged(); return this; } private double phase1Amps_ ; /** * double phase1Amps = 8; * @return The phase1Amps. */ @java.lang.Override public double getPhase1Amps() { return phase1Amps_; } /** * double phase1Amps = 8; * @param value The phase1Amps to set. * @return This builder for chaining. */ public Builder setPhase1Amps(double value) { phase1Amps_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * double phase1Amps = 8; * @return This builder for chaining. */ public Builder clearPhase1Amps() { bitField0_ = (bitField0_ & ~0x00000080); phase1Amps_ = 0D; onChanged(); return this; } private double phase2Amps_ ; /** * double phase2Amps = 9; * @return The phase2Amps. */ @java.lang.Override public double getPhase2Amps() { return phase2Amps_; } /** * double phase2Amps = 9; * @param value The phase2Amps to set. * @return This builder for chaining. */ public Builder setPhase2Amps(double value) { phase2Amps_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * double phase2Amps = 9; * @return This builder for chaining. */ public Builder clearPhase2Amps() { bitField0_ = (bitField0_ & ~0x00000100); phase2Amps_ = 0D; onChanged(); return this; } private double phase3Amps_ ; /** * double phase3Amps = 10; * @return The phase3Amps. */ @java.lang.Override public double getPhase3Amps() { return phase3Amps_; } /** * double phase3Amps = 10; * @param value The phase3Amps to set. * @return This builder for chaining. */ public Builder setPhase3Amps(double value) { phase3Amps_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * double phase3Amps = 10; * @return This builder for chaining. */ public Builder clearPhase3Amps() { bitField0_ = (bitField0_ & ~0x00000200); phase3Amps_ = 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:OverloadReport) } // @@protoc_insertion_point(class_scope:OverloadReport) private static final com.zepben.protobuf.hc.opendss.OverloadReport DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.OverloadReport(); } public static com.zepben.protobuf.hc.opendss.OverloadReport getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OverloadReport 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.OverloadReport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy