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

com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger 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/cim/iec61970/base/wires/RatioTapChanger.proto

package com.zepben.protobuf.cim.iec61970.base.wires;

/**
 * 
 **
 * A tap changer that changes the voltage ratio impacting the voltage magnitude but not the phase angle across the transformer.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger} */ public final class RatioTapChanger extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger) RatioTapChangerOrBuilder { private static final long serialVersionUID = 0L; // Use RatioTapChanger.newBuilder() to construct. private RatioTapChanger(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RatioTapChanger() { transformerEndMRID_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RatioTapChanger(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RatioTapChanger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RatioTapChanger_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger.class, com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger.Builder.class); } private int bitField0_; public static final int TC_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.wires.TapChanger tc_; /** *
   **
   * IdentifiedObject fields for this RatioTapChanger.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; * @return Whether the tc field is set. */ @java.lang.Override public boolean hasTc() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * IdentifiedObject fields for this RatioTapChanger.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; * @return The tc. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.TapChanger getTc() { return tc_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.getDefaultInstance() : tc_; } /** *
   **
   * IdentifiedObject fields for this RatioTapChanger.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOrBuilder getTcOrBuilder() { return tc_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.getDefaultInstance() : tc_; } public static final int STEPVOLTAGEINCREMENT_FIELD_NUMBER = 2; private double stepVoltageIncrement_ = 0D; /** *
   **
   * Tap step increment, in per cent of neutral voltage, per step position.
   * 
* * double stepVoltageIncrement = 2; * @return The stepVoltageIncrement. */ @java.lang.Override public double getStepVoltageIncrement() { return stepVoltageIncrement_; } public static final int TRANSFORMERENDMRID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object transformerEndMRID_ = ""; /** *
   **
   * Transformer end to which this ratio tap changer belongs.
   * 
* * string transformerEndMRID = 3; * @return The transformerEndMRID. */ @java.lang.Override public java.lang.String getTransformerEndMRID() { java.lang.Object ref = transformerEndMRID_; 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(); transformerEndMRID_ = s; return s; } } /** *
   **
   * Transformer end to which this ratio tap changer belongs.
   * 
* * string transformerEndMRID = 3; * @return The bytes for transformerEndMRID. */ @java.lang.Override public com.google.protobuf.ByteString getTransformerEndMRIDBytes() { java.lang.Object ref = transformerEndMRID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transformerEndMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTc()); } if (java.lang.Double.doubleToRawLongBits(stepVoltageIncrement_) != 0) { output.writeDouble(2, stepVoltageIncrement_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transformerEndMRID_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transformerEndMRID_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTc()); } if (java.lang.Double.doubleToRawLongBits(stepVoltageIncrement_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, stepVoltageIncrement_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transformerEndMRID_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transformerEndMRID_); } 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.cim.iec61970.base.wires.RatioTapChanger)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger other = (com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger) obj; if (hasTc() != other.hasTc()) return false; if (hasTc()) { if (!getTc() .equals(other.getTc())) return false; } if (java.lang.Double.doubleToLongBits(getStepVoltageIncrement()) != java.lang.Double.doubleToLongBits( other.getStepVoltageIncrement())) return false; if (!getTransformerEndMRID() .equals(other.getTransformerEndMRID())) 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(); if (hasTc()) { hash = (37 * hash) + TC_FIELD_NUMBER; hash = (53 * hash) + getTc().hashCode(); } hash = (37 * hash) + STEPVOLTAGEINCREMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getStepVoltageIncrement())); hash = (37 * hash) + TRANSFORMERENDMRID_FIELD_NUMBER; hash = (53 * hash) + getTransformerEndMRID().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger 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.cim.iec61970.base.wires.RatioTapChanger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger 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.cim.iec61970.base.wires.RatioTapChanger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger 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.cim.iec61970.base.wires.RatioTapChanger parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger 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.cim.iec61970.base.wires.RatioTapChanger parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger 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.cim.iec61970.base.wires.RatioTapChanger 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; } /** *
   **
   * A tap changer that changes the voltage ratio impacting the voltage magnitude but not the phase angle across the transformer.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger) com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChangerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RatioTapChanger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RatioTapChanger_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger.class, com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTcFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tc_ = null; if (tcBuilder_ != null) { tcBuilder_.dispose(); tcBuilder_ = null; } stepVoltageIncrement_ = 0D; transformerEndMRID_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChangerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_RatioTapChanger_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger build() { com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger buildPartial() { com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger result = new com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tc_ = tcBuilder_ == null ? tc_ : tcBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.stepVoltageIncrement_ = stepVoltageIncrement_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.transformerEndMRID_ = transformerEndMRID_; } result.bitField0_ |= to_bitField0_; } @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.cim.iec61970.base.wires.RatioTapChanger) { return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger other) { if (other == com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger.getDefaultInstance()) return this; if (other.hasTc()) { mergeTc(other.getTc()); } if (other.getStepVoltageIncrement() != 0D) { setStepVoltageIncrement(other.getStepVoltageIncrement()); } if (!other.getTransformerEndMRID().isEmpty()) { transformerEndMRID_ = other.transformerEndMRID_; bitField0_ |= 0x00000004; onChanged(); } 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: { input.readMessage( getTcFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 17: { stepVoltageIncrement_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 26: { transformerEndMRID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 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 com.zepben.protobuf.cim.iec61970.base.wires.TapChanger tc_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TapChanger, com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOrBuilder> tcBuilder_; /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; * @return Whether the tc field is set. */ public boolean hasTc() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; * @return The tc. */ public com.zepben.protobuf.cim.iec61970.base.wires.TapChanger getTc() { if (tcBuilder_ == null) { return tc_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.getDefaultInstance() : tc_; } else { return tcBuilder_.getMessage(); } } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ public Builder setTc(com.zepben.protobuf.cim.iec61970.base.wires.TapChanger value) { if (tcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tc_ = value; } else { tcBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ public Builder setTc( com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.Builder builderForValue) { if (tcBuilder_ == null) { tc_ = builderForValue.build(); } else { tcBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ public Builder mergeTc(com.zepben.protobuf.cim.iec61970.base.wires.TapChanger value) { if (tcBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tc_ != null && tc_ != com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.getDefaultInstance()) { getTcBuilder().mergeFrom(value); } else { tc_ = value; } } else { tcBuilder_.mergeFrom(value); } if (tc_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ public Builder clearTc() { bitField0_ = (bitField0_ & ~0x00000001); tc_ = null; if (tcBuilder_ != null) { tcBuilder_.dispose(); tcBuilder_ = null; } onChanged(); return this; } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ public com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.Builder getTcBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTcFieldBuilder().getBuilder(); } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ public com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOrBuilder getTcOrBuilder() { if (tcBuilder_ != null) { return tcBuilder_.getMessageOrBuilder(); } else { return tc_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.getDefaultInstance() : tc_; } } /** *
     **
     * IdentifiedObject fields for this RatioTapChanger.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.TapChanger tc = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TapChanger, com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOrBuilder> getTcFieldBuilder() { if (tcBuilder_ == null) { tcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.TapChanger, com.zepben.protobuf.cim.iec61970.base.wires.TapChanger.Builder, com.zepben.protobuf.cim.iec61970.base.wires.TapChangerOrBuilder>( getTc(), getParentForChildren(), isClean()); tc_ = null; } return tcBuilder_; } private double stepVoltageIncrement_ ; /** *
     **
     * Tap step increment, in per cent of neutral voltage, per step position.
     * 
* * double stepVoltageIncrement = 2; * @return The stepVoltageIncrement. */ @java.lang.Override public double getStepVoltageIncrement() { return stepVoltageIncrement_; } /** *
     **
     * Tap step increment, in per cent of neutral voltage, per step position.
     * 
* * double stepVoltageIncrement = 2; * @param value The stepVoltageIncrement to set. * @return This builder for chaining. */ public Builder setStepVoltageIncrement(double value) { stepVoltageIncrement_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Tap step increment, in per cent of neutral voltage, per step position.
     * 
* * double stepVoltageIncrement = 2; * @return This builder for chaining. */ public Builder clearStepVoltageIncrement() { bitField0_ = (bitField0_ & ~0x00000002); stepVoltageIncrement_ = 0D; onChanged(); return this; } private java.lang.Object transformerEndMRID_ = ""; /** *
     **
     * Transformer end to which this ratio tap changer belongs.
     * 
* * string transformerEndMRID = 3; * @return The transformerEndMRID. */ public java.lang.String getTransformerEndMRID() { java.lang.Object ref = transformerEndMRID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transformerEndMRID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * Transformer end to which this ratio tap changer belongs.
     * 
* * string transformerEndMRID = 3; * @return The bytes for transformerEndMRID. */ public com.google.protobuf.ByteString getTransformerEndMRIDBytes() { java.lang.Object ref = transformerEndMRID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transformerEndMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * Transformer end to which this ratio tap changer belongs.
     * 
* * string transformerEndMRID = 3; * @param value The transformerEndMRID to set. * @return This builder for chaining. */ public Builder setTransformerEndMRID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } transformerEndMRID_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * Transformer end to which this ratio tap changer belongs.
     * 
* * string transformerEndMRID = 3; * @return This builder for chaining. */ public Builder clearTransformerEndMRID() { transformerEndMRID_ = getDefaultInstance().getTransformerEndMRID(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     **
     * Transformer end to which this ratio tap changer belongs.
     * 
* * string transformerEndMRID = 3; * @param value The bytes for transformerEndMRID to set. * @return This builder for chaining. */ public Builder setTransformerEndMRIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transformerEndMRID_ = value; bitField0_ |= 0x00000004; 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.cim.iec61970.base.wires.RatioTapChanger) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger) private static final com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger(); } public static com.zepben.protobuf.cim.iec61970.base.wires.RatioTapChanger getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RatioTapChanger 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.cim.iec61970.base.wires.RatioTapChanger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy