com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/cim/iec61970/base/protection/DistanceRelay.proto
package com.zepben.protobuf.cim.iec61970.base.protection;
/**
*
**
* A protective device used in power systems that measures the impedance of a transmission line to determine the
* distance to a fault, and initiates circuit breaker tripping to isolate the faulty section and safeguard the power
* system.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.DistanceRelay}
*/
public final class DistanceRelay extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.protection.DistanceRelay)
DistanceRelayOrBuilder {
private static final long serialVersionUID = 0L;
// Use DistanceRelay.newBuilder() to construct.
private DistanceRelay(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DistanceRelay() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DistanceRelay();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelayOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_DistanceRelay_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelayOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_DistanceRelay_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay.class, com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay.Builder.class);
}
private int bitField0_;
public static final int PRF_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf_;
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
* @return Whether the prf field is set.
*/
@java.lang.Override
public boolean hasPrf() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
* @return The prf.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction getPrf() {
return prf_ == null ? com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.getDefaultInstance() : prf_;
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOrBuilder getPrfOrBuilder() {
return prf_ == null ? com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.getDefaultInstance() : prf_;
}
public static final int BACKWARDBLIND_FIELD_NUMBER = 2;
private double backwardBlind_ = 0D;
/**
*
**
* The reverse blind impedance (in ohms) that defines the area to be blinded in the opposite direction of the power
* flow.
*
*
* double backwardBlind = 2;
* @return The backwardBlind.
*/
@java.lang.Override
public double getBackwardBlind() {
return backwardBlind_;
}
public static final int BACKWARDREACH_FIELD_NUMBER = 3;
private double backwardReach_ = 0D;
/**
*
**
* The reverse reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* opposite direction of power flow for which the relay will provide protection.
*
*
* double backwardReach = 3;
* @return The backwardReach.
*/
@java.lang.Override
public double getBackwardReach() {
return backwardReach_;
}
public static final int BACKWARDREACTANCE_FIELD_NUMBER = 4;
private double backwardReactance_ = 0D;
/**
*
**
* The reverse reactance (in ohms) that determines the maximum distance along the transmission line in the opposite
* direction of power flow for which the relay will provide protection.
*
*
* double backwardReactance = 4;
* @return The backwardReactance.
*/
@java.lang.Override
public double getBackwardReactance() {
return backwardReactance_;
}
public static final int FORWARDBLIND_FIELD_NUMBER = 5;
private double forwardBlind_ = 0D;
/**
*
**
* The forward blind impedance (in ohms) that defines the area to be blinded in the direction of the power flow.
*
*
* double forwardBlind = 5;
* @return The forwardBlind.
*/
@java.lang.Override
public double getForwardBlind() {
return forwardBlind_;
}
public static final int FORWARDREACH_FIELD_NUMBER = 6;
private double forwardReach_ = 0D;
/**
*
**
* The forward reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* direction of power flow for which the relay will provide protection.
*
*
* double forwardReach = 6;
* @return The forwardReach.
*/
@java.lang.Override
public double getForwardReach() {
return forwardReach_;
}
public static final int FORWARDREACTANCE_FIELD_NUMBER = 7;
private double forwardReactance_ = 0D;
/**
*
**
* The forward reactance (in ohms) that determines the maximum distance along the transmission line in the direction
* of power flow for which the relay will provide protection.
*
*
* double forwardReactance = 7;
* @return The forwardReactance.
*/
@java.lang.Override
public double getForwardReactance() {
return forwardReactance_;
}
public static final int OPERATIONPHASEANGLE1_FIELD_NUMBER = 8;
private double operationPhaseAngle1_ = 0D;
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 1 relay.
*
*
* double operationPhaseAngle1 = 8;
* @return The operationPhaseAngle1.
*/
@java.lang.Override
public double getOperationPhaseAngle1() {
return operationPhaseAngle1_;
}
public static final int OPERATIONPHASEANGLE2_FIELD_NUMBER = 9;
private double operationPhaseAngle2_ = 0D;
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 2 relay.
*
*
* double operationPhaseAngle2 = 9;
* @return The operationPhaseAngle2.
*/
@java.lang.Override
public double getOperationPhaseAngle2() {
return operationPhaseAngle2_;
}
public static final int OPERATIONPHASEANGLE3_FIELD_NUMBER = 10;
private double operationPhaseAngle3_ = 0D;
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 3 relay.
*
*
* double operationPhaseAngle3 = 10;
* @return The operationPhaseAngle3.
*/
@java.lang.Override
public double getOperationPhaseAngle3() {
return operationPhaseAngle3_;
}
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, getPrf());
}
if (java.lang.Double.doubleToRawLongBits(backwardBlind_) != 0) {
output.writeDouble(2, backwardBlind_);
}
if (java.lang.Double.doubleToRawLongBits(backwardReach_) != 0) {
output.writeDouble(3, backwardReach_);
}
if (java.lang.Double.doubleToRawLongBits(backwardReactance_) != 0) {
output.writeDouble(4, backwardReactance_);
}
if (java.lang.Double.doubleToRawLongBits(forwardBlind_) != 0) {
output.writeDouble(5, forwardBlind_);
}
if (java.lang.Double.doubleToRawLongBits(forwardReach_) != 0) {
output.writeDouble(6, forwardReach_);
}
if (java.lang.Double.doubleToRawLongBits(forwardReactance_) != 0) {
output.writeDouble(7, forwardReactance_);
}
if (java.lang.Double.doubleToRawLongBits(operationPhaseAngle1_) != 0) {
output.writeDouble(8, operationPhaseAngle1_);
}
if (java.lang.Double.doubleToRawLongBits(operationPhaseAngle2_) != 0) {
output.writeDouble(9, operationPhaseAngle2_);
}
if (java.lang.Double.doubleToRawLongBits(operationPhaseAngle3_) != 0) {
output.writeDouble(10, operationPhaseAngle3_);
}
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, getPrf());
}
if (java.lang.Double.doubleToRawLongBits(backwardBlind_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, backwardBlind_);
}
if (java.lang.Double.doubleToRawLongBits(backwardReach_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, backwardReach_);
}
if (java.lang.Double.doubleToRawLongBits(backwardReactance_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, backwardReactance_);
}
if (java.lang.Double.doubleToRawLongBits(forwardBlind_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, forwardBlind_);
}
if (java.lang.Double.doubleToRawLongBits(forwardReach_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, forwardReach_);
}
if (java.lang.Double.doubleToRawLongBits(forwardReactance_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, forwardReactance_);
}
if (java.lang.Double.doubleToRawLongBits(operationPhaseAngle1_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, operationPhaseAngle1_);
}
if (java.lang.Double.doubleToRawLongBits(operationPhaseAngle2_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, operationPhaseAngle2_);
}
if (java.lang.Double.doubleToRawLongBits(operationPhaseAngle3_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, operationPhaseAngle3_);
}
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.DistanceRelay)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay other = (com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay) obj;
if (hasPrf() != other.hasPrf()) return false;
if (hasPrf()) {
if (!getPrf()
.equals(other.getPrf())) return false;
}
if (java.lang.Double.doubleToLongBits(getBackwardBlind())
!= java.lang.Double.doubleToLongBits(
other.getBackwardBlind())) return false;
if (java.lang.Double.doubleToLongBits(getBackwardReach())
!= java.lang.Double.doubleToLongBits(
other.getBackwardReach())) return false;
if (java.lang.Double.doubleToLongBits(getBackwardReactance())
!= java.lang.Double.doubleToLongBits(
other.getBackwardReactance())) return false;
if (java.lang.Double.doubleToLongBits(getForwardBlind())
!= java.lang.Double.doubleToLongBits(
other.getForwardBlind())) return false;
if (java.lang.Double.doubleToLongBits(getForwardReach())
!= java.lang.Double.doubleToLongBits(
other.getForwardReach())) return false;
if (java.lang.Double.doubleToLongBits(getForwardReactance())
!= java.lang.Double.doubleToLongBits(
other.getForwardReactance())) return false;
if (java.lang.Double.doubleToLongBits(getOperationPhaseAngle1())
!= java.lang.Double.doubleToLongBits(
other.getOperationPhaseAngle1())) return false;
if (java.lang.Double.doubleToLongBits(getOperationPhaseAngle2())
!= java.lang.Double.doubleToLongBits(
other.getOperationPhaseAngle2())) return false;
if (java.lang.Double.doubleToLongBits(getOperationPhaseAngle3())
!= java.lang.Double.doubleToLongBits(
other.getOperationPhaseAngle3())) 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 (hasPrf()) {
hash = (37 * hash) + PRF_FIELD_NUMBER;
hash = (53 * hash) + getPrf().hashCode();
}
hash = (37 * hash) + BACKWARDBLIND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBackwardBlind()));
hash = (37 * hash) + BACKWARDREACH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBackwardReach()));
hash = (37 * hash) + BACKWARDREACTANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBackwardReactance()));
hash = (37 * hash) + FORWARDBLIND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getForwardBlind()));
hash = (37 * hash) + FORWARDREACH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getForwardReach()));
hash = (37 * hash) + FORWARDREACTANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getForwardReactance()));
hash = (37 * hash) + OPERATIONPHASEANGLE1_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOperationPhaseAngle1()));
hash = (37 * hash) + OPERATIONPHASEANGLE2_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOperationPhaseAngle2()));
hash = (37 * hash) + OPERATIONPHASEANGLE3_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOperationPhaseAngle3()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay 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.DistanceRelay parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay 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.DistanceRelay parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay 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.DistanceRelay 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.DistanceRelay 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.DistanceRelay 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.DistanceRelay 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.DistanceRelay 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.DistanceRelay 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.DistanceRelay 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 protective device used in power systems that measures the impedance of a transmission line to determine the
* distance to a fault, and initiates circuit breaker tripping to isolate the faulty section and safeguard the power
* system.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.DistanceRelay}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.protection.DistanceRelay)
com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelayOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelayOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_DistanceRelay_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelayOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_DistanceRelay_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay.class, com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPrfFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
prf_ = null;
if (prfBuilder_ != null) {
prfBuilder_.dispose();
prfBuilder_ = null;
}
backwardBlind_ = 0D;
backwardReach_ = 0D;
backwardReactance_ = 0D;
forwardBlind_ = 0D;
forwardReach_ = 0D;
forwardReactance_ = 0D;
operationPhaseAngle1_ = 0D;
operationPhaseAngle2_ = 0D;
operationPhaseAngle3_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelayOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_DistanceRelay_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay build() {
com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay buildPartial() {
com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay result = new com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.prf_ = prfBuilder_ == null
? prf_
: prfBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.backwardBlind_ = backwardBlind_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.backwardReach_ = backwardReach_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.backwardReactance_ = backwardReactance_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.forwardBlind_ = forwardBlind_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.forwardReach_ = forwardReach_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.forwardReactance_ = forwardReactance_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.operationPhaseAngle1_ = operationPhaseAngle1_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.operationPhaseAngle2_ = operationPhaseAngle2_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.operationPhaseAngle3_ = operationPhaseAngle3_;
}
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.protection.DistanceRelay) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay other) {
if (other == com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay.getDefaultInstance()) return this;
if (other.hasPrf()) {
mergePrf(other.getPrf());
}
if (other.getBackwardBlind() != 0D) {
setBackwardBlind(other.getBackwardBlind());
}
if (other.getBackwardReach() != 0D) {
setBackwardReach(other.getBackwardReach());
}
if (other.getBackwardReactance() != 0D) {
setBackwardReactance(other.getBackwardReactance());
}
if (other.getForwardBlind() != 0D) {
setForwardBlind(other.getForwardBlind());
}
if (other.getForwardReach() != 0D) {
setForwardReach(other.getForwardReach());
}
if (other.getForwardReactance() != 0D) {
setForwardReactance(other.getForwardReactance());
}
if (other.getOperationPhaseAngle1() != 0D) {
setOperationPhaseAngle1(other.getOperationPhaseAngle1());
}
if (other.getOperationPhaseAngle2() != 0D) {
setOperationPhaseAngle2(other.getOperationPhaseAngle2());
}
if (other.getOperationPhaseAngle3() != 0D) {
setOperationPhaseAngle3(other.getOperationPhaseAngle3());
}
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(
getPrfFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
backwardBlind_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
backwardReach_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
backwardReactance_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
forwardBlind_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
forwardReach_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 49
case 57: {
forwardReactance_ = input.readDouble();
bitField0_ |= 0x00000040;
break;
} // case 57
case 65: {
operationPhaseAngle1_ = input.readDouble();
bitField0_ |= 0x00000080;
break;
} // case 65
case 73: {
operationPhaseAngle2_ = input.readDouble();
bitField0_ |= 0x00000100;
break;
} // case 73
case 81: {
operationPhaseAngle3_ = input.readDouble();
bitField0_ |= 0x00000200;
break;
} // case 81
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.protection.ProtectionRelayFunction prf_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.Builder, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOrBuilder> prfBuilder_;
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
* @return Whether the prf field is set.
*/
public boolean hasPrf() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
* @return The prf.
*/
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction getPrf() {
if (prfBuilder_ == null) {
return prf_ == null ? com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.getDefaultInstance() : prf_;
} else {
return prfBuilder_.getMessage();
}
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
public Builder setPrf(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction value) {
if (prfBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
prf_ = value;
} else {
prfBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
public Builder setPrf(
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.Builder builderForValue) {
if (prfBuilder_ == null) {
prf_ = builderForValue.build();
} else {
prfBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
public Builder mergePrf(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction value) {
if (prfBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
prf_ != null &&
prf_ != com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.getDefaultInstance()) {
getPrfBuilder().mergeFrom(value);
} else {
prf_ = value;
}
} else {
prfBuilder_.mergeFrom(value);
}
if (prf_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
public Builder clearPrf() {
bitField0_ = (bitField0_ & ~0x00000001);
prf_ = null;
if (prfBuilder_ != null) {
prfBuilder_.dispose();
prfBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.Builder getPrfBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPrfFieldBuilder().getBuilder();
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOrBuilder getPrfOrBuilder() {
if (prfBuilder_ != null) {
return prfBuilder_.getMessageOrBuilder();
} else {
return prf_ == null ?
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.getDefaultInstance() : prf_;
}
}
/**
*
**
* The PowerSystemResource fields for this VoltageRelay.
*
*
* .zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction prf = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.Builder, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOrBuilder>
getPrfFieldBuilder() {
if (prfBuilder_ == null) {
prfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunction.Builder, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayFunctionOrBuilder>(
getPrf(),
getParentForChildren(),
isClean());
prf_ = null;
}
return prfBuilder_;
}
private double backwardBlind_ ;
/**
*
**
* The reverse blind impedance (in ohms) that defines the area to be blinded in the opposite direction of the power
* flow.
*
*
* double backwardBlind = 2;
* @return The backwardBlind.
*/
@java.lang.Override
public double getBackwardBlind() {
return backwardBlind_;
}
/**
*
**
* The reverse blind impedance (in ohms) that defines the area to be blinded in the opposite direction of the power
* flow.
*
*
* double backwardBlind = 2;
* @param value The backwardBlind to set.
* @return This builder for chaining.
*/
public Builder setBackwardBlind(double value) {
backwardBlind_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The reverse blind impedance (in ohms) that defines the area to be blinded in the opposite direction of the power
* flow.
*
*
* double backwardBlind = 2;
* @return This builder for chaining.
*/
public Builder clearBackwardBlind() {
bitField0_ = (bitField0_ & ~0x00000002);
backwardBlind_ = 0D;
onChanged();
return this;
}
private double backwardReach_ ;
/**
*
**
* The reverse reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* opposite direction of power flow for which the relay will provide protection.
*
*
* double backwardReach = 3;
* @return The backwardReach.
*/
@java.lang.Override
public double getBackwardReach() {
return backwardReach_;
}
/**
*
**
* The reverse reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* opposite direction of power flow for which the relay will provide protection.
*
*
* double backwardReach = 3;
* @param value The backwardReach to set.
* @return This builder for chaining.
*/
public Builder setBackwardReach(double value) {
backwardReach_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The reverse reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* opposite direction of power flow for which the relay will provide protection.
*
*
* double backwardReach = 3;
* @return This builder for chaining.
*/
public Builder clearBackwardReach() {
bitField0_ = (bitField0_ & ~0x00000004);
backwardReach_ = 0D;
onChanged();
return this;
}
private double backwardReactance_ ;
/**
*
**
* The reverse reactance (in ohms) that determines the maximum distance along the transmission line in the opposite
* direction of power flow for which the relay will provide protection.
*
*
* double backwardReactance = 4;
* @return The backwardReactance.
*/
@java.lang.Override
public double getBackwardReactance() {
return backwardReactance_;
}
/**
*
**
* The reverse reactance (in ohms) that determines the maximum distance along the transmission line in the opposite
* direction of power flow for which the relay will provide protection.
*
*
* double backwardReactance = 4;
* @param value The backwardReactance to set.
* @return This builder for chaining.
*/
public Builder setBackwardReactance(double value) {
backwardReactance_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The reverse reactance (in ohms) that determines the maximum distance along the transmission line in the opposite
* direction of power flow for which the relay will provide protection.
*
*
* double backwardReactance = 4;
* @return This builder for chaining.
*/
public Builder clearBackwardReactance() {
bitField0_ = (bitField0_ & ~0x00000008);
backwardReactance_ = 0D;
onChanged();
return this;
}
private double forwardBlind_ ;
/**
*
**
* The forward blind impedance (in ohms) that defines the area to be blinded in the direction of the power flow.
*
*
* double forwardBlind = 5;
* @return The forwardBlind.
*/
@java.lang.Override
public double getForwardBlind() {
return forwardBlind_;
}
/**
*
**
* The forward blind impedance (in ohms) that defines the area to be blinded in the direction of the power flow.
*
*
* double forwardBlind = 5;
* @param value The forwardBlind to set.
* @return This builder for chaining.
*/
public Builder setForwardBlind(double value) {
forwardBlind_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The forward blind impedance (in ohms) that defines the area to be blinded in the direction of the power flow.
*
*
* double forwardBlind = 5;
* @return This builder for chaining.
*/
public Builder clearForwardBlind() {
bitField0_ = (bitField0_ & ~0x00000010);
forwardBlind_ = 0D;
onChanged();
return this;
}
private double forwardReach_ ;
/**
*
**
* The forward reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* direction of power flow for which the relay will provide protection.
*
*
* double forwardReach = 6;
* @return The forwardReach.
*/
@java.lang.Override
public double getForwardReach() {
return forwardReach_;
}
/**
*
**
* The forward reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* direction of power flow for which the relay will provide protection.
*
*
* double forwardReach = 6;
* @param value The forwardReach to set.
* @return This builder for chaining.
*/
public Builder setForwardReach(double value) {
forwardReach_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The forward reach impedance (in ohms) that determines the maximum distance along the transmission line in the
* direction of power flow for which the relay will provide protection.
*
*
* double forwardReach = 6;
* @return This builder for chaining.
*/
public Builder clearForwardReach() {
bitField0_ = (bitField0_ & ~0x00000020);
forwardReach_ = 0D;
onChanged();
return this;
}
private double forwardReactance_ ;
/**
*
**
* The forward reactance (in ohms) that determines the maximum distance along the transmission line in the direction
* of power flow for which the relay will provide protection.
*
*
* double forwardReactance = 7;
* @return The forwardReactance.
*/
@java.lang.Override
public double getForwardReactance() {
return forwardReactance_;
}
/**
*
**
* The forward reactance (in ohms) that determines the maximum distance along the transmission line in the direction
* of power flow for which the relay will provide protection.
*
*
* double forwardReactance = 7;
* @param value The forwardReactance to set.
* @return This builder for chaining.
*/
public Builder setForwardReactance(double value) {
forwardReactance_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* The forward reactance (in ohms) that determines the maximum distance along the transmission line in the direction
* of power flow for which the relay will provide protection.
*
*
* double forwardReactance = 7;
* @return This builder for chaining.
*/
public Builder clearForwardReactance() {
bitField0_ = (bitField0_ & ~0x00000040);
forwardReactance_ = 0D;
onChanged();
return this;
}
private double operationPhaseAngle1_ ;
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 1 relay.
*
*
* double operationPhaseAngle1 = 8;
* @return The operationPhaseAngle1.
*/
@java.lang.Override
public double getOperationPhaseAngle1() {
return operationPhaseAngle1_;
}
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 1 relay.
*
*
* double operationPhaseAngle1 = 8;
* @param value The operationPhaseAngle1 to set.
* @return This builder for chaining.
*/
public Builder setOperationPhaseAngle1(double value) {
operationPhaseAngle1_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 1 relay.
*
*
* double operationPhaseAngle1 = 8;
* @return This builder for chaining.
*/
public Builder clearOperationPhaseAngle1() {
bitField0_ = (bitField0_ & ~0x00000080);
operationPhaseAngle1_ = 0D;
onChanged();
return this;
}
private double operationPhaseAngle2_ ;
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 2 relay.
*
*
* double operationPhaseAngle2 = 9;
* @return The operationPhaseAngle2.
*/
@java.lang.Override
public double getOperationPhaseAngle2() {
return operationPhaseAngle2_;
}
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 2 relay.
*
*
* double operationPhaseAngle2 = 9;
* @param value The operationPhaseAngle2 to set.
* @return This builder for chaining.
*/
public Builder setOperationPhaseAngle2(double value) {
operationPhaseAngle2_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 2 relay.
*
*
* double operationPhaseAngle2 = 9;
* @return This builder for chaining.
*/
public Builder clearOperationPhaseAngle2() {
bitField0_ = (bitField0_ & ~0x00000100);
operationPhaseAngle2_ = 0D;
onChanged();
return this;
}
private double operationPhaseAngle3_ ;
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 3 relay.
*
*
* double operationPhaseAngle3 = 10;
* @return The operationPhaseAngle3.
*/
@java.lang.Override
public double getOperationPhaseAngle3() {
return operationPhaseAngle3_;
}
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 3 relay.
*
*
* double operationPhaseAngle3 = 10;
* @param value The operationPhaseAngle3 to set.
* @return This builder for chaining.
*/
public Builder setOperationPhaseAngle3(double value) {
operationPhaseAngle3_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* The phase angle (in degrees) between voltage and current during normal operating conditions for zone 3 relay.
*
*
* double operationPhaseAngle3 = 10;
* @return This builder for chaining.
*/
public Builder clearOperationPhaseAngle3() {
bitField0_ = (bitField0_ & ~0x00000200);
operationPhaseAngle3_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61970.base.protection.DistanceRelay)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.protection.DistanceRelay)
private static final com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay();
}
public static com.zepben.protobuf.cim.iec61970.base.protection.DistanceRelay getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DistanceRelay 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.DistanceRelay getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}