com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder 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/LvFeeder.proto
package com.zepben.protobuf.cim.iec61970.infiec61970.feeder;
/**
*
**
* A branch of LV network starting at a distribution substation and continuing until the end of the LV network.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder}
*/
public final class LvFeeder extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder)
LvFeederOrBuilder {
private static final long serialVersionUID = 0L;
// Use LvFeeder.newBuilder() to construct.
private LvFeeder(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LvFeeder() {
normalHeadTerminalMRID_ = "";
normalEnergizingFeederMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LvFeeder();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeederOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_LvFeeder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeederOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_LvFeeder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder.class, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder.Builder.class);
}
private int bitField0_;
public static final int EC_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec_;
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
* @return Whether the ec field is set.
*/
@java.lang.Override
public boolean hasEc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
* @return The ec.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer getEc() {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.getDefaultInstance() : ec_;
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainerOrBuilder getEcOrBuilder() {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.getDefaultInstance() : ec_;
}
public static final int NORMALHEADTERMINALMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object normalHeadTerminalMRID_ = "";
/**
*
**
* mRID reference to the normal head terminal of this LvFeeder, typically the LV terminal of a distribution substation.
*
*
* string normalHeadTerminalMRID = 2;
* @return The normalHeadTerminalMRID.
*/
@java.lang.Override
public java.lang.String getNormalHeadTerminalMRID() {
java.lang.Object ref = normalHeadTerminalMRID_;
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();
normalHeadTerminalMRID_ = s;
return s;
}
}
/**
*
**
* mRID reference to the normal head terminal of this LvFeeder, typically the LV terminal of a distribution substation.
*
*
* string normalHeadTerminalMRID = 2;
* @return The bytes for normalHeadTerminalMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNormalHeadTerminalMRIDBytes() {
java.lang.Object ref = normalHeadTerminalMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
normalHeadTerminalMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NORMALENERGIZINGFEEDERMRIDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList normalEnergizingFeederMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @return A list containing the normalEnergizingFeederMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getNormalEnergizingFeederMRIDsList() {
return normalEnergizingFeederMRIDs_;
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @return The count of normalEnergizingFeederMRIDs.
*/
public int getNormalEnergizingFeederMRIDsCount() {
return normalEnergizingFeederMRIDs_.size();
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param index The index of the element to return.
* @return The normalEnergizingFeederMRIDs at the given index.
*/
public java.lang.String getNormalEnergizingFeederMRIDs(int index) {
return normalEnergizingFeederMRIDs_.get(index);
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the normalEnergizingFeederMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getNormalEnergizingFeederMRIDsBytes(int index) {
return normalEnergizingFeederMRIDs_.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, getEc());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normalHeadTerminalMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, normalHeadTerminalMRID_);
}
for (int i = 0; i < normalEnergizingFeederMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, normalEnergizingFeederMRIDs_.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, getEc());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normalHeadTerminalMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, normalHeadTerminalMRID_);
}
{
int dataSize = 0;
for (int i = 0; i < normalEnergizingFeederMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(normalEnergizingFeederMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getNormalEnergizingFeederMRIDsList().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.LvFeeder)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder other = (com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder) obj;
if (hasEc() != other.hasEc()) return false;
if (hasEc()) {
if (!getEc()
.equals(other.getEc())) return false;
}
if (!getNormalHeadTerminalMRID()
.equals(other.getNormalHeadTerminalMRID())) return false;
if (!getNormalEnergizingFeederMRIDsList()
.equals(other.getNormalEnergizingFeederMRIDsList())) 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 (hasEc()) {
hash = (37 * hash) + EC_FIELD_NUMBER;
hash = (53 * hash) + getEc().hashCode();
}
hash = (37 * hash) + NORMALHEADTERMINALMRID_FIELD_NUMBER;
hash = (53 * hash) + getNormalHeadTerminalMRID().hashCode();
if (getNormalEnergizingFeederMRIDsCount() > 0) {
hash = (37 * hash) + NORMALENERGIZINGFEEDERMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getNormalEnergizingFeederMRIDsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder 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.LvFeeder parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder 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.LvFeeder parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder 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.LvFeeder 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.LvFeeder 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.LvFeeder 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.LvFeeder 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.LvFeeder 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.LvFeeder 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.LvFeeder 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 branch of LV network starting at a distribution substation and continuing until the end of the LV network.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder)
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeederOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeederOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_LvFeeder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeederOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_LvFeeder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder.class, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEcFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ec_ = null;
if (ecBuilder_ != null) {
ecBuilder_.dispose();
ecBuilder_ = null;
}
normalHeadTerminalMRID_ = "";
normalEnergizingFeederMRIDs_ =
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.LvFeederOuterClass.internal_static_zepben_protobuf_cim_iec61970_infiec61970_feeder_LvFeeder_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder build() {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder buildPartial() {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder result = new com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ec_ = ecBuilder_ == null
? ec_
: ecBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.normalHeadTerminalMRID_ = normalHeadTerminalMRID_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
normalEnergizingFeederMRIDs_.makeImmutable();
result.normalEnergizingFeederMRIDs_ = normalEnergizingFeederMRIDs_;
}
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.LvFeeder) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder other) {
if (other == com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder.getDefaultInstance()) return this;
if (other.hasEc()) {
mergeEc(other.getEc());
}
if (!other.getNormalHeadTerminalMRID().isEmpty()) {
normalHeadTerminalMRID_ = other.normalHeadTerminalMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.normalEnergizingFeederMRIDs_.isEmpty()) {
if (normalEnergizingFeederMRIDs_.isEmpty()) {
normalEnergizingFeederMRIDs_ = other.normalEnergizingFeederMRIDs_;
bitField0_ |= 0x00000004;
} else {
ensureNormalEnergizingFeederMRIDsIsMutable();
normalEnergizingFeederMRIDs_.addAll(other.normalEnergizingFeederMRIDs_);
}
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(
getEcFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
normalHeadTerminalMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureNormalEnergizingFeederMRIDsIsMutable();
normalEnergizingFeederMRIDs_.add(s);
break;
} // case 26
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.EquipmentContainer ec_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer, com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.Builder, com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainerOrBuilder> ecBuilder_;
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
* @return Whether the ec field is set.
*/
public boolean hasEc() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
* @return The ec.
*/
public com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer getEc() {
if (ecBuilder_ == null) {
return ec_ == null ? com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.getDefaultInstance() : ec_;
} else {
return ecBuilder_.getMessage();
}
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
public Builder setEc(com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer value) {
if (ecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ec_ = value;
} else {
ecBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
public Builder setEc(
com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.Builder builderForValue) {
if (ecBuilder_ == null) {
ec_ = builderForValue.build();
} else {
ecBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
public Builder mergeEc(com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer value) {
if (ecBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ec_ != null &&
ec_ != com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.getDefaultInstance()) {
getEcBuilder().mergeFrom(value);
} else {
ec_ = value;
}
} else {
ecBuilder_.mergeFrom(value);
}
if (ec_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
public Builder clearEc() {
bitField0_ = (bitField0_ & ~0x00000001);
ec_ = null;
if (ecBuilder_ != null) {
ecBuilder_.dispose();
ecBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.Builder getEcBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getEcFieldBuilder().getBuilder();
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainerOrBuilder getEcOrBuilder() {
if (ecBuilder_ != null) {
return ecBuilder_.getMessageOrBuilder();
} else {
return ec_ == null ?
com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.getDefaultInstance() : ec_;
}
}
/**
*
**
* EquipmentContainer fields for this LvFeeder.
*
*
* .zepben.protobuf.cim.iec61970.base.core.EquipmentContainer ec = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer, com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.Builder, com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainerOrBuilder>
getEcFieldBuilder() {
if (ecBuilder_ == null) {
ecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer, com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainer.Builder, com.zepben.protobuf.cim.iec61970.base.core.EquipmentContainerOrBuilder>(
getEc(),
getParentForChildren(),
isClean());
ec_ = null;
}
return ecBuilder_;
}
private java.lang.Object normalHeadTerminalMRID_ = "";
/**
*
**
* mRID reference to the normal head terminal of this LvFeeder, typically the LV terminal of a distribution substation.
*
*
* string normalHeadTerminalMRID = 2;
* @return The normalHeadTerminalMRID.
*/
public java.lang.String getNormalHeadTerminalMRID() {
java.lang.Object ref = normalHeadTerminalMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
normalHeadTerminalMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* mRID reference to the normal head terminal of this LvFeeder, typically the LV terminal of a distribution substation.
*
*
* string normalHeadTerminalMRID = 2;
* @return The bytes for normalHeadTerminalMRID.
*/
public com.google.protobuf.ByteString
getNormalHeadTerminalMRIDBytes() {
java.lang.Object ref = normalHeadTerminalMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
normalHeadTerminalMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* mRID reference to the normal head terminal of this LvFeeder, typically the LV terminal of a distribution substation.
*
*
* string normalHeadTerminalMRID = 2;
* @param value The normalHeadTerminalMRID to set.
* @return This builder for chaining.
*/
public Builder setNormalHeadTerminalMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
normalHeadTerminalMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* mRID reference to the normal head terminal of this LvFeeder, typically the LV terminal of a distribution substation.
*
*
* string normalHeadTerminalMRID = 2;
* @return This builder for chaining.
*/
public Builder clearNormalHeadTerminalMRID() {
normalHeadTerminalMRID_ = getDefaultInstance().getNormalHeadTerminalMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* mRID reference to the normal head terminal of this LvFeeder, typically the LV terminal of a distribution substation.
*
*
* string normalHeadTerminalMRID = 2;
* @param value The bytes for normalHeadTerminalMRID to set.
* @return This builder for chaining.
*/
public Builder setNormalHeadTerminalMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
normalHeadTerminalMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList normalEnergizingFeederMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNormalEnergizingFeederMRIDsIsMutable() {
if (!normalEnergizingFeederMRIDs_.isModifiable()) {
normalEnergizingFeederMRIDs_ = new com.google.protobuf.LazyStringArrayList(normalEnergizingFeederMRIDs_);
}
bitField0_ |= 0x00000004;
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @return A list containing the normalEnergizingFeederMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getNormalEnergizingFeederMRIDsList() {
normalEnergizingFeederMRIDs_.makeImmutable();
return normalEnergizingFeederMRIDs_;
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @return The count of normalEnergizingFeederMRIDs.
*/
public int getNormalEnergizingFeederMRIDsCount() {
return normalEnergizingFeederMRIDs_.size();
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param index The index of the element to return.
* @return The normalEnergizingFeederMRIDs at the given index.
*/
public java.lang.String getNormalEnergizingFeederMRIDs(int index) {
return normalEnergizingFeederMRIDs_.get(index);
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the normalEnergizingFeederMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getNormalEnergizingFeederMRIDsBytes(int index) {
return normalEnergizingFeederMRIDs_.getByteString(index);
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param index The index to set the value at.
* @param value The normalEnergizingFeederMRIDs to set.
* @return This builder for chaining.
*/
public Builder setNormalEnergizingFeederMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNormalEnergizingFeederMRIDsIsMutable();
normalEnergizingFeederMRIDs_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param value The normalEnergizingFeederMRIDs to add.
* @return This builder for chaining.
*/
public Builder addNormalEnergizingFeederMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNormalEnergizingFeederMRIDsIsMutable();
normalEnergizingFeederMRIDs_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param values The normalEnergizingFeederMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllNormalEnergizingFeederMRIDs(
java.lang.Iterable values) {
ensureNormalEnergizingFeederMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, normalEnergizingFeederMRIDs_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @return This builder for chaining.
*/
public Builder clearNormalEnergizingFeederMRIDs() {
normalEnergizingFeederMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
**
* mRID reference to The HV/MV feeders that energize this LvFeeder.
*
*
* repeated string normalEnergizingFeederMRIDs = 3;
* @param value The bytes of the normalEnergizingFeederMRIDs to add.
* @return This builder for chaining.
*/
public Builder addNormalEnergizingFeederMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureNormalEnergizingFeederMRIDsIsMutable();
normalEnergizingFeederMRIDs_.add(value);
bitField0_ |= 0x00000004;
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.LvFeeder)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder)
private static final com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder();
}
public static com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LvFeeder getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LvFeeder 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.LvFeeder getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}