com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/cim/iec61970/base/protection/ProtectionRelaySystem.proto
package com.zepben.protobuf.cim.iec61970.base.protection;
/**
*
**
* A relay system for controlling ProtectedSwitches.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem}
*/
public final class ProtectionRelaySystem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem)
ProtectionRelaySystemOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtectionRelaySystem.newBuilder() to construct.
private ProtectionRelaySystem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtectionRelaySystem() {
protectionKind_ = 0;
schemeMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtectionRelaySystem();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystemOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelaySystem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystemOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelaySystem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem.class, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem.Builder.class);
}
private int bitField0_;
public static final int EQ_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.core.Equipment eq_;
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
* @return Whether the eq field is set.
*/
@java.lang.Override
public boolean hasEq() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
* @return The eq.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.Equipment getEq() {
return eq_ == null ? com.zepben.protobuf.cim.iec61970.base.core.Equipment.getDefaultInstance() : eq_;
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.EquipmentOrBuilder getEqOrBuilder() {
return eq_ == null ? com.zepben.protobuf.cim.iec61970.base.core.Equipment.getDefaultInstance() : eq_;
}
public static final int PROTECTIONKIND_FIELD_NUMBER = 2;
private int protectionKind_ = 0;
/**
*
**
* The kind of protection being provided by this protection equipment.
*
*
* .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 2;
* @return The enum numeric value on the wire for protectionKind.
*/
@java.lang.Override public int getProtectionKindValue() {
return protectionKind_;
}
/**
*
**
* The kind of protection being provided by this protection equipment.
*
*
* .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 2;
* @return The protectionKind.
*/
@java.lang.Override public com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind getProtectionKind() {
com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind result = com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.forNumber(protectionKind_);
return result == null ? com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNRECOGNIZED : result;
}
public static final int SCHEMEMRIDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList schemeMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @return A list containing the schemeMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getSchemeMRIDsList() {
return schemeMRIDs_;
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @return The count of schemeMRIDs.
*/
public int getSchemeMRIDsCount() {
return schemeMRIDs_.size();
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param index The index of the element to return.
* @return The schemeMRIDs at the given index.
*/
public java.lang.String getSchemeMRIDs(int index) {
return schemeMRIDs_.get(index);
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the schemeMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getSchemeMRIDsBytes(int index) {
return schemeMRIDs_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getEq());
}
if (protectionKind_ != com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNKNOWN.getNumber()) {
output.writeEnum(2, protectionKind_);
}
for (int i = 0; i < schemeMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemeMRIDs_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEq());
}
if (protectionKind_ != com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, protectionKind_);
}
{
int dataSize = 0;
for (int i = 0; i < schemeMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(schemeMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getSchemeMRIDsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem other = (com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem) obj;
if (hasEq() != other.hasEq()) return false;
if (hasEq()) {
if (!getEq()
.equals(other.getEq())) return false;
}
if (protectionKind_ != other.protectionKind_) return false;
if (!getSchemeMRIDsList()
.equals(other.getSchemeMRIDsList())) 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 (hasEq()) {
hash = (37 * hash) + EQ_FIELD_NUMBER;
hash = (53 * hash) + getEq().hashCode();
}
hash = (37 * hash) + PROTECTIONKIND_FIELD_NUMBER;
hash = (53 * hash) + protectionKind_;
if (getSchemeMRIDsCount() > 0) {
hash = (37 * hash) + SCHEMEMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getSchemeMRIDsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* A relay system for controlling ProtectedSwitches.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem)
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystemOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelaySystem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystemOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelaySystem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem.class, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEqFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
eq_ = null;
if (eqBuilder_ != null) {
eqBuilder_.dispose();
eqBuilder_ = null;
}
protectionKind_ = 0;
schemeMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystemOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelaySystem_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem build() {
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem buildPartial() {
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem result = new com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.eq_ = eqBuilder_ == null
? eq_
: eqBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.protectionKind_ = protectionKind_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
schemeMRIDs_.makeImmutable();
result.schemeMRIDs_ = schemeMRIDs_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem other) {
if (other == com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem.getDefaultInstance()) return this;
if (other.hasEq()) {
mergeEq(other.getEq());
}
if (other.protectionKind_ != 0) {
setProtectionKindValue(other.getProtectionKindValue());
}
if (!other.schemeMRIDs_.isEmpty()) {
if (schemeMRIDs_.isEmpty()) {
schemeMRIDs_ = other.schemeMRIDs_;
bitField0_ |= 0x00000004;
} else {
ensureSchemeMRIDsIsMutable();
schemeMRIDs_.addAll(other.schemeMRIDs_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getEqFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
protectionKind_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureSchemeMRIDsIsMutable();
schemeMRIDs_.add(s);
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.zepben.protobuf.cim.iec61970.base.core.Equipment eq_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Equipment, com.zepben.protobuf.cim.iec61970.base.core.Equipment.Builder, com.zepben.protobuf.cim.iec61970.base.core.EquipmentOrBuilder> eqBuilder_;
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
* @return Whether the eq field is set.
*/
public boolean hasEq() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
* @return The eq.
*/
public com.zepben.protobuf.cim.iec61970.base.core.Equipment getEq() {
if (eqBuilder_ == null) {
return eq_ == null ? com.zepben.protobuf.cim.iec61970.base.core.Equipment.getDefaultInstance() : eq_;
} else {
return eqBuilder_.getMessage();
}
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
public Builder setEq(com.zepben.protobuf.cim.iec61970.base.core.Equipment value) {
if (eqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eq_ = value;
} else {
eqBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
public Builder setEq(
com.zepben.protobuf.cim.iec61970.base.core.Equipment.Builder builderForValue) {
if (eqBuilder_ == null) {
eq_ = builderForValue.build();
} else {
eqBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
public Builder mergeEq(com.zepben.protobuf.cim.iec61970.base.core.Equipment value) {
if (eqBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
eq_ != null &&
eq_ != com.zepben.protobuf.cim.iec61970.base.core.Equipment.getDefaultInstance()) {
getEqBuilder().mergeFrom(value);
} else {
eq_ = value;
}
} else {
eqBuilder_.mergeFrom(value);
}
if (eq_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
public Builder clearEq() {
bitField0_ = (bitField0_ & ~0x00000001);
eq_ = null;
if (eqBuilder_ != null) {
eqBuilder_.dispose();
eqBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.Equipment.Builder getEqBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getEqFieldBuilder().getBuilder();
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.EquipmentOrBuilder getEqOrBuilder() {
if (eqBuilder_ != null) {
return eqBuilder_.getMessageOrBuilder();
} else {
return eq_ == null ?
com.zepben.protobuf.cim.iec61970.base.core.Equipment.getDefaultInstance() : eq_;
}
}
/**
*
**
* The Equipment fields for this ProtectionRelaySystem.
*
*
* .zepben.protobuf.cim.iec61970.base.core.Equipment eq = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Equipment, com.zepben.protobuf.cim.iec61970.base.core.Equipment.Builder, com.zepben.protobuf.cim.iec61970.base.core.EquipmentOrBuilder>
getEqFieldBuilder() {
if (eqBuilder_ == null) {
eqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.Equipment, com.zepben.protobuf.cim.iec61970.base.core.Equipment.Builder, com.zepben.protobuf.cim.iec61970.base.core.EquipmentOrBuilder>(
getEq(),
getParentForChildren(),
isClean());
eq_ = null;
}
return eqBuilder_;
}
private int protectionKind_ = 0;
/**
*
**
* The kind of protection being provided by this protection equipment.
*
*
* .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 2;
* @return The enum numeric value on the wire for protectionKind.
*/
@java.lang.Override public int getProtectionKindValue() {
return protectionKind_;
}
/**
*
**
* The kind of protection being provided by this protection equipment.
*
*
* .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 2;
* @param value The enum numeric value on the wire for protectionKind to set.
* @return This builder for chaining.
*/
public Builder setProtectionKindValue(int value) {
protectionKind_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The kind of protection being provided by this protection equipment.
*
*
* .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 2;
* @return The protectionKind.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind getProtectionKind() {
com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind result = com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.forNumber(protectionKind_);
return result == null ? com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind.UNRECOGNIZED : result;
}
/**
*
**
* The kind of protection being provided by this protection equipment.
*
*
* .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 2;
* @param value The protectionKind to set.
* @return This builder for chaining.
*/
public Builder setProtectionKind(com.zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
protectionKind_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The kind of protection being provided by this protection equipment.
*
*
* .zepben.protobuf.cim.iec61970.infiec61970.protection.ProtectionKind protectionKind = 2;
* @return This builder for chaining.
*/
public Builder clearProtectionKind() {
bitField0_ = (bitField0_ & ~0x00000002);
protectionKind_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList schemeMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSchemeMRIDsIsMutable() {
if (!schemeMRIDs_.isModifiable()) {
schemeMRIDs_ = new com.google.protobuf.LazyStringArrayList(schemeMRIDs_);
}
bitField0_ |= 0x00000004;
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @return A list containing the schemeMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getSchemeMRIDsList() {
schemeMRIDs_.makeImmutable();
return schemeMRIDs_;
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @return The count of schemeMRIDs.
*/
public int getSchemeMRIDsCount() {
return schemeMRIDs_.size();
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param index The index of the element to return.
* @return The schemeMRIDs at the given index.
*/
public java.lang.String getSchemeMRIDs(int index) {
return schemeMRIDs_.get(index);
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the schemeMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getSchemeMRIDsBytes(int index) {
return schemeMRIDs_.getByteString(index);
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param index The index to set the value at.
* @param value The schemeMRIDs to set.
* @return This builder for chaining.
*/
public Builder setSchemeMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSchemeMRIDsIsMutable();
schemeMRIDs_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param value The schemeMRIDs to add.
* @return This builder for chaining.
*/
public Builder addSchemeMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSchemeMRIDsIsMutable();
schemeMRIDs_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param values The schemeMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllSchemeMRIDs(
java.lang.Iterable values) {
ensureSchemeMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, schemeMRIDs_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @return This builder for chaining.
*/
public Builder clearSchemeMRIDs() {
schemeMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
**
* The schemes implemented by this ProtectionRelaySystem.
*
*
* repeated string schemeMRIDs = 3;
* @param value The bytes of the schemeMRIDs to add.
* @return This builder for chaining.
*/
public Builder addSchemeMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureSchemeMRIDsIsMutable();
schemeMRIDs_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem)
private static final com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem();
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtectionRelaySystem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySystem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}