com.zepben.protobuf.hc.opendss.IsolatedBusesReport 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/hc/opendss/Diagnostics.proto
package com.zepben.protobuf.hc.opendss;
/**
*
**
* Messages for streaming the isolated elements report (disconnected buses, areas and elements)
*
*
* Protobuf type {@code zepben.protobuf.hc.opendss.IsolatedBusesReport}
*/
public final class IsolatedBusesReport extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.IsolatedBusesReport)
IsolatedBusesReportOrBuilder {
private static final long serialVersionUID = 0L;
// Use IsolatedBusesReport.newBuilder() to construct.
private IsolatedBusesReport(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IsolatedBusesReport() {
disconnectedBuses_ =
com.google.protobuf.LazyStringArrayList.emptyList();
isolatedSubAreas_ = java.util.Collections.emptyList();
isolatedElements_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IsolatedBusesReport();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_IsolatedBusesReport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_IsolatedBusesReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.hc.opendss.IsolatedBusesReport.class, com.zepben.protobuf.hc.opendss.IsolatedBusesReport.Builder.class);
}
public static final int DISCONNECTEDBUSES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList disconnectedBuses_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string disconnectedBuses = 1;
* @return A list containing the disconnectedBuses.
*/
public com.google.protobuf.ProtocolStringList
getDisconnectedBusesList() {
return disconnectedBuses_;
}
/**
* repeated string disconnectedBuses = 1;
* @return The count of disconnectedBuses.
*/
public int getDisconnectedBusesCount() {
return disconnectedBuses_.size();
}
/**
* repeated string disconnectedBuses = 1;
* @param index The index of the element to return.
* @return The disconnectedBuses at the given index.
*/
public java.lang.String getDisconnectedBuses(int index) {
return disconnectedBuses_.get(index);
}
/**
* repeated string disconnectedBuses = 1;
* @param index The index of the value to return.
* @return The bytes of the disconnectedBuses at the given index.
*/
public com.google.protobuf.ByteString
getDisconnectedBusesBytes(int index) {
return disconnectedBuses_.getByteString(index);
}
public static final int ISOLATEDSUBAREAS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List isolatedSubAreas_;
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
@java.lang.Override
public java.util.List getIsolatedSubAreasList() {
return isolatedSubAreas_;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.hc.opendss.IsolatedAreaOrBuilder>
getIsolatedSubAreasOrBuilderList() {
return isolatedSubAreas_;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
@java.lang.Override
public int getIsolatedSubAreasCount() {
return isolatedSubAreas_.size();
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
@java.lang.Override
public com.zepben.protobuf.hc.opendss.IsolatedArea getIsolatedSubAreas(int index) {
return isolatedSubAreas_.get(index);
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
@java.lang.Override
public com.zepben.protobuf.hc.opendss.IsolatedAreaOrBuilder getIsolatedSubAreasOrBuilder(
int index) {
return isolatedSubAreas_.get(index);
}
public static final int ISOLATEDELEMENTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List isolatedElements_;
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
@java.lang.Override
public java.util.List getIsolatedElementsList() {
return isolatedElements_;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.hc.opendss.IsolatedElementOrBuilder>
getIsolatedElementsOrBuilderList() {
return isolatedElements_;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
@java.lang.Override
public int getIsolatedElementsCount() {
return isolatedElements_.size();
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
@java.lang.Override
public com.zepben.protobuf.hc.opendss.IsolatedElement getIsolatedElements(int index) {
return isolatedElements_.get(index);
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
@java.lang.Override
public com.zepben.protobuf.hc.opendss.IsolatedElementOrBuilder getIsolatedElementsOrBuilder(
int index) {
return isolatedElements_.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 {
for (int i = 0; i < disconnectedBuses_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, disconnectedBuses_.getRaw(i));
}
for (int i = 0; i < isolatedSubAreas_.size(); i++) {
output.writeMessage(2, isolatedSubAreas_.get(i));
}
for (int i = 0; i < isolatedElements_.size(); i++) {
output.writeMessage(3, isolatedElements_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < disconnectedBuses_.size(); i++) {
dataSize += computeStringSizeNoTag(disconnectedBuses_.getRaw(i));
}
size += dataSize;
size += 1 * getDisconnectedBusesList().size();
}
for (int i = 0; i < isolatedSubAreas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, isolatedSubAreas_.get(i));
}
for (int i = 0; i < isolatedElements_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, isolatedElements_.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.hc.opendss.IsolatedBusesReport)) {
return super.equals(obj);
}
com.zepben.protobuf.hc.opendss.IsolatedBusesReport other = (com.zepben.protobuf.hc.opendss.IsolatedBusesReport) obj;
if (!getDisconnectedBusesList()
.equals(other.getDisconnectedBusesList())) return false;
if (!getIsolatedSubAreasList()
.equals(other.getIsolatedSubAreasList())) return false;
if (!getIsolatedElementsList()
.equals(other.getIsolatedElementsList())) 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 (getDisconnectedBusesCount() > 0) {
hash = (37 * hash) + DISCONNECTEDBUSES_FIELD_NUMBER;
hash = (53 * hash) + getDisconnectedBusesList().hashCode();
}
if (getIsolatedSubAreasCount() > 0) {
hash = (37 * hash) + ISOLATEDSUBAREAS_FIELD_NUMBER;
hash = (53 * hash) + getIsolatedSubAreasList().hashCode();
}
if (getIsolatedElementsCount() > 0) {
hash = (37 * hash) + ISOLATEDELEMENTS_FIELD_NUMBER;
hash = (53 * hash) + getIsolatedElementsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport 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.hc.opendss.IsolatedBusesReport parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport 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.hc.opendss.IsolatedBusesReport parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport 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.hc.opendss.IsolatedBusesReport parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport 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.hc.opendss.IsolatedBusesReport parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport 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.hc.opendss.IsolatedBusesReport 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;
}
/**
*
**
* Messages for streaming the isolated elements report (disconnected buses, areas and elements)
*
*
* Protobuf type {@code zepben.protobuf.hc.opendss.IsolatedBusesReport}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.IsolatedBusesReport)
com.zepben.protobuf.hc.opendss.IsolatedBusesReportOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_IsolatedBusesReport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_IsolatedBusesReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.hc.opendss.IsolatedBusesReport.class, com.zepben.protobuf.hc.opendss.IsolatedBusesReport.Builder.class);
}
// Construct using com.zepben.protobuf.hc.opendss.IsolatedBusesReport.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
disconnectedBuses_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (isolatedSubAreasBuilder_ == null) {
isolatedSubAreas_ = java.util.Collections.emptyList();
} else {
isolatedSubAreas_ = null;
isolatedSubAreasBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (isolatedElementsBuilder_ == null) {
isolatedElements_ = java.util.Collections.emptyList();
} else {
isolatedElements_ = null;
isolatedElementsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_IsolatedBusesReport_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.hc.opendss.IsolatedBusesReport getDefaultInstanceForType() {
return com.zepben.protobuf.hc.opendss.IsolatedBusesReport.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.hc.opendss.IsolatedBusesReport build() {
com.zepben.protobuf.hc.opendss.IsolatedBusesReport result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.hc.opendss.IsolatedBusesReport buildPartial() {
com.zepben.protobuf.hc.opendss.IsolatedBusesReport result = new com.zepben.protobuf.hc.opendss.IsolatedBusesReport(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.zepben.protobuf.hc.opendss.IsolatedBusesReport result) {
if (isolatedSubAreasBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
isolatedSubAreas_ = java.util.Collections.unmodifiableList(isolatedSubAreas_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.isolatedSubAreas_ = isolatedSubAreas_;
} else {
result.isolatedSubAreas_ = isolatedSubAreasBuilder_.build();
}
if (isolatedElementsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
isolatedElements_ = java.util.Collections.unmodifiableList(isolatedElements_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.isolatedElements_ = isolatedElements_;
} else {
result.isolatedElements_ = isolatedElementsBuilder_.build();
}
}
private void buildPartial0(com.zepben.protobuf.hc.opendss.IsolatedBusesReport result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
disconnectedBuses_.makeImmutable();
result.disconnectedBuses_ = disconnectedBuses_;
}
}
@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.hc.opendss.IsolatedBusesReport) {
return mergeFrom((com.zepben.protobuf.hc.opendss.IsolatedBusesReport)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.hc.opendss.IsolatedBusesReport other) {
if (other == com.zepben.protobuf.hc.opendss.IsolatedBusesReport.getDefaultInstance()) return this;
if (!other.disconnectedBuses_.isEmpty()) {
if (disconnectedBuses_.isEmpty()) {
disconnectedBuses_ = other.disconnectedBuses_;
bitField0_ |= 0x00000001;
} else {
ensureDisconnectedBusesIsMutable();
disconnectedBuses_.addAll(other.disconnectedBuses_);
}
onChanged();
}
if (isolatedSubAreasBuilder_ == null) {
if (!other.isolatedSubAreas_.isEmpty()) {
if (isolatedSubAreas_.isEmpty()) {
isolatedSubAreas_ = other.isolatedSubAreas_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.addAll(other.isolatedSubAreas_);
}
onChanged();
}
} else {
if (!other.isolatedSubAreas_.isEmpty()) {
if (isolatedSubAreasBuilder_.isEmpty()) {
isolatedSubAreasBuilder_.dispose();
isolatedSubAreasBuilder_ = null;
isolatedSubAreas_ = other.isolatedSubAreas_;
bitField0_ = (bitField0_ & ~0x00000002);
isolatedSubAreasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIsolatedSubAreasFieldBuilder() : null;
} else {
isolatedSubAreasBuilder_.addAllMessages(other.isolatedSubAreas_);
}
}
}
if (isolatedElementsBuilder_ == null) {
if (!other.isolatedElements_.isEmpty()) {
if (isolatedElements_.isEmpty()) {
isolatedElements_ = other.isolatedElements_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureIsolatedElementsIsMutable();
isolatedElements_.addAll(other.isolatedElements_);
}
onChanged();
}
} else {
if (!other.isolatedElements_.isEmpty()) {
if (isolatedElementsBuilder_.isEmpty()) {
isolatedElementsBuilder_.dispose();
isolatedElementsBuilder_ = null;
isolatedElements_ = other.isolatedElements_;
bitField0_ = (bitField0_ & ~0x00000004);
isolatedElementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIsolatedElementsFieldBuilder() : null;
} else {
isolatedElementsBuilder_.addAllMessages(other.isolatedElements_);
}
}
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureDisconnectedBusesIsMutable();
disconnectedBuses_.add(s);
break;
} // case 10
case 18: {
com.zepben.protobuf.hc.opendss.IsolatedArea m =
input.readMessage(
com.zepben.protobuf.hc.opendss.IsolatedArea.parser(),
extensionRegistry);
if (isolatedSubAreasBuilder_ == null) {
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.add(m);
} else {
isolatedSubAreasBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.zepben.protobuf.hc.opendss.IsolatedElement m =
input.readMessage(
com.zepben.protobuf.hc.opendss.IsolatedElement.parser(),
extensionRegistry);
if (isolatedElementsBuilder_ == null) {
ensureIsolatedElementsIsMutable();
isolatedElements_.add(m);
} else {
isolatedElementsBuilder_.addMessage(m);
}
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.google.protobuf.LazyStringArrayList disconnectedBuses_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDisconnectedBusesIsMutable() {
if (!disconnectedBuses_.isModifiable()) {
disconnectedBuses_ = new com.google.protobuf.LazyStringArrayList(disconnectedBuses_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string disconnectedBuses = 1;
* @return A list containing the disconnectedBuses.
*/
public com.google.protobuf.ProtocolStringList
getDisconnectedBusesList() {
disconnectedBuses_.makeImmutable();
return disconnectedBuses_;
}
/**
* repeated string disconnectedBuses = 1;
* @return The count of disconnectedBuses.
*/
public int getDisconnectedBusesCount() {
return disconnectedBuses_.size();
}
/**
* repeated string disconnectedBuses = 1;
* @param index The index of the element to return.
* @return The disconnectedBuses at the given index.
*/
public java.lang.String getDisconnectedBuses(int index) {
return disconnectedBuses_.get(index);
}
/**
* repeated string disconnectedBuses = 1;
* @param index The index of the value to return.
* @return The bytes of the disconnectedBuses at the given index.
*/
public com.google.protobuf.ByteString
getDisconnectedBusesBytes(int index) {
return disconnectedBuses_.getByteString(index);
}
/**
* repeated string disconnectedBuses = 1;
* @param index The index to set the value at.
* @param value The disconnectedBuses to set.
* @return This builder for chaining.
*/
public Builder setDisconnectedBuses(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDisconnectedBusesIsMutable();
disconnectedBuses_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string disconnectedBuses = 1;
* @param value The disconnectedBuses to add.
* @return This builder for chaining.
*/
public Builder addDisconnectedBuses(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDisconnectedBusesIsMutable();
disconnectedBuses_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string disconnectedBuses = 1;
* @param values The disconnectedBuses to add.
* @return This builder for chaining.
*/
public Builder addAllDisconnectedBuses(
java.lang.Iterable values) {
ensureDisconnectedBusesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, disconnectedBuses_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string disconnectedBuses = 1;
* @return This builder for chaining.
*/
public Builder clearDisconnectedBuses() {
disconnectedBuses_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string disconnectedBuses = 1;
* @param value The bytes of the disconnectedBuses to add.
* @return This builder for chaining.
*/
public Builder addDisconnectedBusesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureDisconnectedBusesIsMutable();
disconnectedBuses_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List isolatedSubAreas_ =
java.util.Collections.emptyList();
private void ensureIsolatedSubAreasIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
isolatedSubAreas_ = new java.util.ArrayList(isolatedSubAreas_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.hc.opendss.IsolatedArea, com.zepben.protobuf.hc.opendss.IsolatedArea.Builder, com.zepben.protobuf.hc.opendss.IsolatedAreaOrBuilder> isolatedSubAreasBuilder_;
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public java.util.List getIsolatedSubAreasList() {
if (isolatedSubAreasBuilder_ == null) {
return java.util.Collections.unmodifiableList(isolatedSubAreas_);
} else {
return isolatedSubAreasBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public int getIsolatedSubAreasCount() {
if (isolatedSubAreasBuilder_ == null) {
return isolatedSubAreas_.size();
} else {
return isolatedSubAreasBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public com.zepben.protobuf.hc.opendss.IsolatedArea getIsolatedSubAreas(int index) {
if (isolatedSubAreasBuilder_ == null) {
return isolatedSubAreas_.get(index);
} else {
return isolatedSubAreasBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder setIsolatedSubAreas(
int index, com.zepben.protobuf.hc.opendss.IsolatedArea value) {
if (isolatedSubAreasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.set(index, value);
onChanged();
} else {
isolatedSubAreasBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder setIsolatedSubAreas(
int index, com.zepben.protobuf.hc.opendss.IsolatedArea.Builder builderForValue) {
if (isolatedSubAreasBuilder_ == null) {
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.set(index, builderForValue.build());
onChanged();
} else {
isolatedSubAreasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder addIsolatedSubAreas(com.zepben.protobuf.hc.opendss.IsolatedArea value) {
if (isolatedSubAreasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.add(value);
onChanged();
} else {
isolatedSubAreasBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder addIsolatedSubAreas(
int index, com.zepben.protobuf.hc.opendss.IsolatedArea value) {
if (isolatedSubAreasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.add(index, value);
onChanged();
} else {
isolatedSubAreasBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder addIsolatedSubAreas(
com.zepben.protobuf.hc.opendss.IsolatedArea.Builder builderForValue) {
if (isolatedSubAreasBuilder_ == null) {
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.add(builderForValue.build());
onChanged();
} else {
isolatedSubAreasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder addIsolatedSubAreas(
int index, com.zepben.protobuf.hc.opendss.IsolatedArea.Builder builderForValue) {
if (isolatedSubAreasBuilder_ == null) {
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.add(index, builderForValue.build());
onChanged();
} else {
isolatedSubAreasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder addAllIsolatedSubAreas(
java.lang.Iterable extends com.zepben.protobuf.hc.opendss.IsolatedArea> values) {
if (isolatedSubAreasBuilder_ == null) {
ensureIsolatedSubAreasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, isolatedSubAreas_);
onChanged();
} else {
isolatedSubAreasBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder clearIsolatedSubAreas() {
if (isolatedSubAreasBuilder_ == null) {
isolatedSubAreas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
isolatedSubAreasBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public Builder removeIsolatedSubAreas(int index) {
if (isolatedSubAreasBuilder_ == null) {
ensureIsolatedSubAreasIsMutable();
isolatedSubAreas_.remove(index);
onChanged();
} else {
isolatedSubAreasBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public com.zepben.protobuf.hc.opendss.IsolatedArea.Builder getIsolatedSubAreasBuilder(
int index) {
return getIsolatedSubAreasFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public com.zepben.protobuf.hc.opendss.IsolatedAreaOrBuilder getIsolatedSubAreasOrBuilder(
int index) {
if (isolatedSubAreasBuilder_ == null) {
return isolatedSubAreas_.get(index); } else {
return isolatedSubAreasBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public java.util.List extends com.zepben.protobuf.hc.opendss.IsolatedAreaOrBuilder>
getIsolatedSubAreasOrBuilderList() {
if (isolatedSubAreasBuilder_ != null) {
return isolatedSubAreasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(isolatedSubAreas_);
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public com.zepben.protobuf.hc.opendss.IsolatedArea.Builder addIsolatedSubAreasBuilder() {
return getIsolatedSubAreasFieldBuilder().addBuilder(
com.zepben.protobuf.hc.opendss.IsolatedArea.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public com.zepben.protobuf.hc.opendss.IsolatedArea.Builder addIsolatedSubAreasBuilder(
int index) {
return getIsolatedSubAreasFieldBuilder().addBuilder(
index, com.zepben.protobuf.hc.opendss.IsolatedArea.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedArea isolatedSubAreas = 2;
*/
public java.util.List
getIsolatedSubAreasBuilderList() {
return getIsolatedSubAreasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.hc.opendss.IsolatedArea, com.zepben.protobuf.hc.opendss.IsolatedArea.Builder, com.zepben.protobuf.hc.opendss.IsolatedAreaOrBuilder>
getIsolatedSubAreasFieldBuilder() {
if (isolatedSubAreasBuilder_ == null) {
isolatedSubAreasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.hc.opendss.IsolatedArea, com.zepben.protobuf.hc.opendss.IsolatedArea.Builder, com.zepben.protobuf.hc.opendss.IsolatedAreaOrBuilder>(
isolatedSubAreas_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
isolatedSubAreas_ = null;
}
return isolatedSubAreasBuilder_;
}
private java.util.List isolatedElements_ =
java.util.Collections.emptyList();
private void ensureIsolatedElementsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
isolatedElements_ = new java.util.ArrayList(isolatedElements_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.hc.opendss.IsolatedElement, com.zepben.protobuf.hc.opendss.IsolatedElement.Builder, com.zepben.protobuf.hc.opendss.IsolatedElementOrBuilder> isolatedElementsBuilder_;
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public java.util.List getIsolatedElementsList() {
if (isolatedElementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(isolatedElements_);
} else {
return isolatedElementsBuilder_.getMessageList();
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public int getIsolatedElementsCount() {
if (isolatedElementsBuilder_ == null) {
return isolatedElements_.size();
} else {
return isolatedElementsBuilder_.getCount();
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public com.zepben.protobuf.hc.opendss.IsolatedElement getIsolatedElements(int index) {
if (isolatedElementsBuilder_ == null) {
return isolatedElements_.get(index);
} else {
return isolatedElementsBuilder_.getMessage(index);
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder setIsolatedElements(
int index, com.zepben.protobuf.hc.opendss.IsolatedElement value) {
if (isolatedElementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIsolatedElementsIsMutable();
isolatedElements_.set(index, value);
onChanged();
} else {
isolatedElementsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder setIsolatedElements(
int index, com.zepben.protobuf.hc.opendss.IsolatedElement.Builder builderForValue) {
if (isolatedElementsBuilder_ == null) {
ensureIsolatedElementsIsMutable();
isolatedElements_.set(index, builderForValue.build());
onChanged();
} else {
isolatedElementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder addIsolatedElements(com.zepben.protobuf.hc.opendss.IsolatedElement value) {
if (isolatedElementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIsolatedElementsIsMutable();
isolatedElements_.add(value);
onChanged();
} else {
isolatedElementsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder addIsolatedElements(
int index, com.zepben.protobuf.hc.opendss.IsolatedElement value) {
if (isolatedElementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIsolatedElementsIsMutable();
isolatedElements_.add(index, value);
onChanged();
} else {
isolatedElementsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder addIsolatedElements(
com.zepben.protobuf.hc.opendss.IsolatedElement.Builder builderForValue) {
if (isolatedElementsBuilder_ == null) {
ensureIsolatedElementsIsMutable();
isolatedElements_.add(builderForValue.build());
onChanged();
} else {
isolatedElementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder addIsolatedElements(
int index, com.zepben.protobuf.hc.opendss.IsolatedElement.Builder builderForValue) {
if (isolatedElementsBuilder_ == null) {
ensureIsolatedElementsIsMutable();
isolatedElements_.add(index, builderForValue.build());
onChanged();
} else {
isolatedElementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder addAllIsolatedElements(
java.lang.Iterable extends com.zepben.protobuf.hc.opendss.IsolatedElement> values) {
if (isolatedElementsBuilder_ == null) {
ensureIsolatedElementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, isolatedElements_);
onChanged();
} else {
isolatedElementsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder clearIsolatedElements() {
if (isolatedElementsBuilder_ == null) {
isolatedElements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
isolatedElementsBuilder_.clear();
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public Builder removeIsolatedElements(int index) {
if (isolatedElementsBuilder_ == null) {
ensureIsolatedElementsIsMutable();
isolatedElements_.remove(index);
onChanged();
} else {
isolatedElementsBuilder_.remove(index);
}
return this;
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public com.zepben.protobuf.hc.opendss.IsolatedElement.Builder getIsolatedElementsBuilder(
int index) {
return getIsolatedElementsFieldBuilder().getBuilder(index);
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public com.zepben.protobuf.hc.opendss.IsolatedElementOrBuilder getIsolatedElementsOrBuilder(
int index) {
if (isolatedElementsBuilder_ == null) {
return isolatedElements_.get(index); } else {
return isolatedElementsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public java.util.List extends com.zepben.protobuf.hc.opendss.IsolatedElementOrBuilder>
getIsolatedElementsOrBuilderList() {
if (isolatedElementsBuilder_ != null) {
return isolatedElementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(isolatedElements_);
}
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public com.zepben.protobuf.hc.opendss.IsolatedElement.Builder addIsolatedElementsBuilder() {
return getIsolatedElementsFieldBuilder().addBuilder(
com.zepben.protobuf.hc.opendss.IsolatedElement.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public com.zepben.protobuf.hc.opendss.IsolatedElement.Builder addIsolatedElementsBuilder(
int index) {
return getIsolatedElementsFieldBuilder().addBuilder(
index, com.zepben.protobuf.hc.opendss.IsolatedElement.getDefaultInstance());
}
/**
* repeated .zepben.protobuf.hc.opendss.IsolatedElement isolatedElements = 3;
*/
public java.util.List
getIsolatedElementsBuilderList() {
return getIsolatedElementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.hc.opendss.IsolatedElement, com.zepben.protobuf.hc.opendss.IsolatedElement.Builder, com.zepben.protobuf.hc.opendss.IsolatedElementOrBuilder>
getIsolatedElementsFieldBuilder() {
if (isolatedElementsBuilder_ == null) {
isolatedElementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.hc.opendss.IsolatedElement, com.zepben.protobuf.hc.opendss.IsolatedElement.Builder, com.zepben.protobuf.hc.opendss.IsolatedElementOrBuilder>(
isolatedElements_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
isolatedElements_ = null;
}
return isolatedElementsBuilder_;
}
@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.hc.opendss.IsolatedBusesReport)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.IsolatedBusesReport)
private static final com.zepben.protobuf.hc.opendss.IsolatedBusesReport DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.IsolatedBusesReport();
}
public static com.zepben.protobuf.hc.opendss.IsolatedBusesReport getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IsolatedBusesReport 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.hc.opendss.IsolatedBusesReport getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}