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

com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo 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/iec61968/infiec61968/infassetinfo/PotentialTransformerInfo.proto

package com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo;

/**
 * 
 **
 * Properties of potential transformer asset.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo} */ public final class PotentialTransformerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo) PotentialTransformerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use PotentialTransformerInfo.newBuilder() to construct. private PotentialTransformerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PotentialTransformerInfo() { accuracyClass_ = ""; ptClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PotentialTransformerInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_PotentialTransformerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_PotentialTransformerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo.class, com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo.Builder.class); } private int bitField0_; public static final int AI_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61968.assets.AssetInfo ai_; /** *
   **
   * AssetInfo fields for this PotentialTransformerInfo.
   * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; * @return Whether the ai field is set. */ @java.lang.Override public boolean hasAi() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * AssetInfo fields for this PotentialTransformerInfo.
   * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; * @return The ai. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.assets.AssetInfo getAi() { return ai_ == null ? com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_; } /** *
   **
   * AssetInfo fields for this PotentialTransformerInfo.
   * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder getAiOrBuilder() { return ai_ == null ? com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_; } public static final int ACCURACYCLASS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object accuracyClass_ = ""; /** *
   **
   * PT accuracy classification.
   * 
* * string accuracyClass = 2; * @return The accuracyClass. */ @java.lang.Override public java.lang.String getAccuracyClass() { java.lang.Object ref = accuracyClass_; 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(); accuracyClass_ = s; return s; } } /** *
   **
   * PT accuracy classification.
   * 
* * string accuracyClass = 2; * @return The bytes for accuracyClass. */ @java.lang.Override public com.google.protobuf.ByteString getAccuracyClassBytes() { java.lang.Object ref = accuracyClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accuracyClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NOMINALRATIO_FIELD_NUMBER = 3; private com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio_; /** *
   **
   * Nominal ratio between the primary and secondary voltage.
   * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; * @return Whether the nominalRatio field is set. */ @java.lang.Override public boolean hasNominalRatio() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * Nominal ratio between the primary and secondary voltage.
   * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; * @return The nominalRatio. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio getNominalRatio() { return nominalRatio_ == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.getDefaultInstance() : nominalRatio_; } /** *
   **
   * Nominal ratio between the primary and secondary voltage.
   * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.RatioOrBuilder getNominalRatioOrBuilder() { return nominalRatio_ == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.getDefaultInstance() : nominalRatio_; } public static final int PRIMARYRATIO_FIELD_NUMBER = 4; private double primaryRatio_ = 0D; /** *
   **
   * Ratio for the primary winding tap changer (numerator).
   * 
* * double primaryRatio = 4; * @return The primaryRatio. */ @java.lang.Override public double getPrimaryRatio() { return primaryRatio_; } public static final int PTCLASS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object ptClass_ = ""; /** *
   **
   * Potential transformer (PT) classification covering burden.
   * 
* * string ptClass = 5; * @return The ptClass. */ @java.lang.Override public java.lang.String getPtClass() { java.lang.Object ref = ptClass_; 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(); ptClass_ = s; return s; } } /** *
   **
   * Potential transformer (PT) classification covering burden.
   * 
* * string ptClass = 5; * @return The bytes for ptClass. */ @java.lang.Override public com.google.protobuf.ByteString getPtClassBytes() { java.lang.Object ref = ptClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ptClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RATEDVOLTAGE_FIELD_NUMBER = 6; private int ratedVoltage_ = 0; /** *
   **
   * Rated voltage on the primary side in Volts.
   * 
* * int32 ratedVoltage = 6; * @return The ratedVoltage. */ @java.lang.Override public int getRatedVoltage() { return ratedVoltage_; } public static final int SECONDARYRATIO_FIELD_NUMBER = 7; private double secondaryRatio_ = 0D; /** *
   **
   * Ratio for the secondary winding tap changer (denominator).
   * 
* * double secondaryRatio = 7; * @return The secondaryRatio. */ @java.lang.Override public double getSecondaryRatio() { return secondaryRatio_; } 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, getAi()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuracyClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accuracyClass_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getNominalRatio()); } if (java.lang.Double.doubleToRawLongBits(primaryRatio_) != 0) { output.writeDouble(4, primaryRatio_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ptClass_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ptClass_); } if (ratedVoltage_ != 0) { output.writeInt32(6, ratedVoltage_); } if (java.lang.Double.doubleToRawLongBits(secondaryRatio_) != 0) { output.writeDouble(7, secondaryRatio_); } 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, getAi()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuracyClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accuracyClass_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getNominalRatio()); } if (java.lang.Double.doubleToRawLongBits(primaryRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, primaryRatio_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ptClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ptClass_); } if (ratedVoltage_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, ratedVoltage_); } if (java.lang.Double.doubleToRawLongBits(secondaryRatio_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, secondaryRatio_); } 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo other = (com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo) obj; if (hasAi() != other.hasAi()) return false; if (hasAi()) { if (!getAi() .equals(other.getAi())) return false; } if (!getAccuracyClass() .equals(other.getAccuracyClass())) return false; if (hasNominalRatio() != other.hasNominalRatio()) return false; if (hasNominalRatio()) { if (!getNominalRatio() .equals(other.getNominalRatio())) return false; } if (java.lang.Double.doubleToLongBits(getPrimaryRatio()) != java.lang.Double.doubleToLongBits( other.getPrimaryRatio())) return false; if (!getPtClass() .equals(other.getPtClass())) return false; if (getRatedVoltage() != other.getRatedVoltage()) return false; if (java.lang.Double.doubleToLongBits(getSecondaryRatio()) != java.lang.Double.doubleToLongBits( other.getSecondaryRatio())) 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 (hasAi()) { hash = (37 * hash) + AI_FIELD_NUMBER; hash = (53 * hash) + getAi().hashCode(); } hash = (37 * hash) + ACCURACYCLASS_FIELD_NUMBER; hash = (53 * hash) + getAccuracyClass().hashCode(); if (hasNominalRatio()) { hash = (37 * hash) + NOMINALRATIO_FIELD_NUMBER; hash = (53 * hash) + getNominalRatio().hashCode(); } hash = (37 * hash) + PRIMARYRATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPrimaryRatio())); hash = (37 * hash) + PTCLASS_FIELD_NUMBER; hash = (53 * hash) + getPtClass().hashCode(); hash = (37 * hash) + RATEDVOLTAGE_FIELD_NUMBER; hash = (53 * hash) + getRatedVoltage(); hash = (37 * hash) + SECONDARYRATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSecondaryRatio())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo 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; } /** *
   **
   * Properties of potential transformer asset.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo) com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_PotentialTransformerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_PotentialTransformerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo.class, com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAiFieldBuilder(); getNominalRatioFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ai_ = null; if (aiBuilder_ != null) { aiBuilder_.dispose(); aiBuilder_ = null; } accuracyClass_ = ""; nominalRatio_ = null; if (nominalRatioBuilder_ != null) { nominalRatioBuilder_.dispose(); nominalRatioBuilder_ = null; } primaryRatio_ = 0D; ptClass_ = ""; ratedVoltage_ = 0; secondaryRatio_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfoOuterClass.internal_static_zepben_protobuf_cim_iec61968_infiec61968_infassetinfo_PotentialTransformerInfo_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo build() { com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo buildPartial() { com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo result = new com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ai_ = aiBuilder_ == null ? ai_ : aiBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.accuracyClass_ = accuracyClass_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nominalRatio_ = nominalRatioBuilder_ == null ? nominalRatio_ : nominalRatioBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.primaryRatio_ = primaryRatio_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ptClass_ = ptClass_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.ratedVoltage_ = ratedVoltage_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.secondaryRatio_ = secondaryRatio_; } 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo) { return mergeFrom((com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo other) { if (other == com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo.getDefaultInstance()) return this; if (other.hasAi()) { mergeAi(other.getAi()); } if (!other.getAccuracyClass().isEmpty()) { accuracyClass_ = other.accuracyClass_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasNominalRatio()) { mergeNominalRatio(other.getNominalRatio()); } if (other.getPrimaryRatio() != 0D) { setPrimaryRatio(other.getPrimaryRatio()); } if (!other.getPtClass().isEmpty()) { ptClass_ = other.ptClass_; bitField0_ |= 0x00000010; onChanged(); } if (other.getRatedVoltage() != 0) { setRatedVoltage(other.getRatedVoltage()); } if (other.getSecondaryRatio() != 0D) { setSecondaryRatio(other.getSecondaryRatio()); } 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( getAiFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { accuracyClass_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getNominalRatioFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 33: { primaryRatio_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 42: { ptClass_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { ratedVoltage_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 57: { secondaryRatio_ = input.readDouble(); bitField0_ |= 0x00000040; break; } // case 57 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.iec61968.assets.AssetInfo ai_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.assets.AssetInfo, com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder> aiBuilder_; /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; * @return Whether the ai field is set. */ public boolean hasAi() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; * @return The ai. */ public com.zepben.protobuf.cim.iec61968.assets.AssetInfo getAi() { if (aiBuilder_ == null) { return ai_ == null ? com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_; } else { return aiBuilder_.getMessage(); } } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ public Builder setAi(com.zepben.protobuf.cim.iec61968.assets.AssetInfo value) { if (aiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ai_ = value; } else { aiBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ public Builder setAi( com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder builderForValue) { if (aiBuilder_ == null) { ai_ = builderForValue.build(); } else { aiBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ public Builder mergeAi(com.zepben.protobuf.cim.iec61968.assets.AssetInfo value) { if (aiBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ai_ != null && ai_ != com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance()) { getAiBuilder().mergeFrom(value); } else { ai_ = value; } } else { aiBuilder_.mergeFrom(value); } if (ai_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ public Builder clearAi() { bitField0_ = (bitField0_ & ~0x00000001); ai_ = null; if (aiBuilder_ != null) { aiBuilder_.dispose(); aiBuilder_ = null; } onChanged(); return this; } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ public com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder getAiBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAiFieldBuilder().getBuilder(); } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ public com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder getAiOrBuilder() { if (aiBuilder_ != null) { return aiBuilder_.getMessageOrBuilder(); } else { return ai_ == null ? com.zepben.protobuf.cim.iec61968.assets.AssetInfo.getDefaultInstance() : ai_; } } /** *
     **
     * AssetInfo fields for this PotentialTransformerInfo.
     * 
* * .zepben.protobuf.cim.iec61968.assets.AssetInfo ai = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.assets.AssetInfo, com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder> getAiFieldBuilder() { if (aiBuilder_ == null) { aiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.assets.AssetInfo, com.zepben.protobuf.cim.iec61968.assets.AssetInfo.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetInfoOrBuilder>( getAi(), getParentForChildren(), isClean()); ai_ = null; } return aiBuilder_; } private java.lang.Object accuracyClass_ = ""; /** *
     **
     * PT accuracy classification.
     * 
* * string accuracyClass = 2; * @return The accuracyClass. */ public java.lang.String getAccuracyClass() { java.lang.Object ref = accuracyClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accuracyClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * PT accuracy classification.
     * 
* * string accuracyClass = 2; * @return The bytes for accuracyClass. */ public com.google.protobuf.ByteString getAccuracyClassBytes() { java.lang.Object ref = accuracyClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accuracyClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * PT accuracy classification.
     * 
* * string accuracyClass = 2; * @param value The accuracyClass to set. * @return This builder for chaining. */ public Builder setAccuracyClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accuracyClass_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * PT accuracy classification.
     * 
* * string accuracyClass = 2; * @return This builder for chaining. */ public Builder clearAccuracyClass() { accuracyClass_ = getDefaultInstance().getAccuracyClass(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * PT accuracy classification.
     * 
* * string accuracyClass = 2; * @param value The bytes for accuracyClass to set. * @return This builder for chaining. */ public Builder setAccuracyClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accuracyClass_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio, com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.Builder, com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.RatioOrBuilder> nominalRatioBuilder_; /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; * @return Whether the nominalRatio field is set. */ public boolean hasNominalRatio() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; * @return The nominalRatio. */ public com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio getNominalRatio() { if (nominalRatioBuilder_ == null) { return nominalRatio_ == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.getDefaultInstance() : nominalRatio_; } else { return nominalRatioBuilder_.getMessage(); } } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ public Builder setNominalRatio(com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio value) { if (nominalRatioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nominalRatio_ = value; } else { nominalRatioBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ public Builder setNominalRatio( com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.Builder builderForValue) { if (nominalRatioBuilder_ == null) { nominalRatio_ = builderForValue.build(); } else { nominalRatioBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ public Builder mergeNominalRatio(com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio value) { if (nominalRatioBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && nominalRatio_ != null && nominalRatio_ != com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.getDefaultInstance()) { getNominalRatioBuilder().mergeFrom(value); } else { nominalRatio_ = value; } } else { nominalRatioBuilder_.mergeFrom(value); } if (nominalRatio_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ public Builder clearNominalRatio() { bitField0_ = (bitField0_ & ~0x00000004); nominalRatio_ = null; if (nominalRatioBuilder_ != null) { nominalRatioBuilder_.dispose(); nominalRatioBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ public com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.Builder getNominalRatioBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNominalRatioFieldBuilder().getBuilder(); } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ public com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.RatioOrBuilder getNominalRatioOrBuilder() { if (nominalRatioBuilder_ != null) { return nominalRatioBuilder_.getMessageOrBuilder(); } else { return nominalRatio_ == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.getDefaultInstance() : nominalRatio_; } } /** *
     **
     * Nominal ratio between the primary and secondary voltage.
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio nominalRatio = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio, com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.Builder, com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.RatioOrBuilder> getNominalRatioFieldBuilder() { if (nominalRatioBuilder_ == null) { nominalRatioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio, com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.Ratio.Builder, com.zepben.protobuf.cim.iec61968.infiec61968.infcommon.RatioOrBuilder>( getNominalRatio(), getParentForChildren(), isClean()); nominalRatio_ = null; } return nominalRatioBuilder_; } private double primaryRatio_ ; /** *
     **
     * Ratio for the primary winding tap changer (numerator).
     * 
* * double primaryRatio = 4; * @return The primaryRatio. */ @java.lang.Override public double getPrimaryRatio() { return primaryRatio_; } /** *
     **
     * Ratio for the primary winding tap changer (numerator).
     * 
* * double primaryRatio = 4; * @param value The primaryRatio to set. * @return This builder for chaining. */ public Builder setPrimaryRatio(double value) { primaryRatio_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * Ratio for the primary winding tap changer (numerator).
     * 
* * double primaryRatio = 4; * @return This builder for chaining. */ public Builder clearPrimaryRatio() { bitField0_ = (bitField0_ & ~0x00000008); primaryRatio_ = 0D; onChanged(); return this; } private java.lang.Object ptClass_ = ""; /** *
     **
     * Potential transformer (PT) classification covering burden.
     * 
* * string ptClass = 5; * @return The ptClass. */ public java.lang.String getPtClass() { java.lang.Object ref = ptClass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ptClass_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * Potential transformer (PT) classification covering burden.
     * 
* * string ptClass = 5; * @return The bytes for ptClass. */ public com.google.protobuf.ByteString getPtClassBytes() { java.lang.Object ref = ptClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ptClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * Potential transformer (PT) classification covering burden.
     * 
* * string ptClass = 5; * @param value The ptClass to set. * @return This builder for chaining. */ public Builder setPtClass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ptClass_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * Potential transformer (PT) classification covering burden.
     * 
* * string ptClass = 5; * @return This builder for chaining. */ public Builder clearPtClass() { ptClass_ = getDefaultInstance().getPtClass(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     **
     * Potential transformer (PT) classification covering burden.
     * 
* * string ptClass = 5; * @param value The bytes for ptClass to set. * @return This builder for chaining. */ public Builder setPtClassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ptClass_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private int ratedVoltage_ ; /** *
     **
     * Rated voltage on the primary side in Volts.
     * 
* * int32 ratedVoltage = 6; * @return The ratedVoltage. */ @java.lang.Override public int getRatedVoltage() { return ratedVoltage_; } /** *
     **
     * Rated voltage on the primary side in Volts.
     * 
* * int32 ratedVoltage = 6; * @param value The ratedVoltage to set. * @return This builder for chaining. */ public Builder setRatedVoltage(int value) { ratedVoltage_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * Rated voltage on the primary side in Volts.
     * 
* * int32 ratedVoltage = 6; * @return This builder for chaining. */ public Builder clearRatedVoltage() { bitField0_ = (bitField0_ & ~0x00000020); ratedVoltage_ = 0; onChanged(); return this; } private double secondaryRatio_ ; /** *
     **
     * Ratio for the secondary winding tap changer (denominator).
     * 
* * double secondaryRatio = 7; * @return The secondaryRatio. */ @java.lang.Override public double getSecondaryRatio() { return secondaryRatio_; } /** *
     **
     * Ratio for the secondary winding tap changer (denominator).
     * 
* * double secondaryRatio = 7; * @param value The secondaryRatio to set. * @return This builder for chaining. */ public Builder setSecondaryRatio(double value) { secondaryRatio_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * Ratio for the secondary winding tap changer (denominator).
     * 
* * double secondaryRatio = 7; * @return This builder for chaining. */ public Builder clearSecondaryRatio() { bitField0_ = (bitField0_ & ~0x00000040); secondaryRatio_ = 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.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo) private static final com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo(); } public static com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PotentialTransformerInfo 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.iec61968.infiec61968.infassetinfo.PotentialTransformerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy