com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit 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/Circuit.proto
package com.zepben.protobuf.cim.iec61970.infiec61970.feeder;
/**
*
**
* Sub-transmission circuit connecting one or more substations.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit}
*/
public final class Circuit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit)
CircuitOrBuilder {
private static final long serialVersionUID = 0L;
// Use Circuit.newBuilder() to construct.
private Circuit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Circuit() {
endTerminalMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
loopMRID_ = "";
endSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Circuit();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Circuit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Circuit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.class, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder.class);
}
private int bitField0_;
public static final int L_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.wires.Line l_;
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
* @return Whether the l field is set.
*/
@java.lang.Override
public boolean hasL() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
* @return The l.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.Line getL() {
return l_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.Line.getDefaultInstance() : l_;
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.wires.LineOrBuilder getLOrBuilder() {
return l_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.Line.getDefaultInstance() : l_;
}
public static final int ENDTERMINALMRIDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList endTerminalMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @return A list containing the endTerminalMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEndTerminalMRIDsList() {
return endTerminalMRIDs_;
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @return The count of endTerminalMRIDs.
*/
public int getEndTerminalMRIDsCount() {
return endTerminalMRIDs_.size();
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param index The index of the element to return.
* @return The endTerminalMRIDs at the given index.
*/
public java.lang.String getEndTerminalMRIDs(int index) {
return endTerminalMRIDs_.get(index);
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the endTerminalMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEndTerminalMRIDsBytes(int index) {
return endTerminalMRIDs_.getByteString(index);
}
public static final int LOOPMRID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object loopMRID_ = "";
/**
*
**
* The loop containing this circuit.
*
*
* string loopMRID = 3;
* @return The loopMRID.
*/
@java.lang.Override
public java.lang.String getLoopMRID() {
java.lang.Object ref = loopMRID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
loopMRID_ = s;
return s;
}
}
/**
*
**
* The loop containing this circuit.
*
*
* string loopMRID = 3;
* @return The bytes for loopMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLoopMRIDBytes() {
java.lang.Object ref = loopMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loopMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDSUBSTATIONMRIDS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList endSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @return A list containing the endSubstationMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEndSubstationMRIDsList() {
return endSubstationMRIDs_;
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @return The count of endSubstationMRIDs.
*/
public int getEndSubstationMRIDsCount() {
return endSubstationMRIDs_.size();
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param index The index of the element to return.
* @return The endSubstationMRIDs at the given index.
*/
public java.lang.String getEndSubstationMRIDs(int index) {
return endSubstationMRIDs_.get(index);
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param index The index of the value to return.
* @return The bytes of the endSubstationMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEndSubstationMRIDsBytes(int index) {
return endSubstationMRIDs_.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, getL());
}
for (int i = 0; i < endTerminalMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endTerminalMRIDs_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loopMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loopMRID_);
}
for (int i = 0; i < endSubstationMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endSubstationMRIDs_.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, getL());
}
{
int dataSize = 0;
for (int i = 0; i < endTerminalMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(endTerminalMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getEndTerminalMRIDsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loopMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loopMRID_);
}
{
int dataSize = 0;
for (int i = 0; i < endSubstationMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(endSubstationMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getEndSubstationMRIDsList().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.Circuit)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit other = (com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit) obj;
if (hasL() != other.hasL()) return false;
if (hasL()) {
if (!getL()
.equals(other.getL())) return false;
}
if (!getEndTerminalMRIDsList()
.equals(other.getEndTerminalMRIDsList())) return false;
if (!getLoopMRID()
.equals(other.getLoopMRID())) return false;
if (!getEndSubstationMRIDsList()
.equals(other.getEndSubstationMRIDsList())) 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 (hasL()) {
hash = (37 * hash) + L_FIELD_NUMBER;
hash = (53 * hash) + getL().hashCode();
}
if (getEndTerminalMRIDsCount() > 0) {
hash = (37 * hash) + ENDTERMINALMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getEndTerminalMRIDsList().hashCode();
}
hash = (37 * hash) + LOOPMRID_FIELD_NUMBER;
hash = (53 * hash) + getLoopMRID().hashCode();
if (getEndSubstationMRIDsCount() > 0) {
hash = (37 * hash) + ENDSUBSTATIONMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getEndSubstationMRIDsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit 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.Circuit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit 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.Circuit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit 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.Circuit 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.Circuit 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.Circuit 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.Circuit 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.Circuit 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.Circuit 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.Circuit 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 circuit connecting one or more substations.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit)
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Circuit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Circuit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.class, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
l_ = null;
if (lBuilder_ != null) {
lBuilder_.dispose();
lBuilder_ = null;
}
endTerminalMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
loopMRID_ = "";
endSubstationMRIDs_ =
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.CircuitOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_Circuit_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit build() {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit buildPartial() {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit result = new com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.l_ = lBuilder_ == null
? l_
: lBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
endTerminalMRIDs_.makeImmutable();
result.endTerminalMRIDs_ = endTerminalMRIDs_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.loopMRID_ = loopMRID_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
endSubstationMRIDs_.makeImmutable();
result.endSubstationMRIDs_ = endSubstationMRIDs_;
}
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.Circuit) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit other) {
if (other == com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.getDefaultInstance()) return this;
if (other.hasL()) {
mergeL(other.getL());
}
if (!other.endTerminalMRIDs_.isEmpty()) {
if (endTerminalMRIDs_.isEmpty()) {
endTerminalMRIDs_ = other.endTerminalMRIDs_;
bitField0_ |= 0x00000002;
} else {
ensureEndTerminalMRIDsIsMutable();
endTerminalMRIDs_.addAll(other.endTerminalMRIDs_);
}
onChanged();
}
if (!other.getLoopMRID().isEmpty()) {
loopMRID_ = other.loopMRID_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.endSubstationMRIDs_.isEmpty()) {
if (endSubstationMRIDs_.isEmpty()) {
endSubstationMRIDs_ = other.endSubstationMRIDs_;
bitField0_ |= 0x00000008;
} else {
ensureEndSubstationMRIDsIsMutable();
endSubstationMRIDs_.addAll(other.endSubstationMRIDs_);
}
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(
getLFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureEndTerminalMRIDsIsMutable();
endTerminalMRIDs_.add(s);
break;
} // case 18
case 26: {
loopMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensureEndSubstationMRIDsIsMutable();
endSubstationMRIDs_.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.wires.Line l_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.Line, com.zepben.protobuf.cim.iec61970.base.wires.Line.Builder, com.zepben.protobuf.cim.iec61970.base.wires.LineOrBuilder> lBuilder_;
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
* @return Whether the l field is set.
*/
public boolean hasL() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
* @return The l.
*/
public com.zepben.protobuf.cim.iec61970.base.wires.Line getL() {
if (lBuilder_ == null) {
return l_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.Line.getDefaultInstance() : l_;
} else {
return lBuilder_.getMessage();
}
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
public Builder setL(com.zepben.protobuf.cim.iec61970.base.wires.Line value) {
if (lBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
l_ = value;
} else {
lBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
public Builder setL(
com.zepben.protobuf.cim.iec61970.base.wires.Line.Builder builderForValue) {
if (lBuilder_ == null) {
l_ = builderForValue.build();
} else {
lBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
public Builder mergeL(com.zepben.protobuf.cim.iec61970.base.wires.Line value) {
if (lBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
l_ != null &&
l_ != com.zepben.protobuf.cim.iec61970.base.wires.Line.getDefaultInstance()) {
getLBuilder().mergeFrom(value);
} else {
l_ = value;
}
} else {
lBuilder_.mergeFrom(value);
}
if (l_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
public Builder clearL() {
bitField0_ = (bitField0_ & ~0x00000001);
l_ = null;
if (lBuilder_ != null) {
lBuilder_.dispose();
lBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.Line.Builder getLBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLFieldBuilder().getBuilder();
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.wires.LineOrBuilder getLOrBuilder() {
if (lBuilder_ != null) {
return lBuilder_.getMessageOrBuilder();
} else {
return l_ == null ?
com.zepben.protobuf.cim.iec61970.base.wires.Line.getDefaultInstance() : l_;
}
}
/**
*
**
* Line fields for this Circuit.
*
*
* .zepben.protobuf.cim.iec61970.base.wires.Line l = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.Line, com.zepben.protobuf.cim.iec61970.base.wires.Line.Builder, com.zepben.protobuf.cim.iec61970.base.wires.LineOrBuilder>
getLFieldBuilder() {
if (lBuilder_ == null) {
lBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.wires.Line, com.zepben.protobuf.cim.iec61970.base.wires.Line.Builder, com.zepben.protobuf.cim.iec61970.base.wires.LineOrBuilder>(
getL(),
getParentForChildren(),
isClean());
l_ = null;
}
return lBuilder_;
}
private com.google.protobuf.LazyStringArrayList endTerminalMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEndTerminalMRIDsIsMutable() {
if (!endTerminalMRIDs_.isModifiable()) {
endTerminalMRIDs_ = new com.google.protobuf.LazyStringArrayList(endTerminalMRIDs_);
}
bitField0_ |= 0x00000002;
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @return A list containing the endTerminalMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEndTerminalMRIDsList() {
endTerminalMRIDs_.makeImmutable();
return endTerminalMRIDs_;
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @return The count of endTerminalMRIDs.
*/
public int getEndTerminalMRIDsCount() {
return endTerminalMRIDs_.size();
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param index The index of the element to return.
* @return The endTerminalMRIDs at the given index.
*/
public java.lang.String getEndTerminalMRIDs(int index) {
return endTerminalMRIDs_.get(index);
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the endTerminalMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEndTerminalMRIDsBytes(int index) {
return endTerminalMRIDs_.getByteString(index);
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param index The index to set the value at.
* @param value The endTerminalMRIDs to set.
* @return This builder for chaining.
*/
public Builder setEndTerminalMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEndTerminalMRIDsIsMutable();
endTerminalMRIDs_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param value The endTerminalMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEndTerminalMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEndTerminalMRIDsIsMutable();
endTerminalMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param values The endTerminalMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllEndTerminalMRIDs(
java.lang.Iterable values) {
ensureEndTerminalMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endTerminalMRIDs_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @return This builder for chaining.
*/
public Builder clearEndTerminalMRIDs() {
endTerminalMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
**
* Terminals at the end of the circuit.
*
*
* repeated string endTerminalMRIDs = 2;
* @param value The bytes of the endTerminalMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEndTerminalMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEndTerminalMRIDsIsMutable();
endTerminalMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object loopMRID_ = "";
/**
*
**
* The loop containing this circuit.
*
*
* string loopMRID = 3;
* @return The loopMRID.
*/
public java.lang.String getLoopMRID() {
java.lang.Object ref = loopMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
loopMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The loop containing this circuit.
*
*
* string loopMRID = 3;
* @return The bytes for loopMRID.
*/
public com.google.protobuf.ByteString
getLoopMRIDBytes() {
java.lang.Object ref = loopMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loopMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The loop containing this circuit.
*
*
* string loopMRID = 3;
* @param value The loopMRID to set.
* @return This builder for chaining.
*/
public Builder setLoopMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
loopMRID_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The loop containing this circuit.
*
*
* string loopMRID = 3;
* @return This builder for chaining.
*/
public Builder clearLoopMRID() {
loopMRID_ = getDefaultInstance().getLoopMRID();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* The loop containing this circuit.
*
*
* string loopMRID = 3;
* @param value The bytes for loopMRID to set.
* @return This builder for chaining.
*/
public Builder setLoopMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
loopMRID_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList endSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEndSubstationMRIDsIsMutable() {
if (!endSubstationMRIDs_.isModifiable()) {
endSubstationMRIDs_ = new com.google.protobuf.LazyStringArrayList(endSubstationMRIDs_);
}
bitField0_ |= 0x00000008;
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @return A list containing the endSubstationMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getEndSubstationMRIDsList() {
endSubstationMRIDs_.makeImmutable();
return endSubstationMRIDs_;
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @return The count of endSubstationMRIDs.
*/
public int getEndSubstationMRIDsCount() {
return endSubstationMRIDs_.size();
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param index The index of the element to return.
* @return The endSubstationMRIDs at the given index.
*/
public java.lang.String getEndSubstationMRIDs(int index) {
return endSubstationMRIDs_.get(index);
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param index The index of the value to return.
* @return The bytes of the endSubstationMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getEndSubstationMRIDsBytes(int index) {
return endSubstationMRIDs_.getByteString(index);
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param index The index to set the value at.
* @param value The endSubstationMRIDs to set.
* @return This builder for chaining.
*/
public Builder setEndSubstationMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEndSubstationMRIDsIsMutable();
endSubstationMRIDs_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param value The endSubstationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEndSubstationMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureEndSubstationMRIDsIsMutable();
endSubstationMRIDs_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param values The endSubstationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllEndSubstationMRIDs(
java.lang.Iterable values) {
ensureEndSubstationMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endSubstationMRIDs_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @return This builder for chaining.
*/
public Builder clearEndSubstationMRIDs() {
endSubstationMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
*
**
* Simplification of the CIM association via Bay to Substation.
*
*
* repeated string endSubstationMRIDs = 4;
* @param value The bytes of the endSubstationMRIDs to add.
* @return This builder for chaining.
*/
public Builder addEndSubstationMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureEndSubstationMRIDsIsMutable();
endSubstationMRIDs_.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.Circuit)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit)
private static final com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit();
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Circuit 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.Circuit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}