com.zepben.protobuf.nc.GetNetworkHierarchyResponse 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/nc/nc-responses.proto
package com.zepben.protobuf.nc;
/**
* Protobuf type {@code zepben.protobuf.nc.GetNetworkHierarchyResponse}
*/
public final class GetNetworkHierarchyResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.nc.GetNetworkHierarchyResponse)
GetNetworkHierarchyResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetNetworkHierarchyResponse.newBuilder() to construct.
private GetNetworkHierarchyResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetNetworkHierarchyResponse() {
geographicalRegions_ = java.util.Collections.emptyList();
subGeographicalRegions_ = java.util.Collections.emptyList();
substations_ = java.util.Collections.emptyList();
feeders_ = java.util.Collections.emptyList();
circuits_ = java.util.Collections.emptyList();
loops_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetNetworkHierarchyResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.nc.NcResponses.internal_static_zepben_protobuf_nc_GetNetworkHierarchyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.nc.NcResponses.internal_static_zepben_protobuf_nc_GetNetworkHierarchyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.nc.GetNetworkHierarchyResponse.class, com.zepben.protobuf.nc.GetNetworkHierarchyResponse.Builder.class);
}
public static final int MESSAGEID_FIELD_NUMBER = 1;
private long messageId_ = 0L;
/**
* int64 messageId = 1;
* @return The messageId.
*/
@java.lang.Override
public long getMessageId() {
return messageId_;
}
public static final int GEOGRAPHICALREGIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List geographicalRegions_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
@java.lang.Override
public java.util.List getGeographicalRegionsList() {
return geographicalRegions_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegionOrBuilder>
getGeographicalRegionsOrBuilderList() {
return geographicalRegions_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
@java.lang.Override
public int getGeographicalRegionsCount() {
return geographicalRegions_.size();
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion getGeographicalRegions(int index) {
return geographicalRegions_.get(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegionOrBuilder getGeographicalRegionsOrBuilder(
int index) {
return geographicalRegions_.get(index);
}
public static final int SUBGEOGRAPHICALREGIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List subGeographicalRegions_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
@java.lang.Override
public java.util.List getSubGeographicalRegionsList() {
return subGeographicalRegions_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegionOrBuilder>
getSubGeographicalRegionsOrBuilderList() {
return subGeographicalRegions_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
@java.lang.Override
public int getSubGeographicalRegionsCount() {
return subGeographicalRegions_.size();
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion getSubGeographicalRegions(int index) {
return subGeographicalRegions_.get(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegionOrBuilder getSubGeographicalRegionsOrBuilder(
int index) {
return subGeographicalRegions_.get(index);
}
public static final int SUBSTATIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List substations_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
@java.lang.Override
public java.util.List getSubstationsList() {
return substations_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.SubstationOrBuilder>
getSubstationsOrBuilderList() {
return substations_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
@java.lang.Override
public int getSubstationsCount() {
return substations_.size();
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.Substation getSubstations(int index) {
return substations_.get(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.SubstationOrBuilder getSubstationsOrBuilder(
int index) {
return substations_.get(index);
}
public static final int FEEDERS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List feeders_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
@java.lang.Override
public java.util.List getFeedersList() {
return feeders_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.FeederOrBuilder>
getFeedersOrBuilderList() {
return feeders_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
@java.lang.Override
public int getFeedersCount() {
return feeders_.size();
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.Feeder getFeeders(int index) {
return feeders_.get(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.FeederOrBuilder getFeedersOrBuilder(
int index) {
return feeders_.get(index);
}
public static final int CIRCUITS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List circuits_;
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
@java.lang.Override
public java.util.List getCircuitsList() {
return circuits_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder>
getCircuitsOrBuilderList() {
return circuits_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
@java.lang.Override
public int getCircuitsCount() {
return circuits_.size();
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit getCircuits(int index) {
return circuits_.get(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder getCircuitsOrBuilder(
int index) {
return circuits_.get(index);
}
public static final int LOOPS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List loops_;
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
@java.lang.Override
public java.util.List getLoopsList() {
return loops_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder>
getLoopsOrBuilderList() {
return loops_;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
@java.lang.Override
public int getLoopsCount() {
return loops_.size();
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop getLoops(int index) {
return loops_.get(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder getLoopsOrBuilder(
int index) {
return loops_.get(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 (messageId_ != 0L) {
output.writeInt64(1, messageId_);
}
for (int i = 0; i < geographicalRegions_.size(); i++) {
output.writeMessage(2, geographicalRegions_.get(i));
}
for (int i = 0; i < subGeographicalRegions_.size(); i++) {
output.writeMessage(3, subGeographicalRegions_.get(i));
}
for (int i = 0; i < substations_.size(); i++) {
output.writeMessage(4, substations_.get(i));
}
for (int i = 0; i < feeders_.size(); i++) {
output.writeMessage(5, feeders_.get(i));
}
for (int i = 0; i < circuits_.size(); i++) {
output.writeMessage(6, circuits_.get(i));
}
for (int i = 0; i < loops_.size(); i++) {
output.writeMessage(7, loops_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (messageId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, messageId_);
}
for (int i = 0; i < geographicalRegions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, geographicalRegions_.get(i));
}
for (int i = 0; i < subGeographicalRegions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, subGeographicalRegions_.get(i));
}
for (int i = 0; i < substations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, substations_.get(i));
}
for (int i = 0; i < feeders_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, feeders_.get(i));
}
for (int i = 0; i < circuits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, circuits_.get(i));
}
for (int i = 0; i < loops_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, loops_.get(i));
}
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.nc.GetNetworkHierarchyResponse)) {
return super.equals(obj);
}
com.zepben.protobuf.nc.GetNetworkHierarchyResponse other = (com.zepben.protobuf.nc.GetNetworkHierarchyResponse) obj;
if (getMessageId()
!= other.getMessageId()) return false;
if (!getGeographicalRegionsList()
.equals(other.getGeographicalRegionsList())) return false;
if (!getSubGeographicalRegionsList()
.equals(other.getSubGeographicalRegionsList())) return false;
if (!getSubstationsList()
.equals(other.getSubstationsList())) return false;
if (!getFeedersList()
.equals(other.getFeedersList())) return false;
if (!getCircuitsList()
.equals(other.getCircuitsList())) return false;
if (!getLoopsList()
.equals(other.getLoopsList())) 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();
hash = (37 * hash) + MESSAGEID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMessageId());
if (getGeographicalRegionsCount() > 0) {
hash = (37 * hash) + GEOGRAPHICALREGIONS_FIELD_NUMBER;
hash = (53 * hash) + getGeographicalRegionsList().hashCode();
}
if (getSubGeographicalRegionsCount() > 0) {
hash = (37 * hash) + SUBGEOGRAPHICALREGIONS_FIELD_NUMBER;
hash = (53 * hash) + getSubGeographicalRegionsList().hashCode();
}
if (getSubstationsCount() > 0) {
hash = (37 * hash) + SUBSTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getSubstationsList().hashCode();
}
if (getFeedersCount() > 0) {
hash = (37 * hash) + FEEDERS_FIELD_NUMBER;
hash = (53 * hash) + getFeedersList().hashCode();
}
if (getCircuitsCount() > 0) {
hash = (37 * hash) + CIRCUITS_FIELD_NUMBER;
hash = (53 * hash) + getCircuitsList().hashCode();
}
if (getLoopsCount() > 0) {
hash = (37 * hash) + LOOPS_FIELD_NUMBER;
hash = (53 * hash) + getLoopsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse 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.nc.GetNetworkHierarchyResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse 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.nc.GetNetworkHierarchyResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse 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.nc.GetNetworkHierarchyResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse 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.nc.GetNetworkHierarchyResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse 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.nc.GetNetworkHierarchyResponse 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;
}
/**
* Protobuf type {@code zepben.protobuf.nc.GetNetworkHierarchyResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.nc.GetNetworkHierarchyResponse)
com.zepben.protobuf.nc.GetNetworkHierarchyResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.nc.NcResponses.internal_static_zepben_protobuf_nc_GetNetworkHierarchyResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.nc.NcResponses.internal_static_zepben_protobuf_nc_GetNetworkHierarchyResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.nc.GetNetworkHierarchyResponse.class, com.zepben.protobuf.nc.GetNetworkHierarchyResponse.Builder.class);
}
// Construct using com.zepben.protobuf.nc.GetNetworkHierarchyResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
messageId_ = 0L;
if (geographicalRegionsBuilder_ == null) {
geographicalRegions_ = java.util.Collections.emptyList();
} else {
geographicalRegions_ = null;
geographicalRegionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (subGeographicalRegionsBuilder_ == null) {
subGeographicalRegions_ = java.util.Collections.emptyList();
} else {
subGeographicalRegions_ = null;
subGeographicalRegionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (substationsBuilder_ == null) {
substations_ = java.util.Collections.emptyList();
} else {
substations_ = null;
substationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (feedersBuilder_ == null) {
feeders_ = java.util.Collections.emptyList();
} else {
feeders_ = null;
feedersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (circuitsBuilder_ == null) {
circuits_ = java.util.Collections.emptyList();
} else {
circuits_ = null;
circuitsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (loopsBuilder_ == null) {
loops_ = java.util.Collections.emptyList();
} else {
loops_ = null;
loopsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.nc.NcResponses.internal_static_zepben_protobuf_nc_GetNetworkHierarchyResponse_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.nc.GetNetworkHierarchyResponse getDefaultInstanceForType() {
return com.zepben.protobuf.nc.GetNetworkHierarchyResponse.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.nc.GetNetworkHierarchyResponse build() {
com.zepben.protobuf.nc.GetNetworkHierarchyResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.nc.GetNetworkHierarchyResponse buildPartial() {
com.zepben.protobuf.nc.GetNetworkHierarchyResponse result = new com.zepben.protobuf.nc.GetNetworkHierarchyResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.zepben.protobuf.nc.GetNetworkHierarchyResponse result) {
if (geographicalRegionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
geographicalRegions_ = java.util.Collections.unmodifiableList(geographicalRegions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.geographicalRegions_ = geographicalRegions_;
} else {
result.geographicalRegions_ = geographicalRegionsBuilder_.build();
}
if (subGeographicalRegionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
subGeographicalRegions_ = java.util.Collections.unmodifiableList(subGeographicalRegions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.subGeographicalRegions_ = subGeographicalRegions_;
} else {
result.subGeographicalRegions_ = subGeographicalRegionsBuilder_.build();
}
if (substationsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
substations_ = java.util.Collections.unmodifiableList(substations_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.substations_ = substations_;
} else {
result.substations_ = substationsBuilder_.build();
}
if (feedersBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
feeders_ = java.util.Collections.unmodifiableList(feeders_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.feeders_ = feeders_;
} else {
result.feeders_ = feedersBuilder_.build();
}
if (circuitsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
circuits_ = java.util.Collections.unmodifiableList(circuits_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.circuits_ = circuits_;
} else {
result.circuits_ = circuitsBuilder_.build();
}
if (loopsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
loops_ = java.util.Collections.unmodifiableList(loops_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.loops_ = loops_;
} else {
result.loops_ = loopsBuilder_.build();
}
}
private void buildPartial0(com.zepben.protobuf.nc.GetNetworkHierarchyResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.messageId_ = messageId_;
}
}
@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.nc.GetNetworkHierarchyResponse) {
return mergeFrom((com.zepben.protobuf.nc.GetNetworkHierarchyResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.nc.GetNetworkHierarchyResponse other) {
if (other == com.zepben.protobuf.nc.GetNetworkHierarchyResponse.getDefaultInstance()) return this;
if (other.getMessageId() != 0L) {
setMessageId(other.getMessageId());
}
if (geographicalRegionsBuilder_ == null) {
if (!other.geographicalRegions_.isEmpty()) {
if (geographicalRegions_.isEmpty()) {
geographicalRegions_ = other.geographicalRegions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureGeographicalRegionsIsMutable();
geographicalRegions_.addAll(other.geographicalRegions_);
}
onChanged();
}
} else {
if (!other.geographicalRegions_.isEmpty()) {
if (geographicalRegionsBuilder_.isEmpty()) {
geographicalRegionsBuilder_.dispose();
geographicalRegionsBuilder_ = null;
geographicalRegions_ = other.geographicalRegions_;
bitField0_ = (bitField0_ & ~0x00000002);
geographicalRegionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGeographicalRegionsFieldBuilder() : null;
} else {
geographicalRegionsBuilder_.addAllMessages(other.geographicalRegions_);
}
}
}
if (subGeographicalRegionsBuilder_ == null) {
if (!other.subGeographicalRegions_.isEmpty()) {
if (subGeographicalRegions_.isEmpty()) {
subGeographicalRegions_ = other.subGeographicalRegions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.addAll(other.subGeographicalRegions_);
}
onChanged();
}
} else {
if (!other.subGeographicalRegions_.isEmpty()) {
if (subGeographicalRegionsBuilder_.isEmpty()) {
subGeographicalRegionsBuilder_.dispose();
subGeographicalRegionsBuilder_ = null;
subGeographicalRegions_ = other.subGeographicalRegions_;
bitField0_ = (bitField0_ & ~0x00000004);
subGeographicalRegionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSubGeographicalRegionsFieldBuilder() : null;
} else {
subGeographicalRegionsBuilder_.addAllMessages(other.subGeographicalRegions_);
}
}
}
if (substationsBuilder_ == null) {
if (!other.substations_.isEmpty()) {
if (substations_.isEmpty()) {
substations_ = other.substations_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSubstationsIsMutable();
substations_.addAll(other.substations_);
}
onChanged();
}
} else {
if (!other.substations_.isEmpty()) {
if (substationsBuilder_.isEmpty()) {
substationsBuilder_.dispose();
substationsBuilder_ = null;
substations_ = other.substations_;
bitField0_ = (bitField0_ & ~0x00000008);
substationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSubstationsFieldBuilder() : null;
} else {
substationsBuilder_.addAllMessages(other.substations_);
}
}
}
if (feedersBuilder_ == null) {
if (!other.feeders_.isEmpty()) {
if (feeders_.isEmpty()) {
feeders_ = other.feeders_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureFeedersIsMutable();
feeders_.addAll(other.feeders_);
}
onChanged();
}
} else {
if (!other.feeders_.isEmpty()) {
if (feedersBuilder_.isEmpty()) {
feedersBuilder_.dispose();
feedersBuilder_ = null;
feeders_ = other.feeders_;
bitField0_ = (bitField0_ & ~0x00000010);
feedersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFeedersFieldBuilder() : null;
} else {
feedersBuilder_.addAllMessages(other.feeders_);
}
}
}
if (circuitsBuilder_ == null) {
if (!other.circuits_.isEmpty()) {
if (circuits_.isEmpty()) {
circuits_ = other.circuits_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCircuitsIsMutable();
circuits_.addAll(other.circuits_);
}
onChanged();
}
} else {
if (!other.circuits_.isEmpty()) {
if (circuitsBuilder_.isEmpty()) {
circuitsBuilder_.dispose();
circuitsBuilder_ = null;
circuits_ = other.circuits_;
bitField0_ = (bitField0_ & ~0x00000020);
circuitsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCircuitsFieldBuilder() : null;
} else {
circuitsBuilder_.addAllMessages(other.circuits_);
}
}
}
if (loopsBuilder_ == null) {
if (!other.loops_.isEmpty()) {
if (loops_.isEmpty()) {
loops_ = other.loops_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureLoopsIsMutable();
loops_.addAll(other.loops_);
}
onChanged();
}
} else {
if (!other.loops_.isEmpty()) {
if (loopsBuilder_.isEmpty()) {
loopsBuilder_.dispose();
loopsBuilder_ = null;
loops_ = other.loops_;
bitField0_ = (bitField0_ & ~0x00000040);
loopsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLoopsFieldBuilder() : null;
} else {
loopsBuilder_.addAllMessages(other.loops_);
}
}
}
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 8: {
messageId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion m =
input.readMessage(
com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.parser(),
extensionRegistry);
if (geographicalRegionsBuilder_ == null) {
ensureGeographicalRegionsIsMutable();
geographicalRegions_.add(m);
} else {
geographicalRegionsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion m =
input.readMessage(
com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.parser(),
extensionRegistry);
if (subGeographicalRegionsBuilder_ == null) {
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.add(m);
} else {
subGeographicalRegionsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
com.zepben.protobuf.cim.iec61970.base.core.Substation m =
input.readMessage(
com.zepben.protobuf.cim.iec61970.base.core.Substation.parser(),
extensionRegistry);
if (substationsBuilder_ == null) {
ensureSubstationsIsMutable();
substations_.add(m);
} else {
substationsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
com.zepben.protobuf.cim.iec61970.base.core.Feeder m =
input.readMessage(
com.zepben.protobuf.cim.iec61970.base.core.Feeder.parser(),
extensionRegistry);
if (feedersBuilder_ == null) {
ensureFeedersIsMutable();
feeders_.add(m);
} else {
feedersBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit m =
input.readMessage(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.parser(),
extensionRegistry);
if (circuitsBuilder_ == null) {
ensureCircuitsIsMutable();
circuits_.add(m);
} else {
circuitsBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop m =
input.readMessage(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.parser(),
extensionRegistry);
if (loopsBuilder_ == null) {
ensureLoopsIsMutable();
loops_.add(m);
} else {
loopsBuilder_.addMessage(m);
}
break;
} // case 58
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 long messageId_ ;
/**
* int64 messageId = 1;
* @return The messageId.
*/
@java.lang.Override
public long getMessageId() {
return messageId_;
}
/**
* int64 messageId = 1;
* @param value The messageId to set.
* @return This builder for chaining.
*/
public Builder setMessageId(long value) {
messageId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 messageId = 1;
* @return This builder for chaining.
*/
public Builder clearMessageId() {
bitField0_ = (bitField0_ & ~0x00000001);
messageId_ = 0L;
onChanged();
return this;
}
private java.util.List geographicalRegions_ =
java.util.Collections.emptyList();
private void ensureGeographicalRegionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
geographicalRegions_ = new java.util.ArrayList(geographicalRegions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegionOrBuilder> geographicalRegionsBuilder_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public java.util.List getGeographicalRegionsList() {
if (geographicalRegionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(geographicalRegions_);
} else {
return geographicalRegionsBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public int getGeographicalRegionsCount() {
if (geographicalRegionsBuilder_ == null) {
return geographicalRegions_.size();
} else {
return geographicalRegionsBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion getGeographicalRegions(int index) {
if (geographicalRegionsBuilder_ == null) {
return geographicalRegions_.get(index);
} else {
return geographicalRegionsBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder setGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion value) {
if (geographicalRegionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeographicalRegionsIsMutable();
geographicalRegions_.set(index, value);
onChanged();
} else {
geographicalRegionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder setGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder builderForValue) {
if (geographicalRegionsBuilder_ == null) {
ensureGeographicalRegionsIsMutable();
geographicalRegions_.set(index, builderForValue.build());
onChanged();
} else {
geographicalRegionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder addGeographicalRegions(com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion value) {
if (geographicalRegionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeographicalRegionsIsMutable();
geographicalRegions_.add(value);
onChanged();
} else {
geographicalRegionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder addGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion value) {
if (geographicalRegionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeographicalRegionsIsMutable();
geographicalRegions_.add(index, value);
onChanged();
} else {
geographicalRegionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder addGeographicalRegions(
com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder builderForValue) {
if (geographicalRegionsBuilder_ == null) {
ensureGeographicalRegionsIsMutable();
geographicalRegions_.add(builderForValue.build());
onChanged();
} else {
geographicalRegionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder addGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder builderForValue) {
if (geographicalRegionsBuilder_ == null) {
ensureGeographicalRegionsIsMutable();
geographicalRegions_.add(index, builderForValue.build());
onChanged();
} else {
geographicalRegionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder addAllGeographicalRegions(
java.lang.Iterable extends com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion> values) {
if (geographicalRegionsBuilder_ == null) {
ensureGeographicalRegionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, geographicalRegions_);
onChanged();
} else {
geographicalRegionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder clearGeographicalRegions() {
if (geographicalRegionsBuilder_ == null) {
geographicalRegions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
geographicalRegionsBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public Builder removeGeographicalRegions(int index) {
if (geographicalRegionsBuilder_ == null) {
ensureGeographicalRegionsIsMutable();
geographicalRegions_.remove(index);
onChanged();
} else {
geographicalRegionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder getGeographicalRegionsBuilder(
int index) {
return getGeographicalRegionsFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegionOrBuilder getGeographicalRegionsOrBuilder(
int index) {
if (geographicalRegionsBuilder_ == null) {
return geographicalRegions_.get(index); } else {
return geographicalRegionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegionOrBuilder>
getGeographicalRegionsOrBuilderList() {
if (geographicalRegionsBuilder_ != null) {
return geographicalRegionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(geographicalRegions_);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder addGeographicalRegionsBuilder() {
return getGeographicalRegionsFieldBuilder().addBuilder(
com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder addGeographicalRegionsBuilder(
int index) {
return getGeographicalRegionsFieldBuilder().addBuilder(
index, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.GeographicalRegion geographicalRegions = 2;
*/
public java.util.List
getGeographicalRegionsBuilderList() {
return getGeographicalRegionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegionOrBuilder>
getGeographicalRegionsFieldBuilder() {
if (geographicalRegionsBuilder_ == null) {
geographicalRegionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegion.Builder, com.zepben.protobuf.cim.iec61970.base.core.GeographicalRegionOrBuilder>(
geographicalRegions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
geographicalRegions_ = null;
}
return geographicalRegionsBuilder_;
}
private java.util.List subGeographicalRegions_ =
java.util.Collections.emptyList();
private void ensureSubGeographicalRegionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
subGeographicalRegions_ = new java.util.ArrayList(subGeographicalRegions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegionOrBuilder> subGeographicalRegionsBuilder_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public java.util.List getSubGeographicalRegionsList() {
if (subGeographicalRegionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(subGeographicalRegions_);
} else {
return subGeographicalRegionsBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public int getSubGeographicalRegionsCount() {
if (subGeographicalRegionsBuilder_ == null) {
return subGeographicalRegions_.size();
} else {
return subGeographicalRegionsBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion getSubGeographicalRegions(int index) {
if (subGeographicalRegionsBuilder_ == null) {
return subGeographicalRegions_.get(index);
} else {
return subGeographicalRegionsBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder setSubGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion value) {
if (subGeographicalRegionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.set(index, value);
onChanged();
} else {
subGeographicalRegionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder setSubGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder builderForValue) {
if (subGeographicalRegionsBuilder_ == null) {
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.set(index, builderForValue.build());
onChanged();
} else {
subGeographicalRegionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder addSubGeographicalRegions(com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion value) {
if (subGeographicalRegionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.add(value);
onChanged();
} else {
subGeographicalRegionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder addSubGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion value) {
if (subGeographicalRegionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.add(index, value);
onChanged();
} else {
subGeographicalRegionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder addSubGeographicalRegions(
com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder builderForValue) {
if (subGeographicalRegionsBuilder_ == null) {
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.add(builderForValue.build());
onChanged();
} else {
subGeographicalRegionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder addSubGeographicalRegions(
int index, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder builderForValue) {
if (subGeographicalRegionsBuilder_ == null) {
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.add(index, builderForValue.build());
onChanged();
} else {
subGeographicalRegionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder addAllSubGeographicalRegions(
java.lang.Iterable extends com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion> values) {
if (subGeographicalRegionsBuilder_ == null) {
ensureSubGeographicalRegionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subGeographicalRegions_);
onChanged();
} else {
subGeographicalRegionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder clearSubGeographicalRegions() {
if (subGeographicalRegionsBuilder_ == null) {
subGeographicalRegions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
subGeographicalRegionsBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public Builder removeSubGeographicalRegions(int index) {
if (subGeographicalRegionsBuilder_ == null) {
ensureSubGeographicalRegionsIsMutable();
subGeographicalRegions_.remove(index);
onChanged();
} else {
subGeographicalRegionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder getSubGeographicalRegionsBuilder(
int index) {
return getSubGeographicalRegionsFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegionOrBuilder getSubGeographicalRegionsOrBuilder(
int index) {
if (subGeographicalRegionsBuilder_ == null) {
return subGeographicalRegions_.get(index); } else {
return subGeographicalRegionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegionOrBuilder>
getSubGeographicalRegionsOrBuilderList() {
if (subGeographicalRegionsBuilder_ != null) {
return subGeographicalRegionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(subGeographicalRegions_);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder addSubGeographicalRegionsBuilder() {
return getSubGeographicalRegionsFieldBuilder().addBuilder(
com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder addSubGeographicalRegionsBuilder(
int index) {
return getSubGeographicalRegionsFieldBuilder().addBuilder(
index, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion subGeographicalRegions = 3;
*/
public java.util.List
getSubGeographicalRegionsBuilderList() {
return getSubGeographicalRegionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegionOrBuilder>
getSubGeographicalRegionsFieldBuilder() {
if (subGeographicalRegionsBuilder_ == null) {
subGeographicalRegionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegion.Builder, com.zepben.protobuf.cim.iec61970.base.core.SubGeographicalRegionOrBuilder>(
subGeographicalRegions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
subGeographicalRegions_ = null;
}
return subGeographicalRegionsBuilder_;
}
private java.util.List substations_ =
java.util.Collections.emptyList();
private void ensureSubstationsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
substations_ = new java.util.ArrayList(substations_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Substation, com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder, com.zepben.protobuf.cim.iec61970.base.core.SubstationOrBuilder> substationsBuilder_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public java.util.List getSubstationsList() {
if (substationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(substations_);
} else {
return substationsBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public int getSubstationsCount() {
if (substationsBuilder_ == null) {
return substations_.size();
} else {
return substationsBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Substation getSubstations(int index) {
if (substationsBuilder_ == null) {
return substations_.get(index);
} else {
return substationsBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder setSubstations(
int index, com.zepben.protobuf.cim.iec61970.base.core.Substation value) {
if (substationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubstationsIsMutable();
substations_.set(index, value);
onChanged();
} else {
substationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder setSubstations(
int index, com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder builderForValue) {
if (substationsBuilder_ == null) {
ensureSubstationsIsMutable();
substations_.set(index, builderForValue.build());
onChanged();
} else {
substationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder addSubstations(com.zepben.protobuf.cim.iec61970.base.core.Substation value) {
if (substationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubstationsIsMutable();
substations_.add(value);
onChanged();
} else {
substationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder addSubstations(
int index, com.zepben.protobuf.cim.iec61970.base.core.Substation value) {
if (substationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubstationsIsMutable();
substations_.add(index, value);
onChanged();
} else {
substationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder addSubstations(
com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder builderForValue) {
if (substationsBuilder_ == null) {
ensureSubstationsIsMutable();
substations_.add(builderForValue.build());
onChanged();
} else {
substationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder addSubstations(
int index, com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder builderForValue) {
if (substationsBuilder_ == null) {
ensureSubstationsIsMutable();
substations_.add(index, builderForValue.build());
onChanged();
} else {
substationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder addAllSubstations(
java.lang.Iterable extends com.zepben.protobuf.cim.iec61970.base.core.Substation> values) {
if (substationsBuilder_ == null) {
ensureSubstationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, substations_);
onChanged();
} else {
substationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder clearSubstations() {
if (substationsBuilder_ == null) {
substations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
substationsBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public Builder removeSubstations(int index) {
if (substationsBuilder_ == null) {
ensureSubstationsIsMutable();
substations_.remove(index);
onChanged();
} else {
substationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder getSubstationsBuilder(
int index) {
return getSubstationsFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public com.zepben.protobuf.cim.iec61970.base.core.SubstationOrBuilder getSubstationsOrBuilder(
int index) {
if (substationsBuilder_ == null) {
return substations_.get(index); } else {
return substationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.SubstationOrBuilder>
getSubstationsOrBuilderList() {
if (substationsBuilder_ != null) {
return substationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(substations_);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder addSubstationsBuilder() {
return getSubstationsFieldBuilder().addBuilder(
com.zepben.protobuf.cim.iec61970.base.core.Substation.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder addSubstationsBuilder(
int index) {
return getSubstationsFieldBuilder().addBuilder(
index, com.zepben.protobuf.cim.iec61970.base.core.Substation.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Substation substations = 4;
*/
public java.util.List
getSubstationsBuilderList() {
return getSubstationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Substation, com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder, com.zepben.protobuf.cim.iec61970.base.core.SubstationOrBuilder>
getSubstationsFieldBuilder() {
if (substationsBuilder_ == null) {
substationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Substation, com.zepben.protobuf.cim.iec61970.base.core.Substation.Builder, com.zepben.protobuf.cim.iec61970.base.core.SubstationOrBuilder>(
substations_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
substations_ = null;
}
return substationsBuilder_;
}
private java.util.List feeders_ =
java.util.Collections.emptyList();
private void ensureFeedersIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
feeders_ = new java.util.ArrayList(feeders_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Feeder, com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder, com.zepben.protobuf.cim.iec61970.base.core.FeederOrBuilder> feedersBuilder_;
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public java.util.List getFeedersList() {
if (feedersBuilder_ == null) {
return java.util.Collections.unmodifiableList(feeders_);
} else {
return feedersBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public int getFeedersCount() {
if (feedersBuilder_ == null) {
return feeders_.size();
} else {
return feedersBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Feeder getFeeders(int index) {
if (feedersBuilder_ == null) {
return feeders_.get(index);
} else {
return feedersBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder setFeeders(
int index, com.zepben.protobuf.cim.iec61970.base.core.Feeder value) {
if (feedersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeedersIsMutable();
feeders_.set(index, value);
onChanged();
} else {
feedersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder setFeeders(
int index, com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder builderForValue) {
if (feedersBuilder_ == null) {
ensureFeedersIsMutable();
feeders_.set(index, builderForValue.build());
onChanged();
} else {
feedersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder addFeeders(com.zepben.protobuf.cim.iec61970.base.core.Feeder value) {
if (feedersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeedersIsMutable();
feeders_.add(value);
onChanged();
} else {
feedersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder addFeeders(
int index, com.zepben.protobuf.cim.iec61970.base.core.Feeder value) {
if (feedersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeedersIsMutable();
feeders_.add(index, value);
onChanged();
} else {
feedersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder addFeeders(
com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder builderForValue) {
if (feedersBuilder_ == null) {
ensureFeedersIsMutable();
feeders_.add(builderForValue.build());
onChanged();
} else {
feedersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder addFeeders(
int index, com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder builderForValue) {
if (feedersBuilder_ == null) {
ensureFeedersIsMutable();
feeders_.add(index, builderForValue.build());
onChanged();
} else {
feedersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder addAllFeeders(
java.lang.Iterable extends com.zepben.protobuf.cim.iec61970.base.core.Feeder> values) {
if (feedersBuilder_ == null) {
ensureFeedersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, feeders_);
onChanged();
} else {
feedersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder clearFeeders() {
if (feedersBuilder_ == null) {
feeders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
feedersBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public Builder removeFeeders(int index) {
if (feedersBuilder_ == null) {
ensureFeedersIsMutable();
feeders_.remove(index);
onChanged();
} else {
feedersBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder getFeedersBuilder(
int index) {
return getFeedersFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public com.zepben.protobuf.cim.iec61970.base.core.FeederOrBuilder getFeedersOrBuilder(
int index) {
if (feedersBuilder_ == null) {
return feeders_.get(index); } else {
return feedersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public java.util.List extends com.zepben.protobuf.cim.iec61970.base.core.FeederOrBuilder>
getFeedersOrBuilderList() {
if (feedersBuilder_ != null) {
return feedersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(feeders_);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder addFeedersBuilder() {
return getFeedersFieldBuilder().addBuilder(
com.zepben.protobuf.cim.iec61970.base.core.Feeder.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder addFeedersBuilder(
int index) {
return getFeedersFieldBuilder().addBuilder(
index, com.zepben.protobuf.cim.iec61970.base.core.Feeder.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.base.core.Feeder feeders = 5;
*/
public java.util.List
getFeedersBuilderList() {
return getFeedersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Feeder, com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder, com.zepben.protobuf.cim.iec61970.base.core.FeederOrBuilder>
getFeedersFieldBuilder() {
if (feedersBuilder_ == null) {
feedersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Feeder, com.zepben.protobuf.cim.iec61970.base.core.Feeder.Builder, com.zepben.protobuf.cim.iec61970.base.core.FeederOrBuilder>(
feeders_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
feeders_ = null;
}
return feedersBuilder_;
}
private java.util.List circuits_ =
java.util.Collections.emptyList();
private void ensureCircuitsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
circuits_ = new java.util.ArrayList(circuits_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder> circuitsBuilder_;
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public java.util.List getCircuitsList() {
if (circuitsBuilder_ == null) {
return java.util.Collections.unmodifiableList(circuits_);
} else {
return circuitsBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public int getCircuitsCount() {
if (circuitsBuilder_ == null) {
return circuits_.size();
} else {
return circuitsBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit getCircuits(int index) {
if (circuitsBuilder_ == null) {
return circuits_.get(index);
} else {
return circuitsBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder setCircuits(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit value) {
if (circuitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCircuitsIsMutable();
circuits_.set(index, value);
onChanged();
} else {
circuitsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder setCircuits(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder builderForValue) {
if (circuitsBuilder_ == null) {
ensureCircuitsIsMutable();
circuits_.set(index, builderForValue.build());
onChanged();
} else {
circuitsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder addCircuits(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit value) {
if (circuitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCircuitsIsMutable();
circuits_.add(value);
onChanged();
} else {
circuitsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder addCircuits(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit value) {
if (circuitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCircuitsIsMutable();
circuits_.add(index, value);
onChanged();
} else {
circuitsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder addCircuits(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder builderForValue) {
if (circuitsBuilder_ == null) {
ensureCircuitsIsMutable();
circuits_.add(builderForValue.build());
onChanged();
} else {
circuitsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder addCircuits(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder builderForValue) {
if (circuitsBuilder_ == null) {
ensureCircuitsIsMutable();
circuits_.add(index, builderForValue.build());
onChanged();
} else {
circuitsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder addAllCircuits(
java.lang.Iterable extends com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit> values) {
if (circuitsBuilder_ == null) {
ensureCircuitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, circuits_);
onChanged();
} else {
circuitsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder clearCircuits() {
if (circuitsBuilder_ == null) {
circuits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
circuitsBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public Builder removeCircuits(int index) {
if (circuitsBuilder_ == null) {
ensureCircuitsIsMutable();
circuits_.remove(index);
onChanged();
} else {
circuitsBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder getCircuitsBuilder(
int index) {
return getCircuitsFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder getCircuitsOrBuilder(
int index) {
if (circuitsBuilder_ == null) {
return circuits_.get(index); } else {
return circuitsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public java.util.List extends com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder>
getCircuitsOrBuilderList() {
if (circuitsBuilder_ != null) {
return circuitsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(circuits_);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder addCircuitsBuilder() {
return getCircuitsFieldBuilder().addBuilder(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder addCircuitsBuilder(
int index) {
return getCircuitsFieldBuilder().addBuilder(
index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit circuits = 6;
*/
public java.util.List
getCircuitsBuilderList() {
return getCircuitsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder>
getCircuitsFieldBuilder() {
if (circuitsBuilder_ == null) {
circuitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Circuit.Builder, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.CircuitOrBuilder>(
circuits_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
circuits_ = null;
}
return circuitsBuilder_;
}
private java.util.List loops_ =
java.util.Collections.emptyList();
private void ensureLoopsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
loops_ = new java.util.ArrayList(loops_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder> loopsBuilder_;
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public java.util.List getLoopsList() {
if (loopsBuilder_ == null) {
return java.util.Collections.unmodifiableList(loops_);
} else {
return loopsBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public int getLoopsCount() {
if (loopsBuilder_ == null) {
return loops_.size();
} else {
return loopsBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop getLoops(int index) {
if (loopsBuilder_ == null) {
return loops_.get(index);
} else {
return loopsBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder setLoops(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop value) {
if (loopsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoopsIsMutable();
loops_.set(index, value);
onChanged();
} else {
loopsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder setLoops(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder builderForValue) {
if (loopsBuilder_ == null) {
ensureLoopsIsMutable();
loops_.set(index, builderForValue.build());
onChanged();
} else {
loopsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder addLoops(com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop value) {
if (loopsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoopsIsMutable();
loops_.add(value);
onChanged();
} else {
loopsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder addLoops(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop value) {
if (loopsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoopsIsMutable();
loops_.add(index, value);
onChanged();
} else {
loopsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder addLoops(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder builderForValue) {
if (loopsBuilder_ == null) {
ensureLoopsIsMutable();
loops_.add(builderForValue.build());
onChanged();
} else {
loopsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder addLoops(
int index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder builderForValue) {
if (loopsBuilder_ == null) {
ensureLoopsIsMutable();
loops_.add(index, builderForValue.build());
onChanged();
} else {
loopsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder addAllLoops(
java.lang.Iterable extends com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop> values) {
if (loopsBuilder_ == null) {
ensureLoopsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, loops_);
onChanged();
} else {
loopsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder clearLoops() {
if (loopsBuilder_ == null) {
loops_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
loopsBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public Builder removeLoops(int index) {
if (loopsBuilder_ == null) {
ensureLoopsIsMutable();
loops_.remove(index);
onChanged();
} else {
loopsBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder getLoopsBuilder(
int index) {
return getLoopsFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder getLoopsOrBuilder(
int index) {
if (loopsBuilder_ == null) {
return loops_.get(index); } else {
return loopsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public java.util.List extends com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder>
getLoopsOrBuilderList() {
if (loopsBuilder_ != null) {
return loopsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(loops_);
}
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder addLoopsBuilder() {
return getLoopsFieldBuilder().addBuilder(
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder addLoopsBuilder(
int index) {
return getLoopsFieldBuilder().addBuilder(
index, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop loops = 7;
*/
public java.util.List
getLoopsBuilderList() {
return getLoopsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder>
getLoopsFieldBuilder() {
if (loopsBuilder_ == null) {
loopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.Loop.Builder, com.zepben.protobuf.cim.iec61970.infiec61970.feeder.LoopOrBuilder>(
loops_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
loops_ = null;
}
return loopsBuilder_;
}
@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.nc.GetNetworkHierarchyResponse)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.nc.GetNetworkHierarchyResponse)
private static final com.zepben.protobuf.nc.GetNetworkHierarchyResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.nc.GetNetworkHierarchyResponse();
}
public static com.zepben.protobuf.nc.GetNetworkHierarchyResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetNetworkHierarchyResponse 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.nc.GetNetworkHierarchyResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}