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

com.zepben.protobuf.hc.opendss.NodeMismatch 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 the Node Mismatch report
 * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.NodeMismatch} */ public final class NodeMismatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.NodeMismatch) NodeMismatchOrBuilder { private static final long serialVersionUID = 0L; // Use NodeMismatch.newBuilder() to construct. private NodeMismatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeMismatch() { bus_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeMismatch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_NodeMismatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_NodeMismatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.NodeMismatch.class, com.zepben.protobuf.hc.opendss.NodeMismatch.Builder.class); } public static final int BUS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object bus_ = ""; /** * string bus = 1; * @return The bus. */ @java.lang.Override public java.lang.String getBus() { java.lang.Object ref = bus_; 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(); bus_ = s; return s; } } /** * string bus = 1; * @return The bytes for bus. */ @java.lang.Override public com.google.protobuf.ByteString getBusBytes() { java.lang.Object ref = bus_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bus_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NODE_FIELD_NUMBER = 2; private int node_ = 0; /** * int32 node = 2; * @return The node. */ @java.lang.Override public int getNode() { return node_; } public static final int CURRENTSUM_FIELD_NUMBER = 3; private double currentSum_ = 0D; /** * double currentSum = 3; * @return The currentSum. */ @java.lang.Override public double getCurrentSum() { return currentSum_; } public static final int PCTERROR_FIELD_NUMBER = 4; private double pctError_ = 0D; /** * double pctError = 4; * @return The pctError. */ @java.lang.Override public double getPctError() { return pctError_; } public static final int MAXCURRENT_FIELD_NUMBER = 5; private double maxCurrent_ = 0D; /** * double maxCurrent = 5; * @return The maxCurrent. */ @java.lang.Override public double getMaxCurrent() { return maxCurrent_; } 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(bus_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bus_); } if (node_ != 0) { output.writeInt32(2, node_); } if (java.lang.Double.doubleToRawLongBits(currentSum_) != 0) { output.writeDouble(3, currentSum_); } if (java.lang.Double.doubleToRawLongBits(pctError_) != 0) { output.writeDouble(4, pctError_); } if (java.lang.Double.doubleToRawLongBits(maxCurrent_) != 0) { output.writeDouble(5, maxCurrent_); } 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(bus_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bus_); } if (node_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, node_); } if (java.lang.Double.doubleToRawLongBits(currentSum_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, currentSum_); } if (java.lang.Double.doubleToRawLongBits(pctError_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, pctError_); } if (java.lang.Double.doubleToRawLongBits(maxCurrent_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, maxCurrent_); } 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.NodeMismatch)) { return super.equals(obj); } com.zepben.protobuf.hc.opendss.NodeMismatch other = (com.zepben.protobuf.hc.opendss.NodeMismatch) obj; if (!getBus() .equals(other.getBus())) return false; if (getNode() != other.getNode()) return false; if (java.lang.Double.doubleToLongBits(getCurrentSum()) != java.lang.Double.doubleToLongBits( other.getCurrentSum())) return false; if (java.lang.Double.doubleToLongBits(getPctError()) != java.lang.Double.doubleToLongBits( other.getPctError())) return false; if (java.lang.Double.doubleToLongBits(getMaxCurrent()) != java.lang.Double.doubleToLongBits( other.getMaxCurrent())) 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) + BUS_FIELD_NUMBER; hash = (53 * hash) + getBus().hashCode(); hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNode(); hash = (37 * hash) + CURRENTSUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCurrentSum())); hash = (37 * hash) + PCTERROR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPctError())); hash = (37 * hash) + MAXCURRENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxCurrent())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.hc.opendss.NodeMismatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.NodeMismatch 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.NodeMismatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.NodeMismatch 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.NodeMismatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.NodeMismatch 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.NodeMismatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.NodeMismatch 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.NodeMismatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.NodeMismatch 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.NodeMismatch 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.NodeMismatch 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.NodeMismatch 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 Node Mismatch report
   * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.NodeMismatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.NodeMismatch) com.zepben.protobuf.hc.opendss.NodeMismatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_NodeMismatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_NodeMismatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.NodeMismatch.class, com.zepben.protobuf.hc.opendss.NodeMismatch.Builder.class); } // Construct using com.zepben.protobuf.hc.opendss.NodeMismatch.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bus_ = ""; node_ = 0; currentSum_ = 0D; pctError_ = 0D; maxCurrent_ = 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_NodeMismatch_descriptor; } @java.lang.Override public com.zepben.protobuf.hc.opendss.NodeMismatch getDefaultInstanceForType() { return com.zepben.protobuf.hc.opendss.NodeMismatch.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.hc.opendss.NodeMismatch build() { com.zepben.protobuf.hc.opendss.NodeMismatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.hc.opendss.NodeMismatch buildPartial() { com.zepben.protobuf.hc.opendss.NodeMismatch result = new com.zepben.protobuf.hc.opendss.NodeMismatch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.hc.opendss.NodeMismatch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.bus_ = bus_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.node_ = node_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.currentSum_ = currentSum_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.pctError_ = pctError_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxCurrent_ = maxCurrent_; } } @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.NodeMismatch) { return mergeFrom((com.zepben.protobuf.hc.opendss.NodeMismatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.hc.opendss.NodeMismatch other) { if (other == com.zepben.protobuf.hc.opendss.NodeMismatch.getDefaultInstance()) return this; if (!other.getBus().isEmpty()) { bus_ = other.bus_; bitField0_ |= 0x00000001; onChanged(); } if (other.getNode() != 0) { setNode(other.getNode()); } if (other.getCurrentSum() != 0D) { setCurrentSum(other.getCurrentSum()); } if (other.getPctError() != 0D) { setPctError(other.getPctError()); } if (other.getMaxCurrent() != 0D) { setMaxCurrent(other.getMaxCurrent()); } 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: { bus_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { node_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 25: { currentSum_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { pctError_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 41: { maxCurrent_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 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 bus_ = ""; /** * string bus = 1; * @return The bus. */ public java.lang.String getBus() { java.lang.Object ref = bus_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bus_ = s; return s; } else { return (java.lang.String) ref; } } /** * string bus = 1; * @return The bytes for bus. */ public com.google.protobuf.ByteString getBusBytes() { java.lang.Object ref = bus_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bus_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string bus = 1; * @param value The bus to set. * @return This builder for chaining. */ public Builder setBus( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bus_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string bus = 1; * @return This builder for chaining. */ public Builder clearBus() { bus_ = getDefaultInstance().getBus(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string bus = 1; * @param value The bytes for bus to set. * @return This builder for chaining. */ public Builder setBusBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bus_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int node_ ; /** * int32 node = 2; * @return The node. */ @java.lang.Override public int getNode() { return node_; } /** * int32 node = 2; * @param value The node to set. * @return This builder for chaining. */ public Builder setNode(int value) { node_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 node = 2; * @return This builder for chaining. */ public Builder clearNode() { bitField0_ = (bitField0_ & ~0x00000002); node_ = 0; onChanged(); return this; } private double currentSum_ ; /** * double currentSum = 3; * @return The currentSum. */ @java.lang.Override public double getCurrentSum() { return currentSum_; } /** * double currentSum = 3; * @param value The currentSum to set. * @return This builder for chaining. */ public Builder setCurrentSum(double value) { currentSum_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * double currentSum = 3; * @return This builder for chaining. */ public Builder clearCurrentSum() { bitField0_ = (bitField0_ & ~0x00000004); currentSum_ = 0D; onChanged(); return this; } private double pctError_ ; /** * double pctError = 4; * @return The pctError. */ @java.lang.Override public double getPctError() { return pctError_; } /** * double pctError = 4; * @param value The pctError to set. * @return This builder for chaining. */ public Builder setPctError(double value) { pctError_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double pctError = 4; * @return This builder for chaining. */ public Builder clearPctError() { bitField0_ = (bitField0_ & ~0x00000008); pctError_ = 0D; onChanged(); return this; } private double maxCurrent_ ; /** * double maxCurrent = 5; * @return The maxCurrent. */ @java.lang.Override public double getMaxCurrent() { return maxCurrent_; } /** * double maxCurrent = 5; * @param value The maxCurrent to set. * @return This builder for chaining. */ public Builder setMaxCurrent(double value) { maxCurrent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * double maxCurrent = 5; * @return This builder for chaining. */ public Builder clearMaxCurrent() { bitField0_ = (bitField0_ & ~0x00000010); maxCurrent_ = 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.NodeMismatch) } // @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.NodeMismatch) private static final com.zepben.protobuf.hc.opendss.NodeMismatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.NodeMismatch(); } public static com.zepben.protobuf.hc.opendss.NodeMismatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeMismatch 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.NodeMismatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy