com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme 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/ProtectionRelayScheme.proto
package com.zepben.protobuf.cim.iec61970.base.protection;
/**
*
**
* A scheme that a group of relay functions implement. For example, typically schemes are primary and secondary, or
* main and failsafe.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme}
*/
public final class ProtectionRelayScheme extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme)
ProtectionRelaySchemeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtectionRelayScheme.newBuilder() to construct.
private ProtectionRelayScheme(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtectionRelayScheme() {
systemMRID_ = "";
functionMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtectionRelayScheme();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySchemeOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayScheme_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySchemeOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayScheme_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme.class, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme.Builder.class);
}
private int bitField0_;
public static final int IO_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io_;
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
@java.lang.Override
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
public static final int SYSTEMMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object systemMRID_ = "";
/**
*
**
* The system this scheme belongs to.
*
*
* string systemMRID = 2;
* @return The systemMRID.
*/
@java.lang.Override
public java.lang.String getSystemMRID() {
java.lang.Object ref = systemMRID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
systemMRID_ = s;
return s;
}
}
/**
*
**
* The system this scheme belongs to.
*
*
* string systemMRID = 2;
* @return The bytes for systemMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSystemMRIDBytes() {
java.lang.Object ref = systemMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
systemMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FUNCTIONMRIDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList functionMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @return A list containing the functionMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getFunctionMRIDsList() {
return functionMRIDs_;
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @return The count of functionMRIDs.
*/
public int getFunctionMRIDsCount() {
return functionMRIDs_.size();
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param index The index of the element to return.
* @return The functionMRIDs at the given index.
*/
public java.lang.String getFunctionMRIDs(int index) {
return functionMRIDs_.get(index);
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the functionMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getFunctionMRIDsBytes(int index) {
return functionMRIDs_.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, getIo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, systemMRID_);
}
for (int i = 0; i < functionMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, functionMRIDs_.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, getIo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, systemMRID_);
}
{
int dataSize = 0;
for (int i = 0; i < functionMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(functionMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getFunctionMRIDsList().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.ProtectionRelayScheme)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme other = (com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme) obj;
if (hasIo() != other.hasIo()) return false;
if (hasIo()) {
if (!getIo()
.equals(other.getIo())) return false;
}
if (!getSystemMRID()
.equals(other.getSystemMRID())) return false;
if (!getFunctionMRIDsList()
.equals(other.getFunctionMRIDsList())) 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 (hasIo()) {
hash = (37 * hash) + IO_FIELD_NUMBER;
hash = (53 * hash) + getIo().hashCode();
}
hash = (37 * hash) + SYSTEMMRID_FIELD_NUMBER;
hash = (53 * hash) + getSystemMRID().hashCode();
if (getFunctionMRIDsCount() > 0) {
hash = (37 * hash) + FUNCTIONMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getFunctionMRIDsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme 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.ProtectionRelayScheme parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme 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.ProtectionRelayScheme parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme 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.ProtectionRelayScheme 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.ProtectionRelayScheme 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.ProtectionRelayScheme 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.ProtectionRelayScheme 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.ProtectionRelayScheme 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.ProtectionRelayScheme 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.ProtectionRelayScheme 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 scheme that a group of relay functions implement. For example, typically schemes are primary and secondary, or
* main and failsafe.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme)
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySchemeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySchemeOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayScheme_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelaySchemeOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayScheme_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme.class, com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
systemMRID_ = "";
functionMRIDs_ =
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.ProtectionRelaySchemeOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_protection_ProtectionRelayScheme_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme build() {
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme buildPartial() {
com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme result = new com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.io_ = ioBuilder_ == null
? io_
: ioBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.systemMRID_ = systemMRID_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
functionMRIDs_.makeImmutable();
result.functionMRIDs_ = functionMRIDs_;
}
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.ProtectionRelayScheme) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme other) {
if (other == com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme.getDefaultInstance()) return this;
if (other.hasIo()) {
mergeIo(other.getIo());
}
if (!other.getSystemMRID().isEmpty()) {
systemMRID_ = other.systemMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.functionMRIDs_.isEmpty()) {
if (functionMRIDs_.isEmpty()) {
functionMRIDs_ = other.functionMRIDs_;
bitField0_ |= 0x00000004;
} else {
ensureFunctionMRIDsIsMutable();
functionMRIDs_.addAll(other.functionMRIDs_);
}
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(
getIoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
systemMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureFunctionMRIDsIsMutable();
functionMRIDs_.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.IdentifiedObject io_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder> ioBuilder_;
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
if (ioBuilder_ == null) {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
} else {
return ioBuilder_.getMessage();
}
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
io_ = value;
} else {
ioBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder builderForValue) {
if (ioBuilder_ == null) {
io_ = builderForValue.build();
} else {
ioBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder mergeIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
io_ != null &&
io_ != com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance()) {
getIoBuilder().mergeFrom(value);
} else {
io_ = value;
}
} else {
ioBuilder_.mergeFrom(value);
}
if (io_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder clearIo() {
bitField0_ = (bitField0_ & ~0x00000001);
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder getIoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIoFieldBuilder().getBuilder();
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
if (ioBuilder_ != null) {
return ioBuilder_.getMessageOrBuilder();
} else {
return io_ == null ?
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
}
/**
*
**
* The IdentifiedObject fields for this ProtectionRelayScheme.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>
getIoFieldBuilder() {
if (ioBuilder_ == null) {
ioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>(
getIo(),
getParentForChildren(),
isClean());
io_ = null;
}
return ioBuilder_;
}
private java.lang.Object systemMRID_ = "";
/**
*
**
* The system this scheme belongs to.
*
*
* string systemMRID = 2;
* @return The systemMRID.
*/
public java.lang.String getSystemMRID() {
java.lang.Object ref = systemMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
systemMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The system this scheme belongs to.
*
*
* string systemMRID = 2;
* @return The bytes for systemMRID.
*/
public com.google.protobuf.ByteString
getSystemMRIDBytes() {
java.lang.Object ref = systemMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
systemMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The system this scheme belongs to.
*
*
* string systemMRID = 2;
* @param value The systemMRID to set.
* @return This builder for chaining.
*/
public Builder setSystemMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
systemMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The system this scheme belongs to.
*
*
* string systemMRID = 2;
* @return This builder for chaining.
*/
public Builder clearSystemMRID() {
systemMRID_ = getDefaultInstance().getSystemMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The system this scheme belongs to.
*
*
* string systemMRID = 2;
* @param value The bytes for systemMRID to set.
* @return This builder for chaining.
*/
public Builder setSystemMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
systemMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList functionMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureFunctionMRIDsIsMutable() {
if (!functionMRIDs_.isModifiable()) {
functionMRIDs_ = new com.google.protobuf.LazyStringArrayList(functionMRIDs_);
}
bitField0_ |= 0x00000004;
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @return A list containing the functionMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getFunctionMRIDsList() {
functionMRIDs_.makeImmutable();
return functionMRIDs_;
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @return The count of functionMRIDs.
*/
public int getFunctionMRIDsCount() {
return functionMRIDs_.size();
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param index The index of the element to return.
* @return The functionMRIDs at the given index.
*/
public java.lang.String getFunctionMRIDs(int index) {
return functionMRIDs_.get(index);
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param index The index of the value to return.
* @return The bytes of the functionMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getFunctionMRIDsBytes(int index) {
return functionMRIDs_.getByteString(index);
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param index The index to set the value at.
* @param value The functionMRIDs to set.
* @return This builder for chaining.
*/
public Builder setFunctionMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFunctionMRIDsIsMutable();
functionMRIDs_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param value The functionMRIDs to add.
* @return This builder for chaining.
*/
public Builder addFunctionMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFunctionMRIDsIsMutable();
functionMRIDs_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param values The functionMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllFunctionMRIDs(
java.lang.Iterable values) {
ensureFunctionMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, functionMRIDs_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @return This builder for chaining.
*/
public Builder clearFunctionMRIDs() {
functionMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
**
* The functions operated as part of this protection scheme.
*
*
* repeated string functionMRIDs = 3;
* @param value The bytes of the functionMRIDs to add.
* @return This builder for chaining.
*/
public Builder addFunctionMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureFunctionMRIDsIsMutable();
functionMRIDs_.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.ProtectionRelayScheme)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme)
private static final com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme();
}
public static com.zepben.protobuf.cim.iec61970.base.protection.ProtectionRelayScheme getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtectionRelayScheme 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.ProtectionRelayScheme getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}