com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop 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/infiec61970/feeder/Loop.proto
package com.zepben.protobuf.cim.iec61970.infiec61970.feeder;
/**
*
**
* Sub-transmission circuits are usually arranged in loops so that a single line failure does not cut off
* service to many customers for more than a short time.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop}
*/
public final class Loop extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop)
LoopOrBuilder {
private static final long serialVersionUID = 0L;
// Use Loop.newBuilder() to construct.
private Loop(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Loop() {
circuitMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
substationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
normalEnergizingSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Loop();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Loop_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Loop_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.class, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder.class);
}
private int bitField0_;
public static final int IO_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io_;
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
@java.lang.Override
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
public static final int CIRCUITMRIDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList circuitMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @return A list containing the circuitMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getCircuitMRIDsList() {
return circuitMRIDs_;
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @return The count of circuitMRIDs.
*/
public int getCircuitMRIDsCount() {
return circuitMRIDs_.size();
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param index The index of the element to return.
* @return The circuitMRIDs at the given index.
*/
public java.lang.String getCircuitMRIDs(int index) {
return circuitMRIDs_.get(index);
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the circuitMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getCircuitMRIDsBytes(int index) {
return circuitMRIDs_.getByteString(index);
}
public static final int SUBSTATIONMRIDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList substationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @return A list containing the substationMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getSubstationMRIDsList() {
return substationMRIDs_;
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @return The count of substationMRIDs.
*/
public int getSubstationMRIDsCount() {
return substationMRIDs_.size();
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param index The index of the element to return.
* @return The substationMRIDs at the given index.
*/
public java.lang.String getSubstationMRIDs(int index) {
return substationMRIDs_.get(index);
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the substationMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getSubstationMRIDsBytes(int index) {
return substationMRIDs_.getByteString(index);
}
public static final int NORMALENERGIZINGSUBSTATIONMRIDS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList normalEnergizingSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @return A list containing the normalEnergizingSubstationMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getNormalEnergizingSubstationMRIDsList() {
return normalEnergizingSubstationMRIDs_;
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @return The count of normalEnergizingSubstationMRIDs.
*/
public int getNormalEnergizingSubstationMRIDsCount() {
return normalEnergizingSubstationMRIDs_.size();
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param index The index of the element to return.
* @return The normalEnergizingSubstationMRIDs at the given index.
*/
public java.lang.String getNormalEnergizingSubstationMRIDs(int index) {
return normalEnergizingSubstationMRIDs_.get(index);
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param index The index of the value to return.
* @return The bytes of the normalEnergizingSubstationMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getNormalEnergizingSubstationMRIDsBytes(int index) {
return normalEnergizingSubstationMRIDs_.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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getIo());
}
for (int i = 0; i < circuitMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, circuitMRIDs_.getRaw(i));
}
for (int i = 0; i < substationMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, substationMRIDs_.getRaw(i));
}
for (int i = 0; i < normalEnergizingSubstationMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, normalEnergizingSubstationMRIDs_.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, getIo());
}
{
int dataSize = 0;
for (int i = 0; i < circuitMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(circuitMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getCircuitMRIDsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < substationMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(substationMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getSubstationMRIDsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < normalEnergizingSubstationMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(normalEnergizingSubstationMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getNormalEnergizingSubstationMRIDsList().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.infiec61970.feeder.Loop)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop other = (com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop) obj;
if (hasIo() != other.hasIo()) return false;
if (hasIo()) {
if (!getIo()
.equals(other.getIo())) return false;
}
if (!getCircuitMRIDsList()
.equals(other.getCircuitMRIDsList())) return false;
if (!getSubstationMRIDsList()
.equals(other.getSubstationMRIDsList())) return false;
if (!getNormalEnergizingSubstationMRIDsList()
.equals(other.getNormalEnergizingSubstationMRIDsList())) 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 (hasIo()) {
hash = (37 * hash) + IO_FIELD_NUMBER;
hash = (53 * hash) + getIo().hashCode();
}
if (getCircuitMRIDsCount() > 0) {
hash = (37 * hash) + CIRCUITMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getCircuitMRIDsList().hashCode();
}
if (getSubstationMRIDsCount() > 0) {
hash = (37 * hash) + SUBSTATIONMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getSubstationMRIDsList().hashCode();
}
if (getNormalEnergizingSubstationMRIDsCount() > 0) {
hash = (37 * hash) + NORMALENERGIZINGSUBSTATIONMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getNormalEnergizingSubstationMRIDsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop 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.infiec61970.feeder.Loop parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop 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.infiec61970.feeder.Loop parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop 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.infiec61970.feeder.Loop parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop 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.infiec61970.feeder.Loop parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop 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.infiec61970.feeder.Loop 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.infiec61970.feeder.Loop 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.infiec61970.feeder.Loop 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;
}
/**
*
**
* Sub-transmission circuits are usually arranged in loops so that a single line failure does not cut off
* service to many customers for more than a short time.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop)
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Loop_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Loop_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.class, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
circuitMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
substationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
normalEnergizingSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Loop_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop build() {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop buildPartial() {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop result = new com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.io_ = ioBuilder_ == null
? io_
: ioBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
circuitMRIDs_.makeImmutable();
result.circuitMRIDs_ = circuitMRIDs_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
substationMRIDs_.makeImmutable();
result.substationMRIDs_ = substationMRIDs_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
normalEnergizingSubstationMRIDs_.makeImmutable();
result.normalEnergizingSubstationMRIDs_ = normalEnergizingSubstationMRIDs_;
}
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.infiec61970.feeder.Loop) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop other) {
if (other == com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.getDefaultInstance()) return this;
if (other.hasIo()) {
mergeIo(other.getIo());
}
if (!other.circuitMRIDs_.isEmpty()) {
if (circuitMRIDs_.isEmpty()) {
circuitMRIDs_ = other.circuitMRIDs_;
bitField0_ |= 0x00000002;
} else {
ensureCircuitMRIDsIsMutable();
circuitMRIDs_.addAll(other.circuitMRIDs_);
}
onChanged();
}
if (!other.substationMRIDs_.isEmpty()) {
if (substationMRIDs_.isEmpty()) {
substationMRIDs_ = other.substationMRIDs_;
bitField0_ |= 0x00000004;
} else {
ensureSubstationMRIDsIsMutable();
substationMRIDs_.addAll(other.substationMRIDs_);
}
onChanged();
}
if (!other.normalEnergizingSubstationMRIDs_.isEmpty()) {
if (normalEnergizingSubstationMRIDs_.isEmpty()) {
normalEnergizingSubstationMRIDs_ = other.normalEnergizingSubstationMRIDs_;
bitField0_ |= 0x00000008;
} else {
ensureNormalEnergizingSubstationMRIDsIsMutable();
normalEnergizingSubstationMRIDs_.addAll(other.normalEnergizingSubstationMRIDs_);
}
onChanged();
}
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(
getIoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureCircuitMRIDsIsMutable();
circuitMRIDs_.add(s);
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureSubstationMRIDsIsMutable();
substationMRIDs_.add(s);
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensureNormalEnergizingSubstationMRIDsIsMutable();
normalEnergizingSubstationMRIDs_.add(s);
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder> ioBuilder_;
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
if (ioBuilder_ == null) {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
} else {
return ioBuilder_.getMessage();
}
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
io_ = value;
} else {
ioBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder builderForValue) {
if (ioBuilder_ == null) {
io_ = builderForValue.build();
} else {
ioBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder mergeIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
io_ != null &&
io_ != com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance()) {
getIoBuilder().mergeFrom(value);
} else {
io_ = value;
}
} else {
ioBuilder_.mergeFrom(value);
}
if (io_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder clearIo() {
bitField0_ = (bitField0_ & ~0x00000001);
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder getIoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIoFieldBuilder().getBuilder();
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
if (ioBuilder_ != null) {
return ioBuilder_.getMessageOrBuilder();
} else {
return io_ == null ?
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
}
/**
*
**
* IdentifiedObject fields for this Loop.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>
getIoFieldBuilder() {
if (ioBuilder_ == null) {
ioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>(
getIo(),
getParentForChildren(),
isClean());
io_ = null;
}
return ioBuilder_;
}
private com.google.protobuf.LazyStringArrayList circuitMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCircuitMRIDsIsMutable() {
if (!circuitMRIDs_.isModifiable()) {
circuitMRIDs_ = new com.google.protobuf.LazyStringArrayList(circuitMRIDs_);
}
bitField0_ |= 0x00000002;
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @return A list containing the circuitMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getCircuitMRIDsList() {
circuitMRIDs_.makeImmutable();
return circuitMRIDs_;
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @return The count of circuitMRIDs.
*/
public int getCircuitMRIDsCount() {
return circuitMRIDs_.size();
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param index The index of the element to return.
* @return The circuitMRIDs at the given index.
*/
public java.lang.String getCircuitMRIDs(int index) {
return circuitMRIDs_.get(index);
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the circuitMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getCircuitMRIDsBytes(int index) {
return circuitMRIDs_.getByteString(index);
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param index The index to set the value at.
* @param value The circuitMRIDs to set.
* @return This builder for chaining.
*/
public Builder setCircuitMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCircuitMRIDsIsMutable();
circuitMRIDs_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param value The circuitMRIDs to add.
* @return This builder for chaining.
*/
public Builder addCircuitMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCircuitMRIDsIsMutable();
circuitMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param values The circuitMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllCircuitMRIDs(
java.lang.Iterable values) {
ensureCircuitMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, circuitMRIDs_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @return This builder for chaining.
*/
public Builder clearCircuitMRIDs() {
circuitMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
**
* Sub-transmission circuits that form part of this loop.
*
*
* repeated string circuitMRIDs = 2;
* @param value The bytes of the circuitMRIDs to add.
* @return This builder for chaining.
*/
public Builder addCircuitMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureCircuitMRIDsIsMutable();
circuitMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList substationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSubstationMRIDsIsMutable() {
if (!substationMRIDs_.isModifiable()) {
substationMRIDs_ = new com.google.protobuf.LazyStringArrayList(substationMRIDs_);
}
bitField0_ |= 0x00000004;
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @return A list containing the substationMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getSubstationMRIDsList() {
substationMRIDs_.makeImmutable();
return substationMRIDs_;
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @return The count of substationMRIDs.
*/
public int getSubstationMRIDsCount() {
return substationMRIDs_.size();
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param index The index of the element to return.
* @return The substationMRIDs at the given index.
*/
public java.lang.String getSubstationMRIDs(int index) {
return substationMRIDs_.get(index);
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the substationMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getSubstationMRIDsBytes(int index) {
return substationMRIDs_.getByteString(index);
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param index The index to set the value at.
* @param value The substationMRIDs to set.
* @return This builder for chaining.
*/
public Builder setSubstationMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSubstationMRIDsIsMutable();
substationMRIDs_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param value The substationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addSubstationMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSubstationMRIDsIsMutable();
substationMRIDs_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param values The substationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllSubstationMRIDs(
java.lang.Iterable values) {
ensureSubstationMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, substationMRIDs_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @return This builder for chaining.
*/
public Builder clearSubstationMRIDs() {
substationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
**
* Substations that are energized by this loop.
*
*
* repeated string substationMRIDs = 3;
* @param value The bytes of the substationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addSubstationMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureSubstationMRIDsIsMutable();
substationMRIDs_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList normalEnergizingSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNormalEnergizingSubstationMRIDsIsMutable() {
if (!normalEnergizingSubstationMRIDs_.isModifiable()) {
normalEnergizingSubstationMRIDs_ = new com.google.protobuf.LazyStringArrayList(normalEnergizingSubstationMRIDs_);
}
bitField0_ |= 0x00000008;
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @return A list containing the normalEnergizingSubstationMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getNormalEnergizingSubstationMRIDsList() {
normalEnergizingSubstationMRIDs_.makeImmutable();
return normalEnergizingSubstationMRIDs_;
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @return The count of normalEnergizingSubstationMRIDs.
*/
public int getNormalEnergizingSubstationMRIDsCount() {
return normalEnergizingSubstationMRIDs_.size();
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param index The index of the element to return.
* @return The normalEnergizingSubstationMRIDs at the given index.
*/
public java.lang.String getNormalEnergizingSubstationMRIDs(int index) {
return normalEnergizingSubstationMRIDs_.get(index);
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param index The index of the value to return.
* @return The bytes of the normalEnergizingSubstationMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getNormalEnergizingSubstationMRIDsBytes(int index) {
return normalEnergizingSubstationMRIDs_.getByteString(index);
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param index The index to set the value at.
* @param value The normalEnergizingSubstationMRIDs to set.
* @return This builder for chaining.
*/
public Builder setNormalEnergizingSubstationMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNormalEnergizingSubstationMRIDsIsMutable();
normalEnergizingSubstationMRIDs_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param value The normalEnergizingSubstationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addNormalEnergizingSubstationMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNormalEnergizingSubstationMRIDsIsMutable();
normalEnergizingSubstationMRIDs_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param values The normalEnergizingSubstationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllNormalEnergizingSubstationMRIDs(
java.lang.Iterable values) {
ensureNormalEnergizingSubstationMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, normalEnergizingSubstationMRIDs_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @return This builder for chaining.
*/
public Builder clearNormalEnergizingSubstationMRIDs() {
normalEnergizingSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
*
**
* The substations that normally energize this loop.
*
*
* repeated string normalEnergizingSubstationMRIDs = 4;
* @param value The bytes of the normalEnergizingSubstationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addNormalEnergizingSubstationMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureNormalEnergizingSubstationMRIDsIsMutable();
normalEnergizingSubstationMRIDs_.add(value);
bitField0_ |= 0x00000008;
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.infiec61970.feeder.Loop)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop)
private static final com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop();
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Loop 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.infiec61970.feeder.Loop getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}