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

com.zepben.protobuf.hc.opendss.KVBaseMismatch 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 kv Base Mismatch report
 * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.KVBaseMismatch} */ public final class KVBaseMismatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.KVBaseMismatch) KVBaseMismatchOrBuilder { private static final long serialVersionUID = 0L; // Use KVBaseMismatch.newBuilder() to construct. private KVBaseMismatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KVBaseMismatch() { load_ = ""; bus_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KVBaseMismatch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_KVBaseMismatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_KVBaseMismatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.KVBaseMismatch.class, com.zepben.protobuf.hc.opendss.KVBaseMismatch.Builder.class); } public static final int LOAD_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object load_ = ""; /** * string load = 1; * @return The load. */ @java.lang.Override public java.lang.String getLoad() { java.lang.Object ref = load_; 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(); load_ = s; return s; } } /** * string load = 1; * @return The bytes for load. */ @java.lang.Override public com.google.protobuf.ByteString getLoadBytes() { java.lang.Object ref = load_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); load_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KV_FIELD_NUMBER = 2; private double kv_ = 0D; /** * double kv = 2; * @return The kv. */ @java.lang.Override public double getKv() { return kv_; } public static final int BUS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object bus_ = ""; /** * string bus = 3; * @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 = 3; * @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 KVBASE_FIELD_NUMBER = 4; private double kvBase_ = 0D; /** * double kvBase = 4; * @return The kvBase. */ @java.lang.Override public double getKvBase() { return kvBase_; } 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(load_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, load_); } if (java.lang.Double.doubleToRawLongBits(kv_) != 0) { output.writeDouble(2, kv_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bus_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bus_); } if (java.lang.Double.doubleToRawLongBits(kvBase_) != 0) { output.writeDouble(4, kvBase_); } 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(load_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, load_); } if (java.lang.Double.doubleToRawLongBits(kv_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, kv_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bus_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bus_); } if (java.lang.Double.doubleToRawLongBits(kvBase_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, kvBase_); } 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.KVBaseMismatch)) { return super.equals(obj); } com.zepben.protobuf.hc.opendss.KVBaseMismatch other = (com.zepben.protobuf.hc.opendss.KVBaseMismatch) obj; if (!getLoad() .equals(other.getLoad())) return false; if (java.lang.Double.doubleToLongBits(getKv()) != java.lang.Double.doubleToLongBits( other.getKv())) return false; if (!getBus() .equals(other.getBus())) return false; if (java.lang.Double.doubleToLongBits(getKvBase()) != java.lang.Double.doubleToLongBits( other.getKvBase())) 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) + LOAD_FIELD_NUMBER; hash = (53 * hash) + getLoad().hashCode(); hash = (37 * hash) + KV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getKv())); hash = (37 * hash) + BUS_FIELD_NUMBER; hash = (53 * hash) + getBus().hashCode(); hash = (37 * hash) + KVBASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getKvBase())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.hc.opendss.KVBaseMismatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.KVBaseMismatch 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.KVBaseMismatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.KVBaseMismatch 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.KVBaseMismatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.KVBaseMismatch 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.KVBaseMismatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.KVBaseMismatch 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.KVBaseMismatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.KVBaseMismatch 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.KVBaseMismatch 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.KVBaseMismatch 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.KVBaseMismatch 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 kv Base Mismatch report
   * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.KVBaseMismatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.KVBaseMismatch) com.zepben.protobuf.hc.opendss.KVBaseMismatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_KVBaseMismatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_KVBaseMismatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.KVBaseMismatch.class, com.zepben.protobuf.hc.opendss.KVBaseMismatch.Builder.class); } // Construct using com.zepben.protobuf.hc.opendss.KVBaseMismatch.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; load_ = ""; kv_ = 0D; bus_ = ""; kvBase_ = 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_KVBaseMismatch_descriptor; } @java.lang.Override public com.zepben.protobuf.hc.opendss.KVBaseMismatch getDefaultInstanceForType() { return com.zepben.protobuf.hc.opendss.KVBaseMismatch.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.hc.opendss.KVBaseMismatch build() { com.zepben.protobuf.hc.opendss.KVBaseMismatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.hc.opendss.KVBaseMismatch buildPartial() { com.zepben.protobuf.hc.opendss.KVBaseMismatch result = new com.zepben.protobuf.hc.opendss.KVBaseMismatch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.hc.opendss.KVBaseMismatch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.load_ = load_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.kv_ = kv_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.bus_ = bus_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.kvBase_ = kvBase_; } } @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.KVBaseMismatch) { return mergeFrom((com.zepben.protobuf.hc.opendss.KVBaseMismatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.hc.opendss.KVBaseMismatch other) { if (other == com.zepben.protobuf.hc.opendss.KVBaseMismatch.getDefaultInstance()) return this; if (!other.getLoad().isEmpty()) { load_ = other.load_; bitField0_ |= 0x00000001; onChanged(); } if (other.getKv() != 0D) { setKv(other.getKv()); } if (!other.getBus().isEmpty()) { bus_ = other.bus_; bitField0_ |= 0x00000004; onChanged(); } if (other.getKvBase() != 0D) { setKvBase(other.getKvBase()); } 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: { load_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 17: { kv_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 26: { bus_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 33: { kvBase_ = 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 load_ = ""; /** * string load = 1; * @return The load. */ public java.lang.String getLoad() { java.lang.Object ref = load_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); load_ = s; return s; } else { return (java.lang.String) ref; } } /** * string load = 1; * @return The bytes for load. */ public com.google.protobuf.ByteString getLoadBytes() { java.lang.Object ref = load_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); load_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string load = 1; * @param value The load to set. * @return This builder for chaining. */ public Builder setLoad( java.lang.String value) { if (value == null) { throw new NullPointerException(); } load_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string load = 1; * @return This builder for chaining. */ public Builder clearLoad() { load_ = getDefaultInstance().getLoad(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string load = 1; * @param value The bytes for load to set. * @return This builder for chaining. */ public Builder setLoadBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); load_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private double kv_ ; /** * double kv = 2; * @return The kv. */ @java.lang.Override public double getKv() { return kv_; } /** * double kv = 2; * @param value The kv to set. * @return This builder for chaining. */ public Builder setKv(double value) { kv_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * double kv = 2; * @return This builder for chaining. */ public Builder clearKv() { bitField0_ = (bitField0_ & ~0x00000002); kv_ = 0D; onChanged(); return this; } private java.lang.Object bus_ = ""; /** * string bus = 3; * @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 = 3; * @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 = 3; * @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_ |= 0x00000004; onChanged(); return this; } /** * string bus = 3; * @return This builder for chaining. */ public Builder clearBus() { bus_ = getDefaultInstance().getBus(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string bus = 3; * @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_ |= 0x00000004; onChanged(); return this; } private double kvBase_ ; /** * double kvBase = 4; * @return The kvBase. */ @java.lang.Override public double getKvBase() { return kvBase_; } /** * double kvBase = 4; * @param value The kvBase to set. * @return This builder for chaining. */ public Builder setKvBase(double value) { kvBase_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double kvBase = 4; * @return This builder for chaining. */ public Builder clearKvBase() { bitField0_ = (bitField0_ & ~0x00000008); kvBase_ = 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.KVBaseMismatch) } // @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.KVBaseMismatch) private static final com.zepben.protobuf.hc.opendss.KVBaseMismatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.KVBaseMismatch(); } public static com.zepben.protobuf.hc.opendss.KVBaseMismatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KVBaseMismatch 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.KVBaseMismatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy