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

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

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

/**
 * 
 **
 * A function that a relay implements to protect equipment.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction} */ public final class ProtectionRelayFunction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction) ProtectionRelayFunctionOrBuilder { private static final long serialVersionUID = 0L; // Use ProtectionRelayFunction.newBuilder() to construct. private ProtectionRelayFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtectionRelayFunction() { model_ = ""; timeLimits_ = emptyDoubleList(); thresholds_ = java.util.Collections.emptyList(); protectionKind_ = 0; protectedSwitchMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); powerDirection_ = 0; sensorMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); schemeMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtectionRelayFunction(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.class, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.Builder.class); } private int bitField0_; private int reclosingCase_ = 0; @SuppressWarnings("serial") private java.lang.Object reclosing_; public enum ReclosingCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RECLOSINGNULL(3), RECLOSINGSET(4), RECLOSING_NOT_SET(0); private final int value; private ReclosingCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ReclosingCase valueOf(int value) { return forNumber(value); } public static ReclosingCase forNumber(int value) { switch (value) { case 3: return RECLOSINGNULL; case 4: return RECLOSINGSET; case 0: return RECLOSING_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReclosingCase getReclosingCase() { return ReclosingCase.forNumber( reclosingCase_); } private int directableCase_ = 0; @SuppressWarnings("serial") private java.lang.Object directable_; public enum DirectableCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DIRECTABLENULL(10), DIRECTABLESET(11), DIRECTABLE_NOT_SET(0); private final int value; private DirectableCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DirectableCase valueOf(int value) { return forNumber(value); } public static DirectableCase forNumber(int value) { switch (value) { case 10: return DIRECTABLENULL; case 11: return DIRECTABLESET; case 0: return DIRECTABLE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DirectableCase getDirectableCase() { return DirectableCase.forNumber( directableCase_); } public static final int PSR_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr_; /** *
   **
   * The PowerSystemResource fields for this ProtectionRelayFunction.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return Whether the psr field is set. */ @java.lang.Override public boolean hasPsr() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The PowerSystemResource fields for this ProtectionRelayFunction.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return The psr. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource getPsr() { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } /** *
   **
   * The PowerSystemResource fields for this ProtectionRelayFunction.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder getPsrOrBuilder() { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } public static final int MODEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** *
   **
   * The protection equipment type name (manufacturer information)
   * 
* * string model = 2; * @return The model. */ @java.lang.Override public java.lang.String getModel() { java.lang.Object ref = model_; 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(); model_ = s; return s; } } /** *
   **
   * The protection equipment type name (manufacturer information)
   * 
* * string model = 2; * @return The bytes for model. */ @java.lang.Override public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); model_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RECLOSINGNULL_FIELD_NUMBER = 3; /** * .google.protobuf.NullValue reclosingNull = 3; * @return Whether the reclosingNull field is set. */ public boolean hasReclosingNull() { return reclosingCase_ == 3; } /** * .google.protobuf.NullValue reclosingNull = 3; * @return The enum numeric value on the wire for reclosingNull. */ public int getReclosingNullValue() { if (reclosingCase_ == 3) { return (java.lang.Integer) reclosing_; } return 0; } /** * .google.protobuf.NullValue reclosingNull = 3; * @return The reclosingNull. */ public com.google.protobuf.NullValue getReclosingNull() { if (reclosingCase_ == 3) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) reclosing_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } public static final int RECLOSINGSET_FIELD_NUMBER = 4; /** * bool reclosingSet = 4; * @return Whether the reclosingSet field is set. */ @java.lang.Override public boolean hasReclosingSet() { return reclosingCase_ == 4; } /** * bool reclosingSet = 4; * @return The reclosingSet. */ @java.lang.Override public boolean getReclosingSet() { if (reclosingCase_ == 4) { return (java.lang.Boolean) reclosing_; } return false; } public static final int TIMELIMITS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList timeLimits_ = emptyDoubleList(); /** *
   **
   * The time limits (in seconds) for this relay function.
   * Order of entries corresponds to the order of entries in thresholds.
   * 
* * repeated double timeLimits = 5; * @return A list containing the timeLimits. */ @java.lang.Override public java.util.List getTimeLimitsList() { return timeLimits_; } /** *
   **
   * The time limits (in seconds) for this relay function.
   * Order of entries corresponds to the order of entries in thresholds.
   * 
* * repeated double timeLimits = 5; * @return The count of timeLimits. */ public int getTimeLimitsCount() { return timeLimits_.size(); } /** *
   **
   * The time limits (in seconds) for this relay function.
   * Order of entries corresponds to the order of entries in thresholds.
   * 
* * repeated double timeLimits = 5; * @param index The index of the element to return. * @return The timeLimits at the given index. */ public double getTimeLimits(int index) { return timeLimits_.getDouble(index); } private int timeLimitsMemoizedSerializedSize = -1; public static final int THRESHOLDS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List thresholds_; /** *
   **
   * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ @java.lang.Override public java.util.List getThresholdsList() { return thresholds_; } /** *
   **
   * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ @java.lang.Override public java.util.List getThresholdsOrBuilderList() { return thresholds_; } /** *
   **
   * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ @java.lang.Override public int getThresholdsCount() { return thresholds_.size(); } /** *
   **
   * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting getThresholds(int index) { return thresholds_.get(index); } /** *
   **
   * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
   * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.protection.RelaySettingOrBuilder getThresholdsOrBuilder( int index) { return thresholds_.get(index); } public static final int RELAYDELAYTIME_FIELD_NUMBER = 7; private double relayDelayTime_ = 0D; /** *
   **
   * The time delay from detection of abnormal conditions to relay operation in seconds.
   * 
* * double relayDelayTime = 7; * @return The relayDelayTime. */ @java.lang.Override public double getRelayDelayTime() { return relayDelayTime_; } public static final int PROTECTIONKIND_FIELD_NUMBER = 8; private int protectionKind_ = 0; /** *
   **
   * The kind of protection being provided by this ProtectionRelayFunction.
   * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 8; * @return The enum numeric value on the wire for protectionKind. */ @java.lang.Override public int getProtectionKindValue() { return protectionKind_; } /** *
   **
   * The kind of protection being provided by this ProtectionRelayFunction.
   * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 8; * @return The protectionKind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind getProtectionKind() { com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind result = com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.forNumber(protectionKind_); return result == null ? com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNRECOGNIZED : result; } public static final int PROTECTEDSWITCHMRIDS_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList protectedSwitchMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * The ProtectedSwitches operated by this ProtectionRelayFunction.
   * 
* * repeated string protectedSwitchMRIDs = 9; * @return A list containing the protectedSwitchMRIDs. */ public com.google.protobuf.ProtocolStringList getProtectedSwitchMRIDsList() { return protectedSwitchMRIDs_; } /** *
   **
   * The ProtectedSwitches operated by this ProtectionRelayFunction.
   * 
* * repeated string protectedSwitchMRIDs = 9; * @return The count of protectedSwitchMRIDs. */ public int getProtectedSwitchMRIDsCount() { return protectedSwitchMRIDs_.size(); } /** *
   **
   * The ProtectedSwitches operated by this ProtectionRelayFunction.
   * 
* * repeated string protectedSwitchMRIDs = 9; * @param index The index of the element to return. * @return The protectedSwitchMRIDs at the given index. */ public java.lang.String getProtectedSwitchMRIDs(int index) { return protectedSwitchMRIDs_.get(index); } /** *
   **
   * The ProtectedSwitches operated by this ProtectionRelayFunction.
   * 
* * repeated string protectedSwitchMRIDs = 9; * @param index The index of the value to return. * @return The bytes of the protectedSwitchMRIDs at the given index. */ public com.google.protobuf.ByteString getProtectedSwitchMRIDsBytes(int index) { return protectedSwitchMRIDs_.getByteString(index); } public static final int DIRECTABLENULL_FIELD_NUMBER = 10; /** * .google.protobuf.NullValue directableNull = 10; * @return Whether the directableNull field is set. */ public boolean hasDirectableNull() { return directableCase_ == 10; } /** * .google.protobuf.NullValue directableNull = 10; * @return The enum numeric value on the wire for directableNull. */ public int getDirectableNullValue() { if (directableCase_ == 10) { return (java.lang.Integer) directable_; } return 0; } /** * .google.protobuf.NullValue directableNull = 10; * @return The directableNull. */ public com.google.protobuf.NullValue getDirectableNull() { if (directableCase_ == 10) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) directable_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } public static final int DIRECTABLESET_FIELD_NUMBER = 11; /** * bool directableSet = 11; * @return Whether the directableSet field is set. */ @java.lang.Override public boolean hasDirectableSet() { return directableCase_ == 11; } /** * bool directableSet = 11; * @return The directableSet. */ @java.lang.Override public boolean getDirectableSet() { if (directableCase_ == 11) { return (java.lang.Boolean) directable_; } return false; } public static final int POWERDIRECTION_FIELD_NUMBER = 12; private int powerDirection_ = 0; /** *
   **
   * The flow of power direction used by this ProtectionRelayFunction.
   * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind powerDirection = 12; * @return The enum numeric value on the wire for powerDirection. */ @java.lang.Override public int getPowerDirectionValue() { return powerDirection_; } /** *
   **
   * The flow of power direction used by this ProtectionRelayFunction.
   * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind powerDirection = 12; * @return The powerDirection. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind getPowerDirection() { com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind result = com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind.forNumber(powerDirection_); return result == null ? com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind.UNRECOGNIZED : result; } public static final int SENSORMRIDS_FIELD_NUMBER = 13; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList sensorMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * The Sensors for this relay function.
   * 
* * repeated string sensorMRIDs = 13; * @return A list containing the sensorMRIDs. */ public com.google.protobuf.ProtocolStringList getSensorMRIDsList() { return sensorMRIDs_; } /** *
   **
   * The Sensors for this relay function.
   * 
* * repeated string sensorMRIDs = 13; * @return The count of sensorMRIDs. */ public int getSensorMRIDsCount() { return sensorMRIDs_.size(); } /** *
   **
   * The Sensors for this relay function.
   * 
* * repeated string sensorMRIDs = 13; * @param index The index of the element to return. * @return The sensorMRIDs at the given index. */ public java.lang.String getSensorMRIDs(int index) { return sensorMRIDs_.get(index); } /** *
   **
   * The Sensors for this relay function.
   * 
* * repeated string sensorMRIDs = 13; * @param index The index of the value to return. * @return The bytes of the sensorMRIDs at the given index. */ public com.google.protobuf.ByteString getSensorMRIDsBytes(int index) { return sensorMRIDs_.getByteString(index); } public static final int SCHEMEMRIDS_FIELD_NUMBER = 14; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList schemeMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * The schemes this function operates under.
   * 
* * repeated string schemeMRIDs = 14; * @return A list containing the schemeMRIDs. */ public com.google.protobuf.ProtocolStringList getSchemeMRIDsList() { return schemeMRIDs_; } /** *
   **
   * The schemes this function operates under.
   * 
* * repeated string schemeMRIDs = 14; * @return The count of schemeMRIDs. */ public int getSchemeMRIDsCount() { return schemeMRIDs_.size(); } /** *
   **
   * The schemes this function operates under.
   * 
* * repeated string schemeMRIDs = 14; * @param index The index of the element to return. * @return The schemeMRIDs at the given index. */ public java.lang.String getSchemeMRIDs(int index) { return schemeMRIDs_.get(index); } /** *
   **
   * The schemes this function operates under.
   * 
* * repeated string schemeMRIDs = 14; * @param index The index of the value to return. * @return The bytes of the schemeMRIDs at the given index. */ public com.google.protobuf.ByteString getSchemeMRIDsBytes(int index) { return schemeMRIDs_.getByteString(index); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPsr()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } if (reclosingCase_ == 3) { output.writeEnum(3, ((java.lang.Integer) reclosing_)); } if (reclosingCase_ == 4) { output.writeBool( 4, (boolean)((java.lang.Boolean) reclosing_)); } if (getTimeLimitsList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(timeLimitsMemoizedSerializedSize); } for (int i = 0; i < timeLimits_.size(); i++) { output.writeDoubleNoTag(timeLimits_.getDouble(i)); } for (int i = 0; i < thresholds_.size(); i++) { output.writeMessage(6, thresholds_.get(i)); } if (java.lang.Double.doubleToRawLongBits(relayDelayTime_) != 0) { output.writeDouble(7, relayDelayTime_); } if (protectionKind_ != com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNKNOWN.getNumber()) { output.writeEnum(8, protectionKind_); } for (int i = 0; i < protectedSwitchMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, protectedSwitchMRIDs_.getRaw(i)); } if (directableCase_ == 10) { output.writeEnum(10, ((java.lang.Integer) directable_)); } if (directableCase_ == 11) { output.writeBool( 11, (boolean)((java.lang.Boolean) directable_)); } if (powerDirection_ != com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind.UNKNOWN_DIRECTION.getNumber()) { output.writeEnum(12, powerDirection_); } for (int i = 0; i < sensorMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, sensorMRIDs_.getRaw(i)); } for (int i = 0; i < schemeMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, schemeMRIDs_.getRaw(i)); } 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, getPsr()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (reclosingCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, ((java.lang.Integer) reclosing_)); } if (reclosingCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 4, (boolean)((java.lang.Boolean) reclosing_)); } { int dataSize = 0; dataSize = 8 * getTimeLimitsList().size(); size += dataSize; if (!getTimeLimitsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } timeLimitsMemoizedSerializedSize = dataSize; } for (int i = 0; i < thresholds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, thresholds_.get(i)); } if (java.lang.Double.doubleToRawLongBits(relayDelayTime_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, relayDelayTime_); } if (protectionKind_ != com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, protectionKind_); } { int dataSize = 0; for (int i = 0; i < protectedSwitchMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(protectedSwitchMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getProtectedSwitchMRIDsList().size(); } if (directableCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, ((java.lang.Integer) directable_)); } if (directableCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 11, (boolean)((java.lang.Boolean) directable_)); } if (powerDirection_ != com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind.UNKNOWN_DIRECTION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, powerDirection_); } { int dataSize = 0; for (int i = 0; i < sensorMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(sensorMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getSensorMRIDsList().size(); } { int dataSize = 0; for (int i = 0; i < schemeMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(schemeMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getSchemeMRIDsList().size(); } 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.protection.ProtectionRelayFunction)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction other = (com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction) obj; if (hasPsr() != other.hasPsr()) return false; if (hasPsr()) { if (!getPsr() .equals(other.getPsr())) return false; } if (!getModel() .equals(other.getModel())) return false; if (!getTimeLimitsList() .equals(other.getTimeLimitsList())) return false; if (!getThresholdsList() .equals(other.getThresholdsList())) return false; if (java.lang.Double.doubleToLongBits(getRelayDelayTime()) != java.lang.Double.doubleToLongBits( other.getRelayDelayTime())) return false; if (protectionKind_ != other.protectionKind_) return false; if (!getProtectedSwitchMRIDsList() .equals(other.getProtectedSwitchMRIDsList())) return false; if (powerDirection_ != other.powerDirection_) return false; if (!getSensorMRIDsList() .equals(other.getSensorMRIDsList())) return false; if (!getSchemeMRIDsList() .equals(other.getSchemeMRIDsList())) return false; if (!getReclosingCase().equals(other.getReclosingCase())) return false; switch (reclosingCase_) { case 3: if (getReclosingNullValue() != other.getReclosingNullValue()) return false; break; case 4: if (getReclosingSet() != other.getReclosingSet()) return false; break; case 0: default: } if (!getDirectableCase().equals(other.getDirectableCase())) return false; switch (directableCase_) { case 10: if (getDirectableNullValue() != other.getDirectableNullValue()) return false; break; case 11: if (getDirectableSet() != other.getDirectableSet()) return false; break; case 0: default: } 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 (hasPsr()) { hash = (37 * hash) + PSR_FIELD_NUMBER; hash = (53 * hash) + getPsr().hashCode(); } hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); if (getTimeLimitsCount() > 0) { hash = (37 * hash) + TIMELIMITS_FIELD_NUMBER; hash = (53 * hash) + getTimeLimitsList().hashCode(); } if (getThresholdsCount() > 0) { hash = (37 * hash) + THRESHOLDS_FIELD_NUMBER; hash = (53 * hash) + getThresholdsList().hashCode(); } hash = (37 * hash) + RELAYDELAYTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRelayDelayTime())); hash = (37 * hash) + PROTECTIONKIND_FIELD_NUMBER; hash = (53 * hash) + protectionKind_; if (getProtectedSwitchMRIDsCount() > 0) { hash = (37 * hash) + PROTECTEDSWITCHMRIDS_FIELD_NUMBER; hash = (53 * hash) + getProtectedSwitchMRIDsList().hashCode(); } hash = (37 * hash) + POWERDIRECTION_FIELD_NUMBER; hash = (53 * hash) + powerDirection_; if (getSensorMRIDsCount() > 0) { hash = (37 * hash) + SENSORMRIDS_FIELD_NUMBER; hash = (53 * hash) + getSensorMRIDsList().hashCode(); } if (getSchemeMRIDsCount() > 0) { hash = (37 * hash) + SCHEMEMRIDS_FIELD_NUMBER; hash = (53 * hash) + getSchemeMRIDsList().hashCode(); } switch (reclosingCase_) { case 3: hash = (37 * hash) + RECLOSINGNULL_FIELD_NUMBER; hash = (53 * hash) + getReclosingNullValue(); break; case 4: hash = (37 * hash) + RECLOSINGSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReclosingSet()); break; case 0: default: } switch (directableCase_) { case 10: hash = (37 * hash) + DIRECTABLENULL_FIELD_NUMBER; hash = (53 * hash) + getDirectableNullValue(); break; case 11: hash = (37 * hash) + DIRECTABLESET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDirectableSet()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction 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.protection.ProtectionRelayFunction 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 function that a relay implements to protect equipment.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction) com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayFunction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayFunction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.class, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPsrFieldBuilder(); getThresholdsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; psr_ = null; if (psrBuilder_ != null) { psrBuilder_.dispose(); psrBuilder_ = null; } model_ = ""; timeLimits_ = emptyDoubleList(); if (thresholdsBuilder_ == null) { thresholds_ = java.util.Collections.emptyList(); } else { thresholds_ = null; thresholdsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); relayDelayTime_ = 0D; protectionKind_ = 0; protectedSwitchMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); powerDirection_ = 0; sensorMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); schemeMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); reclosingCase_ = 0; reclosing_ = null; directableCase_ = 0; directable_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayFunction_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction build() { com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction buildPartial() { com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction result = new com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction result) { if (thresholdsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { thresholds_ = java.util.Collections.unmodifiableList(thresholds_); bitField0_ = (bitField0_ & ~0x00000020); } result.thresholds_ = thresholds_; } else { result.thresholds_ = thresholdsBuilder_.build(); } } private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.psr_ = psrBuilder_ == null ? psr_ : psrBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.model_ = model_; } if (((from_bitField0_ & 0x00000010) != 0)) { timeLimits_.makeImmutable(); result.timeLimits_ = timeLimits_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.relayDelayTime_ = relayDelayTime_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.protectionKind_ = protectionKind_; } if (((from_bitField0_ & 0x00000100) != 0)) { protectedSwitchMRIDs_.makeImmutable(); result.protectedSwitchMRIDs_ = protectedSwitchMRIDs_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.powerDirection_ = powerDirection_; } if (((from_bitField0_ & 0x00001000) != 0)) { sensorMRIDs_.makeImmutable(); result.sensorMRIDs_ = sensorMRIDs_; } if (((from_bitField0_ & 0x00002000) != 0)) { schemeMRIDs_.makeImmutable(); result.schemeMRIDs_ = schemeMRIDs_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction result) { result.reclosingCase_ = reclosingCase_; result.reclosing_ = this.reclosing_; result.directableCase_ = directableCase_; result.directable_ = this.directable_; } @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.protection.ProtectionRelayFunction) { return mergeFrom((com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction other) { if (other == com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.getDefaultInstance()) return this; if (other.hasPsr()) { mergePsr(other.getPsr()); } if (!other.getModel().isEmpty()) { model_ = other.model_; bitField0_ |= 0x00000002; onChanged(); } if (!other.timeLimits_.isEmpty()) { if (timeLimits_.isEmpty()) { timeLimits_ = other.timeLimits_; timeLimits_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureTimeLimitsIsMutable(); timeLimits_.addAll(other.timeLimits_); } onChanged(); } if (thresholdsBuilder_ == null) { if (!other.thresholds_.isEmpty()) { if (thresholds_.isEmpty()) { thresholds_ = other.thresholds_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureThresholdsIsMutable(); thresholds_.addAll(other.thresholds_); } onChanged(); } } else { if (!other.thresholds_.isEmpty()) { if (thresholdsBuilder_.isEmpty()) { thresholdsBuilder_.dispose(); thresholdsBuilder_ = null; thresholds_ = other.thresholds_; bitField0_ = (bitField0_ & ~0x00000020); thresholdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getThresholdsFieldBuilder() : null; } else { thresholdsBuilder_.addAllMessages(other.thresholds_); } } } if (other.getRelayDelayTime() != 0D) { setRelayDelayTime(other.getRelayDelayTime()); } if (other.protectionKind_ != 0) { setProtectionKindValue(other.getProtectionKindValue()); } if (!other.protectedSwitchMRIDs_.isEmpty()) { if (protectedSwitchMRIDs_.isEmpty()) { protectedSwitchMRIDs_ = other.protectedSwitchMRIDs_; bitField0_ |= 0x00000100; } else { ensureProtectedSwitchMRIDsIsMutable(); protectedSwitchMRIDs_.addAll(other.protectedSwitchMRIDs_); } onChanged(); } if (other.powerDirection_ != 0) { setPowerDirectionValue(other.getPowerDirectionValue()); } if (!other.sensorMRIDs_.isEmpty()) { if (sensorMRIDs_.isEmpty()) { sensorMRIDs_ = other.sensorMRIDs_; bitField0_ |= 0x00001000; } else { ensureSensorMRIDsIsMutable(); sensorMRIDs_.addAll(other.sensorMRIDs_); } onChanged(); } if (!other.schemeMRIDs_.isEmpty()) { if (schemeMRIDs_.isEmpty()) { schemeMRIDs_ = other.schemeMRIDs_; bitField0_ |= 0x00002000; } else { ensureSchemeMRIDsIsMutable(); schemeMRIDs_.addAll(other.schemeMRIDs_); } onChanged(); } switch (other.getReclosingCase()) { case RECLOSINGNULL: { setReclosingNullValue(other.getReclosingNullValue()); break; } case RECLOSINGSET: { setReclosingSet(other.getReclosingSet()); break; } case RECLOSING_NOT_SET: { break; } } switch (other.getDirectableCase()) { case DIRECTABLENULL: { setDirectableNullValue(other.getDirectableNullValue()); break; } case DIRECTABLESET: { setDirectableSet(other.getDirectableSet()); break; } case DIRECTABLE_NOT_SET: { break; } } 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( getPsrFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { model_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { int rawValue = input.readEnum(); reclosingCase_ = 3; reclosing_ = rawValue; break; } // case 24 case 32: { reclosing_ = input.readBool(); reclosingCase_ = 4; break; } // case 32 case 41: { double v = input.readDouble(); ensureTimeLimitsIsMutable(); timeLimits_.addDouble(v); break; } // case 41 case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureTimeLimitsIsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { timeLimits_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 42 case 50: { com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting m = input.readMessage( com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.parser(), extensionRegistry); if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); thresholds_.add(m); } else { thresholdsBuilder_.addMessage(m); } break; } // case 50 case 57: { relayDelayTime_ = input.readDouble(); bitField0_ |= 0x00000040; break; } // case 57 case 64: { protectionKind_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 case 74: { java.lang.String s = input.readStringRequireUtf8(); ensureProtectedSwitchMRIDsIsMutable(); protectedSwitchMRIDs_.add(s); break; } // case 74 case 80: { int rawValue = input.readEnum(); directableCase_ = 10; directable_ = rawValue; break; } // case 80 case 88: { directable_ = input.readBool(); directableCase_ = 11; break; } // case 88 case 96: { powerDirection_ = input.readEnum(); bitField0_ |= 0x00000800; break; } // case 96 case 106: { java.lang.String s = input.readStringRequireUtf8(); ensureSensorMRIDsIsMutable(); sensorMRIDs_.add(s); break; } // case 106 case 114: { java.lang.String s = input.readStringRequireUtf8(); ensureSchemeMRIDsIsMutable(); schemeMRIDs_.add(s); break; } // case 114 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 reclosingCase_ = 0; private java.lang.Object reclosing_; public ReclosingCase getReclosingCase() { return ReclosingCase.forNumber( reclosingCase_); } public Builder clearReclosing() { reclosingCase_ = 0; reclosing_ = null; onChanged(); return this; } private int directableCase_ = 0; private java.lang.Object directable_; public DirectableCase getDirectableCase() { return DirectableCase.forNumber( directableCase_); } public Builder clearDirectable() { directableCase_ = 0; directable_ = null; onChanged(); return this; } private int bitField0_; private com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder> psrBuilder_; /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return Whether the psr field is set. */ public boolean hasPsr() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return The psr. */ public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource getPsr() { if (psrBuilder_ == null) { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } else { return psrBuilder_.getMessage(); } } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder setPsr(com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource value) { if (psrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } psr_ = value; } else { psrBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder setPsr( com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder builderForValue) { if (psrBuilder_ == null) { psr_ = builderForValue.build(); } else { psrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder mergePsr(com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource value) { if (psrBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && psr_ != null && psr_ != com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance()) { getPsrBuilder().mergeFrom(value); } else { psr_ = value; } } else { psrBuilder_.mergeFrom(value); } if (psr_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder clearPsr() { bitField0_ = (bitField0_ & ~0x00000001); psr_ = null; if (psrBuilder_ != null) { psrBuilder_.dispose(); psrBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder getPsrBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPsrFieldBuilder().getBuilder(); } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder getPsrOrBuilder() { if (psrBuilder_ != null) { return psrBuilder_.getMessageOrBuilder(); } else { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } } /** *
     **
     * The PowerSystemResource fields for this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder> getPsrFieldBuilder() { if (psrBuilder_ == null) { psrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder>( getPsr(), getParentForChildren(), isClean()); psr_ = null; } return psrBuilder_; } private java.lang.Object model_ = ""; /** *
     **
     * The protection equipment type name (manufacturer information)
     * 
* * string model = 2; * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * The protection equipment type name (manufacturer information)
     * 
* * string model = 2; * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); model_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * The protection equipment type name (manufacturer information)
     * 
* * string model = 2; * @param value The model to set. * @return This builder for chaining. */ public Builder setModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The protection equipment type name (manufacturer information)
     * 
* * string model = 2; * @return This builder for chaining. */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * The protection equipment type name (manufacturer information)
     * 
* * string model = 2; * @param value The bytes for model to set. * @return This builder for chaining. */ public Builder setModelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .google.protobuf.NullValue reclosingNull = 3; * @return Whether the reclosingNull field is set. */ @java.lang.Override public boolean hasReclosingNull() { return reclosingCase_ == 3; } /** * .google.protobuf.NullValue reclosingNull = 3; * @return The enum numeric value on the wire for reclosingNull. */ @java.lang.Override public int getReclosingNullValue() { if (reclosingCase_ == 3) { return ((java.lang.Integer) reclosing_).intValue(); } return 0; } /** * .google.protobuf.NullValue reclosingNull = 3; * @param value The enum numeric value on the wire for reclosingNull to set. * @return This builder for chaining. */ public Builder setReclosingNullValue(int value) { reclosingCase_ = 3; reclosing_ = value; onChanged(); return this; } /** * .google.protobuf.NullValue reclosingNull = 3; * @return The reclosingNull. */ @java.lang.Override public com.google.protobuf.NullValue getReclosingNull() { if (reclosingCase_ == 3) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) reclosing_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } /** * .google.protobuf.NullValue reclosingNull = 3; * @param value The reclosingNull to set. * @return This builder for chaining. */ public Builder setReclosingNull(com.google.protobuf.NullValue value) { if (value == null) { throw new NullPointerException(); } reclosingCase_ = 3; reclosing_ = value.getNumber(); onChanged(); return this; } /** * .google.protobuf.NullValue reclosingNull = 3; * @return This builder for chaining. */ public Builder clearReclosingNull() { if (reclosingCase_ == 3) { reclosingCase_ = 0; reclosing_ = null; onChanged(); } return this; } /** * bool reclosingSet = 4; * @return Whether the reclosingSet field is set. */ public boolean hasReclosingSet() { return reclosingCase_ == 4; } /** * bool reclosingSet = 4; * @return The reclosingSet. */ public boolean getReclosingSet() { if (reclosingCase_ == 4) { return (java.lang.Boolean) reclosing_; } return false; } /** * bool reclosingSet = 4; * @param value The reclosingSet to set. * @return This builder for chaining. */ public Builder setReclosingSet(boolean value) { reclosingCase_ = 4; reclosing_ = value; onChanged(); return this; } /** * bool reclosingSet = 4; * @return This builder for chaining. */ public Builder clearReclosingSet() { if (reclosingCase_ == 4) { reclosingCase_ = 0; reclosing_ = null; onChanged(); } return this; } private com.google.protobuf.Internal.DoubleList timeLimits_ = emptyDoubleList(); private void ensureTimeLimitsIsMutable() { if (!timeLimits_.isModifiable()) { timeLimits_ = makeMutableCopy(timeLimits_); } bitField0_ |= 0x00000010; } private void ensureTimeLimitsIsMutable(int capacity) { if (!timeLimits_.isModifiable()) { timeLimits_ = makeMutableCopy(timeLimits_, capacity); } bitField0_ |= 0x00000010; } /** *
     **
     * The time limits (in seconds) for this relay function.
     * Order of entries corresponds to the order of entries in thresholds.
     * 
* * repeated double timeLimits = 5; * @return A list containing the timeLimits. */ public java.util.List getTimeLimitsList() { timeLimits_.makeImmutable(); return timeLimits_; } /** *
     **
     * The time limits (in seconds) for this relay function.
     * Order of entries corresponds to the order of entries in thresholds.
     * 
* * repeated double timeLimits = 5; * @return The count of timeLimits. */ public int getTimeLimitsCount() { return timeLimits_.size(); } /** *
     **
     * The time limits (in seconds) for this relay function.
     * Order of entries corresponds to the order of entries in thresholds.
     * 
* * repeated double timeLimits = 5; * @param index The index of the element to return. * @return The timeLimits at the given index. */ public double getTimeLimits(int index) { return timeLimits_.getDouble(index); } /** *
     **
     * The time limits (in seconds) for this relay function.
     * Order of entries corresponds to the order of entries in thresholds.
     * 
* * repeated double timeLimits = 5; * @param index The index to set the value at. * @param value The timeLimits to set. * @return This builder for chaining. */ public Builder setTimeLimits( int index, double value) { ensureTimeLimitsIsMutable(); timeLimits_.setDouble(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The time limits (in seconds) for this relay function.
     * Order of entries corresponds to the order of entries in thresholds.
     * 
* * repeated double timeLimits = 5; * @param value The timeLimits to add. * @return This builder for chaining. */ public Builder addTimeLimits(double value) { ensureTimeLimitsIsMutable(); timeLimits_.addDouble(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The time limits (in seconds) for this relay function.
     * Order of entries corresponds to the order of entries in thresholds.
     * 
* * repeated double timeLimits = 5; * @param values The timeLimits to add. * @return This builder for chaining. */ public Builder addAllTimeLimits( java.lang.Iterable values) { ensureTimeLimitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timeLimits_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The time limits (in seconds) for this relay function.
     * Order of entries corresponds to the order of entries in thresholds.
     * 
* * repeated double timeLimits = 5; * @return This builder for chaining. */ public Builder clearTimeLimits() { timeLimits_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List thresholds_ = java.util.Collections.emptyList(); private void ensureThresholdsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { thresholds_ = new java.util.ArrayList(thresholds_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder, com.zepben.protobuf.cim.iec61970.base.protection.RelaySettingOrBuilder> thresholdsBuilder_; /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public java.util.List getThresholdsList() { if (thresholdsBuilder_ == null) { return java.util.Collections.unmodifiableList(thresholds_); } else { return thresholdsBuilder_.getMessageList(); } } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public int getThresholdsCount() { if (thresholdsBuilder_ == null) { return thresholds_.size(); } else { return thresholdsBuilder_.getCount(); } } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting getThresholds(int index) { if (thresholdsBuilder_ == null) { return thresholds_.get(index); } else { return thresholdsBuilder_.getMessage(index); } } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder setThresholds( int index, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting value) { if (thresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureThresholdsIsMutable(); thresholds_.set(index, value); onChanged(); } else { thresholdsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder setThresholds( int index, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder builderForValue) { if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); thresholds_.set(index, builderForValue.build()); onChanged(); } else { thresholdsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder addThresholds(com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting value) { if (thresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureThresholdsIsMutable(); thresholds_.add(value); onChanged(); } else { thresholdsBuilder_.addMessage(value); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder addThresholds( int index, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting value) { if (thresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureThresholdsIsMutable(); thresholds_.add(index, value); onChanged(); } else { thresholdsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder addThresholds( com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder builderForValue) { if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); thresholds_.add(builderForValue.build()); onChanged(); } else { thresholdsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder addThresholds( int index, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder builderForValue) { if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); thresholds_.add(index, builderForValue.build()); onChanged(); } else { thresholdsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder addAllThresholds( java.lang.Iterable values) { if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, thresholds_); onChanged(); } else { thresholdsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder clearThresholds() { if (thresholdsBuilder_ == null) { thresholds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { thresholdsBuilder_.clear(); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public Builder removeThresholds(int index) { if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); thresholds_.remove(index); onChanged(); } else { thresholdsBuilder_.remove(index); } return this; } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder getThresholdsBuilder( int index) { return getThresholdsFieldBuilder().getBuilder(index); } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public com.zepben.protobuf.cim.iec61970.base.protection.RelaySettingOrBuilder getThresholdsOrBuilder( int index) { if (thresholdsBuilder_ == null) { return thresholds_.get(index); } else { return thresholdsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public java.util.List getThresholdsOrBuilderList() { if (thresholdsBuilder_ != null) { return thresholdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(thresholds_); } } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder addThresholdsBuilder() { return getThresholdsFieldBuilder().addBuilder( com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.getDefaultInstance()); } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder addThresholdsBuilder( int index) { return getThresholdsFieldBuilder().addBuilder( index, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.getDefaultInstance()); } /** *
     **
     * The thresholds for this relay function. The order of thresholds corresponds to the order of time limits.
     * 
* * repeated .zepben.protobuf.cim.iec61970.base.protection.RelaySetting thresholds = 6; */ public java.util.List getThresholdsBuilderList() { return getThresholdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder, com.zepben.protobuf.cim.iec61970.base.protection.RelaySettingOrBuilder> getThresholdsFieldBuilder() { if (thresholdsBuilder_ == null) { thresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting, com.zepben.protobuf.cim.iec61970.base.protection.RelaySetting.Builder, com.zepben.protobuf.cim.iec61970.base.protection.RelaySettingOrBuilder>( thresholds_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); thresholds_ = null; } return thresholdsBuilder_; } private double relayDelayTime_ ; /** *
     **
     * The time delay from detection of abnormal conditions to relay operation in seconds.
     * 
* * double relayDelayTime = 7; * @return The relayDelayTime. */ @java.lang.Override public double getRelayDelayTime() { return relayDelayTime_; } /** *
     **
     * The time delay from detection of abnormal conditions to relay operation in seconds.
     * 
* * double relayDelayTime = 7; * @param value The relayDelayTime to set. * @return This builder for chaining. */ public Builder setRelayDelayTime(double value) { relayDelayTime_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * The time delay from detection of abnormal conditions to relay operation in seconds.
     * 
* * double relayDelayTime = 7; * @return This builder for chaining. */ public Builder clearRelayDelayTime() { bitField0_ = (bitField0_ & ~0x00000040); relayDelayTime_ = 0D; onChanged(); return this; } private int protectionKind_ = 0; /** *
     **
     * The kind of protection being provided by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 8; * @return The enum numeric value on the wire for protectionKind. */ @java.lang.Override public int getProtectionKindValue() { return protectionKind_; } /** *
     **
     * The kind of protection being provided by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 8; * @param value The enum numeric value on the wire for protectionKind to set. * @return This builder for chaining. */ public Builder setProtectionKindValue(int value) { protectionKind_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * The kind of protection being provided by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 8; * @return The protectionKind. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind getProtectionKind() { com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind result = com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.forNumber(protectionKind_); return result == null ? com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNRECOGNIZED : result; } /** *
     **
     * The kind of protection being provided by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 8; * @param value The protectionKind to set. * @return This builder for chaining. */ public Builder setProtectionKind(com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; protectionKind_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The kind of protection being provided by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 8; * @return This builder for chaining. */ public Builder clearProtectionKind() { bitField0_ = (bitField0_ & ~0x00000080); protectionKind_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList protectedSwitchMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureProtectedSwitchMRIDsIsMutable() { if (!protectedSwitchMRIDs_.isModifiable()) { protectedSwitchMRIDs_ = new com.google.protobuf.LazyStringArrayList(protectedSwitchMRIDs_); } bitField0_ |= 0x00000100; } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @return A list containing the protectedSwitchMRIDs. */ public com.google.protobuf.ProtocolStringList getProtectedSwitchMRIDsList() { protectedSwitchMRIDs_.makeImmutable(); return protectedSwitchMRIDs_; } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @return The count of protectedSwitchMRIDs. */ public int getProtectedSwitchMRIDsCount() { return protectedSwitchMRIDs_.size(); } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @param index The index of the element to return. * @return The protectedSwitchMRIDs at the given index. */ public java.lang.String getProtectedSwitchMRIDs(int index) { return protectedSwitchMRIDs_.get(index); } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @param index The index of the value to return. * @return The bytes of the protectedSwitchMRIDs at the given index. */ public com.google.protobuf.ByteString getProtectedSwitchMRIDsBytes(int index) { return protectedSwitchMRIDs_.getByteString(index); } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @param index The index to set the value at. * @param value The protectedSwitchMRIDs to set. * @return This builder for chaining. */ public Builder setProtectedSwitchMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProtectedSwitchMRIDsIsMutable(); protectedSwitchMRIDs_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @param value The protectedSwitchMRIDs to add. * @return This builder for chaining. */ public Builder addProtectedSwitchMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProtectedSwitchMRIDsIsMutable(); protectedSwitchMRIDs_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @param values The protectedSwitchMRIDs to add. * @return This builder for chaining. */ public Builder addAllProtectedSwitchMRIDs( java.lang.Iterable values) { ensureProtectedSwitchMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, protectedSwitchMRIDs_); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @return This builder for chaining. */ public Builder clearProtectedSwitchMRIDs() { protectedSwitchMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** *
     **
     * The ProtectedSwitches operated by this ProtectionRelayFunction.
     * 
* * repeated string protectedSwitchMRIDs = 9; * @param value The bytes of the protectedSwitchMRIDs to add. * @return This builder for chaining. */ public Builder addProtectedSwitchMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProtectedSwitchMRIDsIsMutable(); protectedSwitchMRIDs_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * .google.protobuf.NullValue directableNull = 10; * @return Whether the directableNull field is set. */ @java.lang.Override public boolean hasDirectableNull() { return directableCase_ == 10; } /** * .google.protobuf.NullValue directableNull = 10; * @return The enum numeric value on the wire for directableNull. */ @java.lang.Override public int getDirectableNullValue() { if (directableCase_ == 10) { return ((java.lang.Integer) directable_).intValue(); } return 0; } /** * .google.protobuf.NullValue directableNull = 10; * @param value The enum numeric value on the wire for directableNull to set. * @return This builder for chaining. */ public Builder setDirectableNullValue(int value) { directableCase_ = 10; directable_ = value; onChanged(); return this; } /** * .google.protobuf.NullValue directableNull = 10; * @return The directableNull. */ @java.lang.Override public com.google.protobuf.NullValue getDirectableNull() { if (directableCase_ == 10) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) directable_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } /** * .google.protobuf.NullValue directableNull = 10; * @param value The directableNull to set. * @return This builder for chaining. */ public Builder setDirectableNull(com.google.protobuf.NullValue value) { if (value == null) { throw new NullPointerException(); } directableCase_ = 10; directable_ = value.getNumber(); onChanged(); return this; } /** * .google.protobuf.NullValue directableNull = 10; * @return This builder for chaining. */ public Builder clearDirectableNull() { if (directableCase_ == 10) { directableCase_ = 0; directable_ = null; onChanged(); } return this; } /** * bool directableSet = 11; * @return Whether the directableSet field is set. */ public boolean hasDirectableSet() { return directableCase_ == 11; } /** * bool directableSet = 11; * @return The directableSet. */ public boolean getDirectableSet() { if (directableCase_ == 11) { return (java.lang.Boolean) directable_; } return false; } /** * bool directableSet = 11; * @param value The directableSet to set. * @return This builder for chaining. */ public Builder setDirectableSet(boolean value) { directableCase_ = 11; directable_ = value; onChanged(); return this; } /** * bool directableSet = 11; * @return This builder for chaining. */ public Builder clearDirectableSet() { if (directableCase_ == 11) { directableCase_ = 0; directable_ = null; onChanged(); } return this; } private int powerDirection_ = 0; /** *
     **
     * The flow of power direction used by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind powerDirection = 12; * @return The enum numeric value on the wire for powerDirection. */ @java.lang.Override public int getPowerDirectionValue() { return powerDirection_; } /** *
     **
     * The flow of power direction used by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind powerDirection = 12; * @param value The enum numeric value on the wire for powerDirection to set. * @return This builder for chaining. */ public Builder setPowerDirectionValue(int value) { powerDirection_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     **
     * The flow of power direction used by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind powerDirection = 12; * @return The powerDirection. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind getPowerDirection() { com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind result = com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind.forNumber(powerDirection_); return result == null ? com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind.UNRECOGNIZED : result; } /** *
     **
     * The flow of power direction used by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind powerDirection = 12; * @param value The powerDirection to set. * @return This builder for chaining. */ public Builder setPowerDirection(com.zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; powerDirection_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The flow of power direction used by this ProtectionRelayFunction.
     * 
* * .zepben.protobuf.cim.iec61970.infiec61970.protection.PowerDirectionKind powerDirection = 12; * @return This builder for chaining. */ public Builder clearPowerDirection() { bitField0_ = (bitField0_ & ~0x00000800); powerDirection_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList sensorMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSensorMRIDsIsMutable() { if (!sensorMRIDs_.isModifiable()) { sensorMRIDs_ = new com.google.protobuf.LazyStringArrayList(sensorMRIDs_); } bitField0_ |= 0x00001000; } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @return A list containing the sensorMRIDs. */ public com.google.protobuf.ProtocolStringList getSensorMRIDsList() { sensorMRIDs_.makeImmutable(); return sensorMRIDs_; } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @return The count of sensorMRIDs. */ public int getSensorMRIDsCount() { return sensorMRIDs_.size(); } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @param index The index of the element to return. * @return The sensorMRIDs at the given index. */ public java.lang.String getSensorMRIDs(int index) { return sensorMRIDs_.get(index); } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @param index The index of the value to return. * @return The bytes of the sensorMRIDs at the given index. */ public com.google.protobuf.ByteString getSensorMRIDsBytes(int index) { return sensorMRIDs_.getByteString(index); } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @param index The index to set the value at. * @param value The sensorMRIDs to set. * @return This builder for chaining. */ public Builder setSensorMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSensorMRIDsIsMutable(); sensorMRIDs_.set(index, value); bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @param value The sensorMRIDs to add. * @return This builder for chaining. */ public Builder addSensorMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSensorMRIDsIsMutable(); sensorMRIDs_.add(value); bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @param values The sensorMRIDs to add. * @return This builder for chaining. */ public Builder addAllSensorMRIDs( java.lang.Iterable values) { ensureSensorMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sensorMRIDs_); bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @return This builder for chaining. */ public Builder clearSensorMRIDs() { sensorMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00001000);; onChanged(); return this; } /** *
     **
     * The Sensors for this relay function.
     * 
* * repeated string sensorMRIDs = 13; * @param value The bytes of the sensorMRIDs to add. * @return This builder for chaining. */ public Builder addSensorMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSensorMRIDsIsMutable(); sensorMRIDs_.add(value); bitField0_ |= 0x00001000; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList schemeMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSchemeMRIDsIsMutable() { if (!schemeMRIDs_.isModifiable()) { schemeMRIDs_ = new com.google.protobuf.LazyStringArrayList(schemeMRIDs_); } bitField0_ |= 0x00002000; } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @return A list containing the schemeMRIDs. */ public com.google.protobuf.ProtocolStringList getSchemeMRIDsList() { schemeMRIDs_.makeImmutable(); return schemeMRIDs_; } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @return The count of schemeMRIDs. */ public int getSchemeMRIDsCount() { return schemeMRIDs_.size(); } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @param index The index of the element to return. * @return The schemeMRIDs at the given index. */ public java.lang.String getSchemeMRIDs(int index) { return schemeMRIDs_.get(index); } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @param index The index of the value to return. * @return The bytes of the schemeMRIDs at the given index. */ public com.google.protobuf.ByteString getSchemeMRIDsBytes(int index) { return schemeMRIDs_.getByteString(index); } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @param index The index to set the value at. * @param value The schemeMRIDs to set. * @return This builder for chaining. */ public Builder setSchemeMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSchemeMRIDsIsMutable(); schemeMRIDs_.set(index, value); bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @param value The schemeMRIDs to add. * @return This builder for chaining. */ public Builder addSchemeMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSchemeMRIDsIsMutable(); schemeMRIDs_.add(value); bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @param values The schemeMRIDs to add. * @return This builder for chaining. */ public Builder addAllSchemeMRIDs( java.lang.Iterable values) { ensureSchemeMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, schemeMRIDs_); bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @return This builder for chaining. */ public Builder clearSchemeMRIDs() { schemeMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00002000);; onChanged(); return this; } /** *
     **
     * The schemes this function operates under.
     * 
* * repeated string schemeMRIDs = 14; * @param value The bytes of the schemeMRIDs to add. * @return This builder for chaining. */ public Builder addSchemeMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSchemeMRIDsIsMutable(); schemeMRIDs_.add(value); bitField0_ |= 0x00002000; 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.protection.ProtectionRelayFunction) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction) private static final com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction(); } public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtectionRelayFunction 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.protection.ProtectionRelayFunction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy