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

com.zepben.protobuf.hc.opendss.TapsReport 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 registry taps report
 * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.TapsReport} */ public final class TapsReport extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.TapsReport) TapsReportOrBuilder { private static final long serialVersionUID = 0L; // Use TapsReport.newBuilder() to construct. private TapsReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TapsReport() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TapsReport(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_TapsReport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_TapsReport_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.TapsReport.class, com.zepben.protobuf.hc.opendss.TapsReport.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAP_FIELD_NUMBER = 2; private double tap_ = 0D; /** * double tap = 2; * @return The tap. */ @java.lang.Override public double getTap() { return tap_; } public static final int MIN_FIELD_NUMBER = 3; private double min_ = 0D; /** * double min = 3; * @return The min. */ @java.lang.Override public double getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 4; private double max_ = 0D; /** * double max = 4; * @return The max. */ @java.lang.Override public double getMax() { return max_; } public static final int STEP_FIELD_NUMBER = 5; private double step_ = 0D; /** * double step = 5; * @return The step. */ @java.lang.Override public double getStep() { return step_; } public static final int POSITION_FIELD_NUMBER = 6; private int position_ = 0; /** * int32 position = 6; * @return The position. */ @java.lang.Override public int getPosition() { return position_; } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (java.lang.Double.doubleToRawLongBits(tap_) != 0) { output.writeDouble(2, tap_); } if (java.lang.Double.doubleToRawLongBits(min_) != 0) { output.writeDouble(3, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { output.writeDouble(4, max_); } if (java.lang.Double.doubleToRawLongBits(step_) != 0) { output.writeDouble(5, step_); } if (position_ != 0) { output.writeInt32(6, position_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(tap_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, tap_); } if (java.lang.Double.doubleToRawLongBits(min_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, max_); } if (java.lang.Double.doubleToRawLongBits(step_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, step_); } if (position_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, position_); } 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.TapsReport)) { return super.equals(obj); } com.zepben.protobuf.hc.opendss.TapsReport other = (com.zepben.protobuf.hc.opendss.TapsReport) obj; if (!getName() .equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getTap()) != java.lang.Double.doubleToLongBits( other.getTap())) return false; if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits( other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) != java.lang.Double.doubleToLongBits( other.getMax())) return false; if (java.lang.Double.doubleToLongBits(getStep()) != java.lang.Double.doubleToLongBits( other.getStep())) return false; if (getPosition() != other.getPosition()) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TAP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTap())); hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMin())); hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMax())); hash = (37 * hash) + STEP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getStep())); hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + getPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.hc.opendss.TapsReport parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.TapsReport 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.TapsReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.TapsReport 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.TapsReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.TapsReport 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.TapsReport parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.TapsReport 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.TapsReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.TapsReport 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.TapsReport 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.TapsReport 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.TapsReport 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 registry taps report
   * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.TapsReport} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.TapsReport) com.zepben.protobuf.hc.opendss.TapsReportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_TapsReport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_TapsReport_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.TapsReport.class, com.zepben.protobuf.hc.opendss.TapsReport.Builder.class); } // Construct using com.zepben.protobuf.hc.opendss.TapsReport.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; tap_ = 0D; min_ = 0D; max_ = 0D; step_ = 0D; position_ = 0; 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_TapsReport_descriptor; } @java.lang.Override public com.zepben.protobuf.hc.opendss.TapsReport getDefaultInstanceForType() { return com.zepben.protobuf.hc.opendss.TapsReport.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.hc.opendss.TapsReport build() { com.zepben.protobuf.hc.opendss.TapsReport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.hc.opendss.TapsReport buildPartial() { com.zepben.protobuf.hc.opendss.TapsReport result = new com.zepben.protobuf.hc.opendss.TapsReport(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.hc.opendss.TapsReport result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tap_ = tap_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.min_ = min_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.max_ = max_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.step_ = step_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.position_ = position_; } } @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.TapsReport) { return mergeFrom((com.zepben.protobuf.hc.opendss.TapsReport)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.hc.opendss.TapsReport other) { if (other == com.zepben.protobuf.hc.opendss.TapsReport.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getTap() != 0D) { setTap(other.getTap()); } if (other.getMin() != 0D) { setMin(other.getMin()); } if (other.getMax() != 0D) { setMax(other.getMax()); } if (other.getStep() != 0D) { setStep(other.getStep()); } if (other.getPosition() != 0) { setPosition(other.getPosition()); } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 17: { tap_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 25: { min_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { max_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 41: { step_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 48: { position_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 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 name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private double tap_ ; /** * double tap = 2; * @return The tap. */ @java.lang.Override public double getTap() { return tap_; } /** * double tap = 2; * @param value The tap to set. * @return This builder for chaining. */ public Builder setTap(double value) { tap_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * double tap = 2; * @return This builder for chaining. */ public Builder clearTap() { bitField0_ = (bitField0_ & ~0x00000002); tap_ = 0D; onChanged(); return this; } private double min_ ; /** * double min = 3; * @return The min. */ @java.lang.Override public double getMin() { return min_; } /** * double min = 3; * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { min_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * double min = 3; * @return This builder for chaining. */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000004); min_ = 0D; onChanged(); return this; } private double max_ ; /** * double max = 4; * @return The max. */ @java.lang.Override public double getMax() { return max_; } /** * double max = 4; * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(double value) { max_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double max = 4; * @return This builder for chaining. */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000008); max_ = 0D; onChanged(); return this; } private double step_ ; /** * double step = 5; * @return The step. */ @java.lang.Override public double getStep() { return step_; } /** * double step = 5; * @param value The step to set. * @return This builder for chaining. */ public Builder setStep(double value) { step_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * double step = 5; * @return This builder for chaining. */ public Builder clearStep() { bitField0_ = (bitField0_ & ~0x00000010); step_ = 0D; onChanged(); return this; } private int position_ ; /** * int32 position = 6; * @return The position. */ @java.lang.Override public int getPosition() { return position_; } /** * int32 position = 6; * @param value The position to set. * @return This builder for chaining. */ public Builder setPosition(int value) { position_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * int32 position = 6; * @return This builder for chaining. */ public Builder clearPosition() { bitField0_ = (bitField0_ & ~0x00000020); position_ = 0; 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.TapsReport) } // @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.TapsReport) private static final com.zepben.protobuf.hc.opendss.TapsReport DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.TapsReport(); } public static com.zepben.protobuf.hc.opendss.TapsReport getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TapsReport 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.TapsReport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy