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

com.zepben.protobuf.hc.opendss.LossesEntry 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/Diagnostics.proto

package com.zepben.protobuf.hc.opendss;

/**
 * 
 **
 * Message for streaming one specific Losses entry
 * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.LossesEntry} */ public final class LossesEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.LossesEntry) LossesEntryOrBuilder { private static final long serialVersionUID = 0L; // Use LossesEntry.newBuilder() to construct. private LossesEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LossesEntry() { element_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LossesEntry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_LossesEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_LossesEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.LossesEntry.class, com.zepben.protobuf.hc.opendss.LossesEntry.Builder.class); } public static final int ELEMENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object element_ = ""; /** * string element = 1; * @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 = 1; * @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 KWLOSSES_FIELD_NUMBER = 2; private double kwLosses_ = 0D; /** * double kwLosses = 2; * @return The kwLosses. */ @java.lang.Override public double getKwLosses() { return kwLosses_; } public static final int PCTPOWER_FIELD_NUMBER = 3; private double pctPower_ = 0D; /** * double pctPower = 3; * @return The pctPower. */ @java.lang.Override public double getPctPower() { return pctPower_; } public static final int KVARLOSSES_FIELD_NUMBER = 4; private double kvarLosses_ = 0D; /** * double kvarLosses = 4; * @return The kvarLosses. */ @java.lang.Override public double getKvarLosses() { return kvarLosses_; } 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(element_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, element_); } if (java.lang.Double.doubleToRawLongBits(kwLosses_) != 0) { output.writeDouble(2, kwLosses_); } if (java.lang.Double.doubleToRawLongBits(pctPower_) != 0) { output.writeDouble(3, pctPower_); } if (java.lang.Double.doubleToRawLongBits(kvarLosses_) != 0) { output.writeDouble(4, kvarLosses_); } 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(element_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, element_); } if (java.lang.Double.doubleToRawLongBits(kwLosses_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, kwLosses_); } if (java.lang.Double.doubleToRawLongBits(pctPower_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, pctPower_); } if (java.lang.Double.doubleToRawLongBits(kvarLosses_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, kvarLosses_); } 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.LossesEntry)) { return super.equals(obj); } com.zepben.protobuf.hc.opendss.LossesEntry other = (com.zepben.protobuf.hc.opendss.LossesEntry) obj; if (!getElement() .equals(other.getElement())) return false; if (java.lang.Double.doubleToLongBits(getKwLosses()) != java.lang.Double.doubleToLongBits( other.getKwLosses())) return false; if (java.lang.Double.doubleToLongBits(getPctPower()) != java.lang.Double.doubleToLongBits( other.getPctPower())) return false; if (java.lang.Double.doubleToLongBits(getKvarLosses()) != java.lang.Double.doubleToLongBits( other.getKvarLosses())) 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) + ELEMENT_FIELD_NUMBER; hash = (53 * hash) + getElement().hashCode(); hash = (37 * hash) + KWLOSSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getKwLosses())); hash = (37 * hash) + PCTPOWER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPctPower())); hash = (37 * hash) + KVARLOSSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getKvarLosses())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.hc.opendss.LossesEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.LossesEntry 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.LossesEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.LossesEntry 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.LossesEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.LossesEntry 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.LossesEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.LossesEntry 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.LossesEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.LossesEntry 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.LossesEntry 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.LossesEntry 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.LossesEntry 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 one specific Losses entry
   * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.LossesEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.LossesEntry) com.zepben.protobuf.hc.opendss.LossesEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_LossesEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_LossesEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.LossesEntry.class, com.zepben.protobuf.hc.opendss.LossesEntry.Builder.class); } // Construct using com.zepben.protobuf.hc.opendss.LossesEntry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; element_ = ""; kwLosses_ = 0D; pctPower_ = 0D; kvarLosses_ = 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_LossesEntry_descriptor; } @java.lang.Override public com.zepben.protobuf.hc.opendss.LossesEntry getDefaultInstanceForType() { return com.zepben.protobuf.hc.opendss.LossesEntry.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.hc.opendss.LossesEntry build() { com.zepben.protobuf.hc.opendss.LossesEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.hc.opendss.LossesEntry buildPartial() { com.zepben.protobuf.hc.opendss.LossesEntry result = new com.zepben.protobuf.hc.opendss.LossesEntry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.hc.opendss.LossesEntry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.element_ = element_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.kwLosses_ = kwLosses_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.pctPower_ = pctPower_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.kvarLosses_ = kvarLosses_; } } @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.LossesEntry) { return mergeFrom((com.zepben.protobuf.hc.opendss.LossesEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.hc.opendss.LossesEntry other) { if (other == com.zepben.protobuf.hc.opendss.LossesEntry.getDefaultInstance()) return this; if (!other.getElement().isEmpty()) { element_ = other.element_; bitField0_ |= 0x00000001; onChanged(); } if (other.getKwLosses() != 0D) { setKwLosses(other.getKwLosses()); } if (other.getPctPower() != 0D) { setPctPower(other.getPctPower()); } if (other.getKvarLosses() != 0D) { setKvarLosses(other.getKvarLosses()); } 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: { element_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 17: { kwLosses_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 25: { pctPower_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { kvarLosses_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 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 element_ = ""; /** * string element = 1; * @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 = 1; * @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 = 1; * @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_ |= 0x00000001; onChanged(); return this; } /** * string element = 1; * @return This builder for chaining. */ public Builder clearElement() { element_ = getDefaultInstance().getElement(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string element = 1; * @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_ |= 0x00000001; onChanged(); return this; } private double kwLosses_ ; /** * double kwLosses = 2; * @return The kwLosses. */ @java.lang.Override public double getKwLosses() { return kwLosses_; } /** * double kwLosses = 2; * @param value The kwLosses to set. * @return This builder for chaining. */ public Builder setKwLosses(double value) { kwLosses_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * double kwLosses = 2; * @return This builder for chaining. */ public Builder clearKwLosses() { bitField0_ = (bitField0_ & ~0x00000002); kwLosses_ = 0D; onChanged(); return this; } private double pctPower_ ; /** * double pctPower = 3; * @return The pctPower. */ @java.lang.Override public double getPctPower() { return pctPower_; } /** * double pctPower = 3; * @param value The pctPower to set. * @return This builder for chaining. */ public Builder setPctPower(double value) { pctPower_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * double pctPower = 3; * @return This builder for chaining. */ public Builder clearPctPower() { bitField0_ = (bitField0_ & ~0x00000004); pctPower_ = 0D; onChanged(); return this; } private double kvarLosses_ ; /** * double kvarLosses = 4; * @return The kvarLosses. */ @java.lang.Override public double getKvarLosses() { return kvarLosses_; } /** * double kvarLosses = 4; * @param value The kvarLosses to set. * @return This builder for chaining. */ public Builder setKvarLosses(double value) { kvarLosses_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double kvarLosses = 4; * @return This builder for chaining. */ public Builder clearKvarLosses() { bitField0_ = (bitField0_ & ~0x00000008); kvarLosses_ = 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.LossesEntry) } // @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.LossesEntry) private static final com.zepben.protobuf.hc.opendss.LossesEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.LossesEntry(); } public static com.zepben.protobuf.hc.opendss.LossesEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LossesEntry 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.LossesEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy