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

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

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

/**
 * 
 **
 * An electrical device consisting of  two or more coupled windings, with or without a magnetic core, for introducing mutual coupling
 * between electric circuits. Transformers can be used to control voltage and phase shift (active power flow).
 * <p>
 * A power transformer may be composed of separate transformer tanks that need not be identical.
 * <p>
 * A power transformer can be modeled with or without tanks and is intended for use in both balanced and unbalanced representations. A
 * power transformer typically has two terminals, but may have one (grounding), three or more terminals.
 * <p>
 * The inherited association ConductingEquipment.BaseVoltage should not be used.  The association from TransformerEnd to BaseVoltage
 * should be used instead.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.PowerTransformer} */ public final class PowerTransformer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.PowerTransformer) PowerTransformerOrBuilder { private static final long serialVersionUID = 0L; // Use PowerTransformer.newBuilder() to construct. private PowerTransformer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PowerTransformer() { powerTransformerEndMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); vectorGroup_ = 0; constructionKind_ = 0; function_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PowerTransformer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer.class, com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer.Builder.class); } private int bitField0_; public static final int CE_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce_; /** *
   **
   * ConductingEquipment fields for this PowerTransformer.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; * @return Whether the ce field is set. */ @java.lang.Override public boolean hasCe() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * ConductingEquipment fields for this PowerTransformer.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; * @return The ce. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment getCe() { return ce_ == null ? com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.getDefaultInstance() : ce_; } /** *
   **
   * ConductingEquipment fields for this PowerTransformer.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipmentOrBuilder getCeOrBuilder() { return ce_ == null ? com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.getDefaultInstance() : ce_; } public static final int POWERTRANSFORMERENDMRIDS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList powerTransformerEndMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * The PowerTransformerEnd's for this PowerTransformer.
   * Index 1 of the list must be the highest voltage end of the transformer.
   * 
* * repeated string powerTransformerEndMRIDs = 2; * @return A list containing the powerTransformerEndMRIDs. */ public com.google.protobuf.ProtocolStringList getPowerTransformerEndMRIDsList() { return powerTransformerEndMRIDs_; } /** *
   **
   * The PowerTransformerEnd's for this PowerTransformer.
   * Index 1 of the list must be the highest voltage end of the transformer.
   * 
* * repeated string powerTransformerEndMRIDs = 2; * @return The count of powerTransformerEndMRIDs. */ public int getPowerTransformerEndMRIDsCount() { return powerTransformerEndMRIDs_.size(); } /** *
   **
   * The PowerTransformerEnd's for this PowerTransformer.
   * Index 1 of the list must be the highest voltage end of the transformer.
   * 
* * repeated string powerTransformerEndMRIDs = 2; * @param index The index of the element to return. * @return The powerTransformerEndMRIDs at the given index. */ public java.lang.String getPowerTransformerEndMRIDs(int index) { return powerTransformerEndMRIDs_.get(index); } /** *
   **
   * The PowerTransformerEnd's for this PowerTransformer.
   * Index 1 of the list must be the highest voltage end of the transformer.
   * 
* * repeated string powerTransformerEndMRIDs = 2; * @param index The index of the value to return. * @return The bytes of the powerTransformerEndMRIDs at the given index. */ public com.google.protobuf.ByteString getPowerTransformerEndMRIDsBytes(int index) { return powerTransformerEndMRIDs_.getByteString(index); } public static final int VECTORGROUP_FIELD_NUMBER = 3; private int vectorGroup_ = 0; /** *
   **
   * Vector group of the transformer for protective relaying. For unbalanced transformers, this may not be simply
   * determined from the constituent winding connections and phase angle displacements.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.VectorGroup vectorGroup = 3; * @return The enum numeric value on the wire for vectorGroup. */ @java.lang.Override public int getVectorGroupValue() { return vectorGroup_; } /** *
   **
   * Vector group of the transformer for protective relaying. For unbalanced transformers, this may not be simply
   * determined from the constituent winding connections and phase angle displacements.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.VectorGroup vectorGroup = 3; * @return The vectorGroup. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup getVectorGroup() { com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup result = com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup.forNumber(vectorGroup_); return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup.UNRECOGNIZED : result; } public static final int TRANSFORMERUTILISATION_FIELD_NUMBER = 4; private double transformerUtilisation_ = 0D; /** *
   **
   * The fraction of the transformer’s normal capacity (nameplate rating) that is in use. It may be expressed as the
   * result of the calculation S/Sn, where S = Load on Transformer (in VA), Sn = Transformer Nameplate Rating (in VA).
   * 
* * double transformerUtilisation = 4; * @return The transformerUtilisation. */ @java.lang.Override public double getTransformerUtilisation() { return transformerUtilisation_; } public static final int CONSTRUCTIONKIND_FIELD_NUMBER = 5; private int constructionKind_ = 0; /** *
   **
   * The construction kind of this transformer
   * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind constructionKind = 5; * @return The enum numeric value on the wire for constructionKind. */ @java.lang.Override public int getConstructionKindValue() { return constructionKind_; } /** *
   **
   * The construction kind of this transformer
   * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind constructionKind = 5; * @return The constructionKind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind getConstructionKind() { com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind result = com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind.forNumber(constructionKind_); return result == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind.UNRECOGNIZED : result; } public static final int FUNCTION_FIELD_NUMBER = 6; private int function_ = 0; /** *
   **
   * The function of this transformer
   * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind function = 6; * @return The enum numeric value on the wire for function. */ @java.lang.Override public int getFunctionValue() { return function_; } /** *
   **
   * The function of this transformer
   * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind function = 6; * @return The function. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind getFunction() { com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind result = com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind.forNumber(function_); return result == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind.UNRECOGNIZED : result; } 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, getCe()); } for (int i = 0; i < powerTransformerEndMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, powerTransformerEndMRIDs_.getRaw(i)); } if (vectorGroup_ != com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup.UNKNOWN.getNumber()) { output.writeEnum(3, vectorGroup_); } if (java.lang.Double.doubleToRawLongBits(transformerUtilisation_) != 0) { output.writeDouble(4, transformerUtilisation_); } if (constructionKind_ != com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind.unknown.getNumber()) { output.writeEnum(5, constructionKind_); } if (function_ != com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind.other.getNumber()) { output.writeEnum(6, function_); } 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, getCe()); } { int dataSize = 0; for (int i = 0; i < powerTransformerEndMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(powerTransformerEndMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getPowerTransformerEndMRIDsList().size(); } if (vectorGroup_ != com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, vectorGroup_); } if (java.lang.Double.doubleToRawLongBits(transformerUtilisation_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, transformerUtilisation_); } if (constructionKind_ != com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind.unknown.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, constructionKind_); } if (function_ != com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind.other.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, function_); } 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.PowerTransformer)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer other = (com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer) obj; if (hasCe() != other.hasCe()) return false; if (hasCe()) { if (!getCe() .equals(other.getCe())) return false; } if (!getPowerTransformerEndMRIDsList() .equals(other.getPowerTransformerEndMRIDsList())) return false; if (vectorGroup_ != other.vectorGroup_) return false; if (java.lang.Double.doubleToLongBits(getTransformerUtilisation()) != java.lang.Double.doubleToLongBits( other.getTransformerUtilisation())) return false; if (constructionKind_ != other.constructionKind_) return false; if (function_ != other.function_) 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 (hasCe()) { hash = (37 * hash) + CE_FIELD_NUMBER; hash = (53 * hash) + getCe().hashCode(); } if (getPowerTransformerEndMRIDsCount() > 0) { hash = (37 * hash) + POWERTRANSFORMERENDMRIDS_FIELD_NUMBER; hash = (53 * hash) + getPowerTransformerEndMRIDsList().hashCode(); } hash = (37 * hash) + VECTORGROUP_FIELD_NUMBER; hash = (53 * hash) + vectorGroup_; hash = (37 * hash) + TRANSFORMERUTILISATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTransformerUtilisation())); hash = (37 * hash) + CONSTRUCTIONKIND_FIELD_NUMBER; hash = (53 * hash) + constructionKind_; hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + function_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer 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.PowerTransformer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer 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.PowerTransformer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer 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.PowerTransformer 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.PowerTransformer 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.PowerTransformer 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.PowerTransformer 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.PowerTransformer 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.PowerTransformer 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.PowerTransformer 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; } /** *
   **
   * An electrical device consisting of  two or more coupled windings, with or without a magnetic core, for introducing mutual coupling
   * between electric circuits. Transformers can be used to control voltage and phase shift (active power flow).
   * <p>
   * A power transformer may be composed of separate transformer tanks that need not be identical.
   * <p>
   * A power transformer can be modeled with or without tanks and is intended for use in both balanced and unbalanced representations. A
   * power transformer typically has two terminals, but may have one (grounding), three or more terminals.
   * <p>
   * The inherited association ConductingEquipment.BaseVoltage should not be used.  The association from TransformerEnd to BaseVoltage
   * should be used instead.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.PowerTransformer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.PowerTransformer) com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer.class, com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ce_ = null; if (ceBuilder_ != null) { ceBuilder_.dispose(); ceBuilder_ = null; } powerTransformerEndMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); vectorGroup_ = 0; transformerUtilisation_ = 0D; constructionKind_ = 0; function_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformerOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_PowerTransformer_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer build() { com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer buildPartial() { com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer result = new com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ce_ = ceBuilder_ == null ? ce_ : ceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { powerTransformerEndMRIDs_.makeImmutable(); result.powerTransformerEndMRIDs_ = powerTransformerEndMRIDs_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.vectorGroup_ = vectorGroup_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.transformerUtilisation_ = transformerUtilisation_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.constructionKind_ = constructionKind_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.function_ = function_; } 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.PowerTransformer) { return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer other) { if (other == com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer.getDefaultInstance()) return this; if (other.hasCe()) { mergeCe(other.getCe()); } if (!other.powerTransformerEndMRIDs_.isEmpty()) { if (powerTransformerEndMRIDs_.isEmpty()) { powerTransformerEndMRIDs_ = other.powerTransformerEndMRIDs_; bitField0_ |= 0x00000002; } else { ensurePowerTransformerEndMRIDsIsMutable(); powerTransformerEndMRIDs_.addAll(other.powerTransformerEndMRIDs_); } onChanged(); } if (other.vectorGroup_ != 0) { setVectorGroupValue(other.getVectorGroupValue()); } if (other.getTransformerUtilisation() != 0D) { setTransformerUtilisation(other.getTransformerUtilisation()); } if (other.constructionKind_ != 0) { setConstructionKindValue(other.getConstructionKindValue()); } if (other.function_ != 0) { setFunctionValue(other.getFunctionValue()); } 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( getCeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensurePowerTransformerEndMRIDsIsMutable(); powerTransformerEndMRIDs_.add(s); break; } // case 18 case 24: { vectorGroup_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 33: { transformerUtilisation_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 40: { constructionKind_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { function_ = input.readEnum(); 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 com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment, com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.Builder, com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipmentOrBuilder> ceBuilder_; /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; * @return Whether the ce field is set. */ public boolean hasCe() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; * @return The ce. */ public com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment getCe() { if (ceBuilder_ == null) { return ce_ == null ? com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.getDefaultInstance() : ce_; } else { return ceBuilder_.getMessage(); } } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ public Builder setCe(com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment value) { if (ceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ce_ = value; } else { ceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ public Builder setCe( com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.Builder builderForValue) { if (ceBuilder_ == null) { ce_ = builderForValue.build(); } else { ceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ public Builder mergeCe(com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment value) { if (ceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ce_ != null && ce_ != com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.getDefaultInstance()) { getCeBuilder().mergeFrom(value); } else { ce_ = value; } } else { ceBuilder_.mergeFrom(value); } if (ce_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ public Builder clearCe() { bitField0_ = (bitField0_ & ~0x00000001); ce_ = null; if (ceBuilder_ != null) { ceBuilder_.dispose(); ceBuilder_ = null; } onChanged(); return this; } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.Builder getCeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCeFieldBuilder().getBuilder(); } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipmentOrBuilder getCeOrBuilder() { if (ceBuilder_ != null) { return ceBuilder_.getMessageOrBuilder(); } else { return ce_ == null ? com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.getDefaultInstance() : ce_; } } /** *
     **
     * ConductingEquipment fields for this PowerTransformer.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.ConductingEquipment ce = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment, com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.Builder, com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipmentOrBuilder> getCeFieldBuilder() { if (ceBuilder_ == null) { ceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment, com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipment.Builder, com.zepben.protobuf.cim.iec61970.base.core.ConductingEquipmentOrBuilder>( getCe(), getParentForChildren(), isClean()); ce_ = null; } return ceBuilder_; } private com.google.protobuf.LazyStringArrayList powerTransformerEndMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePowerTransformerEndMRIDsIsMutable() { if (!powerTransformerEndMRIDs_.isModifiable()) { powerTransformerEndMRIDs_ = new com.google.protobuf.LazyStringArrayList(powerTransformerEndMRIDs_); } bitField0_ |= 0x00000002; } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @return A list containing the powerTransformerEndMRIDs. */ public com.google.protobuf.ProtocolStringList getPowerTransformerEndMRIDsList() { powerTransformerEndMRIDs_.makeImmutable(); return powerTransformerEndMRIDs_; } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @return The count of powerTransformerEndMRIDs. */ public int getPowerTransformerEndMRIDsCount() { return powerTransformerEndMRIDs_.size(); } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @param index The index of the element to return. * @return The powerTransformerEndMRIDs at the given index. */ public java.lang.String getPowerTransformerEndMRIDs(int index) { return powerTransformerEndMRIDs_.get(index); } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @param index The index of the value to return. * @return The bytes of the powerTransformerEndMRIDs at the given index. */ public com.google.protobuf.ByteString getPowerTransformerEndMRIDsBytes(int index) { return powerTransformerEndMRIDs_.getByteString(index); } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @param index The index to set the value at. * @param value The powerTransformerEndMRIDs to set. * @return This builder for chaining. */ public Builder setPowerTransformerEndMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePowerTransformerEndMRIDsIsMutable(); powerTransformerEndMRIDs_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @param value The powerTransformerEndMRIDs to add. * @return This builder for chaining. */ public Builder addPowerTransformerEndMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePowerTransformerEndMRIDsIsMutable(); powerTransformerEndMRIDs_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @param values The powerTransformerEndMRIDs to add. * @return This builder for chaining. */ public Builder addAllPowerTransformerEndMRIDs( java.lang.Iterable values) { ensurePowerTransformerEndMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, powerTransformerEndMRIDs_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @return This builder for chaining. */ public Builder clearPowerTransformerEndMRIDs() { powerTransformerEndMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     **
     * The PowerTransformerEnd's for this PowerTransformer.
     * Index 1 of the list must be the highest voltage end of the transformer.
     * 
* * repeated string powerTransformerEndMRIDs = 2; * @param value The bytes of the powerTransformerEndMRIDs to add. * @return This builder for chaining. */ public Builder addPowerTransformerEndMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePowerTransformerEndMRIDsIsMutable(); powerTransformerEndMRIDs_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private int vectorGroup_ = 0; /** *
     **
     * Vector group of the transformer for protective relaying. For unbalanced transformers, this may not be simply
     * determined from the constituent winding connections and phase angle displacements.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.VectorGroup vectorGroup = 3; * @return The enum numeric value on the wire for vectorGroup. */ @java.lang.Override public int getVectorGroupValue() { return vectorGroup_; } /** *
     **
     * Vector group of the transformer for protective relaying. For unbalanced transformers, this may not be simply
     * determined from the constituent winding connections and phase angle displacements.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.VectorGroup vectorGroup = 3; * @param value The enum numeric value on the wire for vectorGroup to set. * @return This builder for chaining. */ public Builder setVectorGroupValue(int value) { vectorGroup_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * Vector group of the transformer for protective relaying. For unbalanced transformers, this may not be simply
     * determined from the constituent winding connections and phase angle displacements.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.VectorGroup vectorGroup = 3; * @return The vectorGroup. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup getVectorGroup() { com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup result = com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup.forNumber(vectorGroup_); return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup.UNRECOGNIZED : result; } /** *
     **
     * Vector group of the transformer for protective relaying. For unbalanced transformers, this may not be simply
     * determined from the constituent winding connections and phase angle displacements.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.VectorGroup vectorGroup = 3; * @param value The vectorGroup to set. * @return This builder for chaining. */ public Builder setVectorGroup(com.zepben.protobuf.cim.iec61970.base.wires.VectorGroup value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; vectorGroup_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * Vector group of the transformer for protective relaying. For unbalanced transformers, this may not be simply
     * determined from the constituent winding connections and phase angle displacements.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.VectorGroup vectorGroup = 3; * @return This builder for chaining. */ public Builder clearVectorGroup() { bitField0_ = (bitField0_ & ~0x00000004); vectorGroup_ = 0; onChanged(); return this; } private double transformerUtilisation_ ; /** *
     **
     * The fraction of the transformer’s normal capacity (nameplate rating) that is in use. It may be expressed as the
     * result of the calculation S/Sn, where S = Load on Transformer (in VA), Sn = Transformer Nameplate Rating (in VA).
     * 
* * double transformerUtilisation = 4; * @return The transformerUtilisation. */ @java.lang.Override public double getTransformerUtilisation() { return transformerUtilisation_; } /** *
     **
     * The fraction of the transformer’s normal capacity (nameplate rating) that is in use. It may be expressed as the
     * result of the calculation S/Sn, where S = Load on Transformer (in VA), Sn = Transformer Nameplate Rating (in VA).
     * 
* * double transformerUtilisation = 4; * @param value The transformerUtilisation to set. * @return This builder for chaining. */ public Builder setTransformerUtilisation(double value) { transformerUtilisation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The fraction of the transformer’s normal capacity (nameplate rating) that is in use. It may be expressed as the
     * result of the calculation S/Sn, where S = Load on Transformer (in VA), Sn = Transformer Nameplate Rating (in VA).
     * 
* * double transformerUtilisation = 4; * @return This builder for chaining. */ public Builder clearTransformerUtilisation() { bitField0_ = (bitField0_ & ~0x00000008); transformerUtilisation_ = 0D; onChanged(); return this; } private int constructionKind_ = 0; /** *
     **
     * The construction kind of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind constructionKind = 5; * @return The enum numeric value on the wire for constructionKind. */ @java.lang.Override public int getConstructionKindValue() { return constructionKind_; } /** *
     **
     * The construction kind of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind constructionKind = 5; * @param value The enum numeric value on the wire for constructionKind to set. * @return This builder for chaining. */ public Builder setConstructionKindValue(int value) { constructionKind_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The construction kind of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind constructionKind = 5; * @return The constructionKind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind getConstructionKind() { com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind result = com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind.forNumber(constructionKind_); return result == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind.UNRECOGNIZED : result; } /** *
     **
     * The construction kind of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind constructionKind = 5; * @param value The constructionKind to set. * @return This builder for chaining. */ public Builder setConstructionKind(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; constructionKind_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The construction kind of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerConstructionKind constructionKind = 5; * @return This builder for chaining. */ public Builder clearConstructionKind() { bitField0_ = (bitField0_ & ~0x00000010); constructionKind_ = 0; onChanged(); return this; } private int function_ = 0; /** *
     **
     * The function of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind function = 6; * @return The enum numeric value on the wire for function. */ @java.lang.Override public int getFunctionValue() { return function_; } /** *
     **
     * The function of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind function = 6; * @param value The enum numeric value on the wire for function to set. * @return This builder for chaining. */ public Builder setFunctionValue(int value) { function_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * The function of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind function = 6; * @return The function. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind getFunction() { com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind result = com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind.forNumber(function_); return result == null ? com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind.UNRECOGNIZED : result; } /** *
     **
     * The function of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind function = 6; * @param value The function to set. * @return This builder for chaining. */ public Builder setFunction(com.zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; function_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The function of this transformer
     * 
* * .zepben.protobuf.cim.iec61968.infiec61968.infassetinfo.TransformerFunctionKind function = 6; * @return This builder for chaining. */ public Builder clearFunction() { bitField0_ = (bitField0_ & ~0x00000020); function_ = 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.cim.iec61970.base.wires.PowerTransformer) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.PowerTransformer) private static final com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer(); } public static com.zepben.protobuf.cim.iec61970.base.wires.PowerTransformer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PowerTransformer 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.PowerTransformer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy