com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator 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/wires/LinearShuntCompensator.proto
package com.zepben.protobuf.cim.iec61970.base.wires;
/**
*
**
* A linear shunt compensator has banks or sections with equal admittance values.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator}
*/
public final class LinearShuntCompensator extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator)
LinearShuntCompensatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use LinearShuntCompensator.newBuilder() to construct.
private LinearShuntCompensator(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LinearShuntCompensator() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LinearShuntCompensator();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_LinearShuntCompensator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_LinearShuntCompensator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator.class, com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator.Builder.class);
}
private int bitField0_;
public static final int SC_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc_;
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
* @return Whether the sc field is set.
*/
@java.lang.Override
public boolean hasSc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
* @return The sc.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator getSc() {
return sc_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.getDefaultInstance() : sc_;
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOrBuilder getScOrBuilder() {
return sc_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.getDefaultInstance() : sc_;
}
public static final int B0PERSECTION_FIELD_NUMBER = 2;
private double b0PerSection_ = 0D;
/**
*
**
* Zero sequence shunt (charging) susceptance per section
*
*
* double b0PerSection = 2;
* @return The b0PerSection.
*/
@java.lang.Override
public double getB0PerSection() {
return b0PerSection_;
}
public static final int BPERSECTION_FIELD_NUMBER = 3;
private double bPerSection_ = 0D;
/**
*
**
* Positive sequence shunt (charging) susceptance per section
*
*
* double bPerSection = 3;
* @return The bPerSection.
*/
@java.lang.Override
public double getBPerSection() {
return bPerSection_;
}
public static final int G0PERSECTION_FIELD_NUMBER = 4;
private double g0PerSection_ = 0D;
/**
*
**
* Zero sequence shunt (charging) conductance per section
*
*
* double g0PerSection = 4;
* @return The g0PerSection.
*/
@java.lang.Override
public double getG0PerSection() {
return g0PerSection_;
}
public static final int GPERSECTION_FIELD_NUMBER = 5;
private double gPerSection_ = 0D;
/**
*
**
* Positive sequence shunt (charging) conductance per section
*
*
* double gPerSection = 5;
* @return The gPerSection.
*/
@java.lang.Override
public double getGPerSection() {
return gPerSection_;
}
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, getSc());
}
if (java.lang.Double.doubleToRawLongBits(b0PerSection_) != 0) {
output.writeDouble(2, b0PerSection_);
}
if (java.lang.Double.doubleToRawLongBits(bPerSection_) != 0) {
output.writeDouble(3, bPerSection_);
}
if (java.lang.Double.doubleToRawLongBits(g0PerSection_) != 0) {
output.writeDouble(4, g0PerSection_);
}
if (java.lang.Double.doubleToRawLongBits(gPerSection_) != 0) {
output.writeDouble(5, gPerSection_);
}
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, getSc());
}
if (java.lang.Double.doubleToRawLongBits(b0PerSection_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, b0PerSection_);
}
if (java.lang.Double.doubleToRawLongBits(bPerSection_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, bPerSection_);
}
if (java.lang.Double.doubleToRawLongBits(g0PerSection_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, g0PerSection_);
}
if (java.lang.Double.doubleToRawLongBits(gPerSection_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, gPerSection_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator other = (com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator) obj;
if (hasSc() != other.hasSc()) return false;
if (hasSc()) {
if (!getSc()
.equals(other.getSc())) return false;
}
if (java.lang.Double.doubleToLongBits(getB0PerSection())
!= java.lang.Double.doubleToLongBits(
other.getB0PerSection())) return false;
if (java.lang.Double.doubleToLongBits(getBPerSection())
!= java.lang.Double.doubleToLongBits(
other.getBPerSection())) return false;
if (java.lang.Double.doubleToLongBits(getG0PerSection())
!= java.lang.Double.doubleToLongBits(
other.getG0PerSection())) return false;
if (java.lang.Double.doubleToLongBits(getGPerSection())
!= java.lang.Double.doubleToLongBits(
other.getGPerSection())) 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 (hasSc()) {
hash = (37 * hash) + SC_FIELD_NUMBER;
hash = (53 * hash) + getSc().hashCode();
}
hash = (37 * hash) + B0PERSECTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getB0PerSection()));
hash = (37 * hash) + BPERSECTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBPerSection()));
hash = (37 * hash) + G0PERSECTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getG0PerSection()));
hash = (37 * hash) + GPERSECTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGPerSection()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator 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 linear shunt compensator has banks or sections with equal admittance values.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator)
com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_LinearShuntCompensator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_LinearShuntCompensator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator.class, com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getScFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sc_ = null;
if (scBuilder_ != null) {
scBuilder_.dispose();
scBuilder_ = null;
}
b0PerSection_ = 0D;
bPerSection_ = 0D;
g0PerSection_ = 0D;
gPerSection_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensatorOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_LinearShuntCompensator_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator build() {
com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator buildPartial() {
com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator result = new com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sc_ = scBuilder_ == null
? sc_
: scBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.b0PerSection_ = b0PerSection_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.bPerSection_ = bPerSection_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.g0PerSection_ = g0PerSection_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.gPerSection_ = gPerSection_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator other) {
if (other == com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator.getDefaultInstance()) return this;
if (other.hasSc()) {
mergeSc(other.getSc());
}
if (other.getB0PerSection() != 0D) {
setB0PerSection(other.getB0PerSection());
}
if (other.getBPerSection() != 0D) {
setBPerSection(other.getBPerSection());
}
if (other.getG0PerSection() != 0D) {
setG0PerSection(other.getG0PerSection());
}
if (other.getGPerSection() != 0D) {
setGPerSection(other.getGPerSection());
}
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(
getScFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
b0PerSection_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
bPerSection_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
g0PerSection_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
gPerSection_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.Builder, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOrBuilder> scBuilder_;
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
* @return Whether the sc field is set.
*/
public boolean hasSc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
* @return The sc.
*/
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator getSc() {
if (scBuilder_ == null) {
return sc_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.getDefaultInstance() : sc_;
} else {
return scBuilder_.getMessage();
}
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
public Builder setSc(com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator value) {
if (scBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sc_ = value;
} else {
scBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
public Builder setSc(
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.Builder builderForValue) {
if (scBuilder_ == null) {
sc_ = builderForValue.build();
} else {
scBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
public Builder mergeSc(com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator value) {
if (scBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
sc_ != null &&
sc_ != com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.getDefaultInstance()) {
getScBuilder().mergeFrom(value);
} else {
sc_ = value;
}
} else {
scBuilder_.mergeFrom(value);
}
if (sc_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
public Builder clearSc() {
bitField0_ = (bitField0_ & ~0x00000001);
sc_ = null;
if (scBuilder_ != null) {
scBuilder_.dispose();
scBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.Builder getScBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getScFieldBuilder().getBuilder();
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOrBuilder getScOrBuilder() {
if (scBuilder_ != null) {
return scBuilder_.getMessageOrBuilder();
} else {
return sc_ == null ?
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.getDefaultInstance() : sc_;
}
}
/**
*
**
* ShuntCompensator fields for this LinearShuntCompensator.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator sc = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.Builder, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOrBuilder>
getScFieldBuilder() {
if (scBuilder_ == null) {
scBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensator.Builder, com.zepben.protobuf.cim.iec61970.base.wires.ShuntCompensatorOrBuilder>(
getSc(),
getParentForChildren(),
isClean());
sc_ = null;
}
return scBuilder_;
}
private double b0PerSection_ ;
/**
*
**
* Zero sequence shunt (charging) susceptance per section
*
*
* double b0PerSection = 2;
* @return The b0PerSection.
*/
@java.lang.Override
public double getB0PerSection() {
return b0PerSection_;
}
/**
*
**
* Zero sequence shunt (charging) susceptance per section
*
*
* double b0PerSection = 2;
* @param value The b0PerSection to set.
* @return This builder for chaining.
*/
public Builder setB0PerSection(double value) {
b0PerSection_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Zero sequence shunt (charging) susceptance per section
*
*
* double b0PerSection = 2;
* @return This builder for chaining.
*/
public Builder clearB0PerSection() {
bitField0_ = (bitField0_ & ~0x00000002);
b0PerSection_ = 0D;
onChanged();
return this;
}
private double bPerSection_ ;
/**
*
**
* Positive sequence shunt (charging) susceptance per section
*
*
* double bPerSection = 3;
* @return The bPerSection.
*/
@java.lang.Override
public double getBPerSection() {
return bPerSection_;
}
/**
*
**
* Positive sequence shunt (charging) susceptance per section
*
*
* double bPerSection = 3;
* @param value The bPerSection to set.
* @return This builder for chaining.
*/
public Builder setBPerSection(double value) {
bPerSection_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Positive sequence shunt (charging) susceptance per section
*
*
* double bPerSection = 3;
* @return This builder for chaining.
*/
public Builder clearBPerSection() {
bitField0_ = (bitField0_ & ~0x00000004);
bPerSection_ = 0D;
onChanged();
return this;
}
private double g0PerSection_ ;
/**
*
**
* Zero sequence shunt (charging) conductance per section
*
*
* double g0PerSection = 4;
* @return The g0PerSection.
*/
@java.lang.Override
public double getG0PerSection() {
return g0PerSection_;
}
/**
*
**
* Zero sequence shunt (charging) conductance per section
*
*
* double g0PerSection = 4;
* @param value The g0PerSection to set.
* @return This builder for chaining.
*/
public Builder setG0PerSection(double value) {
g0PerSection_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Zero sequence shunt (charging) conductance per section
*
*
* double g0PerSection = 4;
* @return This builder for chaining.
*/
public Builder clearG0PerSection() {
bitField0_ = (bitField0_ & ~0x00000008);
g0PerSection_ = 0D;
onChanged();
return this;
}
private double gPerSection_ ;
/**
*
**
* Positive sequence shunt (charging) conductance per section
*
*
* double gPerSection = 5;
* @return The gPerSection.
*/
@java.lang.Override
public double getGPerSection() {
return gPerSection_;
}
/**
*
**
* Positive sequence shunt (charging) conductance per section
*
*
* double gPerSection = 5;
* @param value The gPerSection to set.
* @return This builder for chaining.
*/
public Builder setGPerSection(double value) {
gPerSection_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* Positive sequence shunt (charging) conductance per section
*
*
* double gPerSection = 5;
* @return This builder for chaining.
*/
public Builder clearGPerSection() {
bitField0_ = (bitField0_ & ~0x00000010);
gPerSection_ = 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.wires.LinearShuntCompensator)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator)
private static final com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator();
}
public static com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LinearShuntCompensator parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.LinearShuntCompensator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}